CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EgammaHLTHGCalIDVarProducer::PCAAssocMap Class Reference

Public Member Functions

void initMap (const edm::Handle< reco::RecoEcalCandidateCollection > &candHandle)
 
void insert (reco::RecoEcalCandidateRef &ref, const HGCalShowerShapeHelper::ShowerWidths &showerWidths)
 
const std::string & name () const
 
 PCAAssocMap (double HGCalShowerShapeHelper::ShowerWidths::*var, const std::string &name)
 
std::unique_ptr< reco::RecoEcalCandidateIsolationMapreleaseMap ()
 

Private Attributes

std::unique_ptr< reco::RecoEcalCandidateIsolationMapassocMap_
 
std::string name_
 
double HGCalShowerShapeHelper::ShowerWidths::* var_
 

Detailed Description

Definition at line 28 of file EgammaHLTHGCalIDVarProducer.cc.

Constructor & Destructor Documentation

◆ PCAAssocMap()

EgammaHLTHGCalIDVarProducer::PCAAssocMap::PCAAssocMap ( double HGCalShowerShapeHelper::ShowerWidths::*  var,
const std::string &  name 
)
inline

Definition at line 30 of file EgammaHLTHGCalIDVarProducer.cc.

30 : var_(var), name_(name) {}

Member Function Documentation

◆ initMap()

void EgammaHLTHGCalIDVarProducer::PCAAssocMap::initMap ( const edm::Handle< reco::RecoEcalCandidateCollection > &  candHandle)
inline

Definition at line 32 of file EgammaHLTHGCalIDVarProducer.cc.

32  {
33  assocMap_ = std::make_unique<reco::RecoEcalCandidateIsolationMap>(candHandle);
34  }

References assocMap_.

◆ insert()

void EgammaHLTHGCalIDVarProducer::PCAAssocMap::insert ( reco::RecoEcalCandidateRef ref,
const HGCalShowerShapeHelper::ShowerWidths showerWidths 
)
inline

Definition at line 36 of file EgammaHLTHGCalIDVarProducer.cc.

36  {
37  assocMap_->insert(ref, showerWidths.*var_);
38  }

References assocMap_, and var_.

◆ name()

const std::string& EgammaHLTHGCalIDVarProducer::PCAAssocMap::name ( void  ) const
inline

Definition at line 41 of file EgammaHLTHGCalIDVarProducer.cc.

41 { return name_; }

References name_.

Referenced by config.CFG::__str__(), and validation.Sample::digest().

◆ releaseMap()

std::unique_ptr<reco::RecoEcalCandidateIsolationMap> EgammaHLTHGCalIDVarProducer::PCAAssocMap::releaseMap ( )
inline

Definition at line 40 of file EgammaHLTHGCalIDVarProducer.cc.

40 { return std::move(assocMap_); }

References assocMap_, and eostools::move().

Member Data Documentation

◆ assocMap_

std::unique_ptr<reco::RecoEcalCandidateIsolationMap> EgammaHLTHGCalIDVarProducer::PCAAssocMap::assocMap_
private

Definition at line 46 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by initMap(), insert(), and releaseMap().

◆ name_

std::string EgammaHLTHGCalIDVarProducer::PCAAssocMap::name_
private

Definition at line 45 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by name().

◆ var_

double HGCalShowerShapeHelper::ShowerWidths::* EgammaHLTHGCalIDVarProducer::PCAAssocMap::var_
private

Definition at line 44 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by insert().

EgammaHLTHGCalIDVarProducer::PCAAssocMap::name_
std::string name_
Definition: EgammaHLTHGCalIDVarProducer.cc:45
EgammaHLTHGCalIDVarProducer::PCAAssocMap::var_
double HGCalShowerShapeHelper::ShowerWidths::* var_
Definition: EgammaHLTHGCalIDVarProducer.cc:44
EgammaHLTHGCalIDVarProducer::PCAAssocMap::assocMap_
std::unique_ptr< reco::RecoEcalCandidateIsolationMap > assocMap_
Definition: EgammaHLTHGCalIDVarProducer.cc:46
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
EgammaHLTHGCalIDVarProducer::PCAAssocMap::name
const std::string & name() const
Definition: EgammaHLTHGCalIDVarProducer.cc:41
eostools.move
def move(src, dest)
Definition: eostools.py:511