CMS 3D CMS Logo

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

Public Member Functions

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

Public Attributes

MonitorElementdigisMultiplicity = nullptr
 
MonitorElementeventFlagsPl = nullptr
 
MonitorElementrechitMultiplicity = nullptr
 

Detailed Description

Definition at line 82 of file TotemT2DQMSource.cc.

Constructor & Destructor Documentation

◆ PlanePlots() [1/2]

TotemT2DQMSource::PlanePlots::PlanePlots ( )
default

◆ PlanePlots() [2/2]

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

Definition at line 153 of file TotemT2DQMSource.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2DD(), totemT2DQMSource_cfi::nbinsx, totemT2DQMSource_cfi::nbinsy, CTPPSDetId::nFull, CTPPSDetId::nPath, castor_dqm_sourceclient_file_cfg::path, TotemT2DetId::planeName(), dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, and to_string().

156  {
160  ibooker.setCurrentFolder(path);
161 
162  digisMultiplicity = ibooker.book2DD("digis multiplicity",
163  title + " digis multiplicity (=LE);arbitrary unit;arbitrary unit",
164  nbinsx,
165  -0.5,
166  double(nbinsx) - 0.5,
167  nbinsy,
168  -0.5,
169  double(nbinsy) - 0.5);
170  rechitMultiplicity = ibooker.book2DD("rechits multiplicity",
171  title + " rechits multiplicity;x;y",
172  nbinsx,
173  -0.5,
174  double(nbinsx) - 0.5,
175  nbinsy,
176  -0.5,
177  double(nbinsy) - 0.5);
178 
179  eventFlagsPl = ibooker.book1D(
180  "event flags", title + " event flags (digi);Event flags (TE/LE valid, TE/LE multiple)", 4, -0.5, 3.5);
181 
182  for (unsigned short flag_index = 1; flag_index <= 4; ++flag_index)
183  eventFlagsPl->setBinLabel(flag_index, "Flag " + std::to_string(flag_index));
184 }
MonitorElement * digisMultiplicity
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)
MonitorElement * rechitMultiplicity
void planeName(std::string &name, NameFlag flag=nFull) const
Definition: TotemT2DetId.cc:39
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

◆ digisMultiplicity

MonitorElement* TotemT2DQMSource::PlanePlots::digisMultiplicity = nullptr

Definition at line 83 of file TotemT2DQMSource.cc.

◆ eventFlagsPl

MonitorElement* TotemT2DQMSource::PlanePlots::eventFlagsPl = nullptr

Definition at line 85 of file TotemT2DQMSource.cc.

◆ rechitMultiplicity

MonitorElement* TotemT2DQMSource::PlanePlots::rechitMultiplicity = nullptr

Definition at line 84 of file TotemT2DQMSource.cc.