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

#ifndef ALIFLOWTRACK_H
#define ALIFLOWTRACK_H

#include "AliFlowTrackSimple.h"
class AliVParticle;

// AliFlowTrack:
// A track class to the the AliFlowEvent for flow analysis
// origin: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch)

class AliFlowTrack: public AliFlowTrackSimple {

public:
  enum trackSource { kFromESD=0,
                     kFromMC=1,
                     kFromAOD=2,
                     kFromTracklet=3,
                     kFromFMD=4,
                     kFromPMD=5,
                     kFromV0=6,
                     kFromMUON=7,// XZhang 20120604
                     kFromKink }; 
  AliFlowTrack();
  AliFlowTrack(const AliVParticle* p);
  AliFlowTrack& operator=(const AliFlowTrack& aTrack);
  //virtual AliFlowTrackSimple& operator=(const AliFlowTrackSimple& aTrack);
  AliFlowTrack(const AliFlowTrack& aTrack);
  virtual  ~AliFlowTrack();
  virtual AliFlowTrack* Clone(const char* option="") const;

  void Set(const AliVParticle* p);
 
  void SetSource( trackSource s )
                  { fTrackSourceBits.SetBitNumber(UInt_t(s),kTRUE); }
  Bool_t IsSource( trackSource s ) const
                 { return fTrackSourceBits.TestBitNumber(s); }

  virtual void Clear(Option_t* o="") {AliFlowTrackSimple::Clear(o); fTrackSourceBits.Clear();}

private:
  TBits fTrackSourceBits; //where do i come from?
  
  ClassDef(AliFlowTrack,1);
};

#endif

 AliFlowTrack.h:1
 AliFlowTrack.h:2
 AliFlowTrack.h:3
 AliFlowTrack.h:4
 AliFlowTrack.h:5
 AliFlowTrack.h:6
 AliFlowTrack.h:7
 AliFlowTrack.h:8
 AliFlowTrack.h:9
 AliFlowTrack.h:10
 AliFlowTrack.h:11
 AliFlowTrack.h:12
 AliFlowTrack.h:13
 AliFlowTrack.h:14
 AliFlowTrack.h:15
 AliFlowTrack.h:16
 AliFlowTrack.h:17
 AliFlowTrack.h:18
 AliFlowTrack.h:19
 AliFlowTrack.h:20
 AliFlowTrack.h:21
 AliFlowTrack.h:22
 AliFlowTrack.h:23
 AliFlowTrack.h:24
 AliFlowTrack.h:25
 AliFlowTrack.h:26
 AliFlowTrack.h:27
 AliFlowTrack.h:28
 AliFlowTrack.h:29
 AliFlowTrack.h:30
 AliFlowTrack.h:31
 AliFlowTrack.h:32
 AliFlowTrack.h:33
 AliFlowTrack.h:34
 AliFlowTrack.h:35
 AliFlowTrack.h:36
 AliFlowTrack.h:37
 AliFlowTrack.h:38
 AliFlowTrack.h:39
 AliFlowTrack.h:40
 AliFlowTrack.h:41
 AliFlowTrack.h:42
 AliFlowTrack.h:43
 AliFlowTrack.h:44
 AliFlowTrack.h:45
 AliFlowTrack.h:46
 AliFlowTrack.h:47
 AliFlowTrack.h:48
 AliFlowTrack.h:49
 AliFlowTrack.h:50
 AliFlowTrack.h:51