coding convention crrections
[u/mrichter/AliRoot.git] / STEER / AliHeader.h
CommitLineData
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>
e2afb3b6 9
9e1a0ddb 10class AliStack;
11class AliGenEventHeader;
fe4da5cc 12
13class AliHeader : public TObject {
fe4da5cc 14public:
15 AliHeader();
e2afb3b6 16 AliHeader(const AliHeader& head);
fe4da5cc 17 AliHeader(Int_t run, Int_t event);
eef4b160 18 AliHeader(Int_t run, Int_t eventSerialNr, Int_t evNrInRun);
8918e700 19 virtual ~AliHeader() {}
fe4da5cc 20
21 virtual void Reset(Int_t run, Int_t event);
eef4b160 22 virtual void Reset(Int_t run, Int_t eventSerialNr, Int_t evNrInRun);
fe4da5cc 23
24 virtual void SetRun(Int_t run) {fRun = run;}
25 virtual Int_t GetRun() const {return fRun;}
26
27 virtual void SetNprimary(Int_t nprimary) {fNprimary = nprimary;}
a41d61a9 28 virtual Int_t GetNprimary() const {return fNprimary;}
29 virtual Int_t GetNsecondary() const {return fNtrack-fNprimary;}
fe4da5cc 30
31 virtual void SetNvertex(Int_t vertex) {fNvertex = vertex;}
32 virtual Int_t GetNvertex() const {return fNvertex;}
33
34 virtual void SetNtrack(Int_t ntrack) {fNtrack = ntrack;}
35 virtual Int_t GetNtrack() const {return fNtrack;}
36
37 virtual void SetEvent(Int_t event) {fEvent = event;}
38 virtual Int_t GetEvent() const {return fEvent;}
eef4b160 39
40 virtual void SetEventNrInRun(Int_t event) {fEventNrInRun = event;}
41 virtual Int_t GetEventNrInRun() const {return fEventNrInRun;}
42
9e1a0ddb 43 virtual AliStack* Stack() const;
44 virtual void SetStack(AliStack* stack);
fe4da5cc 45
9e1a0ddb 46 virtual void SetGenEventHeader(AliGenEventHeader* header);
47 virtual AliGenEventHeader* GenEventHeader() const;
02a02c36 48
e2afb3b6 49 virtual void Print(const char *opt=0) const;
50
51 AliHeader& operator=(AliHeader& head)
52 {head.Copy(*this); return *this;}
fe4da5cc 53
8918e700 54protected:
e2afb3b6 55
56 void Copy(AliHeader& head) const;
57
8918e700 58 Int_t fRun; //Run number
59 Int_t fNvertex; //Number of vertices
60 Int_t fNprimary; //Number of primary tracks
61 Int_t fNtrack; //Number of tracks
eef4b160 62 Int_t fEvent; //Event number (serial in the file)
63 Int_t fEventNrInRun; //Unique Event number within the run
9e1a0ddb 64 AliStack *fStack; //Pointer to stack
65 AliGenEventHeader* fGenHeader; //Event Header for Generator
66
eef4b160 67 ClassDef(AliHeader,2) //Alice event header
fe4da5cc 68};
69
70#endif