CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 194 of file CTPPSDiamondDQMSource.cc.

Constructor & Destructor Documentation

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

Definition at line 530 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, fed_dqm_sourceclient-live_cfg::path, pixelTomography_far, recHitTime, dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, TimeOverThresholdCumulativePerChannel, runGCPTkAlMap::title, cond::impl::to_string(), trailingEdgeCumulative_te, and svgfig::window().

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

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

Definition at line 195 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::CompleteCounter

Definition at line 207 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::hit_rate = nullptr

Definition at line 204 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::HitCounter

Definition at line 207 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::HPTDCErrorFlags = nullptr

Definition at line 197 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_both = nullptr

Definition at line 198 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::leadingEdgeCumulative_le = nullptr

Definition at line 198 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::LeadingOnlyCounter

Definition at line 207 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::leadingWithoutTrailing = nullptr

Definition at line 202 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::MHCounter

Definition at line 207 of file CTPPSDiamondDQMSource.cc.

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::pixelTomography_far = nullptr

Definition at line 203 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::recHitTime = nullptr

Definition at line 205 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement* CTPPSDiamondDQMSource::ChannelPlots::TimeOverThresholdCumulativePerChannel = nullptr

Definition at line 200 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

MonitorElement * CTPPSDiamondDQMSource::ChannelPlots::trailingEdgeCumulative_te = nullptr

Definition at line 199 of file CTPPSDiamondDQMSource.cc.

Referenced by ChannelPlots().

unsigned int CTPPSDiamondDQMSource::ChannelPlots::TrailingOnlyCounter

Definition at line 207 of file CTPPSDiamondDQMSource.cc.