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

Constructor & Destructor Documentation

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( )
inline

Definition at line 197 of file CTPPSDiamondDQMSource.cc.

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

Definition at line 423 of file CTPPSDiamondDQMSource.cc.

References activity_per_bx, DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), CTPPSDiamondDetId::channelName(), HPTDCErrorFlags::getHPTDCErrorName(), MonitorElement::getTH1F(), hit_rate, leadingEdgeCumulative_both, leadingEdgeCumulative_le, LeadingTrailingCorrelationPerChannel, leadingWithoutTrailing, CTPPSDetId::nFull, CTPPSDetId::nPath, callgraph::path, pixelTomography_far, DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, TimeOverThresholdCumulativePerChannel, runGCPTkAlMap::title, and trailingEdgeCumulative_te.

427  ibooker.setCurrentFolder(path);
428 
430 
431  leadingWithoutTrailing = ibooker.book1D("event category", title + " Event Category;;%", 3, 0.5, 3.5);
432  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel(1, "Leading only");
433  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel(2, "Trailing only");
434  leadingWithoutTrailing->getTH1F()->GetXaxis()->SetBinLabel(3, "Full");
435 
436  activity_per_bx[0] =
437  ibooker.book1D("activity per BX 0 25", title + " Activity per BX 0 - 25 ns;Event.BX", 500, -1.5, 498. + 0.5);
438  activity_per_bx[1] =
439  ibooker.book1D("activity per BX 25 50", title + " Activity per BX 25 - 50 ns;Event.BX", 500, -1.5, 498. + 0.5);
440  activity_per_bx[2] =
441  ibooker.book1D("activity per BX 50 75", title + " Activity per BX 50 - 75 ns;Event.BX", 500, -1.5, 498. + 0.5);
442 
443  HPTDCErrorFlags = ibooker.book1D("hptdc_Errors", title + " HPTDC Errors", 16, -0.5, 16.5);
444  for (unsigned short error_index = 1; error_index < 16; ++error_index)
445  HPTDCErrorFlags->getTH1F()->GetXaxis()->SetBinLabel(error_index,
446  HPTDCErrorFlags::getHPTDCErrorName(error_index - 1).c_str());
447  HPTDCErrorFlags->getTH1F()->GetXaxis()->SetBinLabel(16, "MH (%)");
448 
450  ibooker.book1D("leading edge (le and te)", title + " leading edge (recHits); leading edge (ns)", 75, 0, 75);
452  ibooker.book1D("leading edge (le only)", title + " leading edge (DIGIs); leading edge (ns)", 75, 0, 75);
454  "trailing edge (te only)", title + " trailing edge (te only) (DIGIs); trailing edge (ns)", 75, 0, 75);
456  ibooker.book1D("time over threshold", title + " time over threshold;time over threshold (ns)", 75, -25, 50);
458  ibooker.book2D("leading trailing correlation",
459  title + " leading trailing correlation;leading edge (ns);trailing edge (ns)",
460  75,
461  0,
462  75,
463  75,
464  0,
465  75);
466 
468  ibooker.book2D("tomography pixel", "tomography with pixel;x + 25 OOT (mm);y (mm)", 75, 0, 75, 8, 0, 8);
469 
470  hit_rate = ibooker.book1D("hit rate", title + "hit rate;rate (Hz)", 40, 0, 20);
471 }
TH1F * getTH1F() const
void channelName(std::string &name, NameFlag flag=nFull) const
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
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...
static std::string getHPTDCErrorName(const unsigned short id)

Member Data Documentation

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

Definition at line 184 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = 0

Definition at line 193 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = 0

Definition at line 186 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = 0

Definition at line 187 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = 0

Definition at line 187 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::LeadingTrailingCorrelationPerChannel = 0

Definition at line 190 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = 0

Definition at line 191 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = 0

Definition at line 192 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = 0

Definition at line 189 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = 0

Definition at line 188 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 195 of file CTPPSDiamondDQMSource.cc.