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 29 of file EgammaHLTHGCalIDVarProducer.cc.

Constructor & Destructor Documentation

◆ PCAAssocMap()

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

Definition at line 31 of file EgammaHLTHGCalIDVarProducer.cc.

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

Member Function Documentation

◆ initMap()

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

Definition at line 33 of file EgammaHLTHGCalIDVarProducer.cc.

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

References assocMap_.

◆ insert()

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

Definition at line 37 of file EgammaHLTHGCalIDVarProducer.cc.

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

References assocMap_, and var_.

◆ name()

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

Definition at line 42 of file EgammaHLTHGCalIDVarProducer.cc.

42 { 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 41 of file EgammaHLTHGCalIDVarProducer.cc.

41 { 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 47 of file EgammaHLTHGCalIDVarProducer.cc.

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

◆ name_

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

Definition at line 46 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by name().

◆ var_

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

Definition at line 45 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by insert().

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