CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SiPixelRecHitModule Class Reference

#include <SiPixelRecHitModule.h>

Public Member Functions

void book (const edm::ParameterSet &iConfig, int type=0, bool twoD=true, bool reducedSet=false)
 Book histograms. More...
 
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. More...
 
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)
 
 SiPixelRecHitModule ()
 Default constructor. More...
 
 SiPixelRecHitModule (const uint32_t &id)
 Constructor with raw DetId. More...
 
 ~SiPixelRecHitModule ()
 Destructor. More...
 

Private Attributes

uint32_t id_
 
MonitorElementmeClustX_
 
MonitorElementmeClustXBlade_
 
MonitorElementmeClustXDisk_
 
MonitorElementmeClustXLad_
 
MonitorElementmeClustXLay_
 
MonitorElementmeClustXPhi_
 
MonitorElementmeClustXRing_
 
MonitorElementmeClustY_
 
MonitorElementmeClustYBlade_
 
MonitorElementmeClustYDisk_
 
MonitorElementmeClustYLad_
 
MonitorElementmeClustYLay_
 
MonitorElementmeClustYPhi_
 
MonitorElementmeClustYRing_
 
MonitorElementmeErrorX_
 
MonitorElementmeErrorXBlade_
 
MonitorElementmeErrorXDisk_
 
MonitorElementmeErrorXLad_
 
MonitorElementmeErrorXLay_
 
MonitorElementmeErrorXPhi_
 
MonitorElementmeErrorXRing_
 
MonitorElementmeErrorY_
 
MonitorElementmeErrorYBlade_
 
MonitorElementmeErrorYDisk_
 
MonitorElementmeErrorYLad_
 
MonitorElementmeErrorYLay_
 
MonitorElementmeErrorYPhi_
 
MonitorElementmeErrorYRing_
 
MonitorElementmenRecHits_
 
MonitorElementmenRecHitsBlade_
 
MonitorElementmenRecHitsDisk_
 
MonitorElementmenRecHitsLad_
 
MonitorElementmenRecHitsLay_
 
MonitorElementmenRecHitsPhi_
 
MonitorElementmenRecHitsRing_
 
MonitorElementmeXYPos_
 
MonitorElementmeXYPos_px_
 
MonitorElementmeXYPos_py_
 
MonitorElementmeXYPosLad_
 
MonitorElementmeXYPosLad_px_
 
MonitorElementmeXYPosLad_py_
 
MonitorElementmeXYPosLay_
 
MonitorElementmeXYPosLay_px_
 
MonitorElementmeXYPosLay_py_
 
MonitorElementmeXYPosPhi_
 
MonitorElementmeXYPosPhi_px_
 
MonitorElementmeXYPosPhi_py_
 
MonitorElementmeXYPosRing_
 
MonitorElementmeXYPosRing_px_
 
MonitorElementmeXYPosRing_py_
 

Detailed Description

Definition at line 34 of file SiPixelRecHitModule.h.

Constructor & Destructor Documentation

SiPixelRecHitModule::SiPixelRecHitModule ( )

Default constructor.

Framework.

Definition at line 21 of file SiPixelRecHitModule.cc.

21 : id_(0) { }
SiPixelRecHitModule::SiPixelRecHitModule ( const uint32_t &  id)

Constructor with raw DetId.

Definition at line 23 of file SiPixelRecHitModule.cc.

23  :
24  id_(id)
25 {
26 }
SiPixelRecHitModule::~SiPixelRecHitModule ( )

Destructor.

Definition at line 31 of file SiPixelRecHitModule.cc.

31 {}

Member Function Documentation

void SiPixelRecHitModule::book ( const edm::ParameterSet iConfig,
int  type = 0,
bool  twoD = true,
bool  reducedSet = false 
)

Book histograms.

