CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EG9X105XObjectUpdateModifier::TokenHandlePair< T > Class Template Reference

Public Member Functions

const edm::Handle< T > & handle () const
 
void setHandle (const edm::Event &iEvent)
 
 TokenHandlePair (const edm::ParameterSet &conf, const std::string &name, edm::ConsumesCollector &cc)
 

Private Attributes

edm::Handle< Thandle_
 
edm::EDGetTokenT< Ttoken_
 

Detailed Description

template<typename T>
class EG9X105XObjectUpdateModifier::TokenHandlePair< T >

Definition at line 26 of file EG9X105XObjectUpdateModifier.cc.

Constructor & Destructor Documentation

◆ TokenHandlePair()

template<typename T>
EG9X105XObjectUpdateModifier::TokenHandlePair< T >::TokenHandlePair ( const edm::ParameterSet conf,
const std::string &  name,
edm::ConsumesCollector cc 
)
inline

Definition at line 28 of file EG9X105XObjectUpdateModifier.cc.

29  : token_(cc.consumes<T>(conf.getParameter<edm::InputTag>(name))) {}

Member Function Documentation

◆ handle()

template<typename T>
const edm::Handle<T>& EG9X105XObjectUpdateModifier::TokenHandlePair< T >::handle ( ) const
inline

Definition at line 31 of file EG9X105XObjectUpdateModifier.cc.

31 { return handle_; }

Referenced by EG9X105XObjectUpdateModifier::modifyObject().

◆ setHandle()

template<typename T>
void EG9X105XObjectUpdateModifier::TokenHandlePair< T >::setHandle ( const edm::Event iEvent)
inline

Definition at line 30 of file EG9X105XObjectUpdateModifier.cc.

30 { iEvent.getByToken(token_, handle_); }

Referenced by EG9X105XObjectUpdateModifier::setEvent().

Member Data Documentation

◆ handle_

template<typename T>
edm::Handle<T> EG9X105XObjectUpdateModifier::TokenHandlePair< T >::handle_
private

◆ token_

template<typename T>
edm::EDGetTokenT<T> EG9X105XObjectUpdateModifier::TokenHandlePair< T >::token_
private
ModifyObjectValueBase::name
const std::string & name() const
Definition: ModifyObjectValueBase.h:59
EG9X105XObjectUpdateModifier::TokenHandlePair::token_
edm::EDGetTokenT< T > token_
Definition: EG9X105XObjectUpdateModifier.cc:34
EG9X105XObjectUpdateModifier::TokenHandlePair::handle_
edm::Handle< T > handle_
Definition: EG9X105XObjectUpdateModifier.cc:35
iEvent
int iEvent
Definition: GenABIO.cc:224
cc
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
T
long double T
Definition: Basic3DVectorLD.h:48
edm::InputTag
Definition: InputTag.h:15