29{
31
33
34 for(int side : {0,1}){
35 std::string sideStr = (
side == 0) ?
"A" :
"C";
36
37 for(int module = 0; module < 4; module++){
38 _TH1D(m_zdc[side][module],Form("zdc_side%c_%d", std::tolower(sideStr[0]), module),100,0.,1.e6);
39 _SET_TITLE(
m_zdc[side][module], Form(
"Cherenkov photons in ZDC - Side %s - Module %d", sideStr.c_str(), module),
"n_{gamma}",
"counts");
40 }
41
43 _TH1D(
m_rpd[side][channel],Form(
"rpd_side%c_%d", std::tolower(sideStr[0]), channel),100,0.,1.e4);
44 _SET_TITLE(
m_rpd[side][channel], Form(
"Cherenkov photons in RPD - Side %s - Channel %d", sideStr.c_str(), channel),
"n_{gamma}",
"counts");
45 }
46 }
47
48 return StatusCode::SUCCESS;
49}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define _TH1D(var, name, nbin, xmin, xmax)
#define _SET_TITLE(var, title, xaxis, yaxis)