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 ()=default
 
 ChannelPlots (DQMStore::IBooker &ibooker, unsigned int id, unsigned int windowsNum)
 

Public Attributes

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

Detailed Description

plots related to one Diamond channel

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

◆ ChannelPlots() [1/2]

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( )
default

◆ ChannelPlots() [2/2]

CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots ( DQMStore::IBooker ibooker,
unsigned int  id,
unsigned int  windowsNum 
)

Definition at line 548 of file CTPPSDiamondDQMSource.cc.

References activity_per_bx, dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), CTPPSDiamondDetId::channelName(), hit_rate, HPTDCErrorFlags::hptdcErrorName(), mps_fire::i, leadingEdgeCumulative_both, leadingEdgeCumulative_le, leadingWithoutTrailing, CTPPSDetId::nFull, CTPPSDetId::nPath, castor_dqm_sourceclient_file_cfg::path, pixelTomography_far, recHitTime, dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, TimeOverThresholdCumulativePerChannel, runGCPTkAlMap::title, to_string(), trailingEdgeCumulative_te, svgfig::window(), and totemT2DQMSource_cfi::windowsNum.

552  ibooker.setCurrentFolder(path);
553 
555 
556  leadingWithoutTrailing = ibooker.book1D("event category", title + " Event Category;;%", 3, 0.5, 3.5);
557  leadingWithoutTrailing->setBinLabel(1, "Leading only");
558  leadingWithoutTrailing->setBinLabel(2, "Trailing only");
560 
561  for (unsigned int i = 0; i < windowsNum; i++) {
562  std::string window = std::to_string(i * 25) + "-" + std::to_string((i + 1) * 25);
563  activity_per_bx[i] = ibooker.book1D(
564  "activity per BX " + window, title + " Activity per BX " + window + " ns;Event.BX", 3600, -1.5, 3598. + 0.5);
565  }
566 
567  HPTDCErrorFlags = ibooker.book1D("hptdc_Errors", title + " HPTDC Errors", 16, -0.5, 16.5);
568  for (unsigned short error_index = 1; error_index < 16; ++error_index)
569  HPTDCErrorFlags->setBinLabel(error_index, HPTDCErrorFlags::hptdcErrorName(error_index - 1));
570  HPTDCErrorFlags->setBinLabel(16, "MH (%)");
571 
572  leadingEdgeCumulative_both = ibooker.book1D("leading edge (le and te)",
573  title + " leading edge (le and te) (recHits); leading edge (ns)",
574  25 * windowsNum,
575  0,
576  25 * windowsNum);
577  leadingEdgeCumulative_le = ibooker.book1D("leading edge (le only)",
578  title + " leading edge (le only) (DIGIs); leading edge (ns)",
579  25 * windowsNum,
580  0,
581  25 * windowsNum);
582  trailingEdgeCumulative_te = ibooker.book1D("trailing edge (te only)",
583  title + " trailing edge (te only) (DIGIs); trailing edge (ns)",
584  25 * windowsNum,
585  0,
586  25 * windowsNum);
588  ibooker.book1D("time over threshold", title + " time over threshold;time over threshold (ns)", 75, -25, 50);
589  // LeadingTrailingCorrelationPerChannel =
590  // ibooker.book2D("leading trailing correlation",
591  // title + " leading trailing correlation;leading edge (ns);trailing edge (ns)",
592  // 75,
593  // 0,
594  // 75,
595  // 75,
596  // 0,
597  // 75);
598 
599  pixelTomography_far = ibooker.book2D("tomography pixel",
600  "tomography with pixel;x + 25 OOT (mm);y (mm)",
601  25 * windowsNum,
602  0,
603  25 * windowsNum,
604  16,
605  -8,
606  8);
607 
608  hit_rate = ibooker.book1D("hit rate", title + "hit rate;rate (Hz)", 40, 0, 20);
609 
610  recHitTime = ibooker.book1D("recHit Time", title + " recHit Time; t (ns)", 500, -25, 25);
611 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
static std::string to_string(const XMLCh *ch)
static std::string hptdcErrorName(const unsigned short id)
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
Definition: svgfig.py:643
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)
void channelName(std::string &name, NameFlag flag=nFull) const
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:212
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...
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

Member Data Documentation

◆ activity_per_bx

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

Definition at line 196 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ CompleteCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 208 of file CTPPSDiamondDQMSource.cc.

◆ hit_rate

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = nullptr

Definition at line 205 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ HitCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 208 of file CTPPSDiamondDQMSource.cc.

◆ HPTDCErrorFlags

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = nullptr

Definition at line 198 of file CTPPSDiamondDQMSource.cc.

◆ leadingEdgeCumulative_both

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = nullptr

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ leadingEdgeCumulative_le

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = nullptr

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ LeadingOnlyCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 208 of file CTPPSDiamondDQMSource.cc.

◆ leadingWithoutTrailing

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = nullptr

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ MHCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 208 of file CTPPSDiamondDQMSource.cc.

◆ pixelTomography_far

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = nullptr

Definition at line 204 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ recHitTime

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::recHitTime = nullptr

Definition at line 206 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ TimeOverThresholdCumulativePerChannel

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = nullptr

Definition at line 201 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ trailingEdgeCumulative_te

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = nullptr

Definition at line 200 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ TrailingOnlyCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 208 of file CTPPSDiamondDQMSource.cc.