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 193 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 529 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.

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

Referenced by ChannelPlots().

◆ CompleteCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 206 of file CTPPSDiamondDQMSource.cc.

◆ hit_rate

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = nullptr

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ HitCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 206 of file CTPPSDiamondDQMSource.cc.

◆ HPTDCErrorFlags

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = nullptr

Definition at line 196 of file CTPPSDiamondDQMSource.cc.

◆ leadingEdgeCumulative_both

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = nullptr

Definition at line 197 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ leadingEdgeCumulative_le

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = nullptr

Definition at line 197 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ LeadingOnlyCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 206 of file CTPPSDiamondDQMSource.cc.

◆ leadingWithoutTrailing

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = nullptr

Definition at line 201 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ MHCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 206 of file CTPPSDiamondDQMSource.cc.

◆ pixelTomography_far

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = nullptr

Definition at line 202 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ recHitTime

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::recHitTime = nullptr

Definition at line 204 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ TimeOverThresholdCumulativePerChannel

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = nullptr

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ trailingEdgeCumulative_te

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = nullptr

Definition at line 198 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

◆ TrailingOnlyCounter

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 206 of file CTPPSDiamondDQMSource.cc.