15 #include <unordered_map>
77 void setConsumes(edm::ConsumesCollector&) override final;
94 "EGFull5x5ShowerShapeModifierFromValueMaps");
96 EGFull5x5ShowerShapeModifierFromValueMaps::
99 if( conf.exists(
"electron_config") ) {
114 if( conf.exists(
"photon_config") ) {
130 ele_idx = pho_idx = 0;
134 inline void get_product(
const edm::Event& evt,
137 if( !tok.isUninitialized() ) evt.
getByToken(tok,map[tok.index()]);
154 for(
unsigned i = 0;
i < eles->size(); ++
i ) {
176 for(
unsigned i = 0;
i < phos->size(); ++
i ) {
201 template<
typename T,
typename U,
typename V>
202 inline void make_consumes(
T&
tag,U& tok,V& sume) {
if( !(empty_tag == tag) ) tok = sume.template consumes<edm::ValueMap<float> >(
tag); }
237 template<
typename T,
typename U,
typename V>
238 inline void assignValue(
const T& ptr,
const U& tok,
const V& map,
float&
value) {
239 if( !tok.isUninitialized() ) value = map.find(tok.index())->
second->get(ptr.id(),ptr.key());
255 <<
"Original object pointer with key = " << ele.
originalObjectRef().
key() <<
" not found in cache!";
289 <<
"Original object pointer with key = " << pho.
originalObjectRef().
key() <<
" not found in cache!";
edm::InputTag hcalDepth1OverEcal
edm::EDGetTokenT< edm::View< pat::Photon > > tok_photon_src
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
void setEventContent(const edm::EventSetup &) overridefinal
Analysis-level Photon class.
void setConsumes(edm::ConsumesCollector &) overridefinal
edm::InputTag maxEnergyXtal
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
void setEvent(const edm::Event &) overridefinal
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::ValueMap< float > > tok_r9
edm::EDGetTokenT< edm::ValueMap< float > > tok_e1x5
edm::EDGetTokenT< edm::ValueMap< float > > tok_sigmaIetaIeta
std::unordered_map< unsigned, edm::Ptr< reco::Photon > > phos_by_oop
edm::EDGetTokenT< edm::ValueMap< float > > tok_e3x3
edm::EDGetTokenT< edm::ValueMap< float > > tok_e1x5
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::EDGetTokenT< edm::View< pat::Electron > > tok_electron_src
std::unordered_map< unsigned, edm::Ptr< reco::GsfElectron > > eles_by_oop
void modifyObject(pat::Electron &) const overridefinal
edm::InputTag hcalDepth1OverEcalBc
edm::InputTag hcalDepth1OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_e5x5
edm::EDGetTokenT< edm::ValueMap< float > > tok_e5x5
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
edm::InputTag sigmaIetaIeta
edm::InputTag hcalDepth2OverEcal
U second(std::pair< T, U > const &p)
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcal
edm::InputTag sigmaIphiIphi
edm::InputTag sigmaEtaEta
edm::InputTag hcalDepth2OverEcal
edm::EDGetTokenT< edm::ValueMap< float > > tok_e2x5Max
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcal
edm::InputTag electron_src
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > ele_vmaps
edm::InputTag sigmaIetaIeta
edm::InputTag hcalDepth1OverEcal
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcal
const edm::Ptr< reco::Candidate > & originalObjectRef() const
reference to original object. Returns a null reference if not available
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
Analysis-level electron class.
edm::InputTag sigmaEtaEta
EGFull5x5ShowerShapeModifierFromValueMaps(const edm::ParameterSet &conf)
edm::EDGetTokenT< edm::ValueMap< float > > tok_sigmaIphiIphi
void full5x5_setShowerShapeVariables(const ShowerShape &a)
const ShowerShape & full5x5_showerShape() const
const ShowerShape & full5x5_showerShapeVariables() const
edm::InputTag hcalDepth2OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_sigmaEtaEta
bool isUninitialized() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_sigmaIetaIeta
edm::EDGetTokenT< edm::ValueMap< float > > tok_sigmaEtaEta
edm::EDGetTokenT< edm::ValueMap< float > > tok_maxEnergyXtal
edm::EDGetTokenT< edm::ValueMap< float > > tok_e2x5
void full5x5_setShowerShape(const ShowerShape &s)
edm::InputTag hcalDepth2OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcal
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > pho_vmaps