]>
Commit | Line | Data |
---|---|---|
2f4cac02 | 1 | #ifndef ALIPHJTRACKLIST_H |
2 | #define ALIPHJTRACKLIST_H | |
3 | ||
4 | //////////////////////////////////////////////////// | |
5 | /*! | |
6 | \file AliPhJTrackList.hh | |
7 | \brief | |
8 | \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla) | |
9 | \email: djkim@jyu.fi | |
10 | \version $Revision: 1.4 $ | |
11 | \date $Date: 2008/05/08 13:44:45 $ | |
12 | */ | |
13 | //////////////////////////////////////////////////// | |
14 | ||
15 | // $Id: AliPhJTrackList.h,v 1.4 2008/05/08 13:44:45 djkim Exp $ | |
16 | ||
17 | #ifndef ROOT_TObject | |
18 | #include <TObject.h> | |
19 | #endif | |
20 | ||
21 | #include "TClonesArray.h" | |
22 | #include <iostream> | |
23 | ||
24 | #include "JConst.h" | |
25 | #include "AliPhJBaseTrack.h" | |
26 | #include "AliJTrack.h" | |
27 | ||
28 | class AliJTrack; | |
29 | class AliPhJBaseTrack; | |
30 | class TClonesArray; | |
31 | ||
32 | class AliPhJTrackList : public TObject { | |
33 | ||
34 | public: | |
35 | AliPhJTrackList(); | |
36 | AliPhJTrackList(expName exp); | |
37 | AliPhJTrackList(const AliPhJTrackList& a); | |
38 | virtual ~AliPhJTrackList(); | |
39 | ||
40 | void Reset(); | |
41 | //getters | |
42 | unsigned short GetNTracks() const { return fTracks; } | |
43 | AliPhJBaseTrack* GetTrack(const unsigned int itrk); | |
44 | AliJTrack* GetAliJTrack(const unsigned int itrk); // ALICE getter | |
45 | //setters | |
46 | void SetNTracks(const unsigned short ntrk) { fTracks = ntrk; } | |
47 | int SetTClonesArraySize(const unsigned int ntrk); | |
48 | // add tracks | |
49 | void AddAliJTrack(const unsigned int itrk); // ALICE add | |
50 | ||
51 | AliPhJTrackList& operator=(const AliPhJTrackList& list); | |
52 | ||
53 | protected: | |
54 | TClonesArray *GetList() const { return fTrackList; } | |
55 | TClonesArray *fTrackList; // track list | |
56 | unsigned short fTracks; //number of tracks in the list | |
57 | ||
58 | private: | |
59 | ClassDef(AliPhJTrackList,1) | |
60 | ||
61 | }; | |
62 | ||
63 | #endif |