CMS 3D CMS Logo

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

Public Member Functions

 SectorPlots ()=default
 
 SectorPlots (DQMStore::IBooker &ibooker, unsigned int id, unsigned int nbinsx, unsigned int nbinsy, unsigned int windowsNum)
 

Public Attributes

MonitorElementactivePlanes = nullptr
 
MonitorElementactivePlanesCount = nullptr
 
MonitorElementactivityPerBX = nullptr
 
MonitorElementeventFlags = nullptr
 
std::bitset<(TotemT2DetId::maxPlane+1) *(TotemT2DetId::maxChannel+1)> hitTilesArray
 
MonitorElementleadingEdge = nullptr
 
MonitorElementtimeOverTreshold = nullptr
 
MonitorElementtrailingEdge = nullptr
 
MonitorElementtriggerEmulator = nullptr
 

Static Public Attributes

static const unsigned int MINIMAL_TRIGGER = 3
 

Detailed Description

Definition at line 66 of file TotemT2DQMSource.cc.

Constructor & Destructor Documentation

◆ SectorPlots() [1/2]

TotemT2DQMSource::SectorPlots::SectorPlots ( )
default

◆ SectorPlots() [2/2]

TotemT2DQMSource::SectorPlots::SectorPlots ( DQMStore::IBooker ibooker,
unsigned int  id,
unsigned int  nbinsx,
unsigned int  nbinsy,
unsigned int  windowsNum 
)

Definition at line 106 of file TotemT2DQMSource.cc.

References activePlanes, activePlanesCount, activityPerBX, CTPPSDetId::armName(), dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2DD(), eventFlags, leadingEdge, totemT2DQMSource_cfi::nbinsx, totemT2DQMSource_cfi::nbinsy, CTPPSDetId::nFull, CTPPSDetId::nPath, EnsembleCalibrationLA_cfg::path, dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, timeOverTreshold, runGCPTkAlMap::title, to_string(), trailingEdge, triggerEmulator, and totemT2DQMSource_cfi::windowsNum.

107  {
109 
111  ibooker.setCurrentFolder(path);
112 
114 
115  activePlanes =
116  ibooker.book1D("active planes", title + " which planes are active (LE+TE digis);plane number", 8, -0.5, 7.5);
117 
118  activePlanesCount = ibooker.book1D("number of active planes",
119  title + " how many planes are active (LE+TE digis);number of active planes",
120  9,
121  -0.5,
122  8.5);
123 
124  activityPerBX =
125  ibooker.book1D("activity per BX CMS", title + " Activity (=LE) per BX;Event.BX", 3600, -1.5, 3598. + 0.5);
126 
127  triggerEmulator = ibooker.book2DD("trigger emulator",
128  title + " trigger emulator (LE+TE digis);arbitrary unit;arbitrary unit",
129  nbinsx,
130  -0.5,
131  double(nbinsx) - 0.5,
132  nbinsy,
133  -0.5,
134  double(nbinsy) - 0.5);
135  leadingEdge = ibooker.book1D(
136  "leading edge", title + " leading edge (all DIGIs); leading edge (ns)", 25 * windowsNum, 0, 25 * windowsNum);
137  trailingEdge = ibooker.book1D(
138  "trailing edge", title + " trailing edge (all DIGIs); trailing edge (ns)", 25 * windowsNum, 0, 25 * windowsNum);
139 
140  timeOverTreshold = ibooker.book1D("time over threshold",
141  title + " time over threshold (digi, =0 if LE or TE=0);time over threshold (ns)",
142  500,
143  -50,
144  200);
145 
146  eventFlags = ibooker.book1D(
147  "event flags", title + " event flags (digi);Event flags (TE/LE valid, TE/LE multiple)", 4, -0.5, 3.5);
148 
149  for (unsigned short flag_index = 1; flag_index <= 4; ++flag_index)
150  eventFlags->setBinLabel(flag_index, "Flag " + std::to_string(flag_index));
151 }
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)
void armName(std::string &name, NameFlag flag=nFull) const
Definition: CTPPSDetId.h:98
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 * book2DD(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:347
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

◆ activePlanes

MonitorElement* TotemT2DQMSource::SectorPlots::activePlanes = nullptr

Definition at line 67 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ activePlanesCount

MonitorElement* TotemT2DQMSource::SectorPlots::activePlanesCount = nullptr

Definition at line 68 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ activityPerBX

MonitorElement* TotemT2DQMSource::SectorPlots::activityPerBX = nullptr

Definition at line 69 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ eventFlags

MonitorElement * TotemT2DQMSource::SectorPlots::eventFlags = nullptr

Definition at line 75 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ hitTilesArray

std::bitset<(TotemT2DetId::maxPlane + 1) * (TotemT2DetId::maxChannel + 1)> TotemT2DQMSource::SectorPlots::hitTilesArray

Definition at line 72 of file TotemT2DQMSource.cc.

◆ leadingEdge

MonitorElement* TotemT2DQMSource::SectorPlots::leadingEdge = nullptr

Definition at line 75 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ MINIMAL_TRIGGER

const unsigned int TotemT2DQMSource::SectorPlots::MINIMAL_TRIGGER = 3
static

Definition at line 73 of file TotemT2DQMSource.cc.

Referenced by TotemT2DQMSource::areChannelsTriggered().

◆ timeOverTreshold

MonitorElement * TotemT2DQMSource::SectorPlots::timeOverTreshold = nullptr

Definition at line 75 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ trailingEdge

MonitorElement * TotemT2DQMSource::SectorPlots::trailingEdge = nullptr

Definition at line 75 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().

◆ triggerEmulator

MonitorElement* TotemT2DQMSource::SectorPlots::triggerEmulator = nullptr

Definition at line 71 of file TotemT2DQMSource.cc.

Referenced by SectorPlots().