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 190 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 525 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.

529  ibooker.setCurrentFolder(path);
530 
532 
533  leadingWithoutTrailing = ibooker.book1D("event category", title + " Event Category;;%", 3, 0.5, 3.5);
534  leadingWithoutTrailing->setBinLabel(1, "Leading only");
535  leadingWithoutTrailing->setBinLabel(2, "Trailing only");
537 
538  for (unsigned int i = 0; i < windowsNum; i++) {
539  std::string window = std::to_string(i * 25) + "-" + std::to_string((i + 1) * 25);
540  activity_per_bx[i] = ibooker.book1D(
541  "activity per BX " + window, title + " Activity per BX " + window + " ns;Event.BX", 3600, -1.5, 3598. + 0.5);
542  }
543 
544  HPTDCErrorFlags = ibooker.book1D("hptdc_Errors", title + " HPTDC Errors", 16, -0.5, 16.5);
545  for (unsigned short error_index = 1; error_index < 16; ++error_index)
546  HPTDCErrorFlags->setBinLabel(error_index, HPTDCErrorFlags::hptdcErrorName(error_index - 1));
547  HPTDCErrorFlags->setBinLabel(16, "MH (%)");
548 
549  leadingEdgeCumulative_both = ibooker.book1D("leading edge (le and te)",
550  title + " leading edge (recHits); leading edge (ns)",
551  25 * windowsNum,
552  0,
553  25 * windowsNum);
555  "leading edge (le only)", title + " leading edge (DIGIs); leading edge (ns)", 25 * windowsNum, 0, 25 * windowsNum);
556  trailingEdgeCumulative_te = ibooker.book1D("trailing edge (te only)",
557  title + " trailing edge (te only) (DIGIs); trailing edge (ns)",
558  25 * windowsNum,
559  0,
560  25 * windowsNum);
562  ibooker.book1D("time over threshold", title + " time over threshold;time over threshold (ns)", 75, -25, 50);
563  // LeadingTrailingCorrelationPerChannel =
564  // ibooker.book2D("leading trailing correlation",
565  // title + " leading trailing correlation;leading edge (ns);trailing edge (ns)",
566  // 75,
567  // 0,
568  // 75,
569  // 75,
570  // 0,
571  // 75);
572 
573  pixelTomography_far = ibooker.book2D(
574  "tomography pixel", "tomography with pixel;x + 25 OOT (mm);y (mm)", 25 * windowsNum, 0, 25 * windowsNum, 8, 0, 8);
575 
576  hit_rate = ibooker.book1D("hit rate", title + "hit rate;rate (Hz)", 40, 0, 20);
577 
578  recHitTime = ibooker.book1D("recHit Time", title + " recHit Time; t (ns)", 500, -25, 25);
579 }
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 191 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ CompleteCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

◆ hit_rate

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = nullptr

Definition at line 200 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ HitCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

◆ HPTDCErrorFlags

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = nullptr

Definition at line 193 of file CTPPSDiamondDQMSource.cc.

◆ leadingEdgeCumulative_both

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = nullptr

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ leadingEdgeCumulative_le

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = nullptr

Definition at line 194 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ LeadingOnlyCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

◆ leadingWithoutTrailing

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = nullptr

Definition at line 198 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ MHCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

◆ pixelTomography_far

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = nullptr

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ recHitTime

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::recHitTime = nullptr

Definition at line 201 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ TimeOverThresholdCumulativePerChannel

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = nullptr

Definition at line 196 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ trailingEdgeCumulative_te

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = nullptr

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ TrailingOnlyCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 203 of file CTPPSDiamondDQMSource.cc.