CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFEGFootprintGSFixLinker.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFProducer_PFEGFootprintGSFixLinker_h
2 #define RecoParticleFlow_PFProducer_PFEGFootprintGSFixLinker_h
3 
13 
19 
20 #include <string>
21 
23  public:
26 
27  void produce(edm::Event&, const edm::EventSetup&) override;
28 
29  template<typename T>
30  void
32  {
33  token = consumes<T>(pset.getParameter<edm::InputTag>(label));
34  }
35  template<typename T>
38  {
40  if (!_event.getByToken(token, handle))
41  throw cms::Exception("ProductNotFound") << name;
42 
43  return handle;
44  }
45 
46  private:
49  typedef std::vector<reco::PFCandidateRef> Footprint;
51 
55  // new -> old map
58  // e/g -> footprint map
61 
64 };
65 
66 #endif
edm::EDGetTokenT< reco::PhotonCollection > newPhotonsToken_
edm::Handle< T > getHandle(edm::Event const &_event, edm::EDGetTokenT< T > const &token, std::string const &name)
T getParameter(std::string const &) const
edm::ValueMap< reco::GsfElectronRef > ElectronRefMap
edm::EDGetTokenT< FootprintMap > photonFootprintMapToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< ElectronRefMap > electronMapToken_
edm::EDGetTokenT< PhotonRefMap > photonMapToken_
edm::EDGetTokenT< reco::GsfElectronCollection > newElectronsToken_
edm::EDGetTokenT< FootprintMap > electronFootprintMapToken_
tuple handle
Definition: patZpeak.py:22
void getToken(edm::EDGetTokenT< T > &token, edm::ParameterSet const &pset, std::string const &label)
edm::ValueMap< reco::PhotonRef > PhotonRefMap
std::vector< reco::PFCandidateRef > Footprint
edm::EDGetTokenT< reco::PFCandidateCollection > newCandidatesToken_
edm::ValueMap< Footprint > FootprintMap
PFEGFootprintGSFixLinker(const edm::ParameterSet &)