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::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

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
Definition: eostools.py:511

Member Function Documentation

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

Definition at line 105 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin(), and isInPtBin().

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

Definition at line 109 of file PFJetAnalyzerDQM.cc.

References etabin_high, etabin_low, and isInBin().

Referenced by isInPtEtaBin().

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

Member Data Documentation

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

Definition at line 78 of file PFJetAnalyzerDQM.cc.

Referenced by book().

const float PFJetAnalyzerDQM::Plot1DInBinVariable::etabin_high

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

const float PFJetAnalyzerDQM::Plot1DInBinVariable::etabin_low

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInEtaBin().

const std::string PFJetAnalyzerDQM::Plot1DInBinVariable::name
MonitorElement* PFJetAnalyzerDQM::Plot1DInBinVariable::plot_

Definition at line 80 of file PFJetAnalyzerDQM.cc.

Referenced by book(), and fill().

const float PFJetAnalyzerDQM::Plot1DInBinVariable::ptbin_high

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

const float PFJetAnalyzerDQM::Plot1DInBinVariable::ptbin_low

Definition at line 79 of file PFJetAnalyzerDQM.cc.

Referenced by isInPtBin().

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

Definition at line 77 of file PFJetAnalyzerDQM.cc.