#include <ConversionProducer.h>
Public Member Functions | |
ConversionProducer (const edm::ParameterSet &) | |
~ConversionProducer () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Private Types | |
typedef math::XYZPointF | Point |
typedef std::vector< Point > | PointCollection |
Private Member Functions | |
void | buildCollection (edm::Event &iEvent, const edm::EventSetup &iSetup, const std::multimap< float, edm::Ptr< reco::ConversionTrack > > &allTracks, const std::multimap< double, reco::CaloClusterPtr > &superClusterPtrs, const std::multimap< double, reco::CaloClusterPtr > &basicClusterPtrs, const reco::Vertex &the_pvtx, reco::ConversionCollection &outputConvPhotonCollection) |
void | buildSuperAndBasicClusterGeoMap (const edm::Event &, std::multimap< double, reco::CaloClusterPtr > &basicClusterPtrs, std::multimap< double, reco::CaloClusterPtr > &superClusterPtrs) |
bool | checkPhi (const edm::RefToBase< reco::Track > &tk_l, const edm::RefToBase< reco::Track > &tk_r, const TrackerGeometry *trackerGeom, const MagneticField *magField, const reco::Vertex &the_vertex) |
bool | checkTrackPair (const std::pair< edm::RefToBase< reco::Track >, reco::CaloClusterPtr > &ll, const std::pair< edm::RefToBase< reco::Track >, reco::CaloClusterPtr > &rr) |
bool | checkVertex (const reco::TransientTrack &ttk_l, const reco::TransientTrack &ttk_r, const MagneticField *magField, reco::Vertex &the_vertex) |
double | etaTransformation (float EtaParticle, float Zvertex) |
bool | getMatchedBC (const std::multimap< double, reco::CaloClusterPtr > &bcMap, const math::XYZPointF &trackImpactPosition, reco::CaloClusterPtr &closestBC) |
bool | getTrackImpactPosition (const reco::Track *tk_ref, const TrackerGeometry *trackerGeom, const MagneticField *magField, math::XYZPointF &ew) |
bool | matchingSC (const std::multimap< double, reco::CaloClusterPtr > &scMap, reco::Conversion &conv, reco::CaloClusterPtrVector &mSC) |
bool | preselectTrackPair (const reco::TransientTrack &ttk_l, const reco::TransientTrack &ttk_r, double &appDist) |
void | produce (edm::Event &, const edm::EventSetup &) override |
math::XYZPointF | toFConverterP (const math::XYZPoint &val) |
math::XYZVectorF | toFConverterV (const math::XYZVector &val) |
bool | trackD0Cut (const edm::RefToBase< reco::Track > &ref) |
bool | trackD0Cut (const edm::RefToBase< reco::Track > &ref, const reco::Vertex &the_pvtx) |
bool | trackQualityFilter (const edm::RefToBase< reco::Track > &ref, bool isLeft) |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
$Id:
Description: Produces converted photon objects using default track collections
Implementation: <Notes on="" implementation>="">
Definition at line 64 of file ConversionProducer.h.
|
private |
Definition at line 79 of file ConversionProducer.h.
|
private |
Definition at line 80 of file ConversionProducer.h.
|
explicit |
Definition at line 67 of file ConversionProducer.cc.
References algoName_, allowD0_, allowDeltaCot_, allowDeltaPhi_, allowMinApproach_, allowOppCharge_, allowSingleLeg_, allowTrackBC_, allowVertex_, bcBarrelCollection_, bcEndcapCollection_, bypassPreselEcal_, bypassPreselEcalEcal_, bypassPreselGsf_, ConvertedPhotonCollection_, d0Cut_, deltaCotTheta_, deltaEta_, deltaPhi_, dEtacutForSCmatching_, dEtaTkBC_, dPhicutForSCmatching_, dPhiTkBC_, dzCut_, energyBC_, energyTotalBC_, edm::ParameterSet::getParameter(), halfWayEta_, maxChi2Left_, maxChi2Right_, maxNumOfTrackInPU_, maxTrackRho_, maxTrackZ_, minApproachHigh_, minApproachLow_, minHitsLeft_, minHitsRight_, minSCEt_, r_cut, rightBC_, scBarrelProducer_, scEndcapProducer_, src_, AlCaHLTBitMon_QueryRunRegistry::string, thettbuilder_, theVertexFinder_, usePvtx_, vertexProducer_, and vtxChi2_.
|
override |
|
private |
match the track pair with a SC. If at least one track matches, store the SC
Definition at line 274 of file ConversionProducer.cc.
References reco::TrackBase::algo(), reco::Conversion::algoByName(), algoName_, allowOppCharge_, allowTrackBC_, muonTagProbeFilters_cff::allTracks, reco::Conversion::arbitratedEcalSeeded, tkConvValidator_cfi::arbitratedEcalSeeded, reco::Conversion::arbitratedMerged, tkConvValidator_cfi::arbitratedMerged, reco::Conversion::arbitratedMergedEcalGeneral, TransientTrackBuilder::build(), bypassPreselEcal_, bypassPreselEcalEcal_, bypassPreselGsf_, edm::RefToBase< T >::castTo(), reco::TrackBase::charge(), checkPhi(), checkVertex(), reco::Vertex::chi2(), ChiSquaredProbability(), deltaEta_, energyTotalBC_, reco::Track::extra(), reco::Conversion::generalTracksOnly, tkConvValidator_cfi::generalTracksOnly, edm::EventSetup::get(), edm::RefToBase< T >::get(), get, getMatchedBC(), getTrackImpactPosition(), reco::TrackBase::gsf, reco::Conversion::gsfTracksOpenOnly, reco::Conversion::highPurity, reco::Track::innerMomentum(), reco::Track::innerPosition(), reco::TrackBase::inOutEcalSeededConv, edm::Ref< C, T, F >::isNonnull(), reco::Vertex::isValid(), matchingSC(), reco::Vertex::ndof(), ConversionHitChecker::nHitsBeforeVtx(), ConversionHitChecker::nSharedHits(), reco::Track::outerMomentum(), reco::TrackBase::outInEcalSeededConv, preselectTrackPair(), edm::ESHandle< T >::product(), findQualityFiles::rr, reco::Conversion::setMatchingSuperCluster(), reco::Conversion::setQuality(), thettbuilder_, toFConverterP(), toFConverterV(), trackD0Cut(), trackQualityFilter(), and vtxChi2_.
Referenced by produce().
|
private |
Definition at line 225 of file ConversionProducer.cc.
References bcBarrelCollection_, bcEndcapCollection_, energyBC_, patZpeak::handle, iEvent, edm::HandleBase::isValid(), minSCEt_, scBarrelProducer_, and scEndcapProducer_.
Referenced by produce().
|
private |
Definition at line 700 of file ConversionProducer.cc.
References allowDeltaPhi_, anyDirection, reco::deltaPhi(), deltaPhi_, HLT_2018_cff::dPhi, reco::Track::extra(), TrajectoryStateOnSurface::globalDirection(), reco::Track::innerMomentum(), trajectoryStateTransform::innerStateOnSurface(), edm::Ref< C, T, F >::isNonnull(), TrajectoryStateOnSurface::isValid(), PV3DBase< T, PVType, FrameType >::phi(), PropagatorWithMaterial::propagate(), makeMuonMisalignmentScenario::rot, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by buildCollection().
|
private |
Definition at line 808 of file ConversionProducer.cc.
References allowTrackBC_, energyTotalBC_, edm::Ptr< T >::isNonnull(), rightBC_, and findQualityFiles::rr.
|
private |
Definition at line 831 of file ConversionProducer.cc.
References newFWLiteAna::found, ConversionVertexFinder::run(), and theVertexFinder_.
Referenced by buildCollection().
|
private |
Definition at line 846 of file ConversionProducer.cc.
References ETA, etaBarrelEndcap, dqm-mbProfile::log, PI, R_ECAL, funct::tan(), Z_Endcap, and ZEcal.
Referenced by matchingSC().
|
private |
Definition at line 668 of file ConversionProducer.cc.
References HLT_2018_cff::delta_eta, HLT_2018_cff::delta_phi, reco::deltaPhi(), dEtaTkBC_, dPhiTkBC_, halfWayEta_, and HLT_2018_cff::min_eta.
Referenced by buildCollection().
|
private |
Definition at line 595 of file ConversionProducer.cc.
References alongMomentum, barrelHalfLength, barrelRadius, endcapRadius, endcapZ, geometryDiff::epsilon, PV3DBase< T, PVType, FrameType >::eta(), f, TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), trajectoryStateTransform::outerStateOnSurface(), PropagatorWithMaterial::propagate(), makeMuonMisalignmentScenario::rot, and PV3DBase< T, PVType, FrameType >::z().
Referenced by buildCollection().
|
private |
Definition at line 639 of file ConversionProducer.cc.
References HLT_2018_cff::delta_eta, HLT_2018_cff::delta_phi, reco::deltaPhi(), dEtacutForSCmatching_, dPhicutForSCmatching_, TrackSplittingMonitor_cfi::dphiMin, etaTransformation(), match(), edm::PtrVector< T >::push_back(), reco::Conversion::refittedPairMomentum(), and reco::Conversion::zOfPrimaryVertexFromTracks().
Referenced by buildCollection().
|
private |
Definition at line 753 of file ConversionProducer.cc.
References funct::abs(), allowDeltaCot_, allowMinApproach_, TangentApproachInRPhi::calculate(), ClosestApproachInRPhi::calculate(), TangentApproachInRPhi::crossingPoint(), ClosestApproachInRPhi::crossingPoint(), deltaCotTheta_, dzCut_, reco::Track::innerMomentum(), reco::TransientTrack::innermostMeasurementState(), maxTrackRho_, maxTrackZ_, minApproachHigh_, PV3DBase< T, PVType, FrameType >::perp(), TangentApproachInRPhi::perpdist(), r_cut, rho, TangentApproachInRPhi::status(), ClosestApproachInRPhi::status(), funct::tan(), reco::TransientTrack::track(), TangentApproachInRPhi::trajectoryParameters(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by buildCollection().
|
overrideprivate |
Definition at line 163 of file ConversionProducer.cc.
References buildCollection(), buildSuperAndBasicClusterGeoMap(), ConvertedPhotonCollection_, edm::EventSetup::get(), get, iEvent, edm::HandleBase::isValid(), maxNumOfTrackInPU_, eostools::move(), edm::Handle< T >::product(), edm::ESHandle< T >::product(), src_, OrderedSet::t, thettbuilder_, usePvtx_, spclusmultinvestigator_cfi::vertexCollection, and vertexProducer_.
|
inlineprivate |
Definition at line 179 of file ConversionProducer.h.
References heppy_batch::val.
Referenced by buildCollection().
|
inlineprivate |
Definition at line 181 of file ConversionProducer.h.
References heppy_batch::val.
Referenced by buildCollection().
|
inlineprivate |
Definition at line 585 of file ConversionProducer.cc.
References allowD0_, reco::TrackBase::charge(), reco::TrackBase::d0(), d0Cut_, and reco::TrackBase::d0Error().
Referenced by buildCollection().
|
inlineprivate |
Definition at line 590 of file ConversionProducer.cc.
References allowD0_, reco::TrackBase::charge(), d0Cut_, reco::TrackBase::dxy(), reco::TrackBase::dxyError(), and reco::Vertex::position().
|
inlineprivate |
Definition at line 574 of file ConversionProducer.cc.
References reco::Track::found(), maxChi2Left_, maxChi2Right_, minHitsLeft_, minHitsRight_, and reco::TrackBase::normalizedChi2().
Referenced by buildCollection().
|
private |
Definition at line 77 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by ConversionProducer(), and trackD0Cut().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by checkPhi(), and ConversionProducer().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().
|
private |
Definition at line 124 of file ConversionProducer.h.
Referenced by ConversionProducer().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by buildCollection(), checkTrackPair(), and ConversionProducer().
|
private |
Definition at line 90 of file ConversionProducer.h.
Referenced by ConversionProducer().
|
private |
Definition at line 86 of file ConversionProducer.h.
Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().
|
private |
Definition at line 87 of file ConversionProducer.h.
Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().
|
private |
Definition at line 92 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().
|
private |
Definition at line 92 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().
|
private |
Definition at line 92 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().
|
private |
Definition at line 88 of file ConversionProducer.h.
Referenced by ConversionProducer(), and produce().
|
private |
Definition at line 111 of file ConversionProducer.h.
Referenced by ConversionProducer(), and trackD0Cut().
|
private |
Definition at line 118 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 100 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().
|
private |
Definition at line 118 of file ConversionProducer.h.
Referenced by checkPhi(), and ConversionProducer().
|
private |
Definition at line 107 of file ConversionProducer.h.
Referenced by ConversionProducer(), and matchingSC().
|
private |
Definition at line 113 of file ConversionProducer.h.
Referenced by ConversionProducer(), and getMatchedBC().
|
private |
Definition at line 108 of file ConversionProducer.h.
Referenced by ConversionProducer(), and matchingSC().
|
private |
Definition at line 113 of file ConversionProducer.h.
Referenced by ConversionProducer(), and getMatchedBC().
|
private |
Definition at line 112 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 109 of file ConversionProducer.h.
Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().
|
private |
Definition at line 110 of file ConversionProducer.h.
Referenced by buildCollection(), checkTrackPair(), and ConversionProducer().
|
private |
Definition at line 102 of file ConversionProducer.h.
Referenced by ConversionProducer(), and getMatchedBC().
|
private |
Definition at line 102 of file ConversionProducer.h.
|
private |
Definition at line 115 of file ConversionProducer.h.
Referenced by ConversionProducer(), and trackQualityFilter().
|
private |
Definition at line 115 of file ConversionProducer.h.
Referenced by ConversionProducer(), and trackQualityFilter().
|
private |
Definition at line 103 of file ConversionProducer.h.
Referenced by ConversionProducer(), and produce().
|
private |
Definition at line 105 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 104 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 118 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 118 of file ConversionProducer.h.
Referenced by ConversionProducer().
|
private |
Definition at line 116 of file ConversionProducer.h.
Referenced by ConversionProducer(), and trackQualityFilter().
|
private |
Definition at line 116 of file ConversionProducer.h.
Referenced by ConversionProducer(), and trackQualityFilter().
|
private |
Definition at line 106 of file ConversionProducer.h.
Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().
|
private |
Definition at line 121 of file ConversionProducer.h.
Referenced by ConversionProducer(), and preselectTrackPair().
|
private |
Definition at line 125 of file ConversionProducer.h.
Referenced by checkTrackPair(), and ConversionProducer().
|
private |
Definition at line 84 of file ConversionProducer.h.
Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().
|
private |
Definition at line 85 of file ConversionProducer.h.
Referenced by buildSuperAndBasicClusterGeoMap(), and ConversionProducer().
|
private |
Definition at line 82 of file ConversionProducer.h.
Referenced by ConversionProducer(), and produce().
|
private |
Definition at line 98 of file ConversionProducer.h.
Referenced by buildCollection(), ConversionProducer(), and produce().
|
private |
Definition at line 96 of file ConversionProducer.h.
Referenced by checkVertex(), ConversionProducer(), and ~ConversionProducer().
|
private |
Definition at line 94 of file ConversionProducer.h.
Referenced by ConversionProducer(), and produce().
|
private |
Definition at line 95 of file ConversionProducer.h.
Referenced by ConversionProducer(), and produce().
|
private |
Definition at line 122 of file ConversionProducer.h.
Referenced by buildCollection(), and ConversionProducer().