Create a ROOT TIter to iterate over the TkrTrack objects. The while loop uses this iterator and fills the, track, variable with the current TkrTrack pointer.
Retrieve the initial position and direction of the TkrTrack. These are stored in ROOT's TVector3 objects. The Z component of the direction corresponds to cosine theta.
Retrieve the quality of the TkrTrack and the KalEnergy.
Create a ROOT TIter to iterate over the TkrTrackHits for this TkrTrack - the while loop uses this iterator and fills the hit variable with the current TkrTrackHit pointer.
Determine the Z plane for this TkrTrackHit.
Retrieve the TkrCluster pointer for this TkrTrackHit. Check that the TkrCluster pointer is non-null, before continuing.
Retrieve the layer for this TkrCluster.
Get the commonRootData::TkrId for this TkrCluster.Retrieve the plane and view for this TkrCluster, using the commonRootData::TkrId methods.
Finally, get the tower (x,y) from this id.
|