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 121 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

CTPPSDiamondDQMSource::PotPlots::PotPlots ( )
inline

Definition at line 157 of file CTPPSDiamondDQMSource.cc.

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

Definition at line 228 of file CTPPSDiamondDQMSource.cc.

References activePlanes, activePlanesInclusive, activity_per_bx, dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), ECCheck, EfficiencyOfChannelsInPot, hitDistribution2d, hitDistribution2d_lumisection, hitDistribution2dOOT, hitDistribution2dOOT_le, HPTDCErrorFlags_2D, HPTDCErrorFlags::hptdcErrorName(), CTPPSDiamondDQMSource::INV_DISPLAY_RESOLUTION_FOR_HITS_MM, leadingEdgeCumulative_all, leadingEdgeCumulative_both, leadingEdgeCumulative_le, leadingTrailingCorrelationPot, leadingWithoutTrailingCumulativePot, MHComprensive, CTPPSDetId::nFull, CTPPSDetId::nPath, castor_dqm_sourceclient_file_cfg::path, pixelTomographyAll, CTPPSDetId::rpName(), dqm::impl::MonitorElement::setBinLabel(), dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, timeOverThresholdCumulativePot, overlapproblemtsosanalyzer_cfi::title, trackDistribution, trackDistributionOOT, and trailingEdgeCumulative_te.

229  : HitCounter(0),
230  MHCounter(0),
233  CompleteCounter(0),
234  pixelTracksMap("Pixel track maps for efficiency", "Pixel track maps for efficiency", 25, 0, 25, 12, -2, 10) {
237  ibooker.setCurrentFolder(path);
238 
240 
241  activity_per_bx[0] =
242  ibooker.book1D("activity per BX 0 25", title + " Activity per BX 0 - 25 ns;Event.BX", 3600, -1.5, 3598. + 0.5);
243  activity_per_bx[1] =
244  ibooker.book1D("activity per BX 25 50", title + " Activity per BX 25 - 50 ns;Event.BX", 3600, -1.5, 3598. + 0.5);
245  activity_per_bx[2] =
246  ibooker.book1D("activity per BX 50 75", title + " Activity per BX 50 - 75 ns;Event.BX", 3600, -1.5, 3598. + 0.5);
247 
248  hitDistribution2d = ibooker.book2D("hits in planes",
249  title + " hits in planes;plane number;x (mm)",
250  10,
251  -0.5,
252  4.5,
254  -0.5,
255  18.5);
256  hitDistribution2d_lumisection = ibooker.book2D("hits in planes lumisection",
257  title + " hits in planes in the last lumisection;plane number;x (mm)",
258  10,
259  -0.5,
260  4.5,
262  -0.5,
263  18.5);
264  hitDistribution2dOOT = ibooker.book2D("hits with OOT in planes",
265  title + " hits with OOT in planes;plane number + 0.25 OOT;x (mm)",
266  17,
267  -0.25,
268  4,
270  -0.5,
271  18.5);
272  hitDistribution2dOOT_le = ibooker.book2D("hits with OOT in planes (le only)",
273  title + " hits with OOT in planes (le only);plane number + 0.25 OOT;x (mm)",
274  17,
275  -0.25,
276  4,
278  -0.5,
279  18.5);
280  activePlanes =
281  ibooker.book1D("active planes", title + " active planes (per event);number of active planes", 6, -0.5, 5.5);
283  ibooker.book1D("active planes inclusive",
284  title + " active planes, MH and le only included (per event);number of active planes",
285  6,
286  -0.5,
287  5.5);
288 
290  ibooker.book1D("tracks", title + " tracks;x (mm)", 19. * INV_DISPLAY_RESOLUTION_FOR_HITS_MM, -0.5, 18.5);
291  trackDistributionOOT = ibooker.book2D("tracks with OOT",
292  title + " tracks with OOT;plane number;x (mm)",
293  9,
294  -0.5,
295  4,
297  -0.5,
298  18.5);
299 
300  pixelTomographyAll[0] =
301  ibooker.book2D("tomography pixel 0 25",
302  title + " tomography with pixel 0 - 25 ns (all planes);x + 25*plane(mm);y (mm)",
303  100,
304  0,
305  100,
306  8,
307  0,
308  8);
309  pixelTomographyAll[1] =
310  ibooker.book2D("tomography pixel 25 50",
311  title + " tomography with pixel 25 - 50 ns (all planes);x + 25*plane(mm);y (mm)",
312  100,
313  0,
314  100,
315  8,
316  0,
317  8);
318  pixelTomographyAll[2] =
319  ibooker.book2D("tomography pixel 50 75",
320  title + " tomography with pixel 50 - 75 ns (all planes);x + 25*plane(mm);y (mm)",
321  100,
322  0,
323  100,
324  8,
325  0,
326  8);
327 
328  leadingEdgeCumulative_both = ibooker.book1D(
329  "leading edge (le and te)", title + " leading edge (le and te) (recHits); leading edge (ns)", 75, 0, 75);
330  leadingEdgeCumulative_all = ibooker.book1D(
331  "leading edge (all)", title + " leading edge (with or without te) (DIGIs); leading edge (ns)", 75, 0, 75);
333  ibooker.book1D("leading edge (le only)", title + " leading edge (le only) (DIGIs); leading edge (ns)", 75, 0, 75);
334  trailingEdgeCumulative_te = ibooker.book1D(
335  "trailing edge (te only)", title + " trailing edge (te only) (DIGIs); trailing edge (ns)", 75, 0, 75);
337  ibooker.book1D("time over threshold", title + " time over threshold;time over threshold (ns)", 250, -25, 100);
339  ibooker.book2D("leading trailing correlation",
340  title + " leading trailing correlation;leading edge (ns);trailing edge (ns)",
341  75,
342  0,
343  75,
344  75,
345  0,
346  75);
347 
349  ibooker.book1D("event category", title + " leading edges without trailing;;%", 3, 0.5, 3.5);
353 
354  ECCheck = ibooker.book1D("optorxEC(8bit) - vfatEC", title + " EC Error;optorxEC-vfatEC", 50, -25, 25);
355 
356  HPTDCErrorFlags_2D = ibooker.book2D("HPTDC Errors", title + " HPTDC Errors", 16, -0.5, 16.5, 9, -0.5, 8.5);
357  for (unsigned short error_index = 1; error_index < 16; ++error_index)
358  HPTDCErrorFlags_2D->setBinLabel(error_index, HPTDCErrorFlags::hptdcErrorName(error_index - 1));
359  HPTDCErrorFlags_2D->setBinLabel(16, "Wrong EC");
360 
361  int tmpIndex = 0;
362  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 0 TDC 18", /* axis */ 2);
363  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 0 TDC 17", /* axis */ 2);
364  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 0 TDC 16", /* axis */ 2);
365  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 0 TDC 15", /* axis */ 2);
366  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 1 TDC 18", /* axis */ 2);
367  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 1 TDC 17", /* axis */ 2);
368  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 1 TDC 16", /* axis */ 2);
369  HPTDCErrorFlags_2D->setBinLabel(++tmpIndex, "DB 1 TDC 15", /* axis */ 2);
370 
371  MHComprensive =
372  ibooker.book2D("MH in channels", title + " MH (%) in channels;plane number;ch number", 10, -0.5, 4.5, 14, -1, 13);
373 
375  ibooker.book2D("Efficiency in channels",
376  title + " Efficiency (%) in channels (diamonds only);plane number;ch number",
377  10,
378  -0.5,
379  4.5,
380  14,
381  -1,
382  13);
383 
384  // ibooker.setCurrentFolder( path+"/clock/" );
385  // clock_Digi1_le = ibooker.book1D( "clock1 leading edge", title+" clock1;leading edge (ns)", 250, 0, 25 );
386  // clock_Digi1_te = ibooker.book1D( "clock1 trailing edge", title+" clock1;trailing edge (ns)", 75, 0, 75 );
387  // clock_Digi3_le = ibooker.book1D( "clock3 leading edge", title+" clock3;leading edge (ns)", 250, 0, 25 );
388  // clock_Digi3_te = ibooker.book1D( "clock3 trailing edge", title+" clock3;trailing edge (ns)", 75, 0, 75 );
389 }
MonitorElement * leadingWithoutTrailingCumulativePot
std::unordered_map< unsigned int, MonitorElement * > pixelTomographyAll
static std::string hptdcErrorName(const unsigned short id)
void rpName(std::string &name, NameFlag flag=nFull) const
Definition: CTPPSDetId.h:128
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
static const double INV_DISPLAY_RESOLUTION_FOR_HITS_MM
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

