CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonProducer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_PhotonProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_PhotonProducer_h
3 
36 
37 // PhotonProducer inherits from EDProducer, so it can be a module:
39 
40  public:
41 
44 
45  virtual void beginRun (edm::Run const& r, edm::EventSetup const & es) override final;
46  virtual void endRun(edm::Run const&, edm::EventSetup const&) override final;
47  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
48 
49  private:
50 
52  edm::EventSetup const & es,
53  const edm::Handle<reco::PhotonCoreCollection> & photonCoreHandle,
54  const CaloTopology *topology,
55  const EcalRecHitCollection* ecalBarrelHits,
56  const EcalRecHitCollection* ecalEndcapHits,
57  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
58  //math::XYZPoint & vtx,
59  reco::VertexCollection& pvVertices,
60  reco::PhotonCollection & outputCollection,
61  int& iSC,
62  const EcalSeverityLevelAlgo * sevLv);
63 
64  // std::string PhotonCoreCollection_;
71 
74 
75  //AA
76  //Flags and severities to be excluded from calculations
77 
78  std::vector<int> flagsexclEB_;
79  std::vector<int> flagsexclEE_;
80  std::vector<int> severitiesexclEB_;
81  std::vector<int> severitiesexclEE_;
82 
83 
85  double maxHOverE_;
86  double minSCEt_;
87  double highEt_;
88  double minR9Barrel_;
89  double minR9Endcap_;
91 
94 
97 
99 
102 
105 
106  //MIP
108 
109  std::vector<double> preselCutValuesBarrel_;
110  std::vector<double> preselCutValuesEndcap_;
111 
115 
116 };
117 #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_
std::string conversionProducer_
edm::ParameterSet conf_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
PositionCalc posCalculator_
EcalClusterFunctionBaseClass * energyCorrectionF
edm::EDGetTokenT< reco::PhotonCoreCollection > photonCoreProducer_
double hOverEConeSize_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
std::string conversionCollection_
virtual void beginRun(edm::Run const &r, edm::EventSetup const &es) overridefinal
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
std::vector< int > flagsexclEB_
edm::ESHandle< CaloTopology > theCaloTopo_
std::vector< int > flagsexclEE_
std::string candidateP4type_
std::vector< int > severitiesexclEE_
PhotonIsolationCalculator * thePhotonIsolationCalculator_
std::vector< int > severitiesexclEB_
std::string PhotonCollection_
edm::ESHandle< CaloGeometry > theCaloGeom_
PhotonEnergyCorrector * thePhotonEnergyCorrector_
std::string pixelSeedProducer_
std::vector< double > preselCutValuesBarrel_
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
PhotonProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
PhotonMIPHaloTagger * thePhotonMIPHaloTagger_
virtual void endRun(edm::Run const &, edm::EventSetup const &) overridefinal
Definition: Run.h:41