3 #include "TrackToJetIndex.h"
9 , mTrackIndex(trackIndex)
28 TVector3 TrackToJetIndex::localMomentum()
const
30 TVector3 longUnit = jet()->Vect().Unit();
31 TVector3 normUnit = TVector3(0,0,1).Cross(longUnit).Unit();
32 TVector3 sideUnit = longUnit.Cross(normUnit);
33 TVector3 mom = momentum();
34 return TVector3(mom.Dot(sideUnit),mom.Dot(normUnit),mom.Dot(longUnit));
37 double TrackToJetIndex::frag()
const
39 return Vect().Mag() / jet()->Vect().Mag();