CMS 3D CMS Logo

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 
42  ~PhotonProducer() override;
43 
44  void produce(edm::Event& evt, const edm::EventSetup& es) override;
45 
46  private:
47 
49  edm::EventSetup const & es,
50  const edm::Handle<reco::PhotonCoreCollection> & photonCoreHandle,
51  const CaloTopology *topology,
52  const EcalRecHitCollection* ecalBarrelHits,
53  const EcalRecHitCollection* ecalEndcapHits,
54  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
55  //math::XYZPoint & vtx,
56  reco::VertexCollection& pvVertices,
57  reco::PhotonCollection & outputCollection,
58  int& iSC,
59  const EcalSeverityLevelAlgo * sevLv);
60 
61  // std::string PhotonCoreCollection_;
68 
71 
72  //AA
73  //Flags and severities to be excluded from calculations
74 
75  std::vector<int> flagsexclEB_;
76  std::vector<int> flagsexclEE_;
77  std::vector<int> severitiesexclEB_;
78  std::vector<int> severitiesexclEE_;
79 
80 
82  double maxHOverE_;
83  double minSCEt_;
84  double highEt_;
85  double minR9Barrel_;
86  double minR9Endcap_;
88 
91 
94 
96 
99 
102 
103  //MIP
105 
106  std::vector<double> preselCutValuesBarrel_;
107  std::vector<double> preselCutValuesEndcap_;
108 
112 
113 };
114 #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_
~PhotonProducer() override
EcalClusterFunctionBaseClass * energyCorrectionF
edm::EDGetTokenT< reco::PhotonCoreCollection > photonCoreProducer_
double hOverEConeSize_
edm::EDGetTokenT< EcalRecHitCollection > endcapEcalHits_
std::string conversionCollection_
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_
void produce(edm::Event &evt, const edm::EventSetup &es) override