38 bool twoD,
bool reducedSet,
bool isUpgrade) {
42 bool isHalfModule =
false;
46 }
else if (isUpgrade) {
65 meXYPos_ = theDMBE->book2D(hid,
"XY Position",100,-1.,1,100,-4,4);
72 meXYPos_px_ = theDMBE->book1D(hid+
"_px",
"X Position",100,-1.,1);
74 meXYPos_py_ = theDMBE->book1D(hid+
"_py",
"Y Position",100,-4,4);
79 meClustX_ = theDMBE->book1D(hid,
"RecHit X size", 10, 0., 10.);
82 meClustY_ = theDMBE->book1D(hid,
"RecHit Y size", 15, 0., 15.);
86 meErrorX_ = theDMBE->book1D(hid,
"RecHit error X", 100,0.,0.02);
89 meErrorY_ = theDMBE->book1D(hid,
"RecHit error Y", 100,0.,0.02);
96 delete theHistogramId;
99 if(type==1 && barrel){
103 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
104 hid = src.
label() +
"_" + sladder;
105 if(isHalfModule) hid +=
"H";
110 meXYPosLad_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
116 meXYPosLad_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
118 meXYPosLad_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
122 meClustXLad_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
124 meClustYLad_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
126 meErrorXLad_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
128 meErrorYLad_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
130 menRecHitsLad_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
135 if(type==2 && barrel){
140 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
141 hid = src.
label() +
"_" + slayer;
146 meXYPosLay_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
152 meXYPosLay_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
154 meXYPosLay_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
159 meClustXLay_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
161 meClustYLay_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
163 meErrorXLay_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
165 meErrorYLay_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
167 menRecHitsLay_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
172 if(type==3 && barrel){
176 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
177 hid = src.
label() +
"_" + smodule;
182 meXYPosPhi_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
188 meXYPosPhi_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
190 meXYPosPhi_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
194 meClustXPhi_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
196 meClustYPhi_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
198 meErrorXPhi_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
200 meErrorYPhi_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
202 menRecHitsPhi_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
207 if(type==4 && endcap){
212 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
213 hid = src.
label() +
"_" + sblade;
218 meClustXBlade_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
220 meClustYBlade_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
222 meErrorXBlade_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
224 meErrorYBlade_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
226 menRecHitsBlade_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
230 if(type==5 && endcap){
235 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
236 hid = src.
label() +
"_" + sdisk;
241 meClustXDisk_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
243 meClustYDisk_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
245 meErrorXDisk_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
247 meErrorYDisk_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
249 menRecHitsDisk_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
254 if(type==6 && endcap){
265 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
266 hid = src.
label() +
"_" + slab;
271 meXYPosRing_ = theDMBE->book2D(
"xypos_" + hid,
"XY Position",100,-1.,1,100,-4,4);
277 meXYPosRing_px_ = theDMBE->book1D(
"xypos_"+hid+
"_px",
"X Position",100,-1.,1);
279 meXYPosRing_py_ = theDMBE->book1D(
"xypos_"+hid+
"_py",
"Y Position",100,-4,4);
283 meClustXRing_ = theDMBE->book1D(
"ClustX_" +hid,
"RecHit X size", 10, 0., 10.);
285 meClustYRing_ = theDMBE->book1D(
"ClustY_" +hid,
"RecHit Y size", 15, 0.,15.);
287 meErrorXRing_ = theDMBE->book1D(
"ErrorX_"+hid,
"RecHit error X", 100,0.,0.02);
289 meErrorYRing_ = theDMBE->book1D(
"ErrorY_"+hid,
"RecHit error Y", 100,0.,0.02);
291 menRecHitsRing_ = theDMBE->book1D(
"nRecHits_"+hid,
"# of rechits in this module", 8, 0, 8);
301 const int& sizeX,
const int& sizeY,
302 const float& lerr_x,
const float& lerr_y,
303 bool modon,
bool ladon,
bool layon,
bool phion,
304 bool bladeon,
bool diskon,
bool ringon,
305 bool twoD,
bool reducedSet) {
372 if(bladeon && endcap){
380 if(diskon && endcap){
388 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_
bool isHalfModule() const
full or half module
~SiPixelRecHitModule()
Destructor.
MonitorElement * meClustXLad_
MonitorElement * meErrorYPhi_
int plaquetteName() const
plaquetteId (in pannel)
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_
int bladeName() const
blade id
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_
int diskName() const
disk id
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
int ladderName() const
ladder id (index in phi)
int ladderName() const
ladder id (index in phi)
void book(const edm::ParameterSet &iConfig, int type=0, bool twoD=true, bool reducedSet=false, bool isUpgrade=false)
Book histograms.
MonitorElement * meXYPosLad_
int moduleName() const
module id (index in z)
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
int pannelName() const
pannel 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_
int layerName() const
layer id
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_