#include <OniaPhotonConversionProducer.h>
Public Member Functions | |
OniaPhotonConversionProducer (const edm::ParameterSet &ps) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
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<> | |
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 |
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, muons2muons_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 extraflags_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 extraflags_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_FULL_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_FULL_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 HltBtagPostValidation_cff::c, ConversionEqualByTrack(), and ConversionLessByChi2().
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().