36 bool twoD,
bool reducedSet) {
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);
90 delete theHistogramId;
93 if(type==1 && barrel){
95 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
96 hid = src.
label() +
"_" + sladder;
97 if(isHalfModule) hid +=
"H";
102 meXYPosLad_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
108 meXYPosLad_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
110 meXYPosLad_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
114 meClustXLad_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
116 meClustYLad_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
118 meErrorXLad_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
120 meErrorYLad_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
122 menRecHitsLad_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
127 if(type==2 && barrel){
130 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
131 hid = src.
label() +
"_" + slayer;
136 meXYPosLay_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
142 meXYPosLay_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
144 meXYPosLay_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
149 meClustXLay_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
151 meClustYLay_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
153 meErrorXLay_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
155 meErrorYLay_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
157 menRecHitsLay_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
162 if(type==3 && barrel){
164 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
165 hid = src.
label() +
"_" + smodule;
170 meXYPosPhi_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
176 meXYPosPhi_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
178 meXYPosPhi_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
182 meClustXPhi_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
184 meClustYPhi_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
186 meErrorXPhi_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
188 meErrorYPhi_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
190 menRecHitsPhi_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
195 if(type==4 && endcap){
198 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
199 hid = src.
label() +
"_" + sblade;
204 meClustXBlade_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
206 meClustYBlade_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
208 meErrorXBlade_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
210 meErrorYBlade_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
212 menRecHitsBlade_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
216 if(type==5 && endcap){
219 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
220 hid = src.
label() +
"_" + sdisk;
225 meClustXDisk_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
227 meClustYDisk_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
229 meErrorXDisk_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
231 meErrorYDisk_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
233 menRecHitsDisk_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
238 if(type==6 && endcap){
241 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
242 hid = src.
label() +
"_" + slab;
247 meXYPosRing_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
253 meXYPosRing_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
255 meXYPosRing_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
259 meClustXRing_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
261 meClustYRing_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
263 meErrorXRing_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
265 meErrorYRing_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
267 menRecHitsRing_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
277 const int& sizeX,
const int& sizeY,
278 const float& lerr_x,
const float& lerr_y,
279 bool modon,
bool ladon,
bool layon,
bool phion,
280 bool bladeon,
bool diskon,
bool ringon,
281 bool twoD,
bool reducedSet) {
348 if(bladeon && endcap){
356 if(diskon && endcap){
364 if(ringon && endcap){
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * menRecHitsLay_
T getParameter(std::string const &) const
MonitorElement * meXYPosPhi_px_
MonitorElement * meClustYRing_
MonitorElement * meClustXLay_
MonitorElement * meXYPosPhi_
void nfill(const int &nrec, bool modon=true, bool ladon=false, bool layon=false, bool phion=false, bool bladeon=false, bool diskon=false, bool ringon=false)
MonitorElement * meXYPosPhi_py_
MonitorElement * meErrorXDisk_
MonitorElement * meClustYPhi_
SiPixelRecHitModule()
Default constructor.
int moduleName() const
module id (index in z)
MonitorElement * meXYPosLay_py_
MonitorElement * meClustXDisk_
MonitorElement * meClustYDisk_
MonitorElement * meErrorY_
MonitorElement * meErrorYRing_
~SiPixelRecHitModule()
Destructor.
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_
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_
void book(const edm::ParameterSet &iConfig, int type=0, bool twoD=true, bool reducedSet=false)
Book histograms.
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_
void fill(const float &rechit_x, const float &rechit_y, const int &sizeX, const int &sizeY, const float &lerr_x, const float &lerr_y, bool modon=true, bool ladon=false, bool layon=false, bool phion=false, bool bladeon=false, bool diskon=false, bool ringon=false, bool twoD=true, bool reducedSet=false)
Fill histograms.
MonitorElement * meClustYLay_
MonitorElement * meXYPos_px_
MonitorElement * meErrorXRing_
MonitorElement * meErrorYBlade_
MonitorElement * meErrorXPhi_