CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
OffsetAnalyzerDQM::Plot1D Struct Reference
Inheritance diagram for OffsetAnalyzerDQM::Plot1D:
OffsetAnalyzerDQM::PlotProfile

Public Member Functions

virtual void book (DQMStore::IBooker &booker)
 
virtual void fill (float value)
 
 Plot1D ()
 
 Plot1D (const std::string &n, const std::string &t, const std::string &d, int nx, double x0, double x1)
 
virtual ~Plot1D ()
 

Public Attributes

std::string dir
 
std::string name
 
int nxbins
 
MonitorElementplot
 
std::string title
 
double xhigh
 
double xlow
 

Detailed Description

Definition at line 27 of file OffsetAnalyzerDQM.cc.

Constructor & Destructor Documentation

◆ Plot1D() [1/2]

OffsetAnalyzerDQM::Plot1D::Plot1D ( )
inline

◆ Plot1D() [2/2]

OffsetAnalyzerDQM::Plot1D::Plot1D ( const std::string &  n,
const std::string &  t,
const std::string &  d,
int  nx,
double  x0,
double  x1 
)
inline

◆ ~Plot1D()

virtual OffsetAnalyzerDQM::Plot1D::~Plot1D ( )
inlinevirtual

Definition at line 48 of file OffsetAnalyzerDQM.cc.

48 {}

Member Function Documentation

◆ book()

virtual void OffsetAnalyzerDQM::Plot1D::book ( DQMStore::IBooker booker)
inlinevirtual

Reimplemented in OffsetAnalyzerDQM::PlotProfile.

Definition at line 37 of file OffsetAnalyzerDQM.cc.

References dqm::implementation::IBooker::book1D(), dir, name, nxbins, plot, dqm::implementation::NavigatorBase::setCurrentFolder(), dqm::impl::MonitorElement::setStatOverflows(), title, xhigh, and xlow.

37  {
38  booker.setCurrentFolder(dir);
39  plot = booker.book1D(name, title, nxbins, xlow, xhigh);
40  plot->setStatOverflows(kTRUE);
41  }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
virtual DQM_DEPRECATED void setStatOverflows(bool value)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ fill()

virtual void OffsetAnalyzerDQM::Plot1D::fill ( float  value)
inlinevirtual

Definition at line 43 of file OffsetAnalyzerDQM.cc.

References cms::cuda::assert(), dqm::impl::MonitorElement::Fill(), and plot.

43  {
44  assert(plot != nullptr);
45  plot->Fill(value);
46  }
assert(be >=bs)
void Fill(long long x)
Definition: value.py:1

Member Data Documentation

◆ dir

std::string OffsetAnalyzerDQM::Plot1D::dir

Definition at line 28 of file OffsetAnalyzerDQM.cc.

Referenced by book(), and OffsetAnalyzerDQM::PlotProfile::book().

◆ name

std::string OffsetAnalyzerDQM::Plot1D::name

◆ nxbins

int OffsetAnalyzerDQM::Plot1D::nxbins

Definition at line 29 of file OffsetAnalyzerDQM.cc.

Referenced by book().

◆ plot

MonitorElement* OffsetAnalyzerDQM::Plot1D::plot

◆ title

std::string OffsetAnalyzerDQM::Plot1D::title

Definition at line 28 of file OffsetAnalyzerDQM.cc.

Referenced by book(), and OffsetAnalyzerDQM::PlotProfile::book().

◆ xhigh

double OffsetAnalyzerDQM::Plot1D::xhigh

Definition at line 30 of file OffsetAnalyzerDQM.cc.

Referenced by book().

◆ xlow

double OffsetAnalyzerDQM::Plot1D::xlow

Definition at line 30 of file OffsetAnalyzerDQM.cc.

Referenced by book().