This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / STEER / AliHeader.cxx
... / ...
CommitLineData
1#include "AliHeader.h"
2#include "stdio.h"
3
4ClassImp(AliHeader)
5
6AliHeader::AliHeader()
7{
8 fRun=0;
9 fNvertex=0;
10 fNprimary=0;
11 fNtrack=0;
12 fEvent=0;
13}
14
15AliHeader::AliHeader(Int_t run, Int_t event)
16{
17 fRun=run;
18 fNvertex=0;
19 fNprimary=0;
20 fNtrack=0;
21 fEvent=event;
22}
23
24void AliHeader::Reset(Int_t run, Int_t event)
25{
26 fRun=run;
27 fNvertex=0;
28 fNprimary=0;
29 fNtrack=0;
30 fEvent=event;
31}
32
33void AliHeader::Dump()
34{
35 printf(
36"\n=========== Header for run %d Event %d = beginning ======================================\n",
37 fRun,fEvent);
38 printf(" Number of Vertex %d\n",fNvertex);
39 printf(" Number of Primary %d\n",fNprimary);
40 printf(" Number of Tracks %d\n",fNtrack);
41 printf(
42 "=========== Header for run %d Event %d = end ============================================\n\n",
43 fRun,fEvent);
44}