CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEDPhotonGSCrysFixer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_GEDPhotonGSCrysFixer_h
2 #define RecoEgamma_EgammaPhotonProducers_GEDPhotonGSCrysFixer_h
3 
6 
14 
16 
19 
21  public:
22 
25 
27  edm::EventSetup const&) override;
28  void produce(edm::Event&, const edm::EventSetup&) override;
29 
30  private:
31  template<typename T>
32  void
34  {
35  auto tag(pset.getParameter<edm::InputTag>(label));
36  if (!instance.empty())
37  tag = edm::InputTag(tag.label(), instance, tag.process());
38 
39  token = consumes<T>(tag);
40  }
41 
42  template<typename T>
45  {
47  if (!iEvent.getByToken(token, handle))
48  throw cms::Exception("ProductNotFound") << name;
49 
50  return handle;
51  }
52 
55 
61 
63 
66 };
67 
68 #endif
T getParameter(std::string const &) const
CaloGeometry const * geometry_
void produce(edm::Event &, const edm::EventSetup &) override
static PFTauRenderPlugin instance
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
PhotonEnergyCorrector energyCorrector_
edm::EDGetTokenT< reco::VertexCollection > verticesToken_
edm::EDGetTokenT< EcalRecHitCollection > ebHitsToken_
GEDPhotonGSCrysFixer(const edm::ParameterSet &)
edm::ValueMap< reco::SuperClusterRef > SCRefMap
int iEvent
Definition: GenABIO.cc:230
tuple handle
Definition: patZpeak.py:22
void getToken(edm::EDGetTokenT< T > &token, edm::ParameterSet const &pset, std::string const &label, std::string const &instance="")
edm::Handle< T > getHandle(edm::Event const &iEvent, edm::EDGetTokenT< T > const &token, std::string const &name)
edm::View< reco::Photon > PhotonView
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
CaloTopology const * topology_
edm::EDGetTokenT< SCRefMap > newCoresToOldSCMapToken_
edm::EDGetTokenT< PhotonView > inputPhotonsToken_
edm::EDGetTokenT< reco::PhotonCoreCollection > newCoresToken_