Definition at line 35 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, PixelEndcapName::bladeName(), PixelEndcapName::diskName(), Reference_intrackfit_cff::endcap, edm::ParameterSet::getParameter(), id_, PixelBarrelName::isHalfModule(), edm::InputTag::label(), PixelBarrelName::ladderName(), PixelBarrelName::layerName(), meClustX_, meClustXBlade_, meClustXDisk_, meClustXLad_, meClustXLay_, meClustXPhi_, meClustXRing_, meClustY_, meClustYBlade_, meClustYDisk_, meClustYLad_, meClustYLay_, meClustYPhi_, meClustYRing_, meErrorX_, meErrorXBlade_, meErrorXDisk_, meErrorXLad_, meErrorXLay_, meErrorXPhi_, meErrorXRing_, meErrorY_, meErrorYBlade_, meErrorYDisk_, meErrorYLad_, meErrorYLay_, meErrorYPhi_, meErrorYRing_, menRecHits_, menRecHitsBlade_, menRecHitsDisk_, menRecHitsLad_, menRecHitsLay_, menRecHitsPhi_, menRecHitsRing_, meXYPos_, meXYPos_px_, meXYPos_py_, meXYPosLad_, meXYPosLad_px_, meXYPosLad_py_, meXYPosLay_, meXYPosLay_px_, meXYPosLay_py_, meXYPosPhi_, meXYPosPhi_px_, meXYPosPhi_py_, meXYPosRing_, meXYPosRing_px_, meXYPosRing_py_, PixelBarrelName::moduleName(), cmsCodeRules.cppFunctionSkipper::operator, PixelEndcapName::pannelName(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, PixelEndcapName::plaquetteName(), MonitorElement::setAxisTitle(), SiPixelHistogramId::setHistoId(), align_tpl::src, and DetId::subdetId().

36  {
37 
38  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
39  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
40  bool isHalfModule = false;
41  if(barrel){
42  isHalfModule = PixelBarrelName(DetId(id_)).isHalfModule();
43  }
44 
45  std::string hid;
46  // Get collection name and instantiate Histo Id builder
47  edm::InputTag src = iConfig.getParameter<edm::InputTag>( "src" );
48  // Get DQM interface
49  DQMStore* theDMBE = edm::Service<DQMStore>().operator->();
50 
51 
52  if(type==0){
53  SiPixelHistogramId* theHistogramId = new SiPixelHistogramId( src.label() );
54  if(!reducedSet)
55  {
56  if(twoD){
57  // XYPosition
58  hid = theHistogramId->setHistoId("xypos",id_);
59  meXYPos_ = theDMBE->book2D(hid,"XY Position",100,-1.,1,100,-4,4);
60  meXYPos_->setAxisTitle("X Position",1);
61  meXYPos_->setAxisTitle("Y Position",2);
62  }
63  else{
64  // projections of XYPosition
65  hid = theHistogramId->setHistoId("xypos",id_);
66  meXYPos_px_ = theDMBE->book1D(hid+"_px","X Position",100,-1.,1);
67  meXYPos_px_->setAxisTitle("X Position",1);
68  meXYPos_py_ = theDMBE->book1D(hid+"_py","Y Position",100,-4,4);
69  meXYPos_py_->setAxisTitle("Y Position",1);
70  }
71  }
72  hid = theHistogramId->setHistoId("ClustX",id_);
73  meClustX_ = theDMBE->book1D(hid, "RecHit X size", 10, 0., 10.);
74  meClustX_->setAxisTitle("RecHit size X dimension", 1);
75  hid = theHistogramId->setHistoId("ClustY",id_);
76  meClustY_ = theDMBE->book1D(hid, "RecHit Y size", 15, 0., 15.);
77  meClustY_->setAxisTitle("RecHit size Y dimension", 1);
78 
79  hid = theHistogramId->setHistoId("ErrorX",id_);
80  meErrorX_ = theDMBE->book1D(hid, "RecHit error X", 100,0.,0.02);
81  meErrorX_->setAxisTitle("RecHit error X", 1);
82  hid = theHistogramId->setHistoId("ErrorY",id_);
83  meErrorY_ = theDMBE->book1D(hid, "RecHit error Y", 100,0.,0.02);
84  meErrorY_->setAxisTitle("RecHit error Y", 1);
85 
86  hid = theHistogramId->setHistoId("nRecHits",id_);
87  menRecHits_ = theDMBE->book1D(hid, "# of rechits in this module", 8, 0, 8);
88  menRecHits_->setAxisTitle("number of rechits",1);
89  delete theHistogramId;
90  }
91 
92  if(type==1 && barrel){
93  uint32_t DBladder = PixelBarrelName(DetId(id_)).ladderName();
94  char sladder[80]; sprintf(sladder,"Ladder_%02i",DBladder);
95  hid = src.label() + "_" + sladder;
96  if(isHalfModule) hid += "H";
97  else hid += "F";
98  if(!reducedSet)
99  {
100  if(twoD){
101  meXYPosLad_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
102  meXYPosLad_->setAxisTitle("X Position",1);
103  meXYPosLad_->setAxisTitle("Y Position",2);
104  }
105  else{
106  // projections of XYPosition
107  meXYPosLad_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
108  meXYPosLad_px_->setAxisTitle("X Position",1);
109  meXYPosLad_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
110  meXYPosLad_py_->setAxisTitle("Y Position",1);
111  }
112  }
113  meClustXLad_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
114  meClustXLad_->setAxisTitle("RecHit size X dimension", 1);
115  meClustYLad_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
116  meClustYLad_->setAxisTitle("RecHit size Y dimension", 1);
117  meErrorXLad_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
118  meErrorXLad_->setAxisTitle("RecHit error X", 1);
119  meErrorYLad_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
120  meErrorYLad_->setAxisTitle("RecHit error Y", 1);
121  menRecHitsLad_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
122  menRecHitsLad_->setAxisTitle("number of rechits",1);
123 
124  }
125 
126  if(type==2 && barrel){
127 
128  uint32_t DBlayer = PixelBarrelName(DetId(id_)).layerName();
129  char slayer[80]; sprintf(slayer,"Layer_%i",DBlayer);
130  hid = src.label() + "_" + slayer;
131 
132  if(!reducedSet)
133  {
134  if(twoD){
135  meXYPosLay_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
136  meXYPosLay_->setAxisTitle("X Position",1);
137  meXYPosLay_->setAxisTitle("Y Position",2);
138  }
139  else{
140  // projections of XYPosition
141  meXYPosLay_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
142  meXYPosLay_px_->setAxisTitle("X Position",1);
143  meXYPosLay_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
144  meXYPosLay_py_->setAxisTitle("Y Position",1);
145  }
146  }
147 
148  meClustXLay_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
149  meClustXLay_->setAxisTitle("RecHit size X dimension", 1);
150  meClustYLay_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
151  meClustYLay_->setAxisTitle("RecHit size Y dimension", 1);
152  meErrorXLay_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
153  meErrorXLay_->setAxisTitle("RecHit error X", 1);
154  meErrorYLay_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
155  meErrorYLay_->setAxisTitle("RecHit error Y", 1);
156  menRecHitsLay_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
157  menRecHitsLay_->setAxisTitle("number of rechits",1);
158 
159  }
160 
161  if(type==3 && barrel){
162  uint32_t DBmodule = PixelBarrelName(DetId(id_)).moduleName();
163  char smodule[80]; sprintf(smodule,"Ring_%i",DBmodule);
164  hid = src.label() + "_" + smodule;
165 
166  if(!reducedSet)
167  {
168  if(twoD){
169  meXYPosPhi_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
170  meXYPosPhi_->setAxisTitle("X Position",1);
171  meXYPosPhi_->setAxisTitle("Y Position",2);
172  }
173  else{
174  // projections of XYPosition
175  meXYPosPhi_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
176  meXYPosPhi_px_->setAxisTitle("X Position",1);
177  meXYPosPhi_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
178  meXYPosPhi_py_->setAxisTitle("Y Position",1);
179  }
180  }
181  meClustXPhi_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
182  meClustXPhi_->setAxisTitle("RecHit size X dimension", 1);
183  meClustYPhi_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
184  meClustYPhi_->setAxisTitle("RecHit size Y dimension", 1);
185  meErrorXPhi_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
186  meErrorXPhi_->setAxisTitle("RecHit error X", 1);
187  meErrorYPhi_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
188  meErrorYPhi_->setAxisTitle("RecHit error Y", 1);
189  menRecHitsPhi_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
190  menRecHitsPhi_->setAxisTitle("number of rechits",1);
191 
192  }
193 
194  if(type==4 && endcap){
195  uint32_t blade= PixelEndcapName(DetId(id_)).bladeName();
196 
197  char sblade[80]; sprintf(sblade, "Blade_%02i",blade);
198  hid = src.label() + "_" + sblade;
199 // meXYPosBlade_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
200 // meXYPosBlade_->setAxisTitle("X Position",1);
201 // meXYPosBlade_->setAxisTitle("Y Position",2);
202 
203  meClustXBlade_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
204  meClustXBlade_->setAxisTitle("RecHit size X dimension", 1);
205  meClustYBlade_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
206  meClustYBlade_->setAxisTitle("RecHit size Y dimension", 1);
207  meErrorXBlade_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
208  meErrorXBlade_->setAxisTitle("RecHit error X", 1);
209  meErrorYBlade_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
210  meErrorYBlade_->setAxisTitle("RecHit error Y", 1);
211  menRecHitsBlade_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
212  menRecHitsBlade_->setAxisTitle("number of rechits",1);
213 
214  }
215  if(type==5 && endcap){
216  uint32_t disk = PixelEndcapName(DetId(id_)).diskName();
217 
218  char sdisk[80]; sprintf(sdisk, "Disk_%i",disk);
219  hid = src.label() + "_" + sdisk;
220 // meXYPosDisk_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
221 // meXYPosDisk_->setAxisTitle("X Position",1);
222 // meXYPosDisk_->setAxisTitle("Y Position",2);
223 
224  meClustXDisk_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
225  meClustXDisk_->setAxisTitle("RecHit size X dimension", 1);
226  meClustYDisk_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
227  meClustYDisk_->setAxisTitle("RecHit size Y dimension", 1);
228  meErrorXDisk_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
229  meErrorXDisk_->setAxisTitle("RecHit error X", 1);
230  meErrorYDisk_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
231  meErrorYDisk_->setAxisTitle("RecHit error Y", 1);
232  menRecHitsDisk_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
233  menRecHitsDisk_->setAxisTitle("number of rechits",1);
234 
235  }
236 
237  if(type==6 && endcap){
238  uint32_t panel= PixelEndcapName(DetId(id_)).pannelName();
240  char slab[80]; sprintf(slab, "Panel_%i_Ring_%i",panel, module);
241  hid = src.label() + "_" + slab;
242 
243  if(!reducedSet)
244  {
245  if(twoD){
246  meXYPosRing_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
247  meXYPosRing_->setAxisTitle("X Position",1);
248  meXYPosRing_->setAxisTitle("Y Position",2);
249  }
250  else{
251  // projections of XYPosition
252  meXYPosRing_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
253  meXYPosRing_px_->setAxisTitle("X Position",1);
254  meXYPosRing_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
255  meXYPosRing_py_->setAxisTitle("Y Position",1);
256  }
257  }
258  meClustXRing_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
259  meClustXRing_->setAxisTitle("RecHit size X dimension", 1);
260  meClustYRing_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
261  meClustYRing_->setAxisTitle("RecHit size Y dimension", 1);
262  meErrorXRing_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
263  meErrorXRing_->setAxisTitle("RecHit error X", 1);
264  meErrorYRing_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
265  meErrorYRing_->setAxisTitle("RecHit error Y", 1);
266  menRecHitsRing_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
267  menRecHitsRing_->setAxisTitle("number of rechits",1);
268 
269  }
270 
271 }
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * menRecHitsLay_
type
Definition: HCALResponse.h:22
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&#39;s numbering enum) ...
Definition: DetId.h:39
MonitorElement * meErrorYLay_
MonitorElement * meXYPos_
MonitorElement * menRecHits_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
Definition: DetId.h:20
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)
Definition: vlib.h:209
MonitorElement * meXYPosLad_py_
MonitorElement * meErrorXLay_
MonitorElement * menRecHitsBlade_
MonitorElement * meClustYBlade_
MonitorElement * meClustYLay_
MonitorElement * meXYPos_px_
MonitorElement * meErrorXRing_
MonitorElement * meErrorYBlade_
tuple src
Definition: align_tpl.py:87
MonitorElement * meErrorXPhi_
void SiPixelRecHitModule::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.

