CMS 3D CMS Logo

ConvertedPhotonProducer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_ConvertedPhotonProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_ConvertedPhotonProducer_h
3 
30 
35 
36  public:
37 
39  virtual ~ConvertedPhotonProducer();
40 
41  virtual void beginRun(edm::Run const&, const edm::EventSetup &es) override final;
42  virtual void produce(edm::Event& evt, const edm::EventSetup& es) override;
43 
44  private:
45 
46 
47 
48 
49 
50 
51  void buildCollections ( edm::EventSetup const & es,
52  const edm::Handle<edm::View<reco::CaloCluster> > & scHandle,
53  const edm::Handle<edm::View<reco::CaloCluster> > & bcHandle,
54  const edm::Handle<CaloTowerCollection> & hcalTowersHandle,
55  const edm::Handle<reco::TrackCollection> & trkHandle,
56  std::map<std::vector<reco::TransientTrack>, reco::CaloClusterPtr, CompareTwoTracksVectors>& allPairs,
57  reco::ConversionCollection & outputConvPhotonCollection);
60  reco::ConversionCollection & outputCollection);
61 
62  std::vector<reco::ConversionRef> solveAmbiguity( const edm::OrphanHandle<reco::ConversionCollection> & conversionHandle, reco::CaloClusterPtr& sc);
63 
64  float calculateMinApproachDistance ( const reco::TrackRef& track1, const reco::TrackRef& track2);
65  void getCircleCenter(const reco::TrackRef& tk, double r, double& x0, double& y0);
66 
67 
70 
71 
76 
78 
81 
88 
92 
96  int nEvt_;
98 
99 
101  double maxHOverE_;
102  double minSCEt_;
105  double deltaCotCut_;
109 
110 
113 
115  return math::XYZPointF(val.x(),val.y(),val.z());
116  }
117 
119  return math::XYZVectorF(val.x(),val.y(),val.z());
120  }
121 
122 
123 
124 };
125 #endif
edm::EDGetTokenT< reco::TrackCaloClusterPtrAssociation > outInTrackSCAssociationCollection_
edm::ESHandle< CaloGeometry > theCaloGeom_
ConversionTrackPairFinder * theTrackPairFinder_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcEndcapCollection_
edm::EDGetTokenT< reco::TrackCollection > conversionIOTrackProducer_
edm::ESHandle< TransientTrackBuilder > theTransientTrackBuilder_
ConversionVertexFinder * theVertexFinder_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scIslandEndcapProducer_
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:10
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
edm::EDGetTokenT< reco::TrackCollection > generalTrackProducer_
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)
edm::EDGetTokenT< CaloTowerCollection > hcalTowers_
float calculateMinApproachDistance(const reco::TrackRef &track1, const reco::TrackRef &track2)
edm::EDGetTokenT< reco::TrackCollection > conversionOITrackProducer_
edm::EDGetTokenT< reco::TrackCaloClusterPtrAssociation > inOutTrackSCAssociationCollection_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
edm::ESHandle< MagneticField > theMF_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcBarrelCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scHybridBarrelProducer_
ConversionTrackEcalImpactPoint * theEcalImpactPositionFinder_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
virtual void produce(edm::Event &evt, const edm::EventSetup &es) override
ConvertedPhotonProducer(const edm::ParameterSet &ps)
std::vector< reco::ConversionRef > solveAmbiguity(const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::CaloClusterPtr &sc)
math::XYZPointF toFConverterP(const math::XYZPoint &val)
ConversionLikelihoodCalculator * theLikelihoodCalc_
virtual void beginRun(edm::Run const &, const edm::EventSetup &es) override final
Definition: Run.h:42
void getCircleCenter(const reco::TrackRef &tk, double r, double &x0, double &y0)