1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 #ifndef AliFlowEventSimple_H
6 #define AliFlowEventSimple_H
8 #include "AliFlowVector.h" //needed as include
12 #include "TParameter.h"
13 class AliFlowTrackSimple;
15 /**************************************
16 * AliFlowEventSimple: A simple event *
19 * authors: Naomi van der Kolk *
24 * (Raimond.Snellings@nikhef.nl) *
25 * ***********************************/
27 class AliFlowEventSimple: public TObject {
31 AliFlowEventSimple(Int_t aLenght);
32 AliFlowEventSimple(const AliFlowEventSimple& anEvent);
33 AliFlowEventSimple& operator=(const AliFlowEventSimple& anEvent);
34 virtual ~AliFlowEventSimple();
36 Bool_t IsFolder() const {return kTRUE;};
37 void Browse(TBrowser *b);
38 void Print(Option_t* option = "") const; //method to print stats
40 Int_t NumberOfTracks() const { return this->fNumberOfTracks; }
41 void SetNumberOfTracks(Int_t nr) { this->fNumberOfTracks = nr; }
42 Int_t GetEventNSelTracksRP() const { return this->fEventNSelTracksRP; } //will replace GetEventNSelTracksIntFlow()
43 void SetEventNSelTracksRP(Int_t nr) { this->fEventNSelTracksRP = nr; } //will replace SetEventNSelTracksIntFlow
44 Double_t GetMCReactionPlaneAngle() const { return this->fMCReactionPlaneAngle; }
45 void SetMCReactionPlaneAngle(Double_t fPhiRP) { this->fMCReactionPlaneAngle = fPhiRP; }
47 AliFlowTrackSimple* GetTrack(Int_t i);
48 TObjArray* TrackCollection() const { return this->fTrackCollection; }
50 AliFlowVector GetQ(Int_t n=2, TList *weightsList=NULL, Bool_t usePhiWeights=kFALSE, Bool_t usePtWeights=kFALSE, Bool_t useEtaWeights=kFALSE);
51 void GetQsub(AliFlowVector* Qarray, Int_t n=2, TList *weightsList=NULL, Bool_t usePhiWeights=kFALSE, Bool_t usePtWeights=kFALSE, Bool_t useEtaWeights=kFALSE);
54 TObjArray* fTrackCollection; // collection of tracks
55 Int_t fNumberOfTracks; // number of tracks
56 Int_t fEventNSelTracksRP; // number of tracks that have passed the RP selection
57 Double_t fMCReactionPlaneAngle; // the angle of the reaction plane from the MC truth
58 TParameter<Int_t>* fNumberOfTracksWrap; //! number of tracks in TBrowser
59 TParameter<Int_t>* fEventNSelTracksRPWrap; //! number of tracks that have passed the RP selection in TBrowser
60 TParameter<Double_t>* fMCReactionPlaneAngleWrap; //! the angle of the reaction plane from the MC truth in TBrowser
61 ClassDef(AliFlowEventSimple,1) // simplified event used in flow analysis