CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SiPixelRecHitModule Class Reference

#include <SiPixelRecHitModule.h>

Public Types

typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 

Public Member Functions

void book (const edm::ParameterSet &iConfig, DQMStore::IBooker &iBooker, const TrackerTopology *pTT, int type=0, bool twoD=true, bool reducedSet=false, bool isUpgrade=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 36 of file SiPixelRecHitModule.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 38 of file SiPixelRecHitModule.h.

◆ MonitorElement

Definition at line 39 of file SiPixelRecHitModule.h.

Constructor & Destructor Documentation

◆ SiPixelRecHitModule() [1/2]

SiPixelRecHitModule::SiPixelRecHitModule ( )

Default constructor.

Framework.

Definition at line 23 of file SiPixelRecHitModule.cc.

23 : id_(0) {}

◆ SiPixelRecHitModule() [2/2]

SiPixelRecHitModule::SiPixelRecHitModule ( const uint32_t &  id)

Constructor with raw DetId.

Definition at line 25 of file SiPixelRecHitModule.cc.

25 : id_(id) {}

◆ ~SiPixelRecHitModule()

SiPixelRecHitModule::~SiPixelRecHitModule ( )

Destructor.

Definition at line 30 of file SiPixelRecHitModule.cc.

30 {}

Member Function Documentation

◆ book()

void SiPixelRecHitModule::book ( const edm::ParameterSet iConfig,
DQMStore::IBooker iBooker,
const TrackerTopology pTT,
int  type = 0,
bool  twoD = true,
bool  reducedSet = false,
bool  isUpgrade = false 
)

Book histograms.

Definition at line 34 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, PixelEndcapName::bladeName(), dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), PixelEndcapName::diskName(), makeMuonMisalignmentScenario::endcap, edm::ParameterSet::getParameter(), id_, PixelBarrelName::isHalfModule(), SiPixelOfflineDQM_client_cff::isUpgrade, 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_, 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_, callgraph::module, PixelBarrelName::moduleName(), PixelEndcapName::pannelName(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, PixelEndcapName::plaquetteName(), SiPixelOfflineDQM_source_cff::reducedSet, dqm::impl::MonitorElement::setAxisTitle(), SiPixelHistogramId::setHistoId(), TrackRefitter_38T_cff::src, AlCaHLTBitMon_QueryRunRegistry::string, and DetId::subdetId().

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

◆ fill()

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 297 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, makeMuonMisalignmentScenario::endcap, dqm::impl::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, SiPixelOfflineDQM_source_cff::reducedSet, RecoTauValidation_cfi::sizeX, RecoTauValidation_cfi::sizeY, and DetId::subdetId().

311  {
312  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
313  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
314 
315  // std::cout << rechit_x << " " << rechit_y << " " << sizeX << " " << sizeY <<
316  // std::endl;
317  if (modon) {
318  meClustX_->Fill(sizeX);
319  meClustY_->Fill(sizeY);
320  meErrorX_->Fill(lerr_x);
321  meErrorY_->Fill(lerr_y);
322  if (!reducedSet) {
323  if (twoD)
324  meXYPos_->Fill(rechit_x, rechit_y);
325  else {
326  meXYPos_px_->Fill(rechit_x);
327  meXYPos_py_->Fill(rechit_y);
328  }
329  }
330  }
331  // std::cout<<"number of detector units="<<numberOfDetUnits<<std::endl;
332 
333  if (ladon && barrel) {
336  meErrorXLad_->Fill(lerr_x);
337  meErrorYLad_->Fill(lerr_y);
338  if (!reducedSet) {
339  if (twoD)
340  meXYPosLad_->Fill(rechit_x, rechit_y);
341  else {
342  meXYPosLad_px_->Fill(rechit_x);
343  meXYPosLad_py_->Fill(rechit_y);
344  }
345  }
346  }
347 
348  if (layon && barrel) {
351  meErrorXLay_->Fill(lerr_x);
352  meErrorYLay_->Fill(lerr_y);
353  if (!reducedSet) {
354  if (twoD)
355  meXYPosLay_->Fill(rechit_x, rechit_y);
356  else {
357  meXYPosLay_px_->Fill(rechit_x);
358  meXYPosLay_py_->Fill(rechit_y);
359  }
360  }
361  }
362 
363  if (phion && barrel) {
366  meErrorXPhi_->Fill(lerr_x);
367  meErrorYPhi_->Fill(lerr_y);
368  if (!reducedSet) {
369  if (twoD)
370  meXYPosPhi_->Fill(rechit_x, rechit_y);
371  else {
372  meXYPosPhi_px_->Fill(rechit_x);
373  meXYPosPhi_py_->Fill(rechit_y);
374  }
375  }
376  }
377 
378  if (bladeon && endcap) {
379  // meXYPosBlade_->Fill(rechit_x, rechit_y);
382  meErrorXBlade_->Fill(lerr_x);
383  meErrorYBlade_->Fill(lerr_y);
384  }
385 
386  if (diskon && endcap) {
387  // meXYPosDisk_->Fill(rechit_x, rechit_y);
390  meErrorXDisk_->Fill(lerr_x);
391  meErrorYDisk_->Fill(lerr_y);
392  }
393 
394  if (ringon && endcap) {
397  meErrorXRing_->Fill(lerr_x);
398  meErrorYRing_->Fill(lerr_y);
399  if (!reducedSet) {
400  if (twoD)
401  meXYPosRing_->Fill(rechit_x, rechit_y);
402  else {
403  meXYPosRing_px_->Fill(rechit_x);
404  meXYPosRing_py_->Fill(rechit_y);
405  }
406  }
407  }
408 }
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_
MonitorElement * meClustXBlade_
void Fill(long long x)
MonitorElement * meClustXPhi_
MonitorElement * meXYPosLad_px_
MonitorElement * meErrorXBlade_
MonitorElement * meXYPosRing_
MonitorElement * meErrorYLad_
MonitorElement * meXYPosLay_px_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
MonitorElement * meClustXRing_
MonitorElement * meXYPos_py_
MonitorElement * meErrorYLay_
MonitorElement * meXYPos_
Definition: DetId.h:17
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_

◆ nfill()

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 410 of file SiPixelRecHitModule.cc.

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

411  {
412  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
413  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
414 
415  // if(modon) menRecHits_->Fill(nrec);
416  // barrel
417  if (ladon && barrel)
418  menRecHitsLad_->Fill(nrec);
419  if (layon && barrel)
420  menRecHitsLay_->Fill(nrec);
421  if (phion && barrel)
422  menRecHitsPhi_->Fill(nrec);
423  // endcap
424  if (bladeon && endcap)
425  menRecHitsBlade_->Fill(nrec);
426  if (diskon && endcap)
427  menRecHitsDisk_->Fill(nrec);
428  if (ringon && endcap)
429  menRecHitsRing_->Fill(nrec);
430 }
MonitorElement * menRecHitsLay_
void Fill(long long x)
MonitorElement * menRecHitsRing_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
Definition: DetId.h:17
MonitorElement * menRecHitsDisk_
MonitorElement * menRecHitsPhi_
MonitorElement * menRecHitsLad_
MonitorElement * menRecHitsBlade_

Member Data Documentation

◆ id_

uint32_t SiPixelRecHitModule::id_
private

Definition at line 84 of file SiPixelRecHitModule.h.

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

◆ meClustX_

MonitorElement* SiPixelRecHitModule::meClustX_
private

Definition at line 88 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustXBlade_

MonitorElement* SiPixelRecHitModule::meClustXBlade_
private

Definition at line 122 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustXDisk_

MonitorElement* SiPixelRecHitModule::meClustXDisk_
private

Definition at line 128 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustXLad_

MonitorElement* SiPixelRecHitModule::meClustXLad_
private

Definition at line 97 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustXLay_

MonitorElement* SiPixelRecHitModule::meClustXLay_
private

Definition at line 106 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustXPhi_

MonitorElement* SiPixelRecHitModule::meClustXPhi_
private

Definition at line 115 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustXRing_

MonitorElement* SiPixelRecHitModule::meClustXRing_
private

Definition at line 137 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustY_

MonitorElement* SiPixelRecHitModule::meClustY_
private

Definition at line 89 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustYBlade_

MonitorElement* SiPixelRecHitModule::meClustYBlade_
private

Definition at line 123 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustYDisk_

MonitorElement* SiPixelRecHitModule::meClustYDisk_
private

Definition at line 129 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustYLad_

MonitorElement* SiPixelRecHitModule::meClustYLad_
private

Definition at line 98 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustYLay_

MonitorElement* SiPixelRecHitModule::meClustYLay_
private

Definition at line 107 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustYPhi_

MonitorElement* SiPixelRecHitModule::meClustYPhi_
private

Definition at line 116 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meClustYRing_

MonitorElement* SiPixelRecHitModule::meClustYRing_
private

Definition at line 138 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorX_

MonitorElement* SiPixelRecHitModule::meErrorX_
private

Definition at line 90 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorXBlade_

MonitorElement* SiPixelRecHitModule::meErrorXBlade_
private

Definition at line 124 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorXDisk_

MonitorElement* SiPixelRecHitModule::meErrorXDisk_
private

Definition at line 130 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorXLad_

MonitorElement* SiPixelRecHitModule::meErrorXLad_
private

Definition at line 99 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorXLay_

MonitorElement* SiPixelRecHitModule::meErrorXLay_
private

Definition at line 108 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorXPhi_

MonitorElement* SiPixelRecHitModule::meErrorXPhi_
private

Definition at line 117 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorXRing_

MonitorElement* SiPixelRecHitModule::meErrorXRing_
private

Definition at line 139 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorY_

MonitorElement* SiPixelRecHitModule::meErrorY_
private

Definition at line 91 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorYBlade_

MonitorElement* SiPixelRecHitModule::meErrorYBlade_
private

Definition at line 125 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorYDisk_

MonitorElement* SiPixelRecHitModule::meErrorYDisk_
private

Definition at line 131 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorYLad_

MonitorElement* SiPixelRecHitModule::meErrorYLad_
private

Definition at line 100 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorYLay_

MonitorElement* SiPixelRecHitModule::meErrorYLay_
private

Definition at line 109 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorYPhi_

MonitorElement* SiPixelRecHitModule::meErrorYPhi_
private

Definition at line 118 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meErrorYRing_

MonitorElement* SiPixelRecHitModule::meErrorYRing_
private

Definition at line 140 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ menRecHits_

MonitorElement* SiPixelRecHitModule::menRecHits_
private

Definition at line 92 of file SiPixelRecHitModule.h.

◆ menRecHitsBlade_

MonitorElement* SiPixelRecHitModule::menRecHitsBlade_
private

Definition at line 126 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

◆ menRecHitsDisk_

MonitorElement* SiPixelRecHitModule::menRecHitsDisk_
private

Definition at line 132 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

◆ menRecHitsLad_

MonitorElement* SiPixelRecHitModule::menRecHitsLad_
private

Definition at line 101 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

◆ menRecHitsLay_

MonitorElement* SiPixelRecHitModule::menRecHitsLay_
private

Definition at line 110 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

◆ menRecHitsPhi_

MonitorElement* SiPixelRecHitModule::menRecHitsPhi_
private

Definition at line 119 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

◆ menRecHitsRing_

MonitorElement* SiPixelRecHitModule::menRecHitsRing_
private

Definition at line 141 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

◆ meXYPos_

MonitorElement* SiPixelRecHitModule::meXYPos_
private

Definition at line 85 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPos_px_

MonitorElement* SiPixelRecHitModule::meXYPos_px_
private

Definition at line 86 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPos_py_

MonitorElement* SiPixelRecHitModule::meXYPos_py_
private

Definition at line 87 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosLad_

MonitorElement* SiPixelRecHitModule::meXYPosLad_
private

Definition at line 94 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosLad_px_

MonitorElement* SiPixelRecHitModule::meXYPosLad_px_
private

Definition at line 95 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosLad_py_

MonitorElement* SiPixelRecHitModule::meXYPosLad_py_
private

Definition at line 96 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosLay_

MonitorElement* SiPixelRecHitModule::meXYPosLay_
private

Definition at line 103 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosLay_px_

MonitorElement* SiPixelRecHitModule::meXYPosLay_px_
private

Definition at line 104 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosLay_py_

MonitorElement* SiPixelRecHitModule::meXYPosLay_py_
private

Definition at line 105 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosPhi_

MonitorElement* SiPixelRecHitModule::meXYPosPhi_
private

Definition at line 112 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosPhi_px_

MonitorElement* SiPixelRecHitModule::meXYPosPhi_px_
private

Definition at line 113 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosPhi_py_

MonitorElement* SiPixelRecHitModule::meXYPosPhi_py_
private

Definition at line 114 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosRing_

MonitorElement* SiPixelRecHitModule::meXYPosRing_
private

Definition at line 134 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosRing_px_

MonitorElement* SiPixelRecHitModule::meXYPosRing_px_
private

Definition at line 135 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

◆ meXYPosRing_py_

MonitorElement* SiPixelRecHitModule::meXYPosRing_py_
private

Definition at line 136 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().