CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
EGFull5x5ShowerShapeModifierFromValueMaps Class Reference
Inheritance diagram for EGFull5x5ShowerShapeModifierFromValueMaps:
ModifyObjectValueBase

Classes

struct  electron_config
 
struct  photon_config
 

Public Member Functions

 EGFull5x5ShowerShapeModifierFromValueMaps (const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
 
void modifyObject (pat::Electron &) const final
 
void modifyObject (pat::Photon &) const final
 
void setEvent (const edm::Event &) final
 
void setEventContent (const edm::EventSetup &) final
 
- Public Member Functions inherited from ModifyObjectValueBase
virtual void modifyObject (reco::GsfElectron &) const
 
virtual void modifyObject (reco::Photon &) const
 
virtual void modifyObject (reco::Muon &) const
 
virtual void modifyObject (reco::BaseTau &) const
 
virtual void modifyObject (reco::Jet &) const
 
virtual void modifyObject (pat::Muon &) const
 
virtual void modifyObject (pat::Tau &) const
 
virtual void modifyObject (pat::Jet &) const
 
 ModifyObjectValueBase (const edm::ParameterSet &conf)
 
const std::string & name () const
 
virtual ~ModifyObjectValueBase ()
 

Private Attributes

electron_config e_conf
 
unsigned ele_idx
 
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > ele_vmaps
 
std::vector< edm::Ptr< reco::GsfElectron > > eles_by_oop
 
photon_config ph_conf
 
unsigned pho_idx
 
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > pho_vmaps
 
std::vector< edm::Ptr< reco::Photon > > phos_by_oop
 

Detailed Description

Definition at line 19 of file EGFull5x5ShowerShapeModifier.cc.

Constructor & Destructor Documentation

EGFull5x5ShowerShapeModifierFromValueMaps::EGFull5x5ShowerShapeModifierFromValueMaps ( const edm::ParameterSet conf,
edm::ConsumesCollector cc 
)

Definition at line 74 of file EGFull5x5ShowerShapeModifier.cc.

References nano_cff::electrons, edm::ParameterSet::exists(), edm::Event::getByToken(), edm::ParameterSet::getParameter(), edm::EDGetTokenT< T >::index(), edm::EDGetTokenT< T >::isUninitialized(), genParticles_cff::map, muons_cff::photons, setEvent(), EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e1x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e1x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e2x5, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e2x5Max, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e3x3, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e5x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e5x5, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_electron_src, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth1OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth1OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth1OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth1OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth2OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth2OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth2OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth2OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_maxEnergyXtal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_photon_src, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_r9, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaEtaEta, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_sigmaEtaEta, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaIetaIeta, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_sigmaIetaIeta, and EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaIphiIphi.

74  :
75  ModifyObjectValueBase(conf) {
76  if( conf.exists("electron_config") ) {
77  const edm::ParameterSet& electrons = conf.getParameter<edm::ParameterSet>("electron_config");
78  if( electrons.exists("electronSrc") ) make_consumes(electrons.getParameter<edm::InputTag>("electronSrc"), e_conf.tok_electron_src, cc);
79  if( electrons.exists("sigmaEtaEta") ) make_consumes(electrons.getParameter<edm::InputTag>("sigmaEtaEta"), e_conf.tok_sigmaEtaEta, cc);
80  if( electrons.exists("sigmaIetaIeta") ) make_consumes(electrons.getParameter<edm::InputTag>("sigmaIetaIeta"), e_conf.tok_sigmaIetaIeta, cc);
81  if( electrons.exists("sigmaIphiIphi") ) make_consumes(electrons.getParameter<edm::InputTag>("sigmaIphiIphi"), e_conf.tok_sigmaIphiIphi, cc);
82  if( electrons.exists("e1x5") ) make_consumes(electrons.getParameter<edm::InputTag>("e1x5"), e_conf.tok_e1x5, cc);
83  if( electrons.exists("e2x5Max") ) make_consumes(electrons.getParameter<edm::InputTag>("e2x5Max"), e_conf.tok_e2x5Max, cc);
84  if( electrons.exists("e5x5") ) make_consumes(electrons.getParameter<edm::InputTag>("e5x5"), e_conf.tok_e5x5, cc);
85  if( electrons.exists("r9") ) make_consumes(electrons.getParameter<edm::InputTag>("r9"), e_conf.tok_r9, cc);
86  if( electrons.exists("hcalDepth1OverEcal") ) make_consumes(electrons.getParameter<edm::InputTag>("hcalDepth1OverEcal"), e_conf.tok_hcalDepth1OverEcal, cc);
87  if( electrons.exists("hcalDepth2OverEcal") ) make_consumes(electrons.getParameter<edm::InputTag>("hcalDepth2OverEcal"), e_conf.tok_hcalDepth2OverEcal, cc);
88  if( electrons.exists("hcalDepth1OverEcalBc") ) make_consumes(electrons.getParameter<edm::InputTag>("hcalDepth1OverEcalBc"), e_conf.tok_hcalDepth1OverEcalBc, cc);
89  if( electrons.exists("hcalDepth2OverEcalBc") ) make_consumes(electrons.getParameter<edm::InputTag>("hcalDepth2OverEcalBc"), e_conf.tok_hcalDepth2OverEcalBc, cc);
90  }
91  if( conf.exists("photon_config") ) {
92  const edm::ParameterSet& photons = conf.getParameter<edm::ParameterSet>("photon_config");
93  if( photons.exists("photonSrc") ) make_consumes(photons.getParameter<edm::InputTag>("photonSrc"), ph_conf.tok_photon_src, cc);
94  if( photons.exists("sigmaEtaEta") ) make_consumes(photons.getParameter<edm::InputTag>("sigmaEtaEta"), ph_conf.tok_sigmaEtaEta, cc);
95  if( photons.exists("sigmaIetaIeta") ) make_consumes(photons.getParameter<edm::InputTag>("sigmaIetaIeta"), ph_conf.tok_sigmaIetaIeta, cc);
96  if( photons.exists("e1x5") ) make_consumes(photons.getParameter<edm::InputTag>("e1x5"), ph_conf.tok_e1x5, cc);
97  if( photons.exists("e2x5") ) make_consumes(photons.getParameter<edm::InputTag>("e2x5"), ph_conf.tok_e2x5, cc);
98  if( photons.exists("e3x3") ) make_consumes(photons.getParameter<edm::InputTag>("e3x3"), ph_conf.tok_e3x3, cc);
99  if( photons.exists("e5x5") ) make_consumes(photons.getParameter<edm::InputTag>("e5x5"), ph_conf.tok_e5x5, cc);
100  if( photons.exists("maxEnergyXtal") ) make_consumes(photons.getParameter<edm::InputTag>("maxEnergyXtal"), ph_conf.tok_maxEnergyXtal, cc);
101  if( photons.exists("hcalDepth1OverEcal") ) make_consumes(photons.getParameter<edm::InputTag>("hcalDepth1OverEcal"), ph_conf.tok_hcalDepth1OverEcal, cc);
102  if( photons.exists("hcalDepth2OverEcal") ) make_consumes(photons.getParameter<edm::InputTag>("hcalDepth2OverEcal"), ph_conf.tok_hcalDepth2OverEcal, cc);
103  if( photons.exists("hcalDepth1OverEcalBc") ) make_consumes(photons.getParameter<edm::InputTag>("hcalDepth1OverEcalBc"), ph_conf.tok_hcalDepth1OverEcalBc, cc);
104  if( photons.exists("hcalDepth2OverEcalBc") ) make_consumes(photons.getParameter<edm::InputTag>("hcalDepth2OverEcalBc"), ph_conf.tok_hcalDepth2OverEcalBc, cc);
105  }
106 
107  ele_idx = pho_idx = 0;
108 }
edm::EDGetTokenT< edm::View< pat::Photon > > tok_photon_src
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
bool exists(std::string const &parameterName) const
checks if a parameter exists
edm::EDGetTokenT< edm::View< pat::Electron > > tok_electron_src
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcal
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcal
ModifyObjectValueBase(const edm::ParameterSet &conf)
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc

Member Function Documentation

void EGFull5x5ShowerShapeModifierFromValueMaps::modifyObject ( pat::Electron ele) const
finalvirtual

Reimplemented from ModifyObjectValueBase.

Definition at line 181 of file EGFull5x5ShowerShapeModifier.cc.

References e_conf, ele_idx, ele_vmaps, eles_by_oop, reco::GsfElectron::full5x5_setShowerShape(), reco::GsfElectron::full5x5_showerShape(), edm::EDGetTokenT< T >::isUninitialized(), pat::PATObject< ObjectType >::originalObjectRef(), EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e1x5, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e2x5Max, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e5x5, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_electron_src, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth1OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth1OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth2OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth2OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_r9, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaEtaEta, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaIetaIeta, and EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaIphiIphi.

Referenced by setEventContent().

181  {
182  // we encounter two cases here, either we are running AOD -> MINIAOD
183  // and the value maps are to the reducedEG object, can use original object ptr
184  // or we are running MINIAOD->MINIAOD and we need to fetch the pat objects to reference
186 
187 
188  // The calls to this function should be matched to the order of the electrons
189  // in eles_by_oop. In case it is called too many times, it will throw thanks
190  // to the use of std::vector<T>::at().
192 
193  //now we go through and modify the objects using the valuemaps we read in
194  auto full5x5 = ele.full5x5_showerShape();
195  assignValue(ptr,e_conf.tok_sigmaEtaEta,ele_vmaps,full5x5.sigmaEtaEta);
196  assignValue(ptr,e_conf.tok_sigmaIetaIeta,ele_vmaps,full5x5.sigmaIetaIeta);
197  assignValue(ptr,e_conf.tok_sigmaIphiIphi,ele_vmaps,full5x5.sigmaIphiIphi);
198  assignValue(ptr,e_conf.tok_e1x5,ele_vmaps,full5x5.e1x5);
199  assignValue(ptr,e_conf.tok_e2x5Max,ele_vmaps,full5x5.e2x5Max);
200  assignValue(ptr,e_conf.tok_e5x5,ele_vmaps,full5x5.e5x5);
201  assignValue(ptr,e_conf.tok_r9,ele_vmaps,full5x5.r9);
202  assignValue(ptr,e_conf.tok_hcalDepth1OverEcal,ele_vmaps,full5x5.hcalDepth1OverEcal);
203  assignValue(ptr,e_conf.tok_hcalDepth2OverEcal,ele_vmaps,full5x5.hcalDepth2OverEcal);
204  assignValue(ptr,e_conf.tok_hcalDepth1OverEcalBc,ele_vmaps,full5x5.hcalDepth1OverEcalBc);
205  assignValue(ptr,e_conf.tok_hcalDepth2OverEcalBc,ele_vmaps,full5x5.hcalDepth2OverEcalBc);
206 
207  ele.full5x5_setShowerShape(full5x5);
208  ++ele_idx;
209 }
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
edm::EDGetTokenT< edm::View< pat::Electron > > tok_electron_src
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > ele_vmaps
const edm::Ptr< reco::Candidate > & originalObjectRef() const
reference to original object. Returns a null reference if not available
Definition: PATObject.h:500
const ShowerShape & full5x5_showerShape() const
Definition: GsfElectron.h:483
std::vector< edm::Ptr< reco::GsfElectron > > eles_by_oop
bool isUninitialized() const
Definition: EDGetToken.h:70
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
void full5x5_setShowerShape(const ShowerShape &s)
Definition: GsfElectron.h:487
void EGFull5x5ShowerShapeModifierFromValueMaps::modifyObject ( pat::Photon pho) const
finalvirtual

Reimplemented from ModifyObjectValueBase.

Definition at line 213 of file EGFull5x5ShowerShapeModifier.cc.

References reco::Photon::full5x5_setShowerShapeVariables(), reco::Photon::full5x5_showerShapeVariables(), edm::EDGetTokenT< T >::isUninitialized(), pat::PATObject< ObjectType >::originalObjectRef(), ph_conf, pho_idx, pho_vmaps, phos_by_oop, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e1x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e2x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e3x3, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e5x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth1OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth1OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth2OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth2OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_maxEnergyXtal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_photon_src, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_sigmaEtaEta, and EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_sigmaIetaIeta.

213  {
214  // we encounter two cases here, either we are running AOD -> MINIAOD
215  // and the value maps are to the reducedEG object, can use original object ptr
216  // or we are running MINIAOD->MINIAOD and we need to fetch the pat objects to reference
218 
219  // The calls to this function should be matched to the order of the electrons
220  // in eles_by_oop. In case it is called too many times, it will throw thanks
221  // to the use of std::vector<T>::at().
223 
224  //now we go through and modify the objects using the valuemaps we read in
225  auto full5x5 = pho.full5x5_showerShapeVariables();
226  assignValue(ptr,ph_conf.tok_sigmaEtaEta,pho_vmaps,full5x5.sigmaEtaEta);
227  assignValue(ptr,ph_conf.tok_sigmaIetaIeta,pho_vmaps,full5x5.sigmaIetaIeta);
228  assignValue(ptr,ph_conf.tok_e1x5,pho_vmaps,full5x5.e1x5);
229  assignValue(ptr,ph_conf.tok_e2x5,pho_vmaps,full5x5.e2x5);
230  assignValue(ptr,ph_conf.tok_e3x3,pho_vmaps,full5x5.e3x3);
231  assignValue(ptr,ph_conf.tok_e5x5,pho_vmaps,full5x5.e5x5);
232  assignValue(ptr,ph_conf.tok_maxEnergyXtal,pho_vmaps,full5x5.maxEnergyXtal);
233  assignValue(ptr,ph_conf.tok_hcalDepth1OverEcal,pho_vmaps,full5x5.hcalDepth1OverEcal);
234  assignValue(ptr,ph_conf.tok_hcalDepth2OverEcal,pho_vmaps,full5x5.hcalDepth2OverEcal);
235  assignValue(ptr,ph_conf.tok_hcalDepth1OverEcalBc,pho_vmaps,full5x5.hcalDepth1OverEcalBc);
236  assignValue(ptr,ph_conf.tok_hcalDepth2OverEcalBc,pho_vmaps,full5x5.hcalDepth2OverEcalBc);
237 
238  pho.full5x5_setShowerShapeVariables(full5x5);
239  ++pho_idx;
240 }
edm::EDGetTokenT< edm::View< pat::Photon > > tok_photon_src
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcal
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
Definition: PATObject.h:500
std::vector< edm::Ptr< reco::Photon > > phos_by_oop
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
void full5x5_setShowerShapeVariables(const ShowerShape &a)
Definition: Photon.h:209
const ShowerShape & full5x5_showerShapeVariables() const
Definition: Photon.h:206
bool isUninitialized() const
Definition: EDGetToken.h:70
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > pho_vmaps
void EGFull5x5ShowerShapeModifierFromValueMaps::setEvent ( const edm::Event evt)
finalvirtual

Reimplemented from ModifyObjectValueBase.

Definition at line 119 of file EGFull5x5ShowerShapeModifier.cc.

References popcon2dropbox::copy(), e_conf, ele_idx, ele_vmaps, eles_by_oop, edm::Event::getByToken(), edm::EDGetTokenT< T >::isUninitialized(), ph_conf, pho_idx, pho_vmaps, phos_by_oop, setEventContent(), EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e1x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e1x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e2x5, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e2x5Max, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e3x3, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_e5x5, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_e5x5, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_electron_src, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth1OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth1OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth1OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth1OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth2OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth2OverEcal, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_hcalDepth2OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_hcalDepth2OverEcalBc, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_maxEnergyXtal, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_photon_src, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_r9, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaEtaEta, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_sigmaEtaEta, EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaIetaIeta, EGFull5x5ShowerShapeModifierFromValueMaps::photon_config::tok_sigmaIetaIeta, and EGFull5x5ShowerShapeModifierFromValueMaps::electron_config::tok_sigmaIphiIphi.

Referenced by EGFull5x5ShowerShapeModifierFromValueMaps().

119  {
120  eles_by_oop.clear();
121  phos_by_oop.clear();
122  ele_vmaps.clear();
123  pho_vmaps.clear();
124 
125  ele_idx = pho_idx = 0;
126 
130 
131  eles_by_oop.resize(eles->size());
132  std::copy(eles->ptrs().begin(), eles->ptrs().end(), eles_by_oop.begin());
133  }
134 
135  get_product(evt,e_conf.tok_sigmaEtaEta,ele_vmaps);
136  get_product(evt,e_conf.tok_sigmaIetaIeta,ele_vmaps);
137  get_product(evt,e_conf.tok_sigmaIphiIphi,ele_vmaps);
138  get_product(evt,e_conf.tok_e1x5,ele_vmaps);
139  get_product(evt,e_conf.tok_e2x5Max,ele_vmaps);
140  get_product(evt,e_conf.tok_e5x5,ele_vmaps);
141  get_product(evt,e_conf.tok_r9,ele_vmaps);
142  get_product(evt,e_conf.tok_hcalDepth1OverEcal,ele_vmaps);
143  get_product(evt,e_conf.tok_hcalDepth2OverEcal,ele_vmaps);
144  get_product(evt,e_conf.tok_hcalDepth1OverEcalBc,ele_vmaps);
145  get_product(evt,e_conf.tok_hcalDepth2OverEcalBc,ele_vmaps);
146 
150 
151  phos_by_oop.resize(phos->size());
152  std::copy(phos->ptrs().begin(), phos->ptrs().end(), phos_by_oop.begin());
153  }
154 
155  get_product(evt,ph_conf.tok_sigmaEtaEta,pho_vmaps);
156  get_product(evt,ph_conf.tok_sigmaIetaIeta,pho_vmaps);
157  get_product(evt,ph_conf.tok_e1x5,pho_vmaps);
158  get_product(evt,ph_conf.tok_e2x5,pho_vmaps);
159  get_product(evt,ph_conf.tok_e3x3,pho_vmaps);
160  get_product(evt,ph_conf.tok_e5x5,pho_vmaps);
161  get_product(evt,ph_conf.tok_maxEnergyXtal,pho_vmaps);
162  get_product(evt,ph_conf.tok_hcalDepth1OverEcal,pho_vmaps);
163  get_product(evt,ph_conf.tok_hcalDepth2OverEcal,pho_vmaps);
164  get_product(evt,ph_conf.tok_hcalDepth1OverEcalBc,pho_vmaps);
165  get_product(evt,ph_conf.tok_hcalDepth2OverEcalBc,pho_vmaps);
166 
167 }
edm::EDGetTokenT< edm::View< pat::Photon > > tok_photon_src
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
def copy(args, dbName)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
edm::EDGetTokenT< edm::View< pat::Electron > > tok_electron_src
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcalBc
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth2OverEcal
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > ele_vmaps
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcal
std::vector< edm::Ptr< reco::Photon > > phos_by_oop
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
std::vector< edm::Ptr< reco::GsfElectron > > eles_by_oop
bool isUninitialized() const
Definition: EDGetToken.h:70
edm::EDGetTokenT< edm::ValueMap< float > > tok_hcalDepth1OverEcalBc
std::unordered_map< unsigned, edm::Handle< edm::ValueMap< float > > > pho_vmaps
void EGFull5x5ShowerShapeModifierFromValueMaps::setEventContent ( const edm::EventSetup evs)
finalvirtual