Definition at line 275 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, Reference_intrackfit_cff::endcap, MonitorElement::Fill(), id_, meClustX_, meClustXBlade_, meClustXDisk_, meClustXLad_, meClustXLay_, meClustXPhi_, meClustXRing_, meClustY_, meClustYBlade_, meClustYDisk_, meClustYLad_, meClustYLay_, meClustYPhi_, meClustYRing_, meErrorX_, meErrorXBlade_, meErrorXDisk_, meErrorXLad_, meErrorXLay_, meErrorXPhi_, meErrorXRing_, meErrorY_, meErrorYBlade_, meErrorYDisk_, meErrorYLad_, meErrorYLay_, meErrorYPhi_, meErrorYRing_, meXYPos_, meXYPos_px_, meXYPos_py_, meXYPosLad_, meXYPosLad_px_, meXYPosLad_py_, meXYPosLay_, meXYPosLay_px_, meXYPosLay_py_, meXYPosPhi_, meXYPosPhi_px_, meXYPosPhi_py_, meXYPosRing_, meXYPosRing_px_, meXYPosRing_py_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, and DetId::subdetId().

280  {
281 
282  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
283  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
284 
285  //std::cout << rechit_x << " " << rechit_y << " " << sizeX << " " << sizeY << std::endl;
286  if(modon){
287  meClustX_->Fill(sizeX);
288  meClustY_->Fill(sizeY);
289  meErrorX_->Fill(lerr_x);
290  meErrorY_->Fill(lerr_y);
291  if(!reducedSet)
292  {
293  if(twoD) meXYPos_->Fill(rechit_x, rechit_y);
294  else {
295  meXYPos_px_->Fill(rechit_x);
296  meXYPos_py_->Fill(rechit_y);
297  }
298  }
299  }
300  //std::cout<<"number of detector units="<<numberOfDetUnits<<std::endl;
301 
302  if(ladon && barrel){
303  meClustXLad_->Fill(sizeX);
304  meClustYLad_->Fill(sizeY);
305  meErrorXLad_->Fill(lerr_x);
306  meErrorYLad_->Fill(lerr_y);
307  if(!reducedSet)
308  {
309  if(twoD) meXYPosLad_->Fill(rechit_x, rechit_y);
310  else{
311  meXYPosLad_px_->Fill(rechit_x);
312  meXYPosLad_py_->Fill(rechit_y);
313  }
314  }
315  }
316 
317  if(layon && barrel){
318  meClustXLay_->Fill(sizeX);
319  meClustYLay_->Fill(sizeY);
320  meErrorXLay_->Fill(lerr_x);
321  meErrorYLay_->Fill(lerr_y);
322  if(!reducedSet)
323  {
324  if(twoD) meXYPosLay_->Fill(rechit_x, rechit_y);
325  else{
326  meXYPosLay_px_->Fill(rechit_x);
327  meXYPosLay_py_->Fill(rechit_y);
328  }
329  }
330  }
331 
332  if(phion && barrel){
333  meClustXPhi_->Fill(sizeX);
334  meClustYPhi_->Fill(sizeY);
335  meErrorXPhi_->Fill(lerr_x);
336  meErrorYPhi_->Fill(lerr_y);
337  if(!reducedSet)
338  {
339  if(twoD) meXYPosPhi_->Fill(rechit_x, rechit_y);
340  else{
341  meXYPosPhi_px_->Fill(rechit_x);
342  meXYPosPhi_py_->Fill(rechit_y);
343  }
344  }
345  }
346 
347  if(bladeon && endcap){
348  //meXYPosBlade_->Fill(rechit_x, rechit_y);
349  meClustXBlade_->Fill(sizeX);
350  meClustYBlade_->Fill(sizeY);
351  meErrorXBlade_->Fill(lerr_x);
352  meErrorYBlade_->Fill(lerr_y);
353  }
354 
355  if(diskon && endcap){
356  //meXYPosDisk_->Fill(rechit_x, rechit_y);
357  meClustXDisk_->Fill(sizeX);
358  meClustYDisk_->Fill(sizeY);
359  meErrorXDisk_->Fill(lerr_x);
360  meErrorYDisk_->Fill(lerr_y);
361  }
362 
363  if(ringon && endcap){
364  meClustXRing_->Fill(sizeX);
365  meClustYRing_->Fill(sizeY);
366  meErrorXRing_->Fill(lerr_x);
367  meErrorYRing_->Fill(lerr_y);
368  if(!reducedSet)
369  {
370  if(twoD) meXYPosRing_->Fill(rechit_x, rechit_y);
371  else{
372  meXYPosRing_px_->Fill(rechit_x);
373  meXYPosRing_py_->Fill(rechit_y);
374  }
375  }
376  }
377 }
MonitorElement * meXYPosPhi_px_
MonitorElement * meClustYRing_
MonitorElement * meClustXLay_
MonitorElement * meXYPosPhi_
MonitorElement * meXYPosPhi_py_
MonitorElement * meErrorXDisk_
MonitorElement * meClustYPhi_
MonitorElement * meXYPosLay_py_
MonitorElement * meClustXDisk_
MonitorElement * meClustYDisk_
MonitorElement * meErrorY_
MonitorElement * meErrorYRing_
MonitorElement * meClustXLad_
MonitorElement * meErrorYPhi_
MonitorElement * meXYPosRing_px_
MonitorElement * meXYPosLay_
MonitorElement * meErrorXLad_
MonitorElement * meClustX_
void Fill(long long x)
MonitorElement * meClustXBlade_
MonitorElement * meClustXPhi_
MonitorElement * meXYPosLad_px_
MonitorElement * meErrorXBlade_
MonitorElement * meXYPosRing_
MonitorElement * meErrorYLad_
MonitorElement * meXYPosLay_px_
MonitorElement * meClustXRing_
MonitorElement * meXYPos_py_
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
MonitorElement * meErrorYLay_
MonitorElement * meXYPos_
Definition: DetId.h:20
MonitorElement * meXYPosLad_
MonitorElement * meErrorYDisk_
MonitorElement * meErrorX_
MonitorElement * meClustYLad_
MonitorElement * meClustY_
MonitorElement * meXYPosRing_py_
MonitorElement * meXYPosLad_py_
MonitorElement * meErrorXLay_
MonitorElement * meClustYBlade_
MonitorElement * meClustYLay_
MonitorElement * meXYPos_px_
MonitorElement * meErrorXRing_
MonitorElement * meErrorYBlade_
MonitorElement * meErrorXPhi_
void SiPixelRecHitModule::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 
)

