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 
35 
36 // PhotonProducer inherits from EDProducer, so it can be a module:
38 
39  public:
40 
43 
44  virtual void beginRun (edm::Run const& r, edm::EventSetup const & es) override final;
45  virtual void endRun(edm::Run const&, edm::EventSetup const&) override final;
46  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
47 
48  private:
49 
51  edm::EventSetup const & es,
52  const edm::Handle<reco::PhotonCoreCollection> & photonCoreHandle,
53  const CaloTopology *topology,
54  const EcalRecHitCollection* ecalBarrelHits,
55  const EcalRecHitCollection* ecalEndcapHits,
56  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
57  //math::XYZPoint & vtx,
58  reco::VertexCollection& pvVertices,
59  reco::PhotonCollection & outputCollection,
60  int& iSC,
61  const EcalSeverityLevelAlgo * sevLv);
62 
63  // std::string PhotonCoreCollection_;
70 
73 
74  //AA
75  //Flags and severities to be excluded from calculations
76 
77  std::vector<int> flagsexclEB_;
78  std::vector<int> flagsexclEE_;
79  std::vector<int> severitiesexclEB_;
80  std::vector<int> severitiesexclEE_;
81 
82 
84  double maxHOverE_;
85  double minSCEt_;
86  double highEt_;
87  double minR9Barrel_;
88  double minR9Endcap_;
90 
93 
96 
98 
101 
104 
105  //MIP
107 
108  std::vector<double> preselCutValuesBarrel_;
109  std::vector<double> preselCutValuesEndcap_;
110 
114 
115 };
116 #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_
CaloTopology const * topology(0)
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< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::vector< double > preselCutValuesBarrel_
PhotonProducer(const edm::ParameterSet &ps)
edm::EDGetTokenT< EcalRecHitCollection > barrelEcalHits_
PhotonMIPHaloTagger * thePhotonMIPHaloTagger_
virtual void endRun(edm::Run const &, edm::EventSetup const &) overridefinal
Definition: Run.h:43