#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(), 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(), 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(), and getConversionInfos().
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(), ztail::d, reco::TrackBase::d0(), reco::TrackBase::dz(), reco::TrackBase::p(), funct::pow(), reco::TrackBase::pt(), reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), dt_dqm_sourceclient_common_cff::reco, funct::sin(), mathSSE::sqrt(), funct::tan(), x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
|
static |
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::GsfElectron::closestCtfTrackRef(), funct::cos(), ztail::d, deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, archive::flag, getElectronTrack(), reco::HitPattern::MISSING_INNER_HITS, funct::pow(), edm::Handle< T >::product(), dt_dqm_sourceclient_common_cff::reco, reco::GsfElectron::shFracInnerHits(), funct::sin(), mathSSE::sqrt(), funct::tan(), x, detailsBasic3DVector::y, and detailsBasic3DVector::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(), getConversionInfo(), reco::GsfElectronCore::gsfTrack(), edm::HandleBase::id(), reco::HitPattern::MISSING_INNER_HITS, ConversionInfo::pointOfConversion(), edm::Handle< T >::product(), ConversionInfo::radiusOfConversion(), and dt_dqm_sourceclient_common_cff::reco.
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().