How provakar1994/bbcal_replay works
BBCal_replay is a ROOT-macro toolkit for replaying detector data and calibrating or inspecting the Shower (SH), PreShower (PS), combined calorimeter, and HCal. The principal workflow is raw run replay into ROOT event data, followed by cosmic or beam-based calibration and production of gain/HV outputs. The tree and README document further analysis capabilities; source excerpts are limited, so links between unsampled macros are not inferred.
Main entry points: replay_BBCal.C BBCal replay · replay_gmn_PD.C GMn replay · Shower_macros SH cosmic calibration · PreShower_macros PS cosmic calibration
Components 19
Replay
- BBCal replay
replay/replay_BBCal.C - GMn replay
replay/replay_gmn_PD.C
Calibration
- SH cosmic calibration
macros/Shower_macros - PS cosmic calibration
macros/PreShower_macros - Cosmic ADC gain
macros/Combined_macros/calculate_adcGain_cos.C - SH HV setting
macros/Shower_macros - PS HV setting
macros/PreShower_macros - Beam energy calibration
macros/Combined_macros/bbcal_eng_calib_w_h2.C
Analysis
- Combined analysis
macros/Combined_macros - Event display
macros/Event_disp_macros/bbcal_clustD.C
Detector-specific
- SH analysis
macros/Shower_macros - PS analysis
macros/PreShower_macros - HCal calibration
macros/hcal/hcal_eng_cal_PD.C
Other components
- Operator
- CODA runs
- ROOT event data
- HV set files
- Gain coefficients
- Histograms and plots
Connections 31
- Operator → BBCal replay: runs replay
- Operator → GMn replay: runs replay
- CODA runs → BBCal replay: reads segments
- CODA runs → GMn replay: reads segments
- BBCal replay → ROOT event data: writes ROOT
- GMn replay → ROOT event data: writes ROOT
- Operator → SH cosmic calibration: runs analysis
- Operator → PS cosmic calibration: runs analysis
- Operator → Cosmic ADC gain: runs analysis
- ROOT event data → SH cosmic calibration: reads events
- ROOT event data → PS cosmic calibration: reads events
- ROOT event data → Cosmic ADC gain: reads events
- SH cosmic calibration → SH HV setting: supplies calibration
- PS cosmic calibration → PS HV setting: supplies calibration
- SH HV setting → HV set files: writes settings
- PS HV setting → HV set files: writes settings
- Operator → Beam energy calibration: runs calibration
- ROOT event data → Beam energy calibration: reads events
- Beam energy calibration → Gain coefficients: writes coefficients
- Operator → SH analysis: runs macros
- Operator → PS analysis: runs macros
- Operator → Combined analysis: runs macros
- Operator → Event display: opens events
- ROOT event data → Event display: reads tree
- Operator → HCal calibration: runs calibration
- ROOT event data → HCal calibration: reads events
- SH analysis → Histograms and plots: produces plots
- PS analysis → Histograms and plots: produces plots
- Combined analysis → Histograms and plots: produces plots
- Event display → Histograms and plots: renders display
- HCal calibration → Histograms and plots: writes histograms