]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/FLOW/Tasks/AliFlowCandidateTrack.h
AOD handeling, added mass to the flowtracks, new task to reuse flowevent
[u/mrichter/AliRoot.git] / PWG / FLOW / Tasks / AliFlowCandidateTrack.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 /* $Id: $ */
4
5 #ifndef ALIFLOWCANDIDATETRACK_H
6 #define ALIFLOWCANDIDATETRACK_H
7
8 #include "AliFlowTrack.h"
9
10 ////////////////////////////////////////////////////
11 // AliFlowCandidateTrack:
12 // Class for reconstructed particles to be used in flow analysis
13 // Author: Carlos Perez (cperez@cern.ch)
14 ////////////////////////////////////////////////////
15
16 class AliFlowCandidateTrack : public AliFlowTrack {
17   public:
18     AliFlowCandidateTrack();
19     AliFlowCandidateTrack(const AliFlowCandidateTrack& );
20     AliFlowCandidateTrack& operator=(const AliFlowCandidateTrack& );
21     ~AliFlowCandidateTrack();
22
23     Int_t GetNDaughters(void)        const { return fNDaughters; }
24     void  AddDaughter(Int_t value)  { if(fNDaughters<3) fDaughter[fNDaughters++]=value; }
25     Int_t GetIDDaughter(Int_t value) const { return fDaughter[value]; }
26
27     void SetDaughter(Int_t value, AliFlowTrack *track) { fTrack[value]=track; }
28     AliFlowTrack *GetDaughter(Int_t value) const { return fTrack[value]; }
29
30   protected:
31     Int_t fNDaughters;        // number of daughters (5 max)
32     Int_t fDaughter[5];       // fID of daughter, points back to ESD track
33     AliFlowTrack *fTrack[5];  // pointer to daughter in FlowEvent
34     
35
36     ClassDef(AliFlowCandidateTrack, 2);
37 };
38
39 #endif