60 LogPrint(
"CastorMonitorModule") <<
"Digi bookHist(start)";
65 sprintf(sTileIndex,
"Cell(=moduleZ*16+sector#phi)");
70 hBX = ibooker.bookProfile(
71 "average E(digi) in BX",
"Castor average E (digi);Event.BX;fC", 3601, -0.5, 3600.5, 0., 1.e10,
"");
74 string trname = HltPaths_[0];
75 hpBXtrig = ibooker.bookProfile(
"average E(digi) in BXtrig",
76 "Castor average E (digi) trigger:'" + trname +
"';Event.BX;fC",
86 "E(digi)vsTriggerIndex",
"Castor average E(digi) by triggerIndex;triggerIndex;fC", 512, 0., 512, 0., 1.e10,
"");
92 h2digierr = ibooker.bookProfile2D(s2, s2, 14, 0., 14., 16, 0., 16., 100, 0, 1.e10,
"");
99 sprintf(s,
"CASTORreportSummaryMap");
100 h2repsum = ibooker.bookProfile2D(s, s, 14, 0., 14., 16, 0., 16., 100, 0, 1.e10,
"");
107 sprintf(s,
"CASTOR BadChannelsMap");
108 h2status = ibooker.book2D(s, s, 14, 0., 14., 16, 0., 16.);
113 sprintf(s,
"CASTOR TSmax Significance Map");
114 h2TSratio = ibooker.book2D(s, s, 14, 0., 14., 16, 0., 16.);
119 sprintf(s,
"CASTOR TSmax Significance All chan");
120 hTSratio = ibooker.book1D(s, s, 105, 0., 1.05);
122 sprintf(s,
"DigiSize");
123 hdigisize = ibooker.book1DD(s, s, 20, 0., 20.);
124 sprintf(s,
"ModuleZ(fC)_allTS");
125 hModule = ibooker.book1D(s, s, 14, 0., 14.);
128 sprintf(s,
"Sector #phi(fC)_allTS");
129 hSector = ibooker.book1D(s, s, 16, 0., 16.);
133 st =
"Castor cells avr digi(fC) per event Map TS vs Channel";
135 ibooker.bookProfile2D(st, st +
";" +
string(sTileIndex) +
";TS", 224, 0., 224., 10, 0., 10., 0., 1.e10,
"");
138 st =
"Castor cells avr digiRMS(fC) per event Map TS vs Channel";
139 h2QrmsTSvsCh = ibooker.book2D(st, st +
";" +
string(sTileIndex) +
";TS", 224, 0., 224., 10, 0., 10.);
142 sprintf(s,
"CASTOR data quality");
143 h2qualityMap = ibooker.book2D(s, s, 14, 0, 14, 16, 0, 16);
148 hReport = ibooker.bookFloat(
"CASTOR reportSummary");
150 sprintf(s,
"QmeanfC_map(allTS)");
151 h2QmeanMap = ibooker.book2D(s, s, 14, 0., 14., 16, 0., 16.);
156 const int NEtow = 20;
157 float EhadTow[NEtow + 1];
158 float EMTow[NEtow + 1];
159 float ETower[NEtow + 2];
160 double E0tow = 500. / 1024.;
167 double lnBtow =
log(1.8);
168 for (
int j = 1; j < NEtow; j++)
169 EMTow[j + 1] = E0tow *
exp(j * lnBtow);
170 for (
int j = 1; j < NEtow; j++)
171 EhadTow[j + 1] = E0tow *
exp(j * lnBtow);
172 for (
int j = 1; j <= NEtow; j++)
173 ETower[j + 1] = E0tow *
exp(j * lnBtow);
175 sprintf(s,
"CASTOR_Tower_EMvsEhad(fC)");
176 h2towEMvsHAD = ibooker.book2D(s, s, NEtow, EhadTow, NEtow, EMTow);
181 sprintf(s,
"CASTOR_TowerTotalEnergy(fC)");
182 htowE = ibooker.book1D(s, s, NEtow + 1, ETower);
185 for (
int ts = 0; ts <= 1; ts++) {
186 sprintf(s,
"QIErms_TS=%d", ts);
187 hQIErms[ts] = ibooker.book1D(s, s, 1000, 0., 100.);
191 for (
int ind = 0; ind < 224; ind++)
192 for (
int ts = 0; ts < 10; ts++)
TProfile * getTProfile() const
MonitorElement * h2towEMvsHAD
MonitorElement * h2TSratio
TProfile2D * getTProfile2D() const
MonitorElement * h2qualityMap
MonitorElement * hTSratio
MonitorElement * hpTrigRes
MonitorElement * h2status
MonitorElement * h2digierr
void getDbData(const edm::EventSetup &iSetup)
MonitorElement * h2QmeanMap
std::string subsystemname_
MonitorElement * h2QrmsTSvsCh
MonitorElement * hdigisize
MonitorElement * h2repsum
MonitorElement * hQIErms[10]
MonitorElement * h2QmeantsvsCh
MonitorElement * hpBXtrig