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 
38 
41 
42 // GEDPhotonProducer inherits from EDProducer, so it can be a module:
44 
45  public:
46 
49 
50  virtual void beginRun (edm::Run const& r, edm::EventSetup const & es) override final;
51  virtual void endRun(edm::Run const&, edm::EventSetup const&) override final;
52  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
53 
54  private:
55 
57  edm::EventSetup const & es,
58  const edm::Handle<reco::PhotonCoreCollection> & photonCoreHandle,
59  const CaloTopology *topology,
60  const EcalRecHitCollection* ecalBarrelHits,
61  const EcalRecHitCollection* ecalEndcapHits,
62  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
63  reco::VertexCollection& pvVertices,
64  reco::PhotonCollection & outputCollection,
65  int& iSC);
66 
67 
69  edm::EventSetup const & es,
70  const edm::Handle<reco::PhotonCollection> & photonHandle,
71  const edm::Handle<reco::PFCandidateCollection> pfCandidateHandle,
72  const edm::Handle<reco::PFCandidateCollection> pfEGCandidateHandle,
73  edm::ValueMap<reco::PhotonRef> pfEGCandToPhotonMap,
75  reco::PhotonCollection & outputCollection,
76  int& iSC);
77 
78 
79  // std::string PhotonCoreCollection_;
82 
91 
92 
96 
97 
98 
101 
102  //AA
103  //Flags and severities to be excluded from calculations
104 
105  std::vector<int> flagsexclEB_;
106  std::vector<int> flagsexclEE_;
107  std::vector<int> severitiesexclEB_;
108  std::vector<int> severitiesexclEE_;
109 
110 
112  double maxHOverE_;
113  double minSCEt_;
114  double highEt_;
115  double minR9Barrel_;
116  double minR9Endcap_;
118 
121 
125 
128 
130 
131  //MIP
133 
134  std::vector<double> preselCutValuesBarrel_;
135  std::vector<double> preselCutValuesEndcap_;
136 
140 
141 };
142 #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_
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< double > preselCutValuesEndcap_
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
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_