CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSDiamondDQMSource::PotPlots Struct Reference

plots related to one Diamond detector package More...

Public Member Functions

 PotPlots ()
 
 PotPlots (DQMStore::IBooker &ibooker, unsigned int id)
 

Public Attributes

MonitorElementactivePlanes = 0
 
MonitorElementactivePlanesInclusive = 0
 
std::unordered_map< unsigned int, MonitorElement * > activity_per_bx
 
unsigned int CompleteCounter
 
MonitorElementECCheck = 0
 
std::map< int, int > effDoublecountingChMap
 
MonitorElementEfficiencyOfChannelsInPot = 0
 
std::map< int, int > effTriplecountingChMap
 
unsigned int HitCounter
 
MonitorElementhitDistribution2d = 0
 
MonitorElementhitDistribution2d_lumisection = 0
 
MonitorElementhitDistribution2dOOT = 0
 
MonitorElementhitDistribution2dOOT_le = 0
 
MonitorElementHPTDCErrorFlags_2D = 0
 
MonitorElementleadingEdgeCumulative_all = 0
 
MonitorElementleadingEdgeCumulative_both = 0
 
MonitorElementleadingEdgeCumulative_le = 0
 
unsigned int LeadingOnlyCounter
 
MonitorElementleadingTrailingCorrelationPot = 0
 
MonitorElementleadingWithoutTrailingCumulativePot = 0
 
MonitorElementMHComprensive = 0
 
unsigned int MHCounter
 
std::unordered_map< unsigned int, MonitorElement * > pixelTomographyAll
 
TH2F pixelTracksMap
 
MonitorElementtimeOverThresholdCumulativePot = 0
 
MonitorElementtrackDistribution = 0
 
MonitorElementtrackDistributionOOT = 0
 
MonitorElementtrailingEdgeCumulative_te = 0
 
unsigned int TrailingOnlyCounter
 

Detailed Description

plots related to one Diamond detector package

Definition at line 122 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

CTPPSDiamondDQMSource::PotPlots::PotPlots ( )
inline

Definition at line 158 of file CTPPSDiamondDQMSource.cc.

158 {}
CTPPSDiamondDQMSource::PotPlots::PotPlots ( DQMStore::IBooker ibooker,
unsigned int  id 
)

Definition at line 229 of file CTPPSDiamondDQMSource.cc.

References activePlanes, activePlanesInclusive, activity_per_bx, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), ECCheck, EfficiencyOfChannelsInPot, HPTDCErrorFlags::getHPTDCErrorName(), MonitorElement::getTH1F(), MonitorElement::getTH2F(), hitDistribution2d, hitDistribution2d_lumisection, hitDistribution2dOOT, hitDistribution2dOOT_le, HPTDCErrorFlags_2D, CTPPSDiamondDQMSource::INV_DISPLAY_RESOLUTION_FOR_HITS_MM, leadingEdgeCumulative_all, leadingEdgeCumulative_both, leadingEdgeCumulative_le, leadingTrailingCorrelationPot, leadingWithoutTrailingCumulativePot, MHComprensive, CTPPSDetId::nFull, CTPPSDetId::nPath, callgraph::path, pixelTomographyAll, CTPPSDetId::rpName(), DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, timeOverThresholdCumulativePot, fftjetcommon_cfi::title, trackDistribution, trackDistributionOOT, and trailingEdgeCumulative_te.

