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 
34 
39 public:
41  ~ConvertedPhotonProducer() override;
42 
43  void beginRun(edm::Run const&, const edm::EventSetup& es) final;
44  void produce(edm::Event& evt, const edm::EventSetup& es) override;
45 
46 private:
47  void buildCollections(
48  edm::EventSetup const& es,
49  const edm::Handle<edm::View<reco::CaloCluster> >& scHandle,
50  const edm::Handle<edm::View<reco::CaloCluster> >& bcHandle,
51  const edm::Handle<CaloTowerCollection>& hcalTowersHandle,
52  const edm::Handle<reco::TrackCollection>& trkHandle,
53  std::map<std::vector<reco::TransientTrack>, reco::CaloClusterPtr, CompareTwoTracksVectors>& allPairs,
54  reco::ConversionCollection& outputConvPhotonCollection);
57  reco::ConversionCollection& outputCollection);
58 
60  reco::CaloClusterPtr const& sc);
61 
62  float calculateMinApproachDistance(const reco::TrackRef& track1, const reco::TrackRef& track2);
63  void getCircleCenter(const reco::TrackRef& tk, double r, double& x0, double& y0);
64 
67 
70 
72 
75 
82 
86 
90 
94  int nEvt_;
96 
98  double maxHOverE_;
99  double minSCEt_;
102  double deltaCotCut_;
106 
109 
111 
113 };
114 #endif
ConvertedPhotonProducer::scIslandEndcapProducer_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scIslandEndcapProducer_
Definition: ConvertedPhotonProducer.h:79
ConversionLikelihoodCalculator
Definition: ConversionLikelihoodCalculator.h:9
ConvertedPhotonProducer::theLikelihoodCalc_
ConversionLikelihoodCalculator * theLikelihoodCalc_
Definition: ConvertedPhotonProducer.h:107
ESHandle.h
ConvertedPhotonProducer::minApproachDisCut_
double minApproachDisCut_
Definition: ConvertedPhotonProducer.h:103
ConvertedPhotonProducer::~ConvertedPhotonProducer
~ConvertedPhotonProducer() override
Definition: ConvertedPhotonProducer.cc:115
ConvertedPhotonProducer::beginRun
void beginRun(edm::Run const &, const edm::EventSetup &es) final
Definition: ConvertedPhotonProducer.cc:121
ConvertedPhotonProducer::generalTrackProducer_
edm::EDGetTokenT< reco::TrackCollection > generalTrackProducer_
Definition: ConvertedPhotonProducer.h:71
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< reco::TrackCollection >
ConvertedPhotonProducer::mFToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > mFToken_
Definition: ConvertedPhotonProducer.h:88
ConvertedPhotonProducer::theCaloGeom_
edm::ESHandle< CaloGeometry > theCaloGeom_
Definition: ConvertedPhotonProducer.h:83
EDProducer.h
ConvertedPhotonProducer
Definition: ConvertedPhotonProducer.h:38
printConversionInfo.conversionHandle
conversionHandle
Definition: printConversionInfo.py:15
ConvertedPhotonProducer::getCircleCenter
void getCircleCenter(const reco::TrackRef &tk, double r, double &x0, double &y0)
Definition: ConvertedPhotonProducer.cc:620
TransientTrack.h
ConvertedPhotonProducer::hcalTowers_
edm::EDGetTokenT< CaloTowerCollection > hcalTowers_
Definition: ConvertedPhotonProducer.h:81
ConvertedPhotonProducer::cleanCollections
void cleanCollections(const edm::Handle< edm::View< reco::CaloCluster > > &scHandle, const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::ConversionCollection &outputCollection)
Definition: ConvertedPhotonProducer.cc:531
edm::Handle
Definition: AssociativeIterator.h:50
ConvertedPhotonProducer::transientTrackToken_
edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > transientTrackToken_
Definition: ConvertedPhotonProducer.h:89
ESGetToken.h
ConvertedPhotonProducer::conversionOITrackProducer_
edm::EDGetTokenT< reco::TrackCollection > conversionOITrackProducer_
Definition: ConvertedPhotonProducer.h:65
ConvertedPhotonProducer::inOutTrackSCAssociationCollection_
edm::EDGetTokenT< reco::TrackCaloClusterPtrAssociation > inOutTrackSCAssociationCollection_
Definition: ConvertedPhotonProducer.h:69
ConversionTrackPairFinder
Definition: ConversionTrackPairFinder.h:44
edm::Ref< TrackCollection >
reco::ConversionCollection
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
ConversionVertexFinder
Definition: ConversionVertexFinder.h:29
ConvertedPhotonProducer::theTrackPairFinder_
ConversionTrackPairFinder * theTrackPairFinder_
Definition: ConvertedPhotonProducer.h:91
ConvertedPhotonProducer::conf_
edm::ParameterSet conf_
Definition: ConvertedPhotonProducer.h:80
GeometricSearchTracker.h
ConvertedPhotonProducer::algoName_
std::string algoName_
Definition: ConvertedPhotonProducer.h:95
ConvertedPhotonProducer::dRForConversionRecovery_
double dRForConversionRecovery_
Definition: ConvertedPhotonProducer.h:101
ConvertedPhotonProducer::caloGeomToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
Definition: ConvertedPhotonProducer.h:87
LayerMeasurements.h
ConvertedPhotonProducer::conversionIOTrackProducer_
edm::EDGetTokenT< reco::TrackCollection > conversionIOTrackProducer_
Definition: ConvertedPhotonProducer.h:66
IdealMagneticFieldRecord.h
edm::ESHandle< CaloGeometry >
ConvertedPhotonProducer::ConvertedPhotonCollection_
std::string ConvertedPhotonCollection_
Definition: ConvertedPhotonProducer.h:73
CaloClusterFwd.h
ConvertedPhotonProducer::risolveAmbiguity_
bool risolveAmbiguity_
Definition: ConvertedPhotonProducer.h:105
ConvertedPhotonProducer::produce
void produce(edm::Event &evt, const edm::EventSetup &es) override
Definition: ConvertedPhotonProducer.cc:130
ConvertedPhotonProducer::theMF_
edm::ESHandle< MagneticField > theMF_
Definition: ConvertedPhotonProducer.h:84
ConvertedPhotonProducer::bcBarrelCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcBarrelCollection_
Definition: ConvertedPhotonProducer.h:76
ConvertedPhotonProducer::buildCollections
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)
Definition: ConvertedPhotonProducer.cc:282
CaloGeometryRecord.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ConvertedPhotonProducer::maxHOverE_
double maxHOverE_
Definition: ConvertedPhotonProducer.h:98
edm::View
Definition: CaloClusterFwd.h:14
TransientTrackBuilder.h
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
Event.h
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
ConvertedPhotonProducer::toFConverterP
math::XYZPointF toFConverterP(const math::XYZPoint &val)
Definition: ConvertedPhotonProducer.h:110
ConvertedPhotonProducer::hOverEConeSize_
double hOverEConeSize_
Definition: ConvertedPhotonProducer.h:97
edm::stream::EDProducer
Definition: EDProducer.h:38
ConvertedPhotonProducer::toFConverterV
math::XYZVectorF toFConverterV(const math::XYZVector &val)
Definition: ConvertedPhotonProducer.h:112
MagneticField.h
ConvertedPhotonProducer::maxNumOfCandidates_
int maxNumOfCandidates_
Definition: ConvertedPhotonProducer.h:104
edm::EventSetup
Definition: EventSetup.h:57
ConvertedPhotonProducer::deltaCotCut_
double deltaCotCut_
Definition: ConvertedPhotonProducer.h:102
TransientTrackRecord.h
ConvertedPhotonProducer::solveAmbiguity
std::vector< reco::ConversionRef > solveAmbiguity(const edm::OrphanHandle< reco::ConversionCollection > &conversionHandle, reco::CaloClusterPtr const &sc)
Definition: ConvertedPhotonProducer.cc:571
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
edm::Ptr< CaloCluster >
alignCSCRings.r
r
Definition: alignCSCRings.py:93
CaloTowerCollection.h
VertexFwd.h
TrackCaloClusterAssociation.h
heppy_batch.val
val
Definition: heppy_batch.py:351
edm::OrphanHandle
Definition: EDProductfwd.h:39
ConvertedPhotonProducer::calculateMinApproachDistance
float calculateMinApproachDistance(const reco::TrackRef &track1, const reco::TrackRef &track2)
Definition: ConvertedPhotonProducer.cc:604
ConvertedPhotonProducer::scHybridBarrelProducer_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scHybridBarrelProducer_
Definition: ConvertedPhotonProducer.h:78
ConvertedPhotonProducer::theEcalImpactPositionFinder_
ConversionTrackEcalImpactPoint * theEcalImpactPositionFinder_
Definition: ConvertedPhotonProducer.h:93
ConvertedPhotonProducer::likelihoodWeights_
std::string likelihoodWeights_
Definition: ConvertedPhotonProducer.h:108
ConvertedPhotonProducer::minSCEt_
double minSCEt_
Definition: ConvertedPhotonProducer.h:99
CaloGeometry.h
ConvertedPhotonProducer::bcEndcapCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcEndcapCollection_
Definition: ConvertedPhotonProducer.h:77
CompareTwoTracksVectors
Definition: ConversionTrackPairFinder.h:38
math::XYZVectorF
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:16
EventSetup.h
ConvertedPhotonProducer::recoverOneTrackCase_
bool recoverOneTrackCase_
Definition: ConvertedPhotonProducer.h:100
ConversionTrackEcalImpactPoint
Definition: ConversionTrackEcalImpactPoint.h:37
ConvertedPhotonProducer::outInTrackSCAssociationCollection_
edm::EDGetTokenT< reco::TrackCaloClusterPtrAssociation > outInTrackSCAssociationCollection_
Definition: ConvertedPhotonProducer.h:68
genParticles_cff.map
map
Definition: genParticles_cff.py:11
View.h
ParameterSet.h
NavigationSchool.h
ConvertedPhotonProducer::ConvertedPhotonProducer
ConvertedPhotonProducer(const edm::ParameterSet &ps)
Definition: ConvertedPhotonProducer.cc:44
ConvertedPhotonProducer::theTransientTrackBuilder_
edm::ESHandle< TransientTrackBuilder > theTransientTrackBuilder_
Definition: ConvertedPhotonProducer.h:85
math::XYZPointF
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
edm::Event
Definition: Event.h:73
ConversionLikelihoodCalculator.h
ConversionTrackPairFinder.h
ConvertedPhotonProducer::nEvt_
int nEvt_
Definition: ConvertedPhotonProducer.h:94
ConvertedPhotonProducer::theVertexFinder_
ConversionVertexFinder * theVertexFinder_
Definition: ConvertedPhotonProducer.h:92
ConvertedPhotonProducer::CleanedConvertedPhotonCollection_
std::string CleanedConvertedPhotonCollection_
Definition: ConvertedPhotonProducer.h:74
MeasurementTracker.h