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 
34 
39 
40  public:
41 
43  virtual ~ConvertedPhotonProducer();
44 
45  virtual void beginRun(edm::Run const&, const edm::EventSetup &es) override final;
46  virtual void produce(edm::Event& evt, const edm::EventSetup& es);
47 
48  private:
49 
50 
51 
52 
53 
54 
55  void buildCollections ( edm::EventSetup const & es,
56  const edm::Handle<edm::View<reco::CaloCluster> > & scHandle,
57  const edm::Handle<edm::View<reco::CaloCluster> > & bcHandle,
58  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
59  const edm::Handle<reco::TrackCollection> & trkHandle,
60  std::map<std::vector<reco::TransientTrack>, reco::CaloClusterPtr, CompareTwoTracksVectors>& allPairs,
61  reco::ConversionCollection & outputConvPhotonCollection);
64  reco::ConversionCollection & outputCollection);
65 
66  std::vector<reco::ConversionRef> solveAmbiguity( const edm::OrphanHandle<reco::ConversionCollection> & conversionHandle, reco::CaloClusterPtr& sc);
67 
68  float calculateMinApproachDistance ( const reco::TrackRef& track1, const reco::TrackRef& track2);
69  void getCircleCenter(const reco::TrackRef& tk, double r, double& x0, double& y0);
70 
71 
74 
75 
78 
79 
82 
89 
93 
97  int nEvt_;
99 
100 
102  double maxHOverE_;
103  double minSCEt_;
106  double deltaCotCut_;
110 
111 
114 
116  return math::XYZPointF(val.x(),val.y(),val.z());
117  }
118 
120  return math::XYZVectorF(val.x(),val.y(),val.z());
121  }
122 
123 
124 
125 };
126 #endif
edm::ESHandle< CaloGeometry > theCaloGeom_
ConversionTrackPairFinder * theTrackPairFinder_
edm::ESHandle< TransientTrackBuilder > theTransientTrackBuilder_
ConversionVertexFinder * theVertexFinder_
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, CompareTwoTracksVectors > &allPairs, reco::ConversionCollection &outputConvPhotonCollection)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:11
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
dictionary map
Definition: Association.py:205
math::XYZVectorF toFConverterV(const math::XYZVector &val)
void cleanCollections(const edm::Handle< edm::View< reco::CaloCluster > > &scHandle, const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::ConversionCollection &outputCollection)
std::string outInTrackSCAssociationCollection_
float calculateMinApproachDistance(const reco::TrackRef &track1, const reco::TrackRef &track2)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:18
virtual void beginRun(edm::Run const &, const edm::EventSetup &es) overridefinal
std::string inOutTrackSCAssociationCollection_
edm::ESHandle< MagneticField > theMF_
ConversionTrackEcalImpactPoint * theEcalImpactPositionFinder_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
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)
math::XYZPointF toFConverterP(const math::XYZPoint &val)
ConversionLikelihoodCalculator * theLikelihoodCalc_
Definition: Run.h:36
void getCircleCenter(const reco::TrackRef &tk, double r, double &x0, double &y0)