Definition at line 379 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, Reference_intrackfit_cff::endcap, MonitorElement::Fill(), id_, menRecHits_, menRecHitsBlade_, menRecHitsDisk_, menRecHitsLad_, menRecHitsLay_, menRecHitsPhi_, menRecHitsRing_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, and DetId::subdetId().

379  {
380 
381  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
382  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
383 
384  if(modon) menRecHits_->Fill(nrec);
385  //barrel
386  if(ladon && barrel) menRecHitsLad_->Fill(nrec);
387  if(layon && barrel) menRecHitsLay_->Fill(nrec);
388  if(phion && barrel) menRecHitsPhi_->Fill(nrec);
389  //endcap
390  if(bladeon && endcap) menRecHitsBlade_->Fill(nrec);
391  if(diskon && endcap) menRecHitsDisk_->Fill(nrec);
392  if(ringon && endcap) menRecHitsRing_->Fill(nrec);
393 }
MonitorElement * menRecHitsLay_
void Fill(long long x)
MonitorElement * menRecHitsRing_
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
MonitorElement * menRecHits_
Definition: DetId.h:20
MonitorElement * menRecHitsDisk_
MonitorElement * menRecHitsPhi_
MonitorElement * menRecHitsLad_
MonitorElement * menRecHitsBlade_

