40 bool isHalfModule =
false;
59 meXYPos_ = theDMBE->book2D(hid,
"XY Position",100,-1.,1,100,-4,4);
66 meXYPos_px_ = theDMBE->book1D(hid+
"_px",
"X Position",100,-1.,1);
68 meXYPos_py_ = theDMBE->book1D(hid+
"_py",
"Y Position",100,-4,4);
73 meClustX_ = theDMBE->book1D(hid,
"RecHit X size", 10, 0., 10.);
76 meClustY_ = theDMBE->book1D(hid,
"RecHit Y size", 15, 0., 15.);
80 meErrorX_ = theDMBE->book1D(hid,
"RecHit error X", 100,0.,0.02);
83 meErrorY_ = theDMBE->book1D(hid,
"RecHit error Y", 100,0.,0.02);
87 menRecHits_ = theDMBE->book1D(hid,
"# of rechits in this module", 8, 0, 8);
89 delete theHistogramId;
92 if(
type==1 && barrel){
94 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
95 hid =
src.label() +
"_" + sladder;
96 if(isHalfModule) hid +=
"H";
101 meXYPosLad_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
107 meXYPosLad_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
109 meXYPosLad_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
113 meClustXLad_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
115 meClustYLad_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
117 meErrorXLad_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
119 meErrorYLad_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
121 menRecHitsLad_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
126 if(
type==2 && barrel){
129 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
130 hid =
src.label() +
"_" + slayer;
135 meXYPosLay_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
141 meXYPosLay_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
143 meXYPosLay_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
148 meClustXLay_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
150 meClustYLay_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
152 meErrorXLay_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
154 meErrorYLay_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
156 menRecHitsLay_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
161 if(
type==3 && barrel){
163 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
164 hid =
src.label() +
"_" + smodule;
169 meXYPosPhi_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
175 meXYPosPhi_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
177 meXYPosPhi_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
181 meClustXPhi_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
183 meClustYPhi_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
185 meErrorXPhi_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
187 meErrorYPhi_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
189 menRecHitsPhi_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
194 if(
type==4 && endcap){
197 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
198 hid =
src.label() +
"_" + sblade;
203 meClustXBlade_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
205 meClustYBlade_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
207 meErrorXBlade_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
209 meErrorYBlade_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
211 menRecHitsBlade_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
215 if(
type==5 && endcap){
218 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
219 hid =
src.label() +
"_" + sdisk;
224 meClustXDisk_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
226 meClustYDisk_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
228 meErrorXDisk_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
230 meErrorYDisk_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
232 menRecHitsDisk_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
237 if(
type==6 && endcap){
240 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
241 hid =
src.label() +
"_" + slab;
246 meXYPosRing_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
252 meXYPosRing_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
254 meXYPosRing_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
258 meClustXRing_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
260 meClustYRing_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
262 meErrorXRing_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
264 meErrorYRing_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
266 menRecHitsRing_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * menRecHitsLay_
T getParameter(std::string const &) const
MonitorElement * meXYPosPhi_px_
MonitorElement * meClustYRing_
MonitorElement * meClustXLay_
MonitorElement * meXYPosPhi_
MonitorElement * meXYPosPhi_py_
MonitorElement * meErrorXDisk_
MonitorElement * meClustYPhi_
int moduleName() const
module id (index in z)
MonitorElement * meXYPosLay_py_
MonitorElement * meClustXDisk_
MonitorElement * meClustYDisk_
MonitorElement * meErrorY_
MonitorElement * meErrorYRing_
MonitorElement * meClustXLad_
MonitorElement * meErrorYPhi_
MonitorElement * meXYPosRing_px_
MonitorElement * meXYPosLay_
MonitorElement * meErrorXLad_
MonitorElement * meClustX_
MonitorElement * meClustXBlade_
MonitorElement * meClustXPhi_
MonitorElement * meXYPosLad_px_
int bladeName() const
blade id
MonitorElement * meErrorXBlade_
bool isHalfModule() const
full or half module
MonitorElement * meXYPosRing_
MonitorElement * meErrorYLad_
MonitorElement * menRecHitsRing_
MonitorElement * meXYPosLay_px_
MonitorElement * meClustXRing_
MonitorElement * meXYPos_py_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meErrorYLay_
MonitorElement * meXYPos_
MonitorElement * menRecHits_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
int ladderName() const
ladder id (index in phi)
MonitorElement * meXYPosLad_
int layerName() const
layer id
MonitorElement * meErrorYDisk_
MonitorElement * menRecHitsDisk_
MonitorElement * meErrorX_
MonitorElement * menRecHitsPhi_
int pannelName() const
pannel id
MonitorElement * menRecHitsLad_
MonitorElement * meClustYLad_
MonitorElement * meClustY_
MonitorElement * meXYPosRing_py_
int diskName() const
disk id
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meXYPosLad_py_
MonitorElement * meErrorXLay_
MonitorElement * menRecHitsBlade_
MonitorElement * meClustYBlade_
MonitorElement * meClustYLay_
MonitorElement * meXYPos_px_
MonitorElement * meErrorXRing_
MonitorElement * meErrorYBlade_
MonitorElement * meErrorXPhi_