#include <ConversionFinder.h>
Public Member Functions | |
ConversionInfo | arbitrateConversionPartnersbyR (const std::vector< ConversionInfo > &v_convCandidates) |
ConversionFinder () | |
ConversionInfo | findBestConversionMatch (const std::vector< ConversionInfo > &v_convCandidates) |
ConversionInfo | getConversionInfo (const reco::GsfElectronCore &, const edm::Handle< reco::TrackCollection > &ctftracks_h, const edm::Handle< reco::GsfTrackCollection > &gsftracks_h, const double bFieldAtOrigin, const double minFracSharedHits=0.45) |
ConversionInfo | getConversionInfo (const reco::GsfElectron &gsfElectron, const edm::Handle< reco::TrackCollection > &ctftracks_h, const edm::Handle< reco::GsfTrackCollection > &gsftracks_h, const double bFieldAtOrigin, const double minFracSharedHits=0.45) |
ConversionInfo | getConversionInfo (const reco::Track *el_track, const reco::Track *candPartnerTk, const double bFieldAtOrigin) |
ConversionInfo | getConversionInfo (const reco::GsfElectron &gsfElectron, const edm::Handle< reco::TrackCollection > &track_h, const double bFieldAtOrigin, const double minFracSharedHits=0.45) |
std::vector< ConversionInfo > | getConversionInfos (const reco::GsfElectronCore &, const edm::Handle< reco::TrackCollection > &ctftracks_h, const edm::Handle< reco::GsfTrackCollection > &gsftracks_h, const double bFieldAtOrigin, const double minFracSharedHits=0.45) |
const reco::Track * | getElectronTrack (const reco::GsfElectron &, const float minFracSharedHits=0.45) |
const reco::Track * | getElectronTrack (const reco::GsfElectronCore &, const float minFracSharedHits=0.45) |
bool | isFromConversion (const ConversionInfo &, double maxAbsDist=0.02, double maxAbsDcot=0.02) |
~ConversionFinder () | |
Static Public Member Functions | |
static std::pair< double, double > | getConversionInfo (math::XYZTLorentzVector trk1_p4, int trk1_q, float trk1_d0, math::XYZTLorentzVector trk2_p4, int trk2_q, float trk2_d0, float bFieldAtOrigin) |
Definition at line 36 of file ConversionFinder.h.
ConversionFinder::ConversionFinder | ( | ) |
Definition at line 17 of file ConversionFinder.cc.
ConversionFinder::~ConversionFinder | ( | ) |
Definition at line 20 of file ConversionFinder.cc.
ConversionInfo ConversionFinder::arbitrateConversionPartnersbyR | ( | const std::vector< ConversionInfo > & | v_convCandidates | ) |
Definition at line 305 of file ConversionFinder.cc.
References ConversionInfo::dcot(), ConversionInfo::dist(), mps_fire::i, funct::pow(), dttmaxenums::R, mathSSE::sqrt(), and groupFilesInBlocks::temp.
Referenced by findBestConversionMatch().
ConversionInfo ConversionFinder::findBestConversionMatch | ( | const std::vector< ConversionInfo > & | v_convCandidates | ) |
Definition at line 328 of file ConversionFinder.cc.
References arbitrateConversionPartnersbyR(), ConversionInfo::dcot(), ConversionInfo::deltaMissingHits(), ConversionInfo::dist(), ConversionInfo::flag(), mps_fire::i, funct::pow(), ConversionInfo::radiusOfConversion(), mathSSE::sqrt(), and groupFilesInBlocks::temp.
Referenced by getConversionInfo().
ConversionInfo ConversionFinder::getConversionInfo | ( | const reco::GsfElectronCore & | gsfElectron, |
const edm::Handle< reco::TrackCollection > & | ctftracks_h, | ||
const edm::Handle< reco::GsfTrackCollection > & | gsftracks_h, | ||
const double | bFieldAtOrigin, | ||
const double | minFracSharedHits = 0.45 |
||
) |
Definition at line 34 of file ConversionFinder.cc.
References findBestConversionMatch(), getConversionInfos(), and groupFilesInBlocks::temp.
Referenced by AdHocNTupler::fill(), ZeeCandidateFilter::filter(), getConversionInfos(), and ElectronConversionRejectionVars::produce().
ConversionInfo ConversionFinder::getConversionInfo | ( | const reco::GsfElectron & | gsfElectron, |
const edm::Handle< reco::TrackCollection > & | ctftracks_h, | ||
const edm::Handle< reco::GsfTrackCollection > & | gsftracks_h, | ||
const double | bFieldAtOrigin, | ||
const double | minFracSharedHits = 0.45 |
||
) |
Definition at line 23 of file ConversionFinder.cc.
References reco::GsfElectron::core(), findBestConversionMatch(), getConversionInfos(), and groupFilesInBlocks::temp.
ConversionInfo ConversionFinder::getConversionInfo | ( | const reco::Track * | el_track, |
const reco::Track * | candPartnerTk, | ||
const double | bFieldAtOrigin | ||
) |
Definition at line 243 of file ConversionFinder.cc.
References reco::TrackBase::charge(), funct::cos(), edmIntegrityCheck::d, reco::TrackBase::d0(), reco::TrackBase::dz(), reco::TrackBase::p(), funct::pow(), reco::TrackBase::pt(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), funct::sin(), mathSSE::sqrt(), funct::tan(), x, y, and z.
|
static |
Definition at line 423 of file ConversionFinder.cc.
References funct::cos(), funct::pow(), funct::sin(), mathSSE::sqrt(), and funct::tan().
ConversionInfo ConversionFinder::getConversionInfo | ( | const reco::GsfElectron & | gsfElectron, |
const edm::Handle< reco::TrackCollection > & | track_h, | ||
const double | bFieldAtOrigin, | ||
const double | minFracSharedHits = 0.45 |
||
) |
Definition at line 453 of file ConversionFinder.cc.
References reco::TrackBase::charge(), reco::GsfElectron::closestCtfTrackRef(), funct::cos(), edmIntegrityCheck::d, reco::TrackBase::d0(), deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::TrackBase::dz(), RemoveAddSevLevel::flag, getElectronTrack(), reco::TrackBase::hitPattern(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::numberOfHits(), reco::TrackBase::p(), funct::pow(), edm::Handle< T >::product(), reco::TrackBase::pt(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), reco::GsfElectron::shFracInnerHits(), funct::sin(), mathSSE::sqrt(), funct::tan(), x, y, and z.
std::vector< ConversionInfo > ConversionFinder::getConversionInfos | ( | const reco::GsfElectronCore & | gsfElectron, |
const edm::Handle< reco::TrackCollection > & | ctftracks_h, | ||
const edm::Handle< reco::GsfTrackCollection > & | gsftracks_h, | ||
const double | bFieldAtOrigin, | ||
const double | minFracSharedHits = 0.45 |
||
) |
Definition at line 47 of file ConversionFinder.cc.
References reco::GsfElectronCore::ctfGsfOverlap(), reco::GsfElectronCore::ctfTrack(), ConversionInfo::dcot(), deltaR(), ConversionInfo::dist(), edm::Ref< C, T, F >::get(), getConversionInfo(), reco::GsfElectronCore::gsfTrack(), edm::HandleBase::id(), edm::Ref< C, T, F >::id(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::key(), reco::HitPattern::MISSING_INNER_HITS, ConversionInfo::pointOfConversion(), edm::Handle< T >::product(), and ConversionInfo::radiusOfConversion().
Referenced by getConversionInfo().
const reco::Track * ConversionFinder::getElectronTrack | ( | const reco::GsfElectron & | electron, |
const float | minFracSharedHits = 0.45 |
||
) |
Definition at line 291 of file ConversionFinder.cc.
References reco::GsfElectron::closestCtfTrackRef(), edm::Ref< C, T, F >::get(), reco::GsfElectron::gsfTrack(), edm::Ref< C, T, F >::isNonnull(), and reco::GsfElectron::shFracInnerHits().
Referenced by getConversionInfo().
const reco::Track* ConversionFinder::getElectronTrack | ( | const reco::GsfElectronCore & | , |
const float | minFracSharedHits = 0.45 |
||
) |
bool ConversionFinder::isFromConversion | ( | const ConversionInfo & | convInfo, |
double | maxAbsDist = 0.02 , |
||
double | maxAbsDcot = 0.02 |
||
) |
Definition at line 10 of file ConversionFinder.cc.
References funct::abs(), ConversionInfo::dcot(), and ConversionInfo::dist().