CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1tpf::HGC3DClusterEgID::Var Class Reference

Public Member Functions

void declare (TMVA::Reader &r)
 
void fill (const l1t::HGCalMulticluster &c)
 
 Var (const std::string &name, const std::string &expr)
 

Private Attributes

StringObjectFunction< l1t::HGCalMulticlusterexpr_
 
std::string name_
 
float val_
 

Detailed Description

Definition at line 32 of file HGC3DClusterEgID.h.

Constructor & Destructor Documentation

◆ Var()

l1tpf::HGC3DClusterEgID::Var::Var ( const std::string &  name,
const std::string &  expr 
)
inline

Definition at line 34 of file HGC3DClusterEgID.h.

34 : name_(name), expr_(expr) {}

Member Function Documentation

◆ declare()

void l1tpf::HGC3DClusterEgID::Var::declare ( TMVA::Reader &  r)
inline

Definition at line 35 of file HGC3DClusterEgID.h.

35 { r.AddVariable(name_, &val_); }

References name_, alignCSCRings::r, and val_.

◆ fill()

void l1tpf::HGC3DClusterEgID::Var::fill ( const l1t::HGCalMulticluster c)
inline

Definition at line 36 of file HGC3DClusterEgID.h.

36 { val_ = expr_(c); }

References HltBtagPostValidation_cff::c, expr_, and val_.

Member Data Documentation

◆ expr_

StringObjectFunction<l1t::HGCalMulticluster> l1tpf::HGC3DClusterEgID::Var::expr_
private

Definition at line 40 of file HGC3DClusterEgID.h.

Referenced by fill().

◆ name_

std::string l1tpf::HGC3DClusterEgID::Var::name_
private

Definition at line 39 of file HGC3DClusterEgID.h.

Referenced by declare().

◆ val_

float l1tpf::HGC3DClusterEgID::Var::val_
private

Definition at line 41 of file HGC3DClusterEgID.h.

Referenced by declare(), and fill().

l1tpf::HGC3DClusterEgID::Var::val_
float val_
Definition: HGC3DClusterEgID.h:41
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
alignCSCRings.r
r
Definition: alignCSCRings.py:93
jets_cff.expr
expr
Definition: jets_cff.py:449
l1tpf::HGC3DClusterEgID::Var::expr_
StringObjectFunction< l1t::HGCalMulticluster > expr_
Definition: HGC3DClusterEgID.h:40
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
l1tpf::HGC3DClusterEgID::Var::name_
std::string name_
Definition: HGC3DClusterEgID.h:39