#include <TauImpactParameterInfo.h>
Public Member Functions | |
virtual TauImpactParameterInfo * | clone () const |
float | discriminator (double, double, double, bool, bool) const |
float | discriminator () const |
const IsolatedTauTagInfoRef & | getIsolatedTauTag () const |
const TauImpactParameterTrackData * | getTrackData (const reco::TrackRef &) const |
void | setIsolatedTauTag (const IsolatedTauTagInfoRef &) |
void | storeTrackData (const reco::TrackRef &, const TauImpactParameterTrackData &) |
TauImpactParameterInfo () | |
virtual | ~TauImpactParameterInfo () |
Private Attributes | |
IsolatedTauTagInfoRef | isolatedTaus |
TrackTauImpactParameterAssociationCollection | trackDataMap |
Definition at line 26 of file TauImpactParameterInfo.h.
reco::TauImpactParameterInfo::TauImpactParameterInfo | ( | ) | [inline] |
virtual reco::TauImpactParameterInfo::~TauImpactParameterInfo | ( | ) | [inline, virtual] |
Definition at line 29 of file TauImpactParameterInfo.h.
{}
virtual TauImpactParameterInfo* reco::TauImpactParameterInfo::clone | ( | void | ) | const [inline, virtual] |
Definition at line 31 of file TauImpactParameterInfo.h.
References TauImpactParameterInfo().
{ return new TauImpactParameterInfo( * this ); }
float reco::TauImpactParameterInfo::discriminator | ( | double | ip_min, |
double | ip_max, | ||
double | sip_min, | ||
bool | use_sign, | ||
bool | use3D | ||
) | const |
Definition at line 8 of file TauImpactParameterInfo.cc.
References reco::TauImpactParameterTrackData::ip3D, edm::Ref< C, T, F >::isNull(), Measurement1D::significance(), reco::TauImpactParameterTrackData::transverseIp, and Measurement1D::value().
Referenced by ImpactParameterAlgorithm::tag().
{ double discriminator = isolatedTaus->discriminator(); const TrackRef leadingTrack = isolatedTaus->leadingSignalTrack(0.4,1.); if(! leadingTrack.isNull()){ const TauImpactParameterTrackData* ipData = getTrackData(leadingTrack); Measurement1D ip = ipData->transverseIp; if(use3D) ip = ipData->ip3D; if( ip.value() < ip_min || ip.value() > ip_max || ip.significance() < sip_min ){ discriminator = 0; } } return discriminator; }
float reco::TauImpactParameterInfo::discriminator | ( | ) | const |
Definition at line 27 of file TauImpactParameterInfo.cc.
{ //default discriminator: returns the value of the discriminator of the jet tag return isolatedTaus->discriminator(); }
const IsolatedTauTagInfoRef & reco::TauImpactParameterInfo::getIsolatedTauTag | ( | ) | const |
Definition at line 52 of file TauImpactParameterInfo.cc.
{ return isolatedTaus; }
const reco::TauImpactParameterTrackData * TauImpactParameterInfo::getTrackData | ( | const reco::TrackRef & | trackRef | ) | const |
Definition at line 32 of file TauImpactParameterInfo.cc.
{ reco::TrackTauImpactParameterAssociationCollection::const_iterator iter = trackDataMap.find(trackRef); if (iter != trackDataMap.end()) return &(iter->val); return 0; // if track not found return 0 }
void reco::TauImpactParameterInfo::setIsolatedTauTag | ( | const IsolatedTauTagInfoRef & | isolationRef | ) |
Definition at line 48 of file TauImpactParameterInfo.cc.
Referenced by ImpactParameterAlgorithm::tag().
{ isolatedTaus = isolationRef; }
void reco::TauImpactParameterInfo::storeTrackData | ( | const reco::TrackRef & | trackRef, |
const TauImpactParameterTrackData & | trackData | ||
) |
Definition at line 42 of file TauImpactParameterInfo.cc.
Referenced by ImpactParameterAlgorithm::tag().
{ trackDataMap.insert(trackRef, trackData); }
IsolatedTauTagInfoRef reco::TauImpactParameterInfo::isolatedTaus [private] |
Definition at line 44 of file TauImpactParameterInfo.h.
Definition at line 43 of file TauImpactParameterInfo.h.