CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
nano_mu::ESTokenHandle< T, R, TR > Class Template Reference

#include <MuNtupleUtils.h>

Public Member Functions

 ESTokenHandle (edm::ConsumesCollector &&collector, const std::string &label="")
 Constructor. More...
 
void getFromES (const edm::EventSetup &environment)
 Get Handle from ES. More...
 
bool isValid ()
 Check validity. More...
 
T const * operator-> ()
 Return handle. More...
 

Private Attributes

edm::ESHandle< Tm_handle
 
edm::ESGetToken< T, R > m_token
 

Detailed Description

template<class T, class R, edm::Transition TR = edm::Transition::Event>
class nano_mu::ESTokenHandle< T, R, TR >

Definition at line 66 of file MuNtupleUtils.h.

Constructor & Destructor Documentation

◆ ESTokenHandle()

template<class T, class R, edm::Transition TR = edm::Transition::Event>
nano_mu::ESTokenHandle< T, R, TR >::ESTokenHandle ( edm::ConsumesCollector &&  collector,
const std::string &  label = "" 
)
inline

Constructor.

Definition at line 69 of file MuNtupleUtils.h.

70  : m_token{collector.template esConsumes<TR>(edm::ESInputTag{"", label})} {}
char const * label
edm::ESGetToken< T, R > m_token
Definition: MuNtupleUtils.h:82

Member Function Documentation

◆ getFromES()

template<class T, class R, edm::Transition TR = edm::Transition::Event>
void nano_mu::ESTokenHandle< T, R, TR >::getFromES ( const edm::EventSetup environment)
inline

◆ isValid()

template<class T, class R, edm::Transition TR = edm::Transition::Event>
bool nano_mu::ESTokenHandle< T, R, TR >::isValid ( void  )
inline

◆ operator->()

template<class T, class R, edm::Transition TR = edm::Transition::Event>
T const* nano_mu::ESTokenHandle< T, R, TR >::operator-> ( )
inline

Return handle.

Definition at line 79 of file MuNtupleUtils.h.

79 { return m_handle.product(); }
edm::ESHandle< T > m_handle
Definition: MuNtupleUtils.h:83

Member Data Documentation

◆ m_handle

template<class T, class R, edm::Transition TR = edm::Transition::Event>
edm::ESHandle<T> nano_mu::ESTokenHandle< T, R, TR >::m_handle
private

◆ m_token

template<class T, class R, edm::Transition TR = edm::Transition::Event>
edm::ESGetToken<T, R> nano_mu::ESTokenHandle< T, R, TR >::m_token
private