CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
EGExtraInfoModifierFromDB.cc File Reference
#include "CommonTools/CandAlgos/interface/ModifyObjectValueBase.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Utilities/interface/EDGetToken.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "CondFormats/DataRecord/interface/GBRDWrapperRcd.h"
#include "CondFormats/EgammaObjects/interface/GBRForestD.h"
#include "CondFormats/DataRecord/interface/GBRWrapperRcd.h"
#include "CondFormats/EgammaObjects/interface/GBRForest.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDetId/interface/EEDetId.h"
#include <vdt/vdtMath.h>
#include <unordered_map>

Go to the source code of this file.

Classes

class  EGExtraInfoModifierFromDB
 
struct  EGExtraInfoModifierFromDB::electron_config
 
struct  EGExtraInfoModifierFromDB::photon_config
 

Functions

template<typename T , typename U , typename V , typename Z >
void assignValue (const T &ptr, const U &tok, const V &map, Z &value)
 
template<typename T >
void get_product (const edm::Event &evt, const edm::EDGetTokenT< edm::ValueMap< T > > &tok, std::unordered_map< unsigned, edm::Handle< edm::ValueMap< T > > > &map)
 
template<typename T , typename U , typename V >
void make_consumes (T &tag, U &tok, V &sume)
 
template<typename T , typename U , typename V >
void make_int_consumes (T &tag, U &tok, V &sume)
 
static const
ModifyObjectValueFactory::PMaker
< EGExtraInfoModifierFromDB
s_maker__LINE__ ("EGExtraInfoModifierFromDB")
 

Function Documentation

template<typename T , typename U , typename V , typename Z >
void assignValue ( const T ptr,
const U &  tok,
const V &  map,
Z &  value 
)
inline
template<typename T >
void get_product ( const edm::Event evt,
const edm::EDGetTokenT< edm::ValueMap< T > > &  tok,
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< T > > > &  map 
)
inline
template<typename T , typename U , typename V >
void make_consumes ( T tag,
U &  tok,
V &  sume 
)
inline
template<typename T , typename U , typename V >
void make_int_consumes ( T tag,
U &  tok,
V &  sume 
)
inline

Definition at line 317 of file EGExtraInfoModifierFromDB.cc.

References GlobalPosition_Frontier_DevDB_cff::tag.

Referenced by EGExtraInfoModifierFromDB::setConsumes().

317  {
318  if(!(empty_tag == tag))
319  tok = sume.template consumes<edm::ValueMap<int> >(tag);
320 }
static const ModifyObjectValueFactory ::PMaker< EGExtraInfoModifierFromDB > s_maker__LINE__ ( "EGExtraInfoModifierFromDB"  )
static