57 bool isHalfModule =
false;
74 if(updateEfficiencies){
81 meEfficiencyX_ = dbe->book1D(hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
85 meEfficiencyY_ = dbe->book1D(hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
93 meEfficiencyBeta_ = dbe->book1D(hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
99 meValid_ = dbe->book1D(hisID,
"# Valid hits",1,0,1.);
120 meMissing_ = dbe->book1D(hisID,
"# Missing hits",1,0,1.);
139 delete theHistogramId;
144 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
145 hisID = src.
label() +
"_" + sladder;
146 if(isHalfModule) hisID +=
"H";
149 if(updateEfficiencies){
151 meEfficiencyLad_ = dbe->book1D(
"efficiency_"+hisID,
"Hit efficiency",1,0,1.);
154 meEfficiencyXLad_ = dbe->book1D(
"efficiencyX_"+hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
157 meEfficiencyYLad_ = dbe->book1D(
"efficiencyY_"+hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
160 meEfficiencyAlphaLad_ = dbe->book1D(
"efficiencyAlpha_"+hisID,
"Hit efficiency in Alpha",nbinangle,-3.5,3.5);
163 meEfficiencyBetaLad_ = dbe->book1D(
"efficiencyBeta_"+hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
168 meValidLad_ = dbe->book1D(
"valid_"+hisID,
"# Valid hits",1,0,1.);
171 meValidXLad_ = dbe->book1D(
"validX_"+hisID,
"# Valid hits in X",nbinX,-1.5,1.5);
174 meValidYLad_ = dbe->book1D(
"validY_"+hisID,
"# Valid hits in Y",nbinY,-4.,4.);
177 meValidAlphaLad_ = dbe->book1D(
"validAlpha_"+hisID,
"# Valid hits in Alpha",nbinangle,-3.5,3.5);
180 meValidBetaLad_ = dbe->book1D(
"validBeta_"+hisID,
"# Valid hits in Beta",nbinangle,-3.5,3.5);
184 meMissingLad_ = dbe->book1D(
"missing_"+hisID,
"# Missing hits",1,0,1.);
187 meMissingXLad_ = dbe->book1D(
"missingX_"+hisID,
"# Missing hits in X",nbinX,-1.5,1.5);
190 meMissingYLad_ = dbe->book1D(
"missingY_"+hisID,
"# Missing hits in Y",nbinY,-4.,4.);
193 meMissingAlphaLad_ = dbe->book1D(
"missingAlpha_"+hisID,
"# Missing hits in Alpha",nbinangle,-3.5,3.5);
196 meMissingBetaLad_ = dbe->book1D(
"missingBeta_"+hisID,
"# Missing hits in Beta",nbinangle,-3.5,3.5);
202 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
203 hisID = src.
label() +
"_" + slayer;
206 if(updateEfficiencies){
208 meEfficiencyLay_ = dbe->book1D(
"efficiency_"+hisID,
"Hit efficiency",1,0,1.);
211 meEfficiencyXLay_ = dbe->book1D(
"efficiencyX_"+hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
214 meEfficiencyYLay_ = dbe->book1D(
"efficiencyY_"+hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
217 meEfficiencyAlphaLay_ = dbe->book1D(
"efficiencyAlpha_"+hisID,
"Hit efficiency in Alpha",nbinangle,-3.5,3.5);
220 meEfficiencyBetaLay_ = dbe->book1D(
"efficiencyBeta_"+hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
225 meValidLay_ = dbe->book1D(
"valid_"+hisID,
"# Valid hits",1,0,1.);
228 meValidXLay_ = dbe->book1D(
"validX_"+hisID,
"# Valid hits in X",nbinX,-1.5,1.5);
231 meValidYLay_ = dbe->book1D(
"validY_"+hisID,
"# Valid hits in Y",nbinY,-4.,4.);
234 meValidAlphaLay_ = dbe->book1D(
"validAlpha_"+hisID,
"# Valid hits in Alpha",nbinangle,-3.5,3.5);
237 meValidBetaLay_ = dbe->book1D(
"validBeta_"+hisID,
"# Valid hits in Beta",nbinangle,-3.5,3.5);
241 meMissingLay_ = dbe->book1D(
"missing_"+hisID,
"# Missing hits",1,0,1.);
244 meMissingXLay_ = dbe->book1D(
"missingX_"+hisID,
"# Missing hits in X",nbinX,-1.5,1.5);
247 meMissingYLay_ = dbe->book1D(
"missingY_"+hisID,
"# Missing hits in Y",nbinY,-4.,4.);
250 meMissingAlphaLay_ = dbe->book1D(
"missingAlpha_"+hisID,
"# Missing hits in Alpha",nbinangle,-3.5,3.5);
253 meMissingBetaLay_ = dbe->book1D(
"missingBeta_"+hisID,
"# Missing hits in Beta",nbinangle,-3.5,3.5);
259 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
260 hisID = src.
label() +
"_" + smodule;
262 if(updateEfficiencies){
264 meEfficiencyPhi_ = dbe->book1D(
"efficiency_"+hisID,
"Hit efficiency",1,0,1.);
267 meEfficiencyXPhi_ = dbe->book1D(
"efficiencyX_"+hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
270 meEfficiencyYPhi_ = dbe->book1D(
"efficiencyY_"+hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
273 meEfficiencyAlphaPhi_ = dbe->book1D(
"efficiencyAlpha_"+hisID,
"Hit efficiency in Alpha",nbinangle,-3.5,3.5);
276 meEfficiencyBetaPhi_ = dbe->book1D(
"efficiencyBeta_"+hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
281 meValidPhi_ = dbe->book1D(
"valid_"+hisID,
"# Valid hits",1,0,1.);
284 meValidXPhi_ = dbe->book1D(
"validX_"+hisID,
"# Valid hits in X",nbinX,-1.5,1.5);
287 meValidYPhi_ = dbe->book1D(
"validY_"+hisID,
"# Valid hits in Y",nbinY,-4.,4.);
290 meValidAlphaPhi_ = dbe->book1D(
"validAlpha_"+hisID,
"# Valid hits in Alpha",nbinangle,-3.5,3.5);
293 meValidBetaPhi_ = dbe->book1D(
"validBeta_"+hisID,
"# Valid hits in Beta",nbinangle,-3.5,3.5);
297 meMissingPhi_ = dbe->book1D(
"missing_"+hisID,
"# Missing hits",1,0,1.);
300 meMissingXPhi_ = dbe->book1D(
"missingX_"+hisID,
"# Missing hits in X",nbinX,-1.5,1.5);
303 meMissingYPhi_ = dbe->book1D(
"missingY_"+hisID,
"# Missing hits in Y",nbinY,-4.,4.);
306 meMissingAlphaPhi_ = dbe->book1D(
"missingAlpha_"+hisID,
"# Missing hits in Alpha",nbinangle,-3.5,3.5);
309 meMissingBetaPhi_ = dbe->book1D(
"missingBeta_"+hisID,
"# Missing hits in Beta",nbinangle,-3.5,3.5);
313 if(
type==4 && endcap){
316 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
317 hisID = src.
label() +
"_" + sblade;
319 if(updateEfficiencies){
324 meEfficiencyXBlade_ = dbe->book1D(
"efficiencyX_"+hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
327 meEfficiencyYBlade_ = dbe->book1D(
"efficiencyY_"+hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
333 meEfficiencyBetaBlade_ = dbe->book1D(
"efficiencyBeta_"+hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
338 meValidBlade_ = dbe->book1D(
"valid_"+hisID,
"# Valid hits",1,0,1.);
341 meValidXBlade_ = dbe->book1D(
"validX_"+hisID,
"# Valid hits in X",nbinX,-1.5,1.5);
344 meValidYBlade_ = dbe->book1D(
"validY_"+hisID,
"# Valid hits in Y",nbinY,-4.,4.);
347 meValidAlphaBlade_ = dbe->book1D(
"validAlpha_"+hisID,
"# Valid hits in Alpha",nbinangle,-3.5,3.5);
350 meValidBetaBlade_ = dbe->book1D(
"validBeta_"+hisID,
"# Valid hits in Beta",nbinangle,-3.5,3.5);
354 meMissingBlade_ = dbe->book1D(
"missing_"+hisID,
"# Missing hits",1,0,1.);
357 meMissingXBlade_ = dbe->book1D(
"missingX_"+hisID,
"# Missing hits in X",nbinX,-1.5,1.5);
360 meMissingYBlade_ = dbe->book1D(
"missingY_"+hisID,
"# Missing hits in Y",nbinY,-4.,4.);
363 meMissingAlphaBlade_ = dbe->book1D(
"missingAlpha_"+hisID,
"# Missing hits in Alpha",nbinangle,-3.5,3.5);
366 meMissingBetaBlade_ = dbe->book1D(
"missingBeta_"+hisID,
"# Missing hits in Beta",nbinangle,-3.5,3.5);
370 if(
type==5 && endcap){
373 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
374 hisID = src.
label() +
"_" + sdisk;
376 if(updateEfficiencies){
381 meEfficiencyXDisk_ = dbe->book1D(
"efficiencyX_"+hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
384 meEfficiencyYDisk_ = dbe->book1D(
"efficiencyY_"+hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
387 meEfficiencyAlphaDisk_ = dbe->book1D(
"efficiencyAlpha_"+hisID,
"Hit efficiency in Alpha",nbinangle,-3.5,3.5);
390 meEfficiencyBetaDisk_ = dbe->book1D(
"efficiencyBeta_"+hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
395 meValidDisk_ = dbe->book1D(
"valid_"+hisID,
"# Valid hits",1,0,1.);
398 meValidXDisk_ = dbe->book1D(
"validX_"+hisID,
"# Valid hits in X",nbinX,-1.5,1.5);
401 meValidYDisk_ = dbe->book1D(
"validY_"+hisID,
"# Valid hits in Y",nbinY,-4.,4.);
404 meValidAlphaDisk_ = dbe->book1D(
"validAlpha_"+hisID,
"# Valid hits in Alpha",nbinangle,-3.5,3.5);
407 meValidBetaDisk_ = dbe->book1D(
"validBeta_"+hisID,
"# Valid hits in Beta",nbinangle,-3.5,3.5);
411 meMissingDisk_ = dbe->book1D(
"missing_"+hisID,
"# Missing hits",1,0,1.);
414 meMissingXDisk_ = dbe->book1D(
"missingX_"+hisID,
"# Missing hits in X",nbinX,-1.5,1.5);
417 meMissingYDisk_ = dbe->book1D(
"missingY_"+hisID,
"# Missing hits in Y",nbinY,-4.,4.);
420 meMissingAlphaDisk_ = dbe->book1D(
"missingAlpha_"+hisID,
"# Missing hits in Alpha",nbinangle,-3.5,3.5);
423 meMissingBetaDisk_ = dbe->book1D(
"missingBeta_"+hisID,
"# Missing hits in Beta",nbinangle,-3.5,3.5);
428 if(
type==6 && endcap){
431 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
432 hisID = src.
label() +
"_" + slab;
434 if(updateEfficiencies){
439 meEfficiencyXRing_ = dbe->book1D(
"efficiencyX_"+hisID,
"Hit efficiency in X",nbinX,-1.5,1.5);
442 meEfficiencyYRing_ = dbe->book1D(
"efficiencyY_"+hisID,
"Hit efficiency in Y",nbinY,-4.,4.);
445 meEfficiencyAlphaRing_ = dbe->book1D(
"efficiencyAlpha_"+hisID,
"Hit efficiency in Alpha",nbinangle,-3.5,3.5);
448 meEfficiencyBetaRing_ = dbe->book1D(
"efficiencyBeta_"+hisID,
"Hit efficiency in Beta",nbinangle,-3.5,3.5);
453 meValidRing_ = dbe->book1D(
"valid_"+hisID,
"# Valid hits",1,0,1.);
456 meValidXRing_ = dbe->book1D(
"validX_"+hisID,
"# Valid hits in X",nbinX,-1.5,1.5);
459 meValidYRing_ = dbe->book1D(
"validY_"+hisID,
"# Valid hits in Y",nbinY,-4.,4.);
462 meValidAlphaRing_ = dbe->book1D(
"validAlpha_"+hisID,
"# Valid hits in Alpha",nbinangle,-3.5,3.5);
465 meValidBetaRing_ = dbe->book1D(
"validBeta_"+hisID,
"# Valid hits in Beta",nbinangle,-3.5,3.5);
469 meMissingRing_ = dbe->book1D(
"missing_"+hisID,
"# Missing hits",1,0,1.);
472 meMissingXRing_ = dbe->book1D(
"missingX_"+hisID,
"# Missing hits in X",nbinX,-1.5,1.5);
475 meMissingYRing_ = dbe->book1D(
"missingY_"+hisID,
"# Missing hits in Y",nbinY,-4.,4.);
478 meMissingAlphaRing_ = dbe->book1D(
"missingAlpha_"+hisID,
"# Missing hits in Alpha",nbinangle,-3.5,3.5);
481 meMissingBetaRing_ = dbe->book1D(
"missingBeta_"+hisID,
"# Missing hits in Beta",nbinangle,-3.5,3.5);
int plaquetteName() const
plaquetteId (in pannel)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meMissingXBlade_
MonitorElement * meMissingYLad_
MonitorElement * meMissingDisk_
MonitorElement * meEfficiency_
MonitorElement * meMissingPhi_
MonitorElement * meMissingAlphaDisk_
MonitorElement * meMissingBetaRing_
MonitorElement * meEfficiencyYRing_
MonitorElement * meValidAlphaRing_
MonitorElement * meEfficiencyXLay_
int moduleName() const
module id (index in z)
MonitorElement * meEfficiencyYLad_
MonitorElement * meEfficiencyAlphaPhi_
MonitorElement * meEfficiencyPhi_
MonitorElement * meMissingXRing_
MonitorElement * meEfficiencyYBlade_
MonitorElement * meEfficiencyBetaBlade_
MonitorElement * meValidXLad_
MonitorElement * meValidAlphaBlade_
MonitorElement * meMissingAlphaBlade_
MonitorElement * meMissingYBlade_
MonitorElement * meEfficiencyXPhi_
MonitorElement * meEfficiencyBeta_
MonitorElement * meEfficiencyBetaLad_
MonitorElement * meMissingYPhi_
MonitorElement * meEfficiencyBetaRing_
MonitorElement * meValidYLay_
MonitorElement * meEfficiencyBetaPhi_
MonitorElement * meMissingXLad_
MonitorElement * meValidDisk_
MonitorElement * meValid_
MonitorElement * meValidAlphaLay_
MonitorElement * meMissingRing_
MonitorElement * meEfficiencyYLay_
MonitorElement * meEfficiencyAlphaLay_
MonitorElement * meMissingAlphaPhi_
MonitorElement * meEfficiencyAlphaBlade_
MonitorElement * meValidYLad_
MonitorElement * meEfficiencyDisk_
MonitorElement * meValidXPhi_
int bladeName() const
blade id
MonitorElement * meValidBetaLad_
MonitorElement * meMissingYRing_
MonitorElement * meMissingBetaLad_
MonitorElement * meValidAlphaPhi_
bool isHalfModule() const
full or half module
MonitorElement * meMissingAlphaRing_
MonitorElement * meMissingAlphaLay_
MonitorElement * meEfficiencyBlade_
MonitorElement * meValidAlphaDisk_
MonitorElement * meMissingBetaLay_
MonitorElement * meMissingBlade_
MonitorElement * meValidRing_
MonitorElement * meMissingBetaBlade_
MonitorElement * meMissingLay_
MonitorElement * meMissing_
MonitorElement * meValidXRing_
MonitorElement * meEfficiencyXBlade_
MonitorElement * meValidYDisk_
MonitorElement * meEfficiencyAlphaRing_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meEfficiencyYDisk_
MonitorElement * meMissingLad_
MonitorElement * meValidLad_
MonitorElement * meValidXBlade_
MonitorElement * meEfficiencyXDisk_
MonitorElement * meValidBetaDisk_
MonitorElement * meValidAlphaLad_
MonitorElement * meEfficiencyRing_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * meEfficiencyX_
MonitorElement * meValidYRing_
MonitorElement * meMissingYLay_
MonitorElement * meValidYBlade_
int ladderName() const
ladder id (index in phi)
MonitorElement * meMissingYDisk_
MonitorElement * meValidBetaLay_
MonitorElement * meEfficiencyAlphaDisk_
int layerName() const
layer id
MonitorElement * meEfficiencyLay_
MonitorElement * meValidPhi_
MonitorElement * meEfficiencyBetaDisk_
MonitorElement * meEfficiencyXRing_
MonitorElement * meEfficiencyLad_
MonitorElement * meValidBetaRing_
MonitorElement * meEfficiencyXLad_
MonitorElement * meValidXLay_
MonitorElement * meValidYPhi_
MonitorElement * meValidLay_
MonitorElement * meMissingXLay_
MonitorElement * meEfficiencyY_
MonitorElement * meEfficiencyAlpha_
int pannelName() const
pannel id
MonitorElement * meEfficiencyAlphaLad_
MonitorElement * meEfficiencyYPhi_
MonitorElement * meMissingBetaDisk_
MonitorElement * meValidBetaPhi_
int diskName() const
disk id
MonitorElement * meMissingXDisk_
MonitorElement * meValidBetaBlade_
MonitorElement * meEfficiencyBetaLay_
MonitorElement * meValidXDisk_
MonitorElement * meMissingBetaPhi_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meMissingXPhi_
MonitorElement * meValidBlade_
MonitorElement * meMissingAlphaLad_