ROOT logo
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id: $ */

#ifndef ALIFLOWCANDIDATETRACK_H
#define ALIFLOWCANDIDATETRACK_H

#include "AliFlowTrack.h"

////////////////////////////////////////////////////
// AliFlowCandidateTrack:
// Class for reconstructed particles to be used in flow analysis
// Author: Carlos Perez (cperez@cern.ch)
////////////////////////////////////////////////////

class AliFlowCandidateTrack : public AliFlowTrack {
  public:
    AliFlowCandidateTrack();
    AliFlowCandidateTrack(const AliFlowCandidateTrack& );
    AliFlowCandidateTrack& operator=(const AliFlowCandidateTrack& );
    ~AliFlowCandidateTrack();

    void ClearMe(void);
    virtual void Clear(Option_t* /*o=""*/) {ClearMe();}

    Int_t GetNDaughters(void)        const { return fNDaughters; }
    void  AddDaughter(Int_t value)  { if(fNDaughters<3) fDaughter[fNDaughters++]=value; }
    Int_t GetIDDaughter(Int_t value) const { return fDaughter[value]; }

    void SetDaughter(Int_t value, AliFlowTrackSimple *track) { fTrack[value]=track; }
    AliFlowTrackSimple *GetDaughter(Int_t value) const { return fTrack[value]; }

  protected:
    Int_t fNDaughters;        // number of daughters (5 max)
    Int_t fDaughter[5];       // fID of daughter, points back to ESD track
    AliFlowTrackSimple *fTrack[5];  //! pointer to daughter in FlowEvent

    ClassDef(AliFlowCandidateTrack, 2);
};

#endif
 AliFlowCandidateTrack.h:1
 AliFlowCandidateTrack.h:2
 AliFlowCandidateTrack.h:3
 AliFlowCandidateTrack.h:4
 AliFlowCandidateTrack.h:5
 AliFlowCandidateTrack.h:6
 AliFlowCandidateTrack.h:7
 AliFlowCandidateTrack.h:8
 AliFlowCandidateTrack.h:9
 AliFlowCandidateTrack.h:10
 AliFlowCandidateTrack.h:11
 AliFlowCandidateTrack.h:12
 AliFlowCandidateTrack.h:13
 AliFlowCandidateTrack.h:14
 AliFlowCandidateTrack.h:15
 AliFlowCandidateTrack.h:16
 AliFlowCandidateTrack.h:17
 AliFlowCandidateTrack.h:18
 AliFlowCandidateTrack.h:19
 AliFlowCandidateTrack.h:20
 AliFlowCandidateTrack.h:21
 AliFlowCandidateTrack.h:22
 AliFlowCandidateTrack.h:23
 AliFlowCandidateTrack.h:24
 AliFlowCandidateTrack.h:25
 AliFlowCandidateTrack.h:26
 AliFlowCandidateTrack.h:27
 AliFlowCandidateTrack.h:28
 AliFlowCandidateTrack.h:29
 AliFlowCandidateTrack.h:30
 AliFlowCandidateTrack.h:31
 AliFlowCandidateTrack.h:32
 AliFlowCandidateTrack.h:33
 AliFlowCandidateTrack.h:34
 AliFlowCandidateTrack.h:35
 AliFlowCandidateTrack.h:36
 AliFlowCandidateTrack.h:37
 AliFlowCandidateTrack.h:38
 AliFlowCandidateTrack.h:39
 AliFlowCandidateTrack.h:40
 AliFlowCandidateTrack.h:41