230  : HitCounter(0),
231  MHCounter(0),
234  CompleteCounter(0),
235  pixelTracksMap("Pixel track maps for efficiency", "Pixel track maps for efficiency", 25, 0, 25, 12, -2, 10) {
238  ibooker.setCurrentFolder(path);
239 
241 
242  activity_per_bx[0] =
243  ibooker.book1D("activity per BX 0 25", title + " Activity per BX 0 - 25 ns;Event.BX", 3600, -1.5, 3598. + 0.5);
244  activity_per_bx[1] =
245  ibooker.book1D("activity per BX 25 50", title + " Activity per BX 25 - 50 ns;Event.BX", 3600, -1.5, 3598. + 0.5);
246  activity_per_bx[2] =
247  ibooker.book1D("activity per BX 50 75", title + " Activity per BX 50 - 75 ns;Event.BX", 3600, -1.5, 3598. + 0.5);
248 
249  hitDistribution2d = ibooker.book2D("hits in planes",
250  title + " hits in planes;plane number;x (mm)",
251  10,
252  -0.5,
253  4.5,
255  -0.5,
256  18.5);
257  hitDistribution2d_lumisection = ibooker.book2D("hits in planes lumisection",
258  title + " hits in planes in the last lumisection;plane number;x (mm)",
259  10,
260  -0.5,
261  4.5,
263  -0.5,
264  18.5);
265  hitDistribution2dOOT = ibooker.book2D("hits with OOT in planes",
266  title + " hits with OOT in planes;plane number + 0.25 OOT;x (mm)",
267  17,
268  -0.25,
269  4,
271  -0.5,
272  18.5);
273  hitDistribution2dOOT_le = ibooker.book2D("hits with OOT in planes (le only)",
274  title + " hits with OOT in planes (le only);plane number + 0.25 OOT;x (mm)",
275  17,
276  -0.25,
277  4,
279  -0.5,
280  18.5);
281  activePlanes =
282  ibooker.book1D("active planes", title + " active planes (per event);number of active planes", 6, -0.5, 5.5);
284  ibooker.book1D("active planes inclusive",
285  title + " active planes, MH and le only included (per event);number of active planes",
286  6,
287  -0.5,
288  5.5);
289 
291  ibooker.book1D("tracks", title + " tracks;x (mm)", 19. * INV_DISPLAY_RESOLUTION_FOR_HITS_MM, -0.5, 18.5);
292  trackDistributionOOT = ibooker.book2D("tracks with OOT",
293  title + " tracks with OOT;plane number;x (mm)",
294  9,
295  -0.5,
296  4,
298  -0.5,
299  18.5);
300 
301  pixelTomographyAll[0] =
302  ibooker.book2D("tomography pixel 0 25",
303  title + " tomography with pixel 0 - 25 ns (all planes);x + 25*plane(mm);y (mm)",
304  100,
305  0,
306  100,
307  8,
308  0,
309  8);
310  pixelTomographyAll[1] =
311  ibooker.book2D("tomography pixel 25 50",
312  title + " tomography with pixel 25 - 50 ns (all planes);x + 25*plane(mm);y (mm)",
313  100,
314  0,
315  100,
316  8,
317  0,
318  8);
319  pixelTomographyAll[2] =
320  ibooker.book2D("tomography pixel 50 75",
321  title + " tomography with pixel 50 - 75 ns (all planes);x + 25*plane(mm);y (mm)",
322  100,
323  0,
324  100,
325  8,
326  0,
327  8);
328 
330  "leading edge (le and te)", title + " leading edge (le and te) (recHits); leading edge (ns)", 75, 0, 75);
332  "leading edge (all)", title + " leading edge (with or without te) (DIGIs); leading edge (ns)", 75, 0, 75);
334  ibooker.book1D("leading edge (le only)", title + " leading edge (le only) (DIGIs); leading edge (ns)", 75, 0, 75);
336  "trailing edge (te only)", title + " trailing edge (te only) (DIGIs); trailing edge (ns)", 75, 0, 75);
338  ibooker.book1D("time over threshold", title + " time over threshold;time over threshold (ns)", 250, -25, 100);
340  ibooker.book2D("leading trailing correlation",
341  title + " leading trailing correlation;leading edge (ns);trailing edge (ns)",
342  75,
343  0,
344  75,
345  75,
346  0,
347  75);
348 
350  ibooker.book1D("event category", title + " leading edges without trailing;;%", 3, 0.5, 3.5);
351  leadingWithoutTrailingCumulativePot->getTH1F()->GetXaxis()->SetBinLabel(1, "Leading only");
352  leadingWithoutTrailingCumulativePot->getTH1F()->GetXaxis()->SetBinLabel(2, "Trailing only");
353  leadingWithoutTrailingCumulativePot->getTH1F()->GetXaxis()->SetBinLabel(3, "Both");
354 
355  ECCheck = ibooker.book1D("optorxEC(8bit) - vfatEC", title + " EC Error;optorxEC-vfatEC", 50, -25, 25);
356 
357  HPTDCErrorFlags_2D = ibooker.book2D("HPTDC Errors", title + " HPTDC Errors", 16, -0.5, 16.5, 9, -0.5, 8.5);
358  for (unsigned short error_index = 1; error_index < 16; ++error_index)
359  HPTDCErrorFlags_2D->getTH2F()->GetXaxis()->SetBinLabel(error_index,
360  HPTDCErrorFlags::getHPTDCErrorName(error_index - 1).c_str());
361  HPTDCErrorFlags_2D->getTH2F()->GetXaxis()->SetBinLabel(16, "Wrong EC");
362 
363  int tmpIndex = 0;
364  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 0 TDC 18");
365  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 0 TDC 17");
366  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 0 TDC 16");
367  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 0 TDC 15");
368  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 1 TDC 18");
369  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 1 TDC 17");
370  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 1 TDC 16");
371  HPTDCErrorFlags_2D->getTH2F()->GetYaxis()->SetBinLabel(++tmpIndex, "DB 1 TDC 15");
372 
373  MHComprensive =
374  ibooker.book2D("MH in channels", title + " MH (%) in channels;plane number;ch number", 10, -0.5, 4.5, 14, -1, 13);
375 
377  ibooker.book2D("Efficiency in channels",
378  title + " Efficiency (%) in channels (diamonds only);plane number;ch number",
379  10,
380  -0.5,
381  4.5,
382  14,
383  -1,
384  13);
385 
386  // ibooker.setCurrentFolder( path+"/clock/" );
387  // clock_Digi1_le = ibooker.book1D( "clock1 leading edge", title+" clock1;leading edge (ns)", 250, 0, 25 );
388  // clock_Digi1_te = ibooker.book1D( "clock1 trailing edge", title+" clock1;trailing edge (ns)", 75, 0, 75 );
389  // clock_Digi3_le = ibooker.book1D( "clock3 leading edge", title+" clock3;leading edge (ns)", 250, 0, 25 );
390  // clock_Digi3_te = ibooker.book1D( "clock3 trailing edge", title+" clock3;trailing edge (ns)", 75, 0, 75 );
391 }
TH1F * getTH1F() const
MonitorElement * leadingWithoutTrailingCumulativePot
std::unordered_map< unsigned int, MonitorElement * > pixelTomographyAll
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
void rpName(std::string &name, NameFlag flag=nFull) const
Definition: CTPPSDetId.h:128
TH2F * getTH2F() const
static const double INV_DISPLAY_RESOLUTION_FOR_HITS_MM
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
std::unordered_map< unsigned int, MonitorElement * > activity_per_bx
static std::string getHPTDCErrorName(const unsigned short id)

