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.

58 { plot_ = booker.book1D(name, title, nbins, min, max); }

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

◆ fill()

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

Definition at line 60 of file PFJetAnalyzerDQM.cc.

60  {
61  assert(plot_ != nullptr);
62  plot_->Fill(value);
63  }

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

◆ isInBin()

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

Definition at line 66 of file PFJetAnalyzerDQM.cc.

66 { return v >= low && v < high; }

References LaserClient_cfi::high, LaserClient_cfi::low, and findQualityFiles::v.

Referenced by isInEtaBin(), and isInPtBin().

◆ isInEtaBin()

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

Definition at line 70 of file PFJetAnalyzerDQM.cc.

70 { return isInBin(eta, etabin_low, etabin_high); }

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

Referenced by isInPtEtaBin().

◆ isInPtBin()

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

Definition at line 68 of file PFJetAnalyzerDQM.cc.

68 { return isInBin(pt, ptbin_low, ptbin_high); }

References isInBin(), DiDispStaMuonMonitor_cfi::pt, ptbin_high, and ptbin_low.

Referenced by isInPtEtaBin().

◆ isInPtEtaBin()

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

Definition at line 72 of file PFJetAnalyzerDQM.cc.

72 { return isInPtBin(pt) && isInEtaBin(eta); }

References PVValHelper::eta, isInEtaBin(), isInPtBin(), and DiDispStaMuonMonitor_cfi::pt.

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

DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
PFJetAnalyzerDQM::Plot1DInBin::min
const float min
Definition: PFJetAnalyzerDQM.cc:35
PFJetAnalyzerDQM::Plot1DInBin::etabin_high
const float etabin_high
Definition: PFJetAnalyzerDQM.cc:36
cms::cuda::assert
assert(be >=bs)
PFJetAnalyzerDQM::Plot1DInBin::nbins
const uint32_t nbins
Definition: PFJetAnalyzerDQM.cc:34
findQualityFiles.v
v
Definition: findQualityFiles.py:179
PFJetAnalyzerDQM::Plot1DInBin::plot_
MonitorElement * plot_
Definition: PFJetAnalyzerDQM.cc:37
PVValHelper::eta
Definition: PVValidationHelpers.h:69
PFJetAnalyzerDQM::Plot1DInBin::ptbin_high
const float ptbin_high
Definition: PFJetAnalyzerDQM.cc:36
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
PFJetAnalyzerDQM::Plot1DInBin::max
const float max
Definition: PFJetAnalyzerDQM.cc:35
PFJetAnalyzerDQM::Plot1DInBin::isInEtaBin
bool isInEtaBin(float eta)
Definition: PFJetAnalyzerDQM.cc:70
PFJetAnalyzerDQM::Plot1DInBin::etabin_low
const float etabin_low
Definition: PFJetAnalyzerDQM.cc:36
PFJetAnalyzerDQM::Plot1DInBin::title
const std::string title
Definition: PFJetAnalyzerDQM.cc:33
value
Definition: value.py:1
PFJetAnalyzerDQM::Plot1DInBin::isInBin
bool isInBin(float v, float low, float high)
Definition: PFJetAnalyzerDQM.cc:66
PFJetAnalyzerDQM::Plot1DInBin::name
const std::string name
Definition: PFJetAnalyzerDQM.cc:33
LaserClient_cfi.high
high
Definition: LaserClient_cfi.py:50
PFJetAnalyzerDQM::Plot1DInBin::ptbin_low
const float ptbin_low
Definition: PFJetAnalyzerDQM.cc:36
PFJetAnalyzerDQM::Plot1DInBin::isInPtBin
bool isInPtBin(float pt)
Definition: PFJetAnalyzerDQM.cc:68
LaserClient_cfi.low
low
Definition: LaserClient_cfi.py:52
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98