Member Data Documentation

uint32_t SiPixelRecHitModule::id_
private

Definition at line 62 of file SiPixelRecHitModule.h.

Referenced by book(), fill(), and nfill().

MonitorElement* SiPixelRecHitModule::meClustX_
private

Definition at line 66 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustXBlade_
private

Definition at line 100 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustXDisk_
private

Definition at line 106 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustXLad_
private

Definition at line 75 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustXLay_
private

Definition at line 84 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustXPhi_
private

Definition at line 93 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustXRing_
private

Definition at line 115 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustY_
private

Definition at line 67 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustYBlade_
private

Definition at line 101 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustYDisk_
private

Definition at line 107 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustYLad_
private

Definition at line 76 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustYLay_
private

Definition at line 85 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustYPhi_
private

Definition at line 94 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meClustYRing_
private

Definition at line 116 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorX_
private

Definition at line 68 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorXBlade_
private

Definition at line 102 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorXDisk_
private

Definition at line 108 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorXLad_
private

Definition at line 77 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorXLay_
private

Definition at line 86 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorXPhi_
private

Definition at line 95 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorXRing_
private

Definition at line 117 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorY_
private

Definition at line 69 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorYBlade_
private

Definition at line 103 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorYDisk_
private

Definition at line 109 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorYLad_
private

