CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PFJetAnalyzerDQM::Plot1DInBin Class Reference

Public Member Functions

void book (DQMStore::IBooker &booker)
 
void fill (float value)
 
bool isInBin (float v, float low, float high)
 
bool isInEtaBin (float eta)
 
bool isInPtBin (float pt)
 
bool isInPtEtaBin (float pt, float eta)
 
 Plot1DInBin (const std::string _name, const std::string _title, const uint32_t _nbins, const float _min, const float _max, float _ptbin_low, float _ptbin_high, float _etabin_low, float _etabin_high)
 

Public Attributes

const float etabin_high
 
const float etabin_low
 
const float max
 
const float min
 
const std::string name
 
const uint32_t nbins
 
MonitorElementplot_
 
const float ptbin_high
 
const float ptbin_low
 
const std::string title
 

Detailed Description

Definition at line 31 of file PFJetAnalyzerDQM.cc.

Constructor & Destructor Documentation

◆ Plot1DInBin()

PFJetAnalyzerDQM::Plot1DInBin::Plot1DInBin ( const std::string  _name,
const std::string  _title,
const uint32_t  _nbins,
const float  _min,
const float  _max,
float  _ptbin_low,
float  _ptbin_high,
float  _etabin_low,
float  _etabin_high 
)
inline

Definition at line 39 of file PFJetAnalyzerDQM.cc.

48  : name(_name),
49  title(_title),
50  nbins(_nbins),
51  min(_min),
52  max(_max),
53  ptbin_low(_ptbin_low),
54  ptbin_high(_ptbin_high),
55  etabin_low(_etabin_low),
56  etabin_high(_etabin_high) {}

Member Function Documentation

◆ book()

void PFJetAnalyzerDQM::Plot1DInBin::book ( DQMStore::IBooker booker)
inline

Definition at line 58 of file PFJetAnalyzerDQM.cc.

References dqm::implementation::IBooker::book1D(), max, min, name, nbins, plot_, and title.

58 { plot_ = booker.book1D(name, title, nbins, min, max); }
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()

void PFJetAnalyzerDQM::Plot1DInBin::fill ( float  value)
inline

Definition at line 60 of file PFJetAnalyzerDQM.cc.

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

60  {
61  assert(plot_ != nullptr);
62  plot_->Fill(value);
63  }
assert(be >=bs)
void Fill(long long x)
Definition: value.py:1

◆ isInBin()

bool PFJetAnalyzerDQM::Plot1DInBin::isInBin ( float  v,
float  low,
float  high 
)
inline

◆ isInEtaBin()

bool PFJetAnalyzerDQM::Plot1DInBin::isInEtaBin ( float  eta)
inline

Definition at line 70 of file PFJetAnalyzerDQM.cc.

References PVValHelper::eta, etabin_high, etabin_low, and isInBin().

Referenced by isInPtEtaBin().

◆ isInPtBin()

bool PFJetAnalyzerDQM::Plot1DInBin::isInPtBin ( float  pt)
inline

◆ isInPtEtaBin()

bool PFJetAnalyzerDQM::Plot1DInBin::isInPtEtaBin ( float  pt,
float  eta 
)
inline

Member Data Documentation

◆ etabin_high

const float PFJetAnalyzerDQM::Plot1DInBin::etabin_high

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

◆ etabin_low

const float PFJetAnalyzerDQM::Plot1DInBin::etabin_low

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

◆ max

const float PFJetAnalyzerDQM::Plot1DInBin::max

Definition at line 35 of file PFJetAnalyzerDQM.cc.

Referenced by book().

◆ min

const float PFJetAnalyzerDQM::Plot1DInBin::min

Definition at line 35 of file PFJetAnalyzerDQM.cc.

Referenced by book().

◆ name

const std::string PFJetAnalyzerDQM::Plot1DInBin::name

◆ nbins

const uint32_t PFJetAnalyzerDQM::Plot1DInBin::nbins

Definition at line 34 of file PFJetAnalyzerDQM.cc.

Referenced by book().

◆ plot_

MonitorElement* PFJetAnalyzerDQM::Plot1DInBin::plot_

Definition at line 37 of file PFJetAnalyzerDQM.cc.

Referenced by book(), and fill().

◆ ptbin_high

const float PFJetAnalyzerDQM::Plot1DInBin::ptbin_high

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

◆ ptbin_low

const float PFJetAnalyzerDQM::Plot1DInBin::ptbin_low

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

◆ title

const std::string PFJetAnalyzerDQM::Plot1DInBin::title

Definition at line 33 of file PFJetAnalyzerDQM.cc.

Referenced by book().