CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PFJetAnalyzerDQM::Plot1DInBinVariable 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)
 
 Plot1DInBinVariable (const std::string _name, const std::string _title, std::unique_ptr< TH1F > _base_hist, float _ptbin_low, float _ptbin_high, float _etabin_low, float _etabin_high)
 

Public Attributes

std::unique_ptr< TH1F > base_hist
 
const float etabin_high
 
const float etabin_low
 
const std::string name
 
MonitorElementplot_
 
const float ptbin_high
 
const float ptbin_low
 
const std::string title
 

Detailed Description

Definition at line 75 of file PFJetAnalyzerDQM.cc.

Constructor & Destructor Documentation

◆ Plot1DInBinVariable()

PFJetAnalyzerDQM::Plot1DInBinVariable::Plot1DInBinVariable ( const std::string  _name,
const std::string  _title,
std::unique_ptr< TH1F >  _base_hist,
float  _ptbin_low,
float  _ptbin_high,
float  _etabin_low,
float  _etabin_high 
)
inline

Definition at line 82 of file PFJetAnalyzerDQM.cc.

89  : name(_name),
90  title(_title),
91  base_hist(std::move(_base_hist)),
92  ptbin_low(_ptbin_low),
93  ptbin_high(_ptbin_high),
94  etabin_low(_etabin_low),
95  etabin_high(_etabin_high) {}

Member Function Documentation

◆ book()

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

Definition at line 97 of file PFJetAnalyzerDQM.cc.

97 { plot_ = booker.book1D(name.c_str(), base_hist.get()); }

References base_hist, dqm::implementation::IBooker::book1D(), name, and plot_.

◆ fill()

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

Definition at line 99 of file PFJetAnalyzerDQM.cc.

99  {
100  assert(plot_ != nullptr);
101  plot_->Fill(value);
102  }

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

◆ isInBin()

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

Definition at line 105 of file PFJetAnalyzerDQM.cc.

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

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

Referenced by isInEtaBin(), and isInPtBin().

◆ isInEtaBin()

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

Definition at line 109 of file PFJetAnalyzerDQM.cc.

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

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

Referenced by isInPtEtaBin().

◆ isInPtBin()

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

Definition at line 107 of file PFJetAnalyzerDQM.cc.

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

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

Referenced by isInPtEtaBin().

◆ isInPtEtaBin()

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

Definition at line 111 of file PFJetAnalyzerDQM.cc.

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

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

Member Data Documentation

◆ base_hist

std::unique_ptr<TH1F> PFJetAnalyzerDQM::Plot1DInBinVariable::base_hist

Definition at line 78 of file PFJetAnalyzerDQM.cc.

Referenced by book().

◆ etabin_high

const float PFJetAnalyzerDQM::Plot1DInBinVariable::etabin_high

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

◆ etabin_low

const float PFJetAnalyzerDQM::Plot1DInBinVariable::etabin_low

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

◆ name

const std::string PFJetAnalyzerDQM::Plot1DInBinVariable::name

◆ plot_

MonitorElement* PFJetAnalyzerDQM::Plot1DInBinVariable::plot_

Definition at line 80 of file PFJetAnalyzerDQM.cc.

Referenced by book(), and fill().

◆ ptbin_high

const float PFJetAnalyzerDQM::Plot1DInBinVariable::ptbin_high

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

◆ ptbin_low

const float PFJetAnalyzerDQM::Plot1DInBinVariable::ptbin_low

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

◆ title

const std::string PFJetAnalyzerDQM::Plot1DInBinVariable::title

Definition at line 77 of file PFJetAnalyzerDQM.cc.

PFJetAnalyzerDQM::Plot1DInBinVariable::isInBin
bool isInBin(float v, float low, float high)
Definition: PFJetAnalyzerDQM.cc:105
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
PFJetAnalyzerDQM::Plot1DInBinVariable::isInPtBin
bool isInPtBin(float pt)
Definition: PFJetAnalyzerDQM.cc:107
cms::cuda::assert
assert(be >=bs)
findQualityFiles.v
v
Definition: findQualityFiles.py:179
PVValHelper::eta
Definition: PVValidationHelpers.h:69
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
PFJetAnalyzerDQM::Plot1DInBinVariable::etabin_low
const float etabin_low
Definition: PFJetAnalyzerDQM.cc:79
PFJetAnalyzerDQM::Plot1DInBinVariable::name
const std::string name
Definition: PFJetAnalyzerDQM.cc:77
PFJetAnalyzerDQM::Plot1DInBinVariable::title
const std::string title
Definition: PFJetAnalyzerDQM.cc:77
value
Definition: value.py:1
PFJetAnalyzerDQM::Plot1DInBinVariable::base_hist
std::unique_ptr< TH1F > base_hist
Definition: PFJetAnalyzerDQM.cc:78
PFJetAnalyzerDQM::Plot1DInBinVariable::plot_
MonitorElement * plot_
Definition: PFJetAnalyzerDQM.cc:80
LaserClient_cfi.high
high
Definition: LaserClient_cfi.py:50
eostools.move
def move(src, dest)
Definition: eostools.py:511
PFJetAnalyzerDQM::Plot1DInBinVariable::ptbin_low
const float ptbin_low
Definition: PFJetAnalyzerDQM.cc:79
PFJetAnalyzerDQM::Plot1DInBinVariable::isInEtaBin
bool isInEtaBin(float eta)
Definition: PFJetAnalyzerDQM.cc:109
PFJetAnalyzerDQM::Plot1DInBinVariable::ptbin_high
const float ptbin_high
Definition: PFJetAnalyzerDQM.cc:79
LaserClient_cfi.low
low
Definition: LaserClient_cfi.py:52
PFJetAnalyzerDQM::Plot1DInBinVariable::etabin_high
const float etabin_high
Definition: PFJetAnalyzerDQM.cc:79