CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::RecoEcalCandidateIsolationMap
releaseMap ()
 

Private Attributes

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

Detailed Description

Definition at line 29 of file EgammaHLTHGCalIDVarProducer.cc.

Constructor & Destructor Documentation

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

Member Function Documentation

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_
void EgammaHLTHGCalIDVarProducer::PCAAssocMap::insert ( reco::RecoEcalCandidateRef ref,
const HGCalShowerShapeHelper::ShowerWidths showerWidths 
)
inline

Definition at line 37 of file EgammaHLTHGCalIDVarProducer.cc.

References assocMap_, and var_.

Referenced by BeautifulSoup.PageElement::_invert(), and SequenceTypes.Schedule::_replaceIfHeldDirectly().

37  {
38  assocMap_->insert(ref, showerWidths.*var_);
39  }
std::unique_ptr< reco::RecoEcalCandidateIsolationMap > assocMap_
double HGCalShowerShapeHelper::ShowerWidths::* var_
const std::string& EgammaHLTHGCalIDVarProducer::PCAAssocMap::name ( void  ) const
inline
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
Definition: eostools.py:511

Member Data Documentation

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

Definition at line 47 of file EgammaHLTHGCalIDVarProducer.cc.

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

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

Definition at line 46 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by name().

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

Definition at line 45 of file EgammaHLTHGCalIDVarProducer.cc.

Referenced by insert().