]>
Commit | Line | Data |
---|---|---|
8918e700 | 1 | #ifndef ALIHEADER_H |
2 | #define ALIHEADER_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
fe4da5cc | 7 | |
02a02c36 | 8 | #include <TObject.h> |
9e1a0ddb | 9 | class AliStack; |
10 | class AliGenEventHeader; | |
fe4da5cc | 11 | |
12 | class AliHeader : public TObject { | |
fe4da5cc | 13 | public: |
14 | AliHeader(); | |
15 | AliHeader(Int_t run, Int_t event); | |
eef4b160 | 16 | AliHeader(Int_t run, Int_t eventSerialNr, Int_t evNrInRun); |
8918e700 | 17 | virtual ~AliHeader() {} |
fe4da5cc | 18 | |
19 | virtual void Reset(Int_t run, Int_t event); | |
eef4b160 | 20 | virtual void Reset(Int_t run, Int_t eventSerialNr, Int_t evNrInRun); |
fe4da5cc | 21 | |
22 | virtual void SetRun(Int_t run) {fRun = run;} | |
23 | virtual Int_t GetRun() const {return fRun;} | |
24 | ||
25 | virtual void SetNprimary(Int_t nprimary) {fNprimary = nprimary;} | |
a41d61a9 | 26 | virtual Int_t GetNprimary() const {return fNprimary;} |
27 | virtual Int_t GetNsecondary() const {return fNtrack-fNprimary;} | |
fe4da5cc | 28 | |
29 | virtual void SetNvertex(Int_t vertex) {fNvertex = vertex;} | |
30 | virtual Int_t GetNvertex() const {return fNvertex;} | |
31 | ||
32 | virtual void SetNtrack(Int_t ntrack) {fNtrack = ntrack;} | |
33 | virtual Int_t GetNtrack() const {return fNtrack;} | |
34 | ||
35 | virtual void SetEvent(Int_t event) {fEvent = event;} | |
36 | virtual Int_t GetEvent() const {return fEvent;} | |
eef4b160 | 37 | |
38 | virtual void SetEventNrInRun(Int_t event) {fEventNrInRun = event;} | |
39 | virtual Int_t GetEventNrInRun() const {return fEventNrInRun;} | |
40 | ||
9e1a0ddb | 41 | virtual AliStack* Stack() const; |
42 | virtual void SetStack(AliStack* stack); | |
fe4da5cc | 43 | |
9e1a0ddb | 44 | virtual void SetGenEventHeader(AliGenEventHeader* header); |
45 | virtual AliGenEventHeader* GenEventHeader() const; | |
02a02c36 | 46 | |
94de3818 | 47 | virtual void Print(const char *opt=0); |
fe4da5cc | 48 | |
8918e700 | 49 | protected: |
50 | Int_t fRun; //Run number | |
51 | Int_t fNvertex; //Number of vertices | |
52 | Int_t fNprimary; //Number of primary tracks | |
53 | Int_t fNtrack; //Number of tracks | |
eef4b160 | 54 | Int_t fEvent; //Event number (serial in the file) |
55 | Int_t fEventNrInRun; //Unique Event number within the run | |
9e1a0ddb | 56 | AliStack *fStack; //Pointer to stack |
57 | AliGenEventHeader* fGenHeader; //Event Header for Generator | |
58 | ||
eef4b160 | 59 | ClassDef(AliHeader,2) //Alice event header |
fe4da5cc | 60 | }; |
61 | ||
62 | #endif |