CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEDPhotonProducer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_GEDPhotonProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_GEDPhotonProducer_h
3 
37 
40 
41 // GEDPhotonProducer inherits from EDProducer, so it can be a module:
43 
44  public:
45 
48 
49  virtual void beginRun (edm::Run const& r, edm::EventSetup const & es) override final;
50  virtual void endRun(edm::Run const&, edm::EventSetup const&) override final;
51  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
52 
53  private:
54 
56  edm::EventSetup const & es,
57  const edm::Handle<reco::PhotonCoreCollection> & photonCoreHandle,
58  const CaloTopology *topology,
59  const EcalRecHitCollection* ecalBarrelHits,
60  const EcalRecHitCollection* ecalEndcapHits,
61  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
62  reco::VertexCollection& pvVertices,
63  reco::PhotonCollection & outputCollection,
64  int& iSC);
65 
66 
68  edm::EventSetup const & es,
69  const edm::Handle<reco::PhotonCollection> & photonHandle,
70  const edm::Handle<reco::PFCandidateCollection> pfCandidateHandle,
71  const edm::Handle<reco::PFCandidateCollection> pfEGCandidateHandle,
72  edm::ValueMap<reco::PhotonRef> pfEGCandToPhotonMap,
74  reco::PhotonCollection & outputCollection,
75  int& iSC);
76 
77 
78  // std::string PhotonCoreCollection_;
81 
90 
91 
95 
96 
97 
100 
101  //AA
102  //Flags and severities to be excluded from calculations
103 
104  std::vector<int> flagsexclEB_;
105  std::vector<int> flagsexclEE_;
106  std::vector<int> severitiesexclEB_;
107  std::vector<int> severitiesexclEE_;
108 
109 
111  double maxHOverE_;
112  double minSCEt_;
113  double highEt_;
114  double minR9Barrel_;
115  double minR9Endcap_;
117 
120 
124 
127 
129 
130  //MIP
132 
133  std::vector<double> preselCutValuesBarrel_;
134  std::vector<double> preselCutValuesEndcap_;
135 
139 
140 };
141 #endif
edm::InputTag photonProducer_
std::string conversionCollection_
PhotonEnergyCorrector * thePhotonEnergyCorrector_
PhotonMIPHaloTagger * thePhotonMIPHaloTagger_
virtual void endRun(edm::Run const &, edm::EventSetup const &) overridefinal
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidates_
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)
edm::ESHandle< CaloGeometry > theCaloGeom_
edm::EDGetTokenT< CaloTowerCollection > hcalTowers_
CaloTopology const * topology(0)
std::vector< int > flagsexclEB_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
std::string reconstructionStep_
PhotonIsolationCalculator * thePhotonIsolationCalculator_
std::vector< int > severitiesexclEE_
std::string photonCollection_
edm::ESHandle< CaloTopology > theCaloTopo_
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
PositionCalc posCalculator_
std::string conversionProducer_
PFPhotonIsolationCalculator * thePFBasedIsolationCalculator_
std::vector< int > flagsexclEE_
edm::EDGetTokenT< reco::PhotonCoreCollection > photonCoreProducerT_
edm::EDGetTokenT< reco::PFCandidateCollection > pfEgammaCandidates_
std::vector< int > severitiesexclEB_
GEDPhotonProducer(const edm::ParameterSet &ps)
std::vector< double > preselCutValuesBarrel_
edm::EDGetTokenT< reco::PhotonCollection > photonProducerT_
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::vector< double > preselCutValuesEndcap_
std::string candidateP4type_
virtual void beginRun(edm::Run const &r, edm::EventSetup const &es) overridefinal
edm::ParameterSet conf_
edm::EDGetTokenT< reco::VertexCollection > vertexProducer_
EcalClusterFunctionBaseClass * energyCorrectionF
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
Definition: Run.h:41
std::string valueMapPFCandPhoton_