#include <OniaPhotonConversionProducer.h>
Public Member Functions | |
OniaPhotonConversionProducer (const edm::ParameterSet &ps) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Private Member Functions | |
bool | CheckPi0 (const reco::Conversion &, const reco::PFCandidateCollection &, bool &) |
bool | checkTkVtxCompatibility (const reco::Conversion &, const reco::VertexCollection &) |
reco::Candidate::LorentzVector | convertVector (const math::XYZTLorentzVectorF &) |
void | endStream () override |
bool | foundCompatibleInnerHits (const reco::HitPattern &hitPatA, const reco::HitPattern &hitPatB) |
bool | HighpuritySubset (const reco::Conversion &, const reco::VertexCollection &) |
pat::CompositeCandidate * | makePhotonCandidate (const reco::Conversion &) |
int | PackFlags (const reco::Conversion &, bool, bool, bool, bool, bool) |
void | produce (edm::Event &event, const edm::EventSetup &esetup) override |
void | removeDuplicates (reco::ConversionCollection &) |
const reco::PFCandidateCollection | selectPFPhotons (const reco::PFCandidateCollection &) |
Private Attributes | |
double | _minDistanceOfApproachMaxCut |
double | _minDistanceOfApproachMinCut |
double | _trackchi2Cut |
double | _vertexChi2ProbCut |
int | convAlgo_ |
edm::EDGetTokenT< reco::ConversionCollection > | convCollectionToken_ |
std::vector< int > | convQuality_ |
std::unique_ptr< StringCutObjectSelector< reco::Conversion > > | convSelection_ |
std::string | convSelectionCuts_ |
edm::EDGetTokenT< reco::PFCandidateCollection > | pfCandidateCollectionToken_ |
std::vector< double > | pi0LargeWindow_ |
bool | pi0OnlineSwitch_ |
std::vector< double > | pi0SmallWindow_ |
uint32_t | sigmaTkVtxComp_ |
edm::EDGetTokenT< reco::VertexCollection > | thePVsToken_ |
uint32_t | TkMinNumOfDOF_ |
bool | wantCompatibleInnerHits_ |
bool | wantHighpurity_ |
bool | wantTkVtxCompatibility_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Select photon conversions and produce a conversion candidate collection
Definition at line 37 of file OniaPhotonConversionProducer.h.
|
explicit |
Definition at line 49 of file OniaPhotonConversionProducer.cc.
References _minDistanceOfApproachMaxCut, _minDistanceOfApproachMinCut, _trackchi2Cut, _vertexChi2ProbCut, convAlgo_, convCollectionToken_, convQuality_, convSelection_, convSelectionCuts_, relativeConstraints::empty, edm::ParameterSet::getParameter(), pfCandidateCollectionToken_, pi0LargeWindow_, pi0OnlineSwitch_, pi0SmallWindow_, sigmaTkVtxComp_, AlCaHLTBitMon_QueryRunRegistry::string, thePVsToken_, TkMinNumOfDOF_, wantCompatibleInnerHits_, wantHighpurity_, and wantTkVtxCompatibility_.
|
private |
Definition at line 352 of file OniaPhotonConversionProducer.cc.
References conv, displacedMuons_cfi::photon, BPHMonitor_cfi::photons, pi0LargeWindow_, and pi0SmallWindow_.
Referenced by produce().
|
private |
Definition at line 234 of file OniaPhotonConversionProducer.cc.
References conv, submitPVResolutionJobs::count, relativeConstraints::empty, mps_fire::end, heavyIonCSV_trainingSettings::idx, lt_(), edm::second(), sigmaTkVtxComp_, findQualityFiles::size, mathSSE::sqrt(), and L1BJetProducer_cff::vtx.
Referenced by produce().
|
private |
Definition at line 379 of file OniaPhotonConversionProducer.cc.
References findQualityFiles::v.
Referenced by makePhotonCandidate().
|
overrideprivate |
Definition at line 383 of file OniaPhotonConversionProducer.cc.
|
private |
Definition at line 268 of file OniaPhotonConversionProducer.cc.
References submitPVResolutionJobs::count, reco::HitPattern::getHitPattern(), reco::HitPattern::getLayer(), reco::HitPattern::getSubStructure(), reco::HitPattern::getTrackerMonoStereo(), mps_fire::i, reco::HitPattern::numberOfAllHits(), reco::HitPattern::trackerHitFilter(), and reco::HitPattern::validHitFilter().
Referenced by produce().
|
private |
Definition at line 290 of file OniaPhotonConversionProducer.cc.
References _minDistanceOfApproachMaxCut, _minDistanceOfApproachMinCut, _trackchi2Cut, _vertexChi2ProbCut, ChiSquaredProbability(), conv, mps_fire::i, TkMinNumOfDOF_, and L1BJetProducer_cff::vtx.
Referenced by produce().
|
private |
Definition at line 330 of file OniaPhotonConversionProducer.cc.
References pat::PATObject< ObjectType >::addUserData(), conv, convertVector(), reco::LeafCandidate::setP4(), and reco::LeafCandidate::setVertex().
Referenced by produce().
|
private |
Definition at line 173 of file OniaPhotonConversionProducer.cc.
References conv, HLT_2024v14_cff::flags, and submitPVResolutionJobs::q.
Referenced by produce().
|
overrideprivate |
Definition at line 82 of file OniaPhotonConversionProducer.cc.
References CheckPi0(), checkTkVtxCompatibility(), conv, convAlgo_, convCollectionToken_, convQuality_, convSelection_, RemoveAddSevLevel::flag, HLT_2024v14_cff::flags, foundCompatibleInnerHits(), HighpuritySubset(), makePhotonCandidate(), eostools::move(), PackFlags(), pfCandidateCollectionToken_, OniaPhotonConversionProducer_cfi::pfcandidates, pi0OnlineSwitch_, edm::Handle< T >::product(), submitPVResolutionJobs::q, removeDuplicates(), selectPFPhotons(), thePVsToken_, wantCompatibleInnerHits_, wantHighpurity_, and wantTkVtxCompatibility_.
|
private |
Put in out collection only those conversion candidates that are not sharing tracks. If sharing, keep the one with the best chi2.
Definition at line 215 of file OniaPhotonConversionProducer.cc.
References DummyCfis::c, ConversionEqualByTrack(), ConversionLessByChi2(), and jetUpdater_cfi::sort.
Referenced by produce().
|
private |
Definition at line 342 of file OniaPhotonConversionProducer.cc.
References reco::PFCandidate::gamma, and OniaPhotonConversionProducer_cfi::pfcandidates.
Referenced by produce().
|
private |
Definition at line 66 of file OniaPhotonConversionProducer.h.
Referenced by HighpuritySubset(), and OniaPhotonConversionProducer().
|
private |
Definition at line 65 of file OniaPhotonConversionProducer.h.
Referenced by HighpuritySubset(), and OniaPhotonConversionProducer().
|
private |
Definition at line 64 of file OniaPhotonConversionProducer.h.
Referenced by HighpuritySubset(), and OniaPhotonConversionProducer().
|
private |
Definition at line 63 of file OniaPhotonConversionProducer.h.
Referenced by HighpuritySubset(), and OniaPhotonConversionProducer().
|
private |
Definition at line 72 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 54 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 73 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 76 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 75 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer().
|
private |
Definition at line 56 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 70 of file OniaPhotonConversionProducer.h.
Referenced by CheckPi0(), and OniaPhotonConversionProducer().
|
private |
Definition at line 67 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 69 of file OniaPhotonConversionProducer.h.
Referenced by CheckPi0(), and OniaPhotonConversionProducer().
|
private |
Definition at line 59 of file OniaPhotonConversionProducer.h.
Referenced by checkTkVtxCompatibility(), and OniaPhotonConversionProducer().
|
private |
Definition at line 55 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 61 of file OniaPhotonConversionProducer.h.
Referenced by HighpuritySubset(), and OniaPhotonConversionProducer().
|
private |
Definition at line 60 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 62 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().
|
private |
Definition at line 58 of file OniaPhotonConversionProducer.h.
Referenced by OniaPhotonConversionProducer(), and produce().