CMS 3D CMS Logo

Public Member Functions

TauLeadTrackExtractor< T > Class Template Reference

List of all members.

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.

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

Definition at line 56 of file TauDiscriminationAgainstCaloMuon.cc.

  {
    double trackPtSum = 0.;
    for ( TrackRefVector::const_iterator signalTrack = tau.signalTracks().begin();
          signalTrack != tau.signalTracks().end(); ++signalTrack ) {
      trackPtSum += (*signalTrack)->pt();
    }
    return trackPtSum;
  }