#include <OniaPhotonConversionProducer.h>
Public Member Functions | |
OniaPhotonConversionProducer (const edm::ParameterSet &ps) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
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 &) |
virtual void | endStream () |
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) |
virtual void | produce (edm::Event &event, const edm::EventSetup &esetup) |
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::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 |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Select photon conversions and produce a conversion candidate collection
Definition at line 36 of file OniaPhotonConversionProducer.h.
|
explicit |
Definition at line 55 of file OniaPhotonConversionProducer.cc.
References patPFMETCorrections_cff::algo, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 328 of file OniaPhotonConversionProducer.cc.
References muons2muons_cfi::photon, and reco::Conversion::refittedPair4Momentum().
|
private |
Definition at line 233 of file OniaPhotonConversionProducer.cc.
References begin, KineDebug3::count(), reco::Vertex::covariance(), reco::TrackBase::dz(), reco::TrackBase::dzError(), end, training_settings::idx, lt_(), reco::Vertex::position(), edm::second(), findQualityFiles::size, mathSSE::sqrt(), reco::Conversion::tracks(), and badGlobalMuonTaggersAOD_cff::vtx.
|
private |
Definition at line 354 of file OniaPhotonConversionProducer.cc.
|
privatevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 359 of file OniaPhotonConversionProducer.cc.
References DEFINE_FWK_MODULE.
|
private |
Definition at line 258 of file OniaPhotonConversionProducer.cc.
References KineDebug3::count(), reco::HitPattern::getHitPattern(), reco::HitPattern::getLayer(), reco::HitPattern::getSubStructure(), reco::HitPattern::getTrackerMonoStereo(), HighpuritySubset(), mps_fire::i, reco::HitPattern::numberOfHits(), reco::HitPattern::trackerHitFilter(), and reco::HitPattern::validHitFilter().
|
private |
Definition at line 278 of file OniaPhotonConversionProducer.cc.
References reco::TrackBase::charge(), reco::Vertex::chi2(), ChiSquaredProbability(), reco::Conversion::conversionVertex(), reco::Conversion::distOfMinimumApproach(), reco::TrackBase::dxy(), reco::TrackBase::dxyError(), mps_fire::i, reco::Vertex::ndof(), reco::TrackBase::ndof(), reco::TrackBase::normalizedChi2(), reco::Vertex::position(), reco::Conversion::tracks(), badGlobalMuonTaggersAOD_cff::vtx, and reco::Conversion::zOfPrimaryVertexFromTracks().
Referenced by foundCompatibleInnerHits().
|
private |
Definition at line 306 of file OniaPhotonConversionProducer.cc.
References pat::PATObject< ObjectType >::addUserData(), reco::Conversion::conversionVertex(), reco::Vertex::position(), reco::Conversion::refittedPair4Momentum(), reco::LeafCandidate::setP4(), reco::LeafCandidate::setVertex(), and reco::Conversion::tracks().
|
private |
Definition at line 182 of file OniaPhotonConversionProducer.cc.
References reco::Conversion::algo(), flags, lumiQueryAPI::q, and reco::Conversion::quality().
|
privatevirtual |
Definition at line 86 of file OniaPhotonConversionProducer.cc.
References pat::PATObject< ObjectType >::addUserInt(), conv, RemoveAddSevLevel::flag, flags, eostools::move(), edm::Handle< T >::product(), and lumiQueryAPI::q.
|
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 ConversionEqualByTrack(), and ConversionLessByChi2().
|
private |
Definition at line 320 of file OniaPhotonConversionProducer.cc.
References reco::PFCandidate::gamma.
|
private |
Definition at line 67 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 66 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 65 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 64 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 73 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 55 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 74 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 76 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 57 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 71 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 68 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 70 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 60 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 56 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 62 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 61 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 63 of file OniaPhotonConversionProducer.h.
|
private |
Definition at line 59 of file OniaPhotonConversionProducer.h.