59 bool isHalfModule =
false;
80 meXYPos_ = iBooker.book2D(hid,
"XY Position", 100, -1., 1, 100, -4, 4);
86 meXYPos_px_ = iBooker.book1D(hid +
"_px",
"X Position", 100, -1., 1);
88 meXYPos_py_ = iBooker.book1D(hid +
"_py",
"Y Position", 100, -4, 4);
93 meClustX_ = iBooker.book1D(hid,
"RecHit X size", 10, 0., 10.);
96 meClustY_ = iBooker.book1D(hid,
"RecHit Y size", 15, 0., 15.);
100 meErrorX_ = iBooker.book1D(hid,
"RecHit error X", 100, 0., 0.02);
103 meErrorY_ = iBooker.book1D(hid,
"RecHit error Y", 100, 0., 0.02);
110 delete theHistogramId;
113 if (
type == 1 && barrel) {
119 sprintf(sladder,
"Ladder_%02i", DBladder);
120 hid = src.
label() +
"_" + sladder;
127 meXYPosLad_ = iBooker.book2D(
"xypos_" + hid,
"XY Position", 100, -1., 1, 100, -4, 4);
132 meXYPosLad_px_ = iBooker.book1D(
"xypos_" + hid +
"_px",
"X Position", 100, -1., 1);
134 meXYPosLad_py_ = iBooker.book1D(
"xypos_" + hid +
"_py",
"Y Position", 100, -4, 4);
138 meClustXLad_ = iBooker.book1D(
"ClustX_" + hid,
"RecHit X size", 10, 0., 10.);
140 meClustYLad_ = iBooker.book1D(
"ClustY_" + hid,
"RecHit Y size", 15, 0., 15.);
142 meErrorXLad_ = iBooker.book1D(
"ErrorX_" + hid,
"RecHit error X", 100, 0., 0.02);
144 meErrorYLad_ = iBooker.book1D(
"ErrorY_" + hid,
"RecHit error Y", 100, 0., 0.02);
146 menRecHitsLad_ = iBooker.book1D(
"nRecHits_" + hid,
"# of rechits in this module", 8, 0, 8);
150 if (
type == 2 && barrel) {
156 sprintf(slayer,
"Layer_%i", DBlayer);
157 hid = src.
label() +
"_" + slayer;
161 meXYPosLay_ = iBooker.book2D(
"xypos_" + hid,
"XY Position", 100, -1., 1, 100, -4, 4);
166 meXYPosLay_px_ = iBooker.book1D(
"xypos_" + hid +
"_px",
"X Position", 100, -1., 1);
168 meXYPosLay_py_ = iBooker.book1D(
"xypos_" + hid +
"_py",
"Y Position", 100, -4, 4);
173 meClustXLay_ = iBooker.book1D(
"ClustX_" + hid,
"RecHit X size", 10, 0., 10.);
175 meClustYLay_ = iBooker.book1D(
"ClustY_" + hid,
"RecHit Y size", 15, 0., 15.);
177 meErrorXLay_ = iBooker.book1D(
"ErrorX_" + hid,
"RecHit error X", 100, 0., 0.02);
179 meErrorYLay_ = iBooker.book1D(
"ErrorY_" + hid,
"RecHit error Y", 100, 0., 0.02);
181 menRecHitsLay_ = iBooker.book1D(
"nRecHits_" + hid,
"# of rechits in this module", 8, 0, 8);
185 if (
type == 3 && barrel) {
191 sprintf(smodule,
"Ring_%i", DBmodule);
192 hid = src.
label() +
"_" + smodule;
196 meXYPosPhi_ = iBooker.book2D(
"xypos_" + hid,
"XY Position", 100, -1., 1, 100, -4, 4);
201 meXYPosPhi_px_ = iBooker.book1D(
"xypos_" + hid +
"_px",
"X Position", 100, -1., 1);
203 meXYPosPhi_py_ = iBooker.book1D(
"xypos_" + hid +
"_py",
"Y Position", 100, -4, 4);
207 meClustXPhi_ = iBooker.book1D(
"ClustX_" + hid,
"RecHit X size", 10, 0., 10.);
209 meClustYPhi_ = iBooker.book1D(
"ClustY_" + hid,
"RecHit Y size", 15, 0., 15.);
211 meErrorXPhi_ = iBooker.book1D(
"ErrorX_" + hid,
"RecHit error X", 100, 0., 0.02);
213 meErrorYPhi_ = iBooker.book1D(
"ErrorY_" + hid,
"RecHit error Y", 100, 0., 0.02);
215 menRecHitsPhi_ = iBooker.book1D(
"nRecHits_" + hid,
"# of rechits in this module", 8, 0, 8);
219 if (
type == 4 && endcap) {
226 sprintf(sblade,
"Blade_%02i", blade);
227 hid = src.
label() +
"_" + sblade;
232 meClustXBlade_ = iBooker.book1D(
"ClustX_" + hid,
"RecHit X size", 10, 0., 10.);
234 meClustYBlade_ = iBooker.book1D(
"ClustY_" + hid,
"RecHit Y size", 15, 0., 15.);
236 meErrorXBlade_ = iBooker.book1D(
"ErrorX_" + hid,
"RecHit error X", 100, 0., 0.02);
238 meErrorYBlade_ = iBooker.book1D(
"ErrorY_" + hid,
"RecHit error Y", 100, 0., 0.02);
240 menRecHitsBlade_ = iBooker.book1D(
"nRecHits_" + hid,
"# of rechits in this module", 8, 0, 8);
243 if (
type == 5 && endcap) {
250 sprintf(sdisk,
"Disk_%i", disk);
251 hid = src.
label() +
"_" + sdisk;
256 meClustXDisk_ = iBooker.book1D(
"ClustX_" + hid,
"RecHit X size", 10, 0., 10.);
258 meClustYDisk_ = iBooker.book1D(
"ClustY_" + hid,
"RecHit Y size", 15, 0., 15.);
260 meErrorXDisk_ = iBooker.book1D(
"ErrorX_" + hid,
"RecHit error X", 100, 0., 0.02);
262 meErrorYDisk_ = iBooker.book1D(
"ErrorY_" + hid,
"RecHit error Y", 100, 0., 0.02);
264 menRecHitsDisk_ = iBooker.book1D(
"nRecHits_" + hid,
"# of rechits in this module", 8, 0, 8);
268 if (
type == 6 && endcap) {
282 sprintf(slab,
"Panel_%i_Ring_%i", panel, module);
283 hid = src.
label() +
"_" + slab;
287 meXYPosRing_ = iBooker.book2D(
"xypos_" + hid,
"XY Position", 100, -1., 1, 100, -4, 4);
292 meXYPosRing_px_ = iBooker.book1D(
"xypos_" + hid +
"_px",
"X Position", 100, -1., 1);
294 meXYPosRing_py_ = iBooker.book1D(
"xypos_" + hid +
"_py",
"Y Position", 100, -4, 4);
298 meClustXRing_ = iBooker.book1D(
"ClustX_" + hid,
"RecHit X size", 10, 0., 10.);
300 meClustYRing_ = iBooker.book1D(
"ClustY_" + hid,
"RecHit Y size", 15, 0., 15.);
302 meErrorXRing_ = iBooker.book1D(
"ErrorX_" + hid,
"RecHit error X", 100, 0., 0.02);
304 meErrorYRing_ = iBooker.book1D(
"ErrorY_" + hid,
"RecHit error Y", 100, 0., 0.02);
306 menRecHitsRing_ = iBooker.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_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meXYPosLay_px_
MonitorElement * meClustXRing_
MonitorElement * meXYPos_py_
MonitorElement * meErrorYLay_
MonitorElement * meXYPos_
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
T const * product() const
MonitorElement * meXYPosLad_py_
MonitorElement * meErrorXLay_
MonitorElement * menRecHitsBlade_
MonitorElement * meClustYBlade_
MonitorElement * meClustYLay_
MonitorElement * meXYPos_px_
MonitorElement * meErrorXRing_
MonitorElement * meErrorYBlade_
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meErrorXPhi_