CMS 3D CMS Logo

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

#include <HLTGenValHist.h>

Inheritance diagram for HLTGenValHist2D:
HLTGenValHist

Public Member Functions

void fill (const HLTGenValObject &obj) override
 
 HLTGenValHist2D (TH2 *hist, std::string varNameX, std::string varNameY, std::function< float(const HLTGenValObject &)> funcX, std::function< float(const HLTGenValObject &)> funcY)
 
- Public Member Functions inherited from HLTGenValHist
 HLTGenValHist ()=default
 
virtual ~HLTGenValHist ()=default
 

Private Attributes

TH2 * hist_
 
std::string varNameX_
 
std::string varNameY_
 
std::function< float(const HLTGenValObject &)> varX_
 
std::function< float(const HLTGenValObject &)> varY_
 

Detailed Description

Definition at line 64 of file HLTGenValHist.h.

Constructor & Destructor Documentation

◆ HLTGenValHist2D()

HLTGenValHist2D::HLTGenValHist2D ( TH2 *  hist,
std::string  varNameX,
std::string  varNameY,
std::function< float(const HLTGenValObject &)>  funcX,
std::function< float(const HLTGenValObject &)>  funcY 
)
inline

Definition at line 66 of file HLTGenValHist.h.

71  : varX_(std::move(funcX)),
72  varY_(std::move(funcY)),
73  varNameX_(std::move(varNameX)),
74  varNameY_(std::move(varNameY)),
75  hist_(hist) {}
std::string varNameX_
Definition: HLTGenValHist.h:82
std::function< float(const HLTGenValObject &)> varY_
Definition: HLTGenValHist.h:81
std::function< float(const HLTGenValObject &)> varX_
Definition: HLTGenValHist.h:80
def move(src, dest)
Definition: eostools.py:511
std::string varNameY_
Definition: HLTGenValHist.h:83

Member Function Documentation

◆ fill()

void HLTGenValHist2D::fill ( const HLTGenValObject obj)
inlineoverridevirtual

Implements HLTGenValHist.

Definition at line 77 of file HLTGenValHist.h.

References hist_, getGTfromDQMFile::obj, varX_, and varY_.

77 { hist_->Fill(varX_(obj), varY_(obj)); }
std::function< float(const HLTGenValObject &)> varY_
Definition: HLTGenValHist.h:81
std::function< float(const HLTGenValObject &)> varX_
Definition: HLTGenValHist.h:80

Member Data Documentation

◆ hist_

TH2* HLTGenValHist2D::hist_
private

Definition at line 84 of file HLTGenValHist.h.

Referenced by fill().

◆ varNameX_

std::string HLTGenValHist2D::varNameX_
private

Definition at line 82 of file HLTGenValHist.h.

◆ varNameY_

std::string HLTGenValHist2D::varNameY_
private

Definition at line 83 of file HLTGenValHist.h.

◆ varX_

std::function<float(const HLTGenValObject&)> HLTGenValHist2D::varX_
private

Definition at line 80 of file HLTGenValHist.h.

Referenced by fill().

◆ varY_

std::function<float(const HLTGenValObject&)> HLTGenValHist2D::varY_
private

Definition at line 81 of file HLTGenValHist.h.

Referenced by fill().