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) {}
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ book()

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

Definition at line 97 of file PFJetAnalyzerDQM.cc.

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

97 { plot_ = booker.book1D(name.c_str(), base_hist.get()); }
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::Plot1DInBinVariable::fill ( float  value)
inline

Definition at line 99 of file PFJetAnalyzerDQM.cc.

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

99  {
100  assert(plot_ != nullptr);
101  plot_->Fill(value);
102  }
assert(be >=bs)
void Fill(long long x)
Definition: value.py:1

◆ isInBin()

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

◆ isInEtaBin()

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

◆ isInPtBin()

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

◆ isInPtEtaBin()

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

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.