StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFwdTrackCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StFwdTrackCollection.cxx
4  *
5  * Author: jdb, Feb 2022
6  ***************************************************************************
7  *
8  * Description: Forward Tracks
9  *
10  *
11  **************************************************************************/
12 
13 #include "StEvent/StFwdTrackCollection.h"
14 #include "StEvent/StFwdTrack.h"
15 
16 ClassImp(StFwdTrackCollection)
17 
18 void StFwdTrackCollection::addTrack( StFwdTrack *track ) {
19  mTracks.push_back( track );
20 }
21 
22 StSPtrVecFwdTrack& StFwdTrackCollection::tracks() {
23  return mTracks;
24 }
25 
26 const StSPtrVecFwdTrack& StFwdTrackCollection::tracks() const {
27  return mTracks;
28 }
29 
30 unsigned int StFwdTrackCollection::numberOfTracks() const {
31  return mTracks.size();
32 }
33