test
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 EcalRecHitCollection* preshowerHits,
61  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
62  const 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 
91 
95 
98 
99  //AA
100  //Flags and severities to be excluded from calculations
101 
102  std::vector<int> flagsexclEB_;
103  std::vector<int> flagsexclEE_;
104  std::vector<int> severitiesexclEB_;
105  std::vector<int> severitiesexclEE_;
106 
107 
109  double maxHOverE_;
110  double minSCEt_;
111  double highEt_;
112  double minR9Barrel_;
113  double minR9Endcap_;
115 
118 
122 
125 
127 
128  //MIP
130 
131  std::vector<double> preselCutValuesBarrel_;
132  std::vector<double> preselCutValuesEndcap_;
133 
137 
138 };
139 #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_
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_
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 EcalRecHitCollection *preshowerHits, const edm::Handle< CaloTowerCollection > &hcalTowersHandle, const reco::VertexCollection &pvVertices, reco::PhotonCollection &outputCollection, int &iSC)
virtual void beginRun(edm::Run const &r, edm::EventSetup const &es) overridefinal
edm::ParameterSet conf_
edm::EDGetTokenT< reco::VertexCollection > vertexProducer_
EcalClusterFunctionBaseClass * energyCorrectionF
edm::EDGetTokenT< EcalRecHitCollection > preshowerHits_
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
Definition: Run.h:43
std::string valueMapPFCandPhoton_