AliPhysics  d497547 (d497547)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliStarEvent.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3 /* $Id$ */
4 
5 /*****************************************************************
6  AliStarEvent: Track container for a star track
7 
8  origin: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch)
9 *****************************************************************/
10 
11 #ifndef ALISTAREVENT_H
12 #define ALISTAREVENT_H
13 
14 class TObjArray;
15 class AliStarTrack;
16 
17 class AliStarEvent : public TObject {
18 
19  public:
20  AliStarEvent();
21  AliStarEvent( Int_t n );
22  AliStarEvent( const AliStarEvent& track );
23  AliStarEvent& operator=( const AliStarEvent& track );
24  virtual ~AliStarEvent();
25  virtual void Print( Option_t* option="" ) const;
26 
27  Int_t GetRunID() const {return (Int_t)fParams[0];}
28  Int_t GetEventNumber() const {return (Int_t)fParams[1];}
29  Float_t GetVtxX() const {return fParams[2];}
30  Float_t GetVtxY() const {return fParams[3];}
31  Float_t GetVtxZ() const {return fParams[4];}
32  Float_t GetBField() const {return fParams[5];}
33  Int_t GetRefMult() const {return (Int_t)fParams[6];}
34  Int_t GetCentralityID() const {return (Int_t)fParams[7];}
36  Int_t GetNumberOfTracks() const {return (Int_t)fParams[9];}
37  const Float_t* GetParams() const {return fParams; }
38  Int_t CalculateCentrality(Int_t refMult) const;
39 
40  const AliStarTrack* GetTrack( const Int_t i ) const;
41  void AddTrack( AliStarTrack* track );
42  void Reset();
43 
44  void SetRunID( const Int_t p ) { fParams[0]=(Float_t)p;}
45  void SetEventNumber( const Int_t p ) { fParams[1]=(Float_t)p;}
46  void SetVtxX( const Float_t p ) { fParams[2]=p;}
47  void SetVtxY( const Float_t p ) { fParams[3]=p;}
48  void SetVtxZ( const Float_t p ) { fParams[4]=p;}
49  void SetBField( const Float_t p ) { fParams[5]=p;}
50  void SetRefMult( const Int_t p ) { fParams[6]=(Float_t)p;}
51  void SetCentralityID( const Int_t p ) { fParams[7]=(Float_t)p;}
52  void SetNumberOfPrimaryTracks( const Int_t p ) { fParams[8]=(Float_t)p;}
53  void SetNumberOfTracks( const Int_t p ) { fParams[9]=(Float_t)p;}
54  void SetParams( const Float_t* params );
55 
56  private:
57  static const Int_t fgkNparams = 10; //number of params
59  TObjArray* fTracks; //track collection
60 
61  ClassDef(AliStarEvent,1) // Base class
62 
63 };
64 
65 #endif
66 
Float_t GetVtxY() const
Definition: AliStarEvent.h:30
void SetVtxX(const Float_t p)
Definition: AliStarEvent.h:46
Int_t GetRefMult() const
Definition: AliStarEvent.h:33
void SetNumberOfTracks(const Int_t p)
Definition: AliStarEvent.h:53
void SetRunID(const Int_t p)
Definition: AliStarEvent.h:44
static const Int_t fgkNparams
Definition: AliStarEvent.h:57
void SetBField(const Float_t p)
Definition: AliStarEvent.h:49
Int_t GetNumberOfTracks() const
Definition: AliStarEvent.h:36
AliStarEvent & operator=(const AliStarEvent &track)
Float_t fParams[fgkNparams]
Definition: AliStarEvent.h:58
int Int_t
Definition: External.C:63
void SetRefMult(const Int_t p)
Definition: AliStarEvent.h:50
const AliStarTrack * GetTrack(const Int_t i) const
float Float_t
Definition: External.C:68
Float_t GetVtxZ() const
Definition: AliStarEvent.h:31
void SetParams(const Float_t *params)
TObjArray * fTracks
Definition: AliStarEvent.h:59
Int_t GetCentralityID() const
Definition: AliStarEvent.h:34
Int_t CalculateCentrality(Int_t refMult) const
virtual ~AliStarEvent()
void SetEventNumber(const Int_t p)
Definition: AliStarEvent.h:45
void SetVtxZ(const Float_t p)
Definition: AliStarEvent.h:48
const Float_t * GetParams() const
Definition: AliStarEvent.h:37
void SetVtxY(const Float_t p)
Definition: AliStarEvent.h:47
void SetNumberOfPrimaryTracks(const Int_t p)
Definition: AliStarEvent.h:52
Int_t GetRunID() const
Definition: AliStarEvent.h:27
void AddTrack(AliStarTrack *track)
Int_t GetEventNumber() const
Definition: AliStarEvent.h:28
virtual void Print(Option_t *option="") const
const char Option_t
Definition: External.C:48
Int_t GetNumberOfPrimaryTracks() const
Definition: AliStarEvent.h:35
Float_t GetBField() const
Definition: AliStarEvent.h:32
void SetCentralityID(const Int_t p)
Definition: AliStarEvent.h:51
Float_t GetVtxX() const
Definition: AliStarEvent.h:29