4c039060 |
1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
3 | * * |
4 | * Author: The ALICE Off-line Project. * |
5 | * Contributors are mentioned in the code where appropriate. * |
6 | * * |
7 | * Permission to use, copy, modify and distribute this software and its * |
8 | * documentation strictly for non-commercial purposes is hereby granted * |
9 | * without fee, provided that the above copyright notice appears in all * |
10 | * copies and that both the copyright notice and this permission notice * |
11 | * appear in the supporting documentation. The authors make no claims * |
12 | * about the suitability of this software for any purpose. It is * |
13 | * provided "as is" without express or implied warranty. * |
14 | **************************************************************************/ |
15 | |
16 | /* |
17 | $Log$ |
18 | */ |
19 | |
fe4da5cc |
20 | #include "AliHeader.h" |
21 | #include "stdio.h" |
22 | |
23 | ClassImp(AliHeader) |
24 | |
25 | AliHeader::AliHeader() |
26 | { |
27 | fRun=0; |
28 | fNvertex=0; |
29 | fNprimary=0; |
30 | fNtrack=0; |
31 | fEvent=0; |
32 | } |
33 | |
34 | AliHeader::AliHeader(Int_t run, Int_t event) |
35 | { |
36 | fRun=run; |
37 | fNvertex=0; |
38 | fNprimary=0; |
39 | fNtrack=0; |
40 | fEvent=event; |
41 | } |
42 | |
43 | void AliHeader::Reset(Int_t run, Int_t event) |
44 | { |
45 | fRun=run; |
46 | fNvertex=0; |
47 | fNprimary=0; |
48 | fNtrack=0; |
49 | fEvent=event; |
50 | } |
51 | |
52 | void AliHeader::Dump() |
53 | { |
54 | printf( |
55 | "\n=========== Header for run %d Event %d = beginning ======================================\n", |
56 | fRun,fEvent); |
57 | printf(" Number of Vertex %d\n",fNvertex); |
58 | printf(" Number of Primary %d\n",fNprimary); |
59 | printf(" Number of Tracks %d\n",fNtrack); |
60 | printf( |
61 | "=========== Header for run %d Event %d = end ============================================\n\n", |
62 | fRun,fEvent); |
63 | } |