Definition at line 78 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorYLay_
private

Definition at line 87 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorYPhi_
private

Definition at line 96 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meErrorYRing_
private

Definition at line 118 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::menRecHits_
private

Definition at line 70 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::menRecHitsBlade_
private

Definition at line 104 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::menRecHitsDisk_
private

Definition at line 110 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::menRecHitsLad_
private

Definition at line 79 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::menRecHitsLay_
private

Definition at line 88 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::menRecHitsPhi_
private

Definition at line 97 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::menRecHitsRing_
private

Definition at line 119 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

MonitorElement* SiPixelRecHitModule::meXYPos_
private

Definition at line 63 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPos_px_
private

Definition at line 64 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPos_py_
private

Definition at line 65 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosLad_
private

Definition at line 72 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosLad_px_
private

Definition at line 73 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosLad_py_
private

Definition at line 74 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosLay_
private

Definition at line 81 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosLay_px_
private

Definition at line 82 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosLay_py_
private

Definition at line 83 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosPhi_
private

Definition at line 90 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosPhi_px_
private

Definition at line 91 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosPhi_py_
private

Definition at line 92 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosRing_
private

Definition at line 112 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosRing_px_
private

Definition at line 113 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

MonitorElement* SiPixelRecHitModule::meXYPosRing_py_
private

Definition at line 114 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().