53 bool isHalfModule =
false;
67 std::string twodtitle =
"Number of Digis (1bin=four pixels)";
68 std::string pxtitle =
"Number of Digis (1bin=two columns)";
69 std::string pytitle =
"Number of Digis (1bin=two rows)";
70 std::string twodroctitle =
"ROC Occupancy (1bin=one ROC)";
71 std::string twodzeroOccroctitle =
"Zero Occupancy ROC Map (1bin=one ROC) for ";
75 twodtitle =
"Number of Digis (1bin=one pixel)";
76 pxtitle =
"Number of Digis (1bin=one column)";
77 pytitle =
"Number of Digis (1bin=one row)";
83 meNDigis_ = theDMBE->book1D(hid,
"Number of Digis",25,0.,25.);
87 meADC_ = theDMBE->book1D(hid,
"Digi charge",128,0.,256.);
110 delete theHistogramId;
114 if(
type==1 && barrel){
116 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
117 hid =
src.label() +
"_" + sladder;
118 if(isHalfModule) hid +=
"H";
121 meNDigisLad_ = theDMBE->book1D(
"ndigis_"+hid,
"Number of Digis",25,0.,25.);
124 meADCLad_ = theDMBE->book1D(
"adc_" + hid,
"Digi charge",128,0.,256.);
144 if(
type==2 && barrel){
146 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
147 hid =
src.label() +
"_" + slayer;
150 meNDigisLay_ = theDMBE->book1D(
"ndigis_"+hid,
"Number of Digis",25,0.,25.);
153 meADCLay_ = theDMBE->book1D(
"adc_" + hid,
"Digi charge",128,0.,256.);
157 if(twoD || additInfo){
170 int yROCbins[3] = {18,30,42};
171 mePixRocsLay_ = theDMBE->book2D(
"rocmap_"+hid,twodroctitle,32,0.,32.,yROCbins[DBlayer-1],1.5,1.5+
float(yROCbins[DBlayer-1]/2));
174 meZeroOccRocsLay_ = theDMBE->book2D(
"zeroOccROC_map",twodzeroOccroctitle+hid,32,0.,32.,yROCbins[DBlayer-1],1.5,1.5+
float(yROCbins[DBlayer-1]/2));
178 if(!twoD && !additInfo){
192 if(
type==3 && barrel){
194 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
195 hid =
src.label() +
"_" + smodule;
197 meNDigisPhi_ = theDMBE->book1D(
"ndigis_"+hid,
"Number of Digis",25,0.,25.);
200 meADCPhi_ = theDMBE->book1D(
"adc_" + hid,
"Digi charge",128,0.,256.);
231 if(
type==4 && endcap){
234 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
235 hid =
src.label() +
"_" + sblade;
237 meNDigisBlade_ = theDMBE->book1D(
"ndigis_"+hid,
"Number of Digis",25,0.,25.);
240 meADCBlade_ = theDMBE->book1D(
"adc_" + hid,
"Digi charge",128,0.,256.);
243 if(
type==5 && endcap){
246 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
247 hid =
src.label() +
"_" + sdisk;
250 meNDigisDisk_ = theDMBE->book1D(
"ndigis_"+hid,
"Number of Digis",25,0.,25.);
253 meADCDisk_ = theDMBE->book1D(
"adc_" + hid,
"Digi charge",128,0.,256.);
257 mePixDigisDisk_ = theDMBE->book2D(
"hitmap_"+hid,twodtitle,260,0.,260.,160,0.,160.);
261 mePixRocsDisk_ = theDMBE->book2D(
"rocmap_"+hid,twodroctitle,26,0.,26.,24,1.,13.);
264 meZeroOccRocsDisk_ = theDMBE->book2D(
"zeroOccROC_map",twodzeroOccroctitle+hid,26,0.,26.,24,1.,13.);
269 if(
type==6 && endcap){
272 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
273 hid =
src.label() +
"_" + slab;
275 meNDigisRing_ = theDMBE->book1D(
"ndigis_"+hid,
"Number of Digis",25,0.,25.);
278 meADCRing_ = theDMBE->book1D(
"adc_" + hid,
"Digi charge",128,0.,256.);
int plaquetteName() const
plaquetteId (in pannel)
T getParameter(std::string const &) const
MonitorElement * meNDigisRing_
MonitorElement * mePixDigisLad_py_
MonitorElement * mePixDigis_
MonitorElement * mePixDigisPhi_py_
int moduleName() const
module id (index in z)
MonitorElement * meADCRing_
MonitorElement * meNDigis_
MonitorElement * mePixDigisRing_px_
MonitorElement * mePixDigis_py_
MonitorElement * mePixDigisDisk_
MonitorElement * meNDigisBlade_
int bladeName() const
blade id
MonitorElement * meADCDisk_
MonitorElement * mePixDigisPhi_px_
bool isHalfModule() const
full or half module
MonitorElement * mePixDigisRing_py_
MonitorElement * mePixRocsDisk_
MonitorElement * mePixRocsLay_
MonitorElement * meZeroOccRocsLay_
MonitorElement * mePixDigisLay_py_
MonitorElement * meADCLad_
MonitorElement * meADCBlade_
MonitorElement * meNDigisLay_
MonitorElement * mePixDigisLad_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meADCLay_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
int ladderName() const
ladder id (index in phi)
MonitorElement * mePixDigis_px_
int layerName() const
layer id
MonitorElement * mePixDigisLad_px_
MonitorElement * mePixDigisLay_
MonitorElement * meNDigisPhi_
int pannelName() const
pannel id
MonitorElement * meZeroOccRocsDisk_
MonitorElement * mePixDigisRing_
MonitorElement * meADCPhi_
int diskName() const
disk id
MonitorElement * mePixDigisPhi_
MonitorElement * meNDigisDisk_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meNDigisLad_
MonitorElement * mePixDigisLay_px_