32 std::cout <<
"CastorRecHitMonitor::bookHistograms" << std::endl;
33 ibooker.setCurrentFolder(
subsystemname +
"/CastorRecHitMonitor");
37 float ySec[nySec + 1];
38 float xSec[N_Sec + 1];
39 double E0sec = 1. / 1024.;
42 double lnBsec =
log(2.);
43 for (
int j = 1; j < nySec; j++)
44 ySec[j + 1] = E0sec *
exp(j * lnBsec);
45 for (
int i = 0;
i <= N_Sec;
i++)
48 sprintf(s,
"Castor Energy by Sectors #Phi");
49 h2RHvsSec = ibooker.book2D(s, s, N_Sec, xSec, nySec, ySec);
58 for (
int i = 0;
i <= nxCh;
i++)
60 double E0 = 1. / 1024.;
64 for (
int j = 1; j < nyE; j++)
65 yErh[j + 1] = E0 *
exp(j * lnA);
67 string st =
"Castor Cell Energy Map (cell-wise)";
68 h2RHchan = ibooker.book2D(st, st +
";moduleZ*16 + sector #Phi;RecHit / GeV", nxCh, xCh, nyE, yErh);
71 sprintf(s,
"Castor Cell Energy");
72 hallchan = ibooker.book1D(s, s, nyE, yErh);
75 st =
"Castor cell avr Energy per event Map Z-Phi";
76 h2RHoccmap = ibooker.bookProfile2D(st, st +
";module Z;sector Phi", 14, 0, 14, 16, 0, 16, 0., 1.e10,
"");
79 sprintf(s,
"CastorRecHitEntriesMap");
85 sprintf(s,
"CastorRecHitTime");
86 hRHtime = ibooker.book1D(s, s, 301, -101., 200.);
88 sprintf(s,
"CASTORTowerDepth");
89 hTowerDepth = ibooker.book1D(s, s, 130, -15500., -14200.);
92 sprintf(s,
"CASTORTowerMultiplicity");
96 float EhadTow[NEtow + 1];
97 float EMTow[NEtow + 1];
98 float ETower[NEtow + 2];
99 double E0tow = 1. / 1024.;
106 double lnBtow =
log(2.);
107 for (
int j = 1; j < NEtow; j++)
108 EMTow[j + 1] = E0tow *
exp(j * lnBtow);
109 for (
int j = 1; j < NEtow; j++)
110 EhadTow[j + 1] = E0tow *
exp(j * lnBtow);
111 for (
int j = 1; j <= NEtow; j++)
112 ETower[j + 1] = E0tow *
exp(j * lnBtow);
114 sprintf(s,
"CASTORTowerEMvsEhad");
115 h2TowerEMhad = ibooker.book2D(s, s, NEtow, EhadTow, NEtow, EMTow);
120 sprintf(s,
"CASTORTowerTotalEnergy");
121 hTowerE = ibooker.book1D(s, s, NEtow + 1, ETower);
124 sprintf(s,
"CASTORJetsMultiplicity");
127 sprintf(s,
"CASTORJetEnergy");
128 hJetEnergy = ibooker.book1D(s, s, 5000, 0., 500.);
130 sprintf(s,
"CASTORJetEta");
131 hJetEta = ibooker.book1D(s, s, 126, -6.3, 6.3);
133 sprintf(s,
"CASTORJetPhi");
134 hJetPhi = ibooker.book1D(s, s, 63, -3.15, 3.15);
137 std::cout <<
"CastorRecHitMonitor::bookHistograms(end)" << std::endl;
TProfile2D * getTProfile2D() const
MonitorElement * h2RHvsSec
MonitorElement * h2RHentriesMap
MonitorElement * hJetEnergy
MonitorElement * hJetsMultipl
std::string subsystemname
MonitorElement * hTowerDepth
MonitorElement * h2RHoccmap
MonitorElement * h2TowerEMhad
MonitorElement * hallchan
MonitorElement * h2RHchan
MonitorElement * hTowerMultipl