]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JCORRAN/AliPhJTrackList.h
coverty warning fixed
[u/mrichter/AliRoot.git] / PWG4 / JCORRAN / AliPhJTrackList.h
CommitLineData
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
28class AliJTrack;
29class AliPhJBaseTrack;
30class TClonesArray;
31
32class AliPhJTrackList : public TObject {
33
34public:
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
53protected:
54 TClonesArray *GetList() const { return fTrackList; }
55 TClonesArray *fTrackList; // track list
56 unsigned short fTracks; //number of tracks in the list
57
58private:
59 ClassDef(AliPhJTrackList,1)
60
61};
62
63#endif