CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConvertedPhotonProducer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_ConvertedPhotonProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_ConvertedPhotonProducer_h
3 
33 
38 
39  public:
40 
43 
44  virtual void beginRun (edm::Run& r, edm::EventSetup const & es);
45  virtual void endRun (edm::Run& r, edm::EventSetup const & es);
46  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
47  virtual void endJob();
48 
49 
50  private:
51 
52 
53 
54 
55 
56 
57  void buildCollections ( edm::EventSetup const & es,
58  const edm::Handle<edm::View<reco::CaloCluster> > & scHandle,
59  const edm::Handle<edm::View<reco::CaloCluster> > & bcHandle,
60  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
61  const edm::Handle<reco::TrackCollection> & trkHandle,
62  std::map<std::vector<reco::TransientTrack>, reco::CaloClusterPtr>& allPairs,
63  reco::ConversionCollection & outputConvPhotonCollection);
66  reco::ConversionCollection & outputCollection);
67 
68  std::vector<reco::ConversionRef> solveAmbiguity( const edm::OrphanHandle<reco::ConversionCollection> & conversionHandle, reco::CaloClusterPtr& sc);
69 
70  float calculateMinApproachDistance ( const reco::TrackRef& track1, const reco::TrackRef& track2);
71  void getCircleCenter(const reco::TrackRef& tk, double r, double& x0, double& y0);
72 
73 
76 
77 
80 
81 
84 
91 
95 
99  int nEvt_;
100  std::string algoName_;
101 
102 
104  double maxHOverE_;
105  double minSCEt_;
108  double deltaCotCut_;
112 
113 
115  std::string likelihoodWeights_;
116 
117 
118 
119 };
120 #endif
virtual void beginRun(edm::Run &r, edm::EventSetup const &es)
edm::ESHandle< CaloGeometry > theCaloGeom_
ConversionTrackPairFinder * theTrackPairFinder_
edm::ESHandle< TransientTrackBuilder > theTransientTrackBuilder_
ConversionVertexFinder * theVertexFinder_
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
dictionary map
Definition: Association.py:160
void cleanCollections(const edm::Handle< edm::View< reco::CaloCluster > > &scHandle, const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::ConversionCollection &outputCollection)
std::string outInTrackSCAssociationCollection_
void buildCollections(edm::EventSetup const &es, const edm::Handle< edm::View< reco::CaloCluster > > &scHandle, const edm::Handle< edm::View< reco::CaloCluster > > &bcHandle, const edm::Handle< CaloTowerCollection > &hcalTowersHandle, const edm::Handle< reco::TrackCollection > &trkHandle, std::map< std::vector< reco::TransientTrack >, reco::CaloClusterPtr > &allPairs, reco::ConversionCollection &outputConvPhotonCollection)
virtual void endRun(edm::Run &r, edm::EventSetup const &es)
float calculateMinApproachDistance(const reco::TrackRef &track1, const reco::TrackRef &track2)
std::string inOutTrackSCAssociationCollection_
edm::ESHandle< MagneticField > theMF_
ConversionTrackEcalImpactPoint * theEcalImpactPositionFinder_
ConvertedPhotonProducer(const edm::ParameterSet &ps)
virtual void produce(edm::Event &evt, const edm::EventSetup &es)
std::vector< reco::ConversionRef > solveAmbiguity(const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::CaloClusterPtr &sc)
ConversionLikelihoodCalculator * theLikelihoodCalc_
Definition: Run.h:31
void getCircleCenter(const reco::TrackRef &tk, double r, double &x0, double &y0)