CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

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
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)
bool PFJetAnalyzerDQM::Plot1DInBin::isInBin ( float  v,
float  low,
float  high 
)
inline

Definition at line 66 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin(), and isInPtBin().

66 { return v >= low && v < high; }
bool PFJetAnalyzerDQM::Plot1DInBin::isInEtaBin ( float  eta)
inline

Definition at line 70 of file PFJetAnalyzerDQM.cc.

References etabin_high, etabin_low, and isInBin().

Referenced by isInPtEtaBin().

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

Definition at line 68 of file PFJetAnalyzerDQM.cc.

References isInBin(), ptbin_high, and ptbin_low.

Referenced by isInPtEtaBin().

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

Member Data Documentation

const float PFJetAnalyzerDQM::Plot1DInBin::etabin_high

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

const float PFJetAnalyzerDQM::Plot1DInBin::etabin_low

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

const float PFJetAnalyzerDQM::Plot1DInBin::max

Definition at line 35 of file PFJetAnalyzerDQM.cc.

Referenced by book().

const float PFJetAnalyzerDQM::Plot1DInBin::min

Definition at line 35 of file PFJetAnalyzerDQM.cc.

Referenced by book().

const std::string PFJetAnalyzerDQM::Plot1DInBin::name
const uint32_t PFJetAnalyzerDQM::Plot1DInBin::nbins

Definition at line 34 of file PFJetAnalyzerDQM.cc.

Referenced by book().

MonitorElement* PFJetAnalyzerDQM::Plot1DInBin::plot_

Definition at line 37 of file PFJetAnalyzerDQM.cc.

Referenced by book(), and fill().

const float PFJetAnalyzerDQM::Plot1DInBin::ptbin_high

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

const float PFJetAnalyzerDQM::Plot1DInBin::ptbin_low

Definition at line 36 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

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

Definition at line 33 of file PFJetAnalyzerDQM.cc.

Referenced by book().