3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
11 class AliGenEventHeader;
13 class AliHeader : public TObject {
16 AliHeader(Int_t run, Int_t event);
17 virtual ~AliHeader() {}
19 virtual void Reset(Int_t run, Int_t event);
21 virtual void SetRun(Int_t run) {fRun = run;}
22 virtual Int_t GetRun() const {return fRun;}
24 virtual void SetNprimary(Int_t nprimary) {fNprimary = nprimary;}
25 virtual Int_t GetNprimary() const {return fNprimary;}
26 virtual Int_t GetNsecondary() const {return fNtrack-fNprimary;}
28 virtual void SetNvertex(Int_t vertex) {fNvertex = vertex;}
29 virtual Int_t GetNvertex() const {return fNvertex;}
31 virtual void SetNtrack(Int_t ntrack) {fNtrack = ntrack;}
32 virtual Int_t GetNtrack() const {return fNtrack;}
34 virtual void SetEvent(Int_t event) {fEvent = event;}
35 virtual Int_t GetEvent() const {return fEvent;}
36 virtual AliStack* Stack() const;
37 virtual void SetStack(AliStack* stack);
39 virtual void SetGenEventHeader(AliGenEventHeader* header);
40 virtual AliGenEventHeader* GenEventHeader() const;
42 virtual void Print(const char *opt=0);
45 Int_t fRun; //Run number
46 Int_t fNvertex; //Number of vertices
47 Int_t fNprimary; //Number of primary tracks
48 Int_t fNtrack; //Number of tracks
49 Int_t fEvent; //Event number
50 AliStack *fStack; //Pointer to stack
51 AliGenEventHeader* fGenHeader; //Event Header for Generator
53 ClassDef(AliHeader,1) //Alice event header