CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TotemT2DQMSource::ChannelPlots Struct Reference

Public Member Functions

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

Public Attributes

MonitorElementactivityPerBXCh = nullptr
 
MonitorElementeventFlagsCh = nullptr
 
MonitorElementleadingEdgeCh = nullptr
 
MonitorElementtimeOverTresholdCh = nullptr
 
MonitorElementtrailingEdgeCh = nullptr
 

Detailed Description

Definition at line 90 of file TotemT2DQMSource.cc.

Constructor & Destructor Documentation

◆ ChannelPlots() [1/2]

TotemT2DQMSource::ChannelPlots::ChannelPlots ( )
default

◆ ChannelPlots() [2/2]

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

Definition at line 186 of file TotemT2DQMSource.cc.

References dqm::implementation::IBooker::book1D(), TotemT2DetId::channelName(), CTPPSDetId::nFull, CTPPSDetId::nPath, EnsembleCalibrationLA_cfg::path, dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, to_string(), and totemT2DQMSource_cfi::windowsNum.

186  {
190  ibooker.setCurrentFolder(path);
191 
192  leadingEdgeCh = ibooker.book1D(
193  "leading edge", title + " leading edge (all DIGIs); leading edge (ns)", 25 * windowsNum, 0, 25 * windowsNum);
194  trailingEdgeCh = ibooker.book1D(
195  "trailing edge", title + " trailing edge (all DIGIs); trailing edge (ns)", 25 * windowsNum, 0, 25 * windowsNum);
196 
197  timeOverTresholdCh = ibooker.book1D("time over threshold",
198  title + " time over threshold (digi, =0 if LE or TE=0);time over threshold (ns)",
199  500,
200  -50,
201  200);
202 
203  eventFlagsCh = ibooker.book1D(
204  "event flags", title + " event flags (digi);Event flags (TE/LE valid, TE/LE multiple)", 4, -0.5, 3.5);
205 
207  ibooker.book1D("activity per BX", title + " Activity (=LE) per BX;Event.BX", 1000, -1.5, 998. + 0.5);
208 
209  for (unsigned short flag_index = 1; flag_index <= 4; ++flag_index)
210  eventFlagsCh->setBinLabel(flag_index, "Flag " + std::to_string(flag_index));
211 }
Detector ID class for Totem T2 detectors. Bits [19:31] : Base CTPPSDetId class attributes Bits [16:18...
Definition: TotemT2DetId.h:25
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
static std::string to_string(const XMLCh *ch)
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
Definition: TotemT2DetId.cc:58
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

◆ activityPerBXCh

MonitorElement* TotemT2DQMSource::ChannelPlots::activityPerBXCh = nullptr

Definition at line 95 of file TotemT2DQMSource.cc.

◆ eventFlagsCh

MonitorElement* TotemT2DQMSource::ChannelPlots::eventFlagsCh = nullptr

Definition at line 94 of file TotemT2DQMSource.cc.

◆ leadingEdgeCh

MonitorElement* TotemT2DQMSource::ChannelPlots::leadingEdgeCh = nullptr

Definition at line 91 of file TotemT2DQMSource.cc.

◆ timeOverTresholdCh

MonitorElement* TotemT2DQMSource::ChannelPlots::timeOverTresholdCh = nullptr

Definition at line 93 of file TotemT2DQMSource.cc.

◆ trailingEdgeCh

MonitorElement* TotemT2DQMSource::ChannelPlots::trailingEdgeCh = nullptr

Definition at line 92 of file TotemT2DQMSource.cc.