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

Member Function Documentation

◆ initMap()

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

Definition at line 33 of file EgammaHLTHGCalIDVarProducer.cc.

References assocMap_.

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

◆ insert()

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

Definition at line 37 of file EgammaHLTHGCalIDVarProducer.cc.

References assocMap_, and var_.

37  {
38  assocMap_->insert(ref, showerWidths.*var_);
39  }
std::unique_ptr< reco::RecoEcalCandidateIsolationMap > assocMap_
double HGCalShowerShapeHelper::ShowerWidths::* var_

◆ name()

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

◆ releaseMap()

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

Definition at line 41 of file EgammaHLTHGCalIDVarProducer.cc.

References assocMap_, and eostools::move().

41 { return std::move(assocMap_); }
std::unique_ptr< reco::RecoEcalCandidateIsolationMap > assocMap_
def move(src, dest)
Definition: eostools.py:511

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().