CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
TauLeadTrackExtractor< T > Class Template Reference

Public Member Functions

reco::TrackRef getLeadTrack (const T &tau) const
 
double getTrackPtSum (const T &tau) const
 

Detailed Description

template<typename T>
class TauLeadTrackExtractor< T >

Definition at line 49 of file TauDiscriminationAgainstCaloMuon.cc.

Member Function Documentation

template<typename T>
reco::TrackRef TauLeadTrackExtractor< T >::getLeadTrack ( const T tau) const
inline

Definition at line 52 of file TauDiscriminationAgainstCaloMuon.cc.

53  {
54  return tau.leadTrack();
55  }
template<typename T>
double TauLeadTrackExtractor< T >::getTrackPtSum ( const T tau) const
inline

Definition at line 56 of file TauDiscriminationAgainstCaloMuon.cc.

57  {
58  double trackPtSum = 0.;
59  for ( TrackRefVector::const_iterator signalTrack = tau.signalTracks().begin();
60  signalTrack != tau.signalTracks().end(); ++signalTrack ) {
61  trackPtSum += (*signalTrack)->pt();
62  }
63  return trackPtSum;
64  }