]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowTasks/AliFlowCandidateTrack.h
rulechecker
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowTasks / 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     Double_t Mass(void)      const { return fMass; }
24     void SetMass(Double_t value)   { fMass=value; }
25
26     Int_t GetNDaughters(void)        const { return fNDaughters; }
27     void  AddDaughter(Int_t value)  { if(fNDaughters<3) fDaughter[fNDaughters++]=value; }
28     Int_t GetIDDaughter(Int_t value) const { return fDaughter[value]; }
29
30     void SetDaughter(Int_t value, AliFlowTrack *track) { fTrack[value]=track; }
31     AliFlowTrack *GetDaughter(Int_t value) const { return fTrack[value]; }
32
33   protected:
34     Double_t fMass;           // mass
35     Int_t fNDaughters;        // number of daughters (5 max)
36     Int_t fDaughter[5];       // fID of daughter, points back to ESD track
37     AliFlowTrack *fTrack[5];  // pointer to daughter in FlowEvent
38     
39
40     ClassDef(AliFlowCandidateTrack, 1);
41 };
42
43 #endif