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 
36 
39 
40 // GEDPhotonProducer inherits from EDProducer, so it can be a module:
42 
43  public:
44 
47 
48  virtual void beginRun (edm::Run const& r, edm::EventSetup const & es) override final;
49  virtual void endRun(edm::Run const&, edm::EventSetup const&) override final;
50  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
51 
52  private:
53 
55  edm::EventSetup const & es,
56  const edm::Handle<reco::PhotonCoreCollection> & photonCoreHandle,
57  const CaloTopology *topology,
58  const EcalRecHitCollection* ecalBarrelHits,
59  const EcalRecHitCollection* ecalEndcapHits,
60  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
61  reco::VertexCollection& pvVertices,
62  reco::PhotonCollection & outputCollection,
63  int& iSC);
64 
65 
67  edm::EventSetup const & es,
68  const edm::Handle<reco::PhotonCollection> & photonHandle,
69  const edm::Handle<reco::PFCandidateCollection> pfCandidateHandle,
70  const edm::Handle<reco::PFCandidateCollection> pfEGCandidateHandle,
71  edm::ValueMap<reco::PhotonRef> pfEGCandToPhotonMap,
73  reco::PhotonCollection & outputCollection,
74  int& iSC);
75 
76 
77  // std::string PhotonCoreCollection_;
80 
89 
90 
94 
95 
96 
99 
100  //AA
101  //Flags and severities to be excluded from calculations
102 
103  std::vector<int> flagsexclEB_;
104  std::vector<int> flagsexclEE_;
105  std::vector<int> severitiesexclEB_;
106  std::vector<int> severitiesexclEE_;
107 
108 
110  double maxHOverE_;
111  double minSCEt_;
112  double highEt_;
113  double minR9Barrel_;
114  double minR9Endcap_;
116 
119 
123 
126 
128 
129  //MIP
131 
132  std::vector<double> preselCutValuesBarrel_;
133  std::vector<double> preselCutValuesEndcap_;
134 
138 
139 };
140 #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_