CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HLTGenValHist1D Class Reference

#include <HLTGenValHist.h>

Inheritance diagram for HLTGenValHist1D:
HLTGenValHist

Public Member Functions

void fill (const HLTGenValObject &obj) override
 
 HLTGenValHist1D (TH1 *hist, std::string varName, std::function< float(const HLTGenValObject &)> func, VarRangeCutColl< HLTGenValObject > rangeCuts)
 
- Public Member Functions inherited from HLTGenValHist
 HLTGenValHist ()=default
 
virtual ~HLTGenValHist ()=default
 

Private Attributes

TH1 * hist_
 
VarRangeCutColl< HLTGenValObjectrangeCuts_
 
std::function< float(const HLTGenValObject &)> var_
 
std::string varName_
 

Detailed Description

Definition at line 40 of file HLTGenValHist.h.

Constructor & Destructor Documentation

◆ HLTGenValHist1D()

HLTGenValHist1D::HLTGenValHist1D ( TH1 *  hist,
std::string  varName,
std::function< float(const HLTGenValObject &)>  func,
VarRangeCutColl< HLTGenValObject rangeCuts 
)
inline

Definition at line 42 of file HLTGenValHist.h.

std::function< float(const HLTGenValObject &)> var_
Definition: HLTGenValHist.h:54
std::string varName_
Definition: HLTGenValHist.h:55
VarRangeCutColl< HLTGenValObject > rangeCuts_
Definition: HLTGenValHist.h:56
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ fill()

void HLTGenValHist1D::fill ( const HLTGenValObject obj)
inlineoverridevirtual

Implements HLTGenValHist.

Definition at line 48 of file HLTGenValHist.h.

References hist_, getGTfromDQMFile::obj, rangeCuts_, and var_.

48  {
49  if (rangeCuts_(obj))
50  hist_->Fill(var_(obj));
51  }
std::function< float(const HLTGenValObject &)> var_
Definition: HLTGenValHist.h:54
VarRangeCutColl< HLTGenValObject > rangeCuts_
Definition: HLTGenValHist.h:56

Member Data Documentation

◆ hist_

TH1* HLTGenValHist1D::hist_
private

Definition at line 57 of file HLTGenValHist.h.

Referenced by fill().

◆ rangeCuts_

VarRangeCutColl<HLTGenValObject> HLTGenValHist1D::rangeCuts_
private

Definition at line 56 of file HLTGenValHist.h.

Referenced by fill().

◆ var_

std::function<float(const HLTGenValObject&)> HLTGenValHist1D::var_
private

Definition at line 54 of file HLTGenValHist.h.

Referenced by fill().

◆ varName_

std::string HLTGenValHist1D::varName_
private

Definition at line 55 of file HLTGenValHist.h.