Member Data Documentation

MonitorElement* CTPPSDiamondDQMSource::PotPlots::activePlanes = 0

Definition at line 129 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::activePlanesInclusive = 0

Definition at line 129 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

std::unordered_map<unsigned int, MonitorElement*> CTPPSDiamondDQMSource::PotPlots::activity_per_bx

Definition at line 123 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::CompleteCounter

Definition at line 151 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::ECCheck = 0

Definition at line 141 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

std::map<int, int> CTPPSDiamondDQMSource::PotPlots::effDoublecountingChMap

Definition at line 154 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::EfficiencyOfChannelsInPot = 0

Definition at line 155 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

std::map<int, int> CTPPSDiamondDQMSource::PotPlots::effTriplecountingChMap

Definition at line 153 of file CTPPSDiamondDQMSource.cc.

unsigned int CTPPSDiamondDQMSource::PotPlots::HitCounter

Definition at line 151 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2d = 0

Definition at line 125 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2d_lumisection = 0

Definition at line 126 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2dOOT = 0

Definition at line 127 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2dOOT_le = 0

Definition at line 128 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::HPTDCErrorFlags_2D = 0

Definition at line 143 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::leadingEdgeCumulative_all = 0

Definition at line 136 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::leadingEdgeCumulative_both = 0

Definition at line 136 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::leadingEdgeCumulative_le = 0

Definition at line 137 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::LeadingOnlyCounter

Definition at line 151 of file CTPPSDiamondDQMSource.cc.

MonitorElement * CTPPSDiamondDQMSource::PotPlots::leadingTrailingCorrelationPot = 0

Definition at line 138 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::leadingWithoutTrailingCumulativePot = 0

Definition at line 139 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::MHComprensive = 0

Definition at line 144 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::MHCounter

Definition at line 151 of file CTPPSDiamondDQMSource.cc.

std::unordered_map<unsigned int, MonitorElement*> CTPPSDiamondDQMSource::PotPlots::pixelTomographyAll

Definition at line 134 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

TH2F CTPPSDiamondDQMSource::PotPlots::pixelTracksMap

Definition at line 156 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::timeOverThresholdCumulativePot = 0

Definition at line 138 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::trackDistribution = 0

Definition at line 131 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::trackDistributionOOT = 0

Definition at line 132 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::trailingEdgeCumulative_te = 0

Definition at line 137 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::TrailingOnlyCounter

Definition at line 151 of file CTPPSDiamondDQMSource.cc.