Member Data Documentation

MonitorElement* CTPPSDiamondDQMSource::PotPlots::activePlanes = 0

Definition at line 128 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::activePlanesInclusive = 0

Definition at line 128 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

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

Definition at line 122 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::CompleteCounter

Definition at line 150 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::ECCheck = 0

Definition at line 140 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

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

Definition at line 153 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::EfficiencyOfChannelsInPot = 0

Definition at line 154 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

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

Definition at line 152 of file CTPPSDiamondDQMSource.cc.

unsigned int CTPPSDiamondDQMSource::PotPlots::HitCounter

Definition at line 150 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2d = 0

Definition at line 124 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2d_lumisection = 0

Definition at line 125 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2dOOT = 0

Definition at line 126 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::hitDistribution2dOOT_le = 0

Definition at line 127 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::HPTDCErrorFlags_2D = 0

Definition at line 142 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::leadingEdgeCumulative_all = 0

Definition at line 135 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::leadingEdgeCumulative_both = 0

Definition at line 135 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::leadingEdgeCumulative_le = 0

Definition at line 136 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::LeadingOnlyCounter

Definition at line 150 of file CTPPSDiamondDQMSource.cc.

MonitorElement * CTPPSDiamondDQMSource::PotPlots::leadingTrailingCorrelationPot = 0

Definition at line 137 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::leadingWithoutTrailingCumulativePot = 0

Definition at line 138 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::MHComprensive = 0

Definition at line 143 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::MHCounter

Definition at line 150 of file CTPPSDiamondDQMSource.cc.

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

Definition at line 133 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

TH2F CTPPSDiamondDQMSource::PotPlots::pixelTracksMap

Definition at line 155 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::PotPlots::timeOverThresholdCumulativePot = 0

Definition at line 137 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::trackDistribution = 0

Definition at line 130 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement* CTPPSDiamondDQMSource::PotPlots::trackDistributionOOT = 0

Definition at line 131 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

MonitorElement * CTPPSDiamondDQMSource::PotPlots::trailingEdgeCumulative_te = 0

Definition at line 136 of file CTPPSDiamondDQMSource.cc.

Referenced by PotPlots().

unsigned int CTPPSDiamondDQMSource::PotPlots::TrailingOnlyCounter

Definition at line 150 of file CTPPSDiamondDQMSource.cc.