Reimplemented from ModifyObjectValueBase.

Definition at line 170 of file EGFull5x5ShowerShapeModifier.cc.

References genParticles_cff::map, modifyObject(), edm::second(), and mitigatedMETSequence_cff::U.

Referenced by setEvent().

170  {
171 }

Member Data Documentation

electron_config EGFull5x5ShowerShapeModifierFromValueMaps::e_conf
private

Definition at line 60 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

unsigned EGFull5x5ShowerShapeModifierFromValueMaps::ele_idx
mutableprivate

Definition at line 66 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

std::unordered_map<unsigned,edm::Handle<edm::ValueMap<float> > > EGFull5x5ShowerShapeModifierFromValueMaps::ele_vmaps
private

Definition at line 63 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

std::vector<edm::Ptr<reco::GsfElectron> > EGFull5x5ShowerShapeModifierFromValueMaps::eles_by_oop
private

Definition at line 62 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

photon_config EGFull5x5ShowerShapeModifierFromValueMaps::ph_conf
private

Definition at line 61 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

unsigned EGFull5x5ShowerShapeModifierFromValueMaps::pho_idx
mutableprivate

Definition at line 66 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

std::unordered_map<unsigned,edm::Handle<edm::ValueMap<float> > > EGFull5x5ShowerShapeModifierFromValueMaps::pho_vmaps
private

Definition at line 65 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().

std::vector<edm::Ptr<reco::Photon> > EGFull5x5ShowerShapeModifierFromValueMaps::phos_by_oop
private

Definition at line 64 of file EGFull5x5ShowerShapeModifier.cc.

Referenced by modifyObject(), and setEvent().