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

Definition at line 33 of file OffsetAnalyzerDQM.cc.

33 : name(""), title(""), dir(""), nxbins(0), xlow(0), xhigh(0), plot(nullptr) {}

◆ 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

Definition at line 34 of file OffsetAnalyzerDQM.cc.

35  : name(n), title(t), dir(d), nxbins(nx), xlow(x0), xhigh(x1), plot(nullptr) {}

◆ ~Plot1D()

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

Definition at line 47 of file OffsetAnalyzerDQM.cc.

47 {}

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.

37  {
38  booker.setCurrentFolder(dir);
39  plot = booker.book1D(name, title, nxbins, xlow, xhigh);
40  }

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

◆ fill()

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

Definition at line 42 of file OffsetAnalyzerDQM.cc.

42  {
43  assert(plot != nullptr);
44  plot->Fill(value);
45  }

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

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().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
cms::cuda::assert
assert(be >=bs)
OffsetAnalyzerDQM::Plot1D::plot
MonitorElement * plot
Definition: OffsetAnalyzerDQM.cc:31
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
OffsetAnalyzerDQM::Plot1D::xhigh
double xhigh
Definition: OffsetAnalyzerDQM.cc:30
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
OffsetAnalyzerDQM::Plot1D::dir
std::string dir
Definition: OffsetAnalyzerDQM.cc:28
OrderedSet.t
t
Definition: OrderedSet.py:90
OffsetAnalyzerDQM::Plot1D::nxbins
int nxbins
Definition: OffsetAnalyzerDQM.cc:29
value
Definition: value.py:1
OffsetAnalyzerDQM::Plot1D::title
std::string title
Definition: OffsetAnalyzerDQM.cc:28
OffsetAnalyzerDQM::Plot1D::name
std::string name
Definition: OffsetAnalyzerDQM.cc:28
ztail.d
d
Definition: ztail.py:151
OffsetAnalyzerDQM::Plot1D::xlow
double xlow
Definition: OffsetAnalyzerDQM.cc:30