CMS 3D CMS Logo

PhotonProducer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_PhotonProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_PhotonProducer_h
3 
33 
34 // PhotonProducer inherits from EDProducer, so it can be a module:
36 public:
38 
39  void produce(edm::Event& evt, const edm::EventSetup& es) override;
40 
41 private:
43  edm::EventSetup const& es,
44  const edm::Handle<reco::PhotonCoreCollection>& photonCoreHandle,
45  const CaloTopology* topology,
46  const EcalRecHitCollection* ecalBarrelHits,
47  const EcalRecHitCollection* ecalEndcapHits,
48  const edm::Handle<CaloTowerCollection>& hcalTowersHandle,
49  reco::VertexCollection& pvVertices,
50  reco::PhotonCollection& outputCollection,
51  int& iSC,
52  const EcalSeverityLevelAlgo* sevLv);
53 
54  // std::string PhotonCoreCollection_;
61 
62  //AA
63  //Flags and severities to be excluded from calculations
64 
65  std::vector<int> flagsexclEB_;
66  std::vector<int> flagsexclEE_;
67  std::vector<int> severitiesexclEB_;
68  std::vector<int> severitiesexclEE_;
69 
71  double maxHOverE_;
72  double minSCEt_;
73  double highEt_;
74  double minR9Barrel_;
75  double minR9Endcap_;
77 
79 
81 
83 
86 
87  //MIP
89 
90  std::vector<double> preselCutValuesBarrel_;
91  std::vector<double> preselCutValuesEndcap_;
92 
95 };
96 #endif
edm::EDGetTokenT< reco::VertexCollection > vertexProducer_
edm::EDGetTokenT< CaloTowerCollection > hcalTowers_
void fillPhotonCollection(edm::Event &evt, edm::EventSetup const &es, const edm::Handle< reco::PhotonCoreCollection > &photonCoreHandle, const CaloTopology *topology, const EcalRecHitCollection *ecalBarrelHits, const EcalRecHitCollection *ecalEndcapHits, const edm::Handle< CaloTowerCollection > &hcalTowersHandle, reco::VertexCollection &pvVertices, reco::PhotonCollection &outputCollection, int &iSC, const EcalSeverityLevelAlgo *sevLv)
std::vector< double > preselCutValuesEndcap_
CaloTopology const * topology(0)
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
PositionCalc posCalculator_
PhotonEnergyCorrector photonEnergyCorrector_
edm::EDGetTokenT< reco::PhotonCoreCollection > photonCoreProducer_
PhotonMIPHaloTagger photonMIPHaloTagger_
double hOverEConeSize_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
PhotonIsolationCalculator photonIsolationCalculator_
std::vector< int > flagsexclEB_
std::vector< int > flagsexclEE_
std::string candidateP4type_
std::vector< int > severitiesexclEE_
std::vector< int > severitiesexclEB_
std::string PhotonCollection_
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::vector< double > preselCutValuesBarrel_
PhotonProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
void produce(edm::Event &evt, const edm::EventSetup &es) override