CMS 3D CMS Logo

List of all members | Public Member Functions | Static Private Member Functions | Private Attributes
MVAVariableHelper< ParticleType > Class Template Reference

#include <MVAVariableHelper.h>

Public Member Functions

const std::vector< float > getAuxVariables (edm::Ptr< ParticleType > const &particlePtr, const edm::Event &iEvent) const
 
 MVAVariableHelper (edm::ConsumesCollector &&cc)
 

Static Private Member Functions

static float getVariableFromDoubleToken (edm::EDGetToken const &token, const edm::Event &iEvent)
 
static float getVariableFromValueMapToken (edm::Ptr< ParticleType > const &particlePtr, edm::EDGetToken const &token, edm::Event const &iEvent)
 

Private Attributes

const std::vector< edm::EDGetTokentokens_
 

Detailed Description

template<class ParticleType>
class MVAVariableHelper< ParticleType >

Definition at line 28 of file MVAVariableHelper.h.

Constructor & Destructor Documentation

template<class ParticleType>
MVAVariableHelper< ParticleType >::MVAVariableHelper ( edm::ConsumesCollector &&  cc)

Member Function Documentation

template<class ParticleType>
const std::vector<float> MVAVariableHelper< ParticleType >::getAuxVariables ( edm::Ptr< ParticleType > const &  particlePtr,
const edm::Event iEvent 
) const
template<class ParticleType>
static float MVAVariableHelper< ParticleType >::getVariableFromDoubleToken ( edm::EDGetToken const &  token,
const edm::Event iEvent 
)
inlinestaticprivate

Definition at line 46 of file MVAVariableHelper.h.

Referenced by MVAVariableHelper< reco::Photon >::getAuxVariables().

46  {
48  iEvent.getByToken(token, handle);
49  return *handle;
50  }
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
template<class ParticleType>
static float MVAVariableHelper< ParticleType >::getVariableFromValueMapToken ( edm::Ptr< ParticleType > const &  particlePtr,
edm::EDGetToken const &  token,
edm::Event const &  iEvent 
)
inlinestaticprivate

Definition at line 39 of file MVAVariableHelper.h.

40  {
42  iEvent.getByToken(token, handle);
43  return (*handle)[particlePtr];
44  }
int iEvent
Definition: GenABIO.cc:224

Member Data Documentation

template<class ParticleType>
const std::vector<edm::EDGetToken> MVAVariableHelper< ParticleType >::tokens_
private