33 std::cout <<
"CastorRecHitMonitor::bookHistograms" << std::endl;
34 ibooker.setCurrentFolder(
subsystemname +
"/CastorRecHitMonitor");
38 float ySec[nySec + 1];
39 float xSec[N_Sec + 1];
40 double E0sec = 1. / 1024.;
43 double lnBsec =
log(2.);
44 for (
int j = 1; j < nySec; j++) ySec[j + 1] = E0sec *
exp(j * lnBsec);
45 for (
int i = 0;
i <= N_Sec;
i++) xSec[
i] =
i;
47 sprintf(s,
"Castor Energy by Sectors #Phi");
48 h2RHvsSec = ibooker.book2D(s, s, N_Sec, xSec, nySec, ySec);
57 for (
int i = 0;
i <= nxCh;
i++) xCh[
i] =
i;
58 double E0 = 1. / 1024.;
62 for (
int j = 1; j < nyE; j++) yErh[j + 1] = E0 *
exp(j * lnA);
64 string st =
"Castor Cell Energy Map (cell-wise)";
65 h2RHchan = ibooker.book2D(st, st +
";moduleZ*16 + sector #Phi;RecHit / GeV",
66 nxCh, xCh, nyE, yErh);
69 sprintf(s,
"Castor Cell Energy");
70 hallchan = ibooker.book1D(s, s, nyE, yErh);
73 st =
"Castor cell avr Energy per event Map Z-Phi";
74 h2RHoccmap = ibooker.bookProfile2D(st, st +
";module Z;sector Phi", 14, 0, 14,
75 16, 0, 16, 0., 1.e10,
"");
78 sprintf(s,
"CastorRecHitEntriesMap");
84 sprintf(s,
"CastorRecHitTime");
85 hRHtime = ibooker.book1D(s, s, 301, -101., 200.);
87 sprintf(s,
"CASTORTowerDepth");
88 hTowerDepth = ibooker.book1D(s, s, 130, -15500., -14200.);
91 sprintf(s,
"CASTORTowerMultiplicity");
95 float EhadTow[NEtow + 1];
96 float EMTow[NEtow + 1];
97 float ETower[NEtow + 2];
98 double E0tow = 1. / 1024.;
105 double lnBtow =
log(2.);
106 for (
int j = 1; j < NEtow; j++) EMTow[j + 1] = E0tow *
exp(j * lnBtow);
107 for (
int j = 1; j < NEtow; j++) EhadTow[j + 1] = E0tow *
exp(j * lnBtow);
108 for (
int j = 1; j <= NEtow; j++) ETower[j + 1] = E0tow *
exp(j * lnBtow);
110 sprintf(s,
"CASTORTowerEMvsEhad");
111 h2TowerEMhad = ibooker.book2D(s, s, NEtow, EhadTow, NEtow, EMTow);
116 sprintf(s,
"CASTORTowerTotalEnergy");
117 hTowerE = ibooker.book1D(s, s, NEtow + 1, ETower);
120 sprintf(s,
"CASTORJetsMultiplicity");
123 sprintf(s,
"CASTORJetEnergy");
124 hJetEnergy = ibooker.book1D(s, s, 5000, 0., 500.);
126 sprintf(s,
"CASTORJetEta");
127 hJetEta = ibooker.book1D(s, s, 126, -6.3, 6.3);
129 sprintf(s,
"CASTORJetPhi");
130 hJetPhi = ibooker.book1D(s, s, 63, -3.15, 3.15);
133 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