test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
EDMtoMEConverter::Tokens< T > Class Template Reference

Public Types

using Product = MEtoEDM< T >
 
using type = T
 

Public Member Functions

void getData (const edm::Run &iRun, edm::Handle< Product > &handle) const
 
void getData (const edm::LuminosityBlock &iLumi, edm::Handle< Product > &handle) const
 
void set (const edm::InputTag &runInputTag, const edm::InputTag &lumiInputTag, edm::ConsumesCollector &iC)
 
 Tokens ()
 

Private Attributes

edm::EDGetTokenT< ProductlumiToken
 
edm::EDGetTokenT< ProductrunToken
 

Detailed Description

template<typename T>
class EDMtoMEConverter::Tokens< T >

Definition at line 87 of file EDMtoMEConverter.h.

Member Typedef Documentation

template<typename T >
using EDMtoMEConverter::Tokens< T >::Product = MEtoEDM<T>

Definition at line 90 of file EDMtoMEConverter.h.

template<typename T >
using EDMtoMEConverter::Tokens< T >::type = T

Definition at line 89 of file EDMtoMEConverter.h.

Constructor & Destructor Documentation

template<typename T >
EDMtoMEConverter::Tokens< T >::Tokens ( )
inline

Definition at line 92 of file EDMtoMEConverter.h.

92 {}

Member Function Documentation

template<typename T >
void EDMtoMEConverter::Tokens< T >::getData ( const edm::Run iRun,
edm::Handle< Product > &  handle 
) const

Definition at line 23 of file EDMtoMEConverter.cc.

References edm::Run::getByToken().

23  {
24  iRun.getByToken(runToken, handle);
25 }
edm::EDGetTokenT< Product > runToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Run.h:258
template<typename T >
void EDMtoMEConverter::Tokens< T >::getData ( const edm::LuminosityBlock iLumi,
edm::Handle< Product > &  handle 
) const

Definition at line 28 of file EDMtoMEConverter.cc.

References edm::LuminosityBlock::getByToken().

28  {
29  iLumi.getByToken(lumiToken, handle);
30 }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< Product > lumiToken
template<typename T >
void EDMtoMEConverter::Tokens< T >::set ( const edm::InputTag runInputTag,
const edm::InputTag lumiInputTag,
edm::ConsumesCollector iC 
)

Definition at line 17 of file EDMtoMEConverter.cc.

References edm::InLumi, edm::InRun, and edm::ConsumesCollector::mayConsume().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

17  {
18  runToken = iC.mayConsume<MEtoEDM<T>, edm::InRun>(runInputTag);
19  lumiToken = iC.mayConsume<MEtoEDM<T>, edm::InLumi>(lumiInputTag);
20 }
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
edm::EDGetTokenT< Product > runToken
edm::EDGetTokenT< Product > lumiToken

Member Data Documentation

template<typename T >
edm::EDGetTokenT<Product> EDMtoMEConverter::Tokens< T >::lumiToken
private

Definition at line 101 of file EDMtoMEConverter.h.

template<typename T >
edm::EDGetTokenT<Product> EDMtoMEConverter::Tokens< T >::runToken
private

Definition at line 100 of file EDMtoMEConverter.h.