CMS 3D CMS Logo

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

plots related to one Diamond channel More...

Public Member Functions

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

Public Attributes

std::unordered_map< unsigned int, MonitorElement * > activity_per_bx
 
unsigned int CompleteCounter
 
MonitorElementhit_rate = 0
 
unsigned int HitCounter
 
MonitorElementHPTDCErrorFlags = 0
 
MonitorElementleadingEdgeCumulative_both = 0
 
MonitorElementleadingEdgeCumulative_le = 0
 
unsigned int LeadingOnlyCounter
 
MonitorElementLeadingTrailingCorrelationPerChannel = 0
 
MonitorElementleadingWithoutTrailing = 0
 
unsigned int MHCounter
 
MonitorElementpixelTomography_far = 0
 
MonitorElementTimeOverThresholdCumulativePerChannel = 0
 
MonitorElementtrailingEdgeCumulative_te = 0
 
unsigned int TrailingOnlyCounter
 

Detailed Description

plots related to one Diamond channel

Definition at line 182 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( )
inline

Definition at line 196 of file CTPPSDiamondDQMSource.cc.

196 {}
CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( DQMStore::IBooker ibooker,
unsigned int  id 
)

Definition at line 421 of file CTPPSDiamondDQMSource.cc.

References activity_per_bx, dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), CTPPSDiamondDetId::channelName(), hit_rate, HPTDCErrorFlags::hptdcErrorName(), leadingEdgeCumulative_both, leadingEdgeCumulative_le, LeadingTrailingCorrelationPerChannel, leadingWithoutTrailing, CTPPSDetId::nFull, CTPPSDetId::nPath, castor_dqm_sourceclient_file_cfg::path, pixelTomography_far, dqm::impl::MonitorElement::setBinLabel(), dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, TimeOverThresholdCumulativePerChannel, overlapproblemtsosanalyzer_cfi::title, and trailingEdgeCumulative_te.

425  ibooker.setCurrentFolder(path);
426 
428 
429  leadingWithoutTrailing = ibooker.book1D("event category", title + " Event Category;;%", 3, 0.5, 3.5);
430  leadingWithoutTrailing->setBinLabel(1, "Leading only");
431  leadingWithoutTrailing->setBinLabel(2, "Trailing only");
433 
434  activity_per_bx[0] =
435  ibooker.book1D("activity per BX 0 25", title + " Activity per BX 0 - 25 ns;Event.BX", 500, -1.5, 498. + 0.5);
436  activity_per_bx[1] =
437  ibooker.book1D("activity per BX 25 50", title + " Activity per BX 25 - 50 ns;Event.BX", 500, -1.5, 498. + 0.5);
438  activity_per_bx[2] =
439  ibooker.book1D("activity per BX 50 75", title + " Activity per BX 50 - 75 ns;Event.BX", 500, -1.5, 498. + 0.5);
440 
441  HPTDCErrorFlags = ibooker.book1D("hptdc_Errors", title + " HPTDC Errors", 16, -0.5, 16.5);
442  for (unsigned short error_index = 1; error_index < 16; ++error_index)
443  HPTDCErrorFlags->setBinLabel(error_index, HPTDCErrorFlags::hptdcErrorName(error_index - 1));
444  HPTDCErrorFlags->setBinLabel(16, "MH (%)");
445 
447  ibooker.book1D("leading edge (le and te)", title + " leading edge (recHits); leading edge (ns)", 75, 0, 75);
449  ibooker.book1D("leading edge (le only)", title + " leading edge (DIGIs); leading edge (ns)", 75, 0, 75);
450  trailingEdgeCumulative_te = ibooker.book1D(
451  "trailing edge (te only)", title + " trailing edge (te only) (DIGIs); trailing edge (ns)", 75, 0, 75);
453  ibooker.book1D("time over threshold", title + " time over threshold;time over threshold (ns)", 75, -25, 50);
455  ibooker.book2D("leading trailing correlation",
456  title + " leading trailing correlation;leading edge (ns);trailing edge (ns)",
457  75,
458  0,
459  75,
460  75,
461  0,
462  75);
463 
465  ibooker.book2D("tomography pixel", "tomography with pixel;x + 25 OOT (mm);y (mm)", 75, 0, 75, 8, 0, 8);
466 
467  hit_rate = ibooker.book1D("hit rate", title + "hit rate;rate (Hz)", 40, 0, 20);
468 }
void channelName(std::string &name, NameFlag flag=nFull) const
static std::string hptdcErrorName(const unsigned short id)
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)
std::unordered_map< unsigned int, MonitorElement * > activity_per_bx
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...

Member Data Documentation

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

Definition at line 183 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = 0

Definition at line 192 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = 0

Definition at line 185 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = 0

Definition at line 186 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = 0

Definition at line 186 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::LeadingTrailingCorrelationPerChannel = 0

Definition at line 189 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = 0

Definition at line 190 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = 0

Definition at line 191 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = 0

Definition at line 188 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = 0

Definition at line 187 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 194 of file CTPPSDiamondDQMSource.cc.