CMS 3D CMS Logo

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::LuminosityBlock &iLumi, edm::Handle< Product > &handle) const
 
void getData (const edm::Run &iRun, edm::Handle< Product > &handle) const
 
void set (const edm::InputTag &runInputTag, const edm::InputTag &lumiInputTag, edm::ConsumesCollector &iC)
 
 Tokens ()=default
 

Private Attributes

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

Detailed Description

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

Definition at line 89 of file EDMtoMEConverter.h.

Member Typedef Documentation

◆ Product

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

Definition at line 92 of file EDMtoMEConverter.h.

◆ type

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

Definition at line 91 of file EDMtoMEConverter.h.

Constructor & Destructor Documentation

◆ Tokens()

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

Member Function Documentation

◆ getData() [1/2]

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

Definition at line 33 of file EDMtoMEConverter.cc.

33  {
34  iLumi.getByToken(lumiToken, handle);
35 }

References edm::LuminosityBlock::getByToken(), and patZpeak::handle.

◆ getData() [2/2]

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

Definition at line 28 of file EDMtoMEConverter.cc.

28  {
29  iRun.getByToken(runToken, handle);
30 }

References edm::Run::getByToken(), and patZpeak::handle.

◆ set()

template<typename T >
void EDMtoMEConverter::Tokens< T >::set ( const edm::InputTag runInputTag,
const edm::InputTag lumiInputTag,
edm::ConsumesCollector iC 
)

Member Data Documentation

◆ lumiToken

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

Definition at line 103 of file EDMtoMEConverter.h.

◆ runToken

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

Definition at line 102 of file EDMtoMEConverter.h.

MEtoEDM
Definition: MEtoEDMFormat.h:37
patZpeak.handle
handle
Definition: patZpeak.py:23
EDMtoMEConverter::Tokens::runToken
edm::EDGetTokenT< Product > runToken
Definition: EDMtoMEConverter.h:102
edm::InRun
Definition: BranchType.h:11
edm::LuminosityBlock::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: LuminosityBlock.h:318
edm::Run::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Run.h:315
EDMtoMEConverter::Tokens::lumiToken
edm::EDGetTokenT< Product > lumiToken
Definition: EDMtoMEConverter.h:103
edm::InLumi
Definition: BranchType.h:11
edm::ConsumesCollector::mayConsume
EDGetTokenT< ProductType > mayConsume(edm::InputTag const &tag)
Definition: ConsumesCollector.h:61
EDMtoMEConverter_cfi.runInputTag
runInputTag
Definition: EDMtoMEConverter_cfi.py:12
EDMtoMEConverter_cfi.lumiInputTag
lumiInputTag
Definition: EDMtoMEConverter_cfi.py:13