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 
39 
40 // PhotonProducer inherits from EDProducer, so it can be a module:
42 
43  public:
44 
47 
48  virtual void beginRun (edm::Run& r, edm::EventSetup const & es);
49  virtual void endRun(edm::Run &, edm::EventSetup const&);
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 edm::Handle<CaloTowerCollection> & hcalTowersHandle,
61  //math::XYZPoint & vtx,
62  reco::VertexCollection& pvVertices,
63  reco::PhotonCollection & outputCollection,
64  int& iSC,
65  const EcalSeverityLevelAlgo * sevLv);
66 
67  // std::string PhotonCoreCollection_;
68  std::string PhotonCollection_;
72 
74 
75  std::string conversionProducer_;
76  std::string conversionCollection_;
77 
78  //AA
79  //Flags and severities to be excluded from calculations
80 
81  std::vector<int> flagsexclEB_;
82  std::vector<int> flagsexclEE_;
83  std::vector<int> severitiesexclEB_;
84  std::vector<int> severitiesexclEE_;
85 
86 
88  double maxHOverE_;
89  double minSCEt_;
90  double highEt_;
91  double minR9Barrel_;
92  double minR9Endcap_;
94 
96  std::string pixelSeedProducer_;
97  std::string vertexProducer_;
100 
102 
105 
108 
109  //MIP
111 
112  std::vector<double> preselCutValuesBarrel_;
113  std::vector<double> preselCutValuesEndcap_;
114 
117  std::string candidateP4type_;
118 
119 };
120 #endif
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_
edm::InputTag hcalTowers_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
PositionCalc posCalculator_
edm::InputTag photonCoreProducer_
EcalClusterFunctionBaseClass * energyCorrectionF
virtual void endRun(edm::Run &, edm::EventSetup const &)
double hOverEConeSize_
virtual void beginRun(edm::Run &r, edm::EventSetup const &es)
std::string conversionCollection_
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
edm::InputTag barrelEcalHits_
PhotonProducer(const edm::ParameterSet &ps)
edm::InputTag endcapEcalHits_
PhotonMIPHaloTagger * thePhotonMIPHaloTagger_
Definition: Run.h:33
std::string vertexProducer_