]>
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> |
9 | #include <TArrayI.h> | |
fe4da5cc | 10 | |
11 | class AliHeader : public TObject { | |
fe4da5cc | 12 | public: |
13 | AliHeader(); | |
14 | AliHeader(Int_t run, Int_t event); | |
8918e700 | 15 | virtual ~AliHeader() {} |
fe4da5cc | 16 | |
17 | virtual void Reset(Int_t run, Int_t event); | |
18 | ||
19 | virtual void SetRun(Int_t run) {fRun = run;} | |
20 | virtual Int_t GetRun() const {return fRun;} | |
21 | ||
22 | virtual void SetNprimary(Int_t nprimary) {fNprimary = nprimary;} | |
a41d61a9 | 23 | virtual Int_t GetNprimary() const {return fNprimary;} |
24 | virtual Int_t GetNsecondary() const {return fNtrack-fNprimary;} | |
fe4da5cc | 25 | |
26 | virtual void SetNvertex(Int_t vertex) {fNvertex = vertex;} | |
27 | virtual Int_t GetNvertex() const {return fNvertex;} | |
28 | ||
29 | virtual void SetNtrack(Int_t ntrack) {fNtrack = ntrack;} | |
30 | virtual Int_t GetNtrack() const {return fNtrack;} | |
31 | ||
32 | virtual void SetEvent(Int_t event) {fEvent = event;} | |
33 | virtual Int_t GetEvent() const {return fEvent;} | |
34 | ||
02a02c36 | 35 | virtual TArrayI& GetParticleFileMap(){return fParticleFileMap;} |
36 | ||
94de3818 | 37 | virtual void Print(const char *opt=0); |
fe4da5cc | 38 | |
8918e700 | 39 | protected: |
40 | Int_t fRun; //Run number | |
41 | Int_t fNvertex; //Number of vertices | |
42 | Int_t fNprimary; //Number of primary tracks | |
43 | Int_t fNtrack; //Number of tracks | |
44 | Int_t fEvent; //Event number | |
02a02c36 | 45 | TArrayI fParticleFileMap; //Map of particles in the file |
8918e700 | 46 | |
02a02c36 | 47 | ClassDef(AliHeader,1) //Alice event header |
fe4da5cc | 48 | }; |
49 | ||
50 | #endif |