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$ |
94de3818 |
18 | Revision 1.3 2000/07/12 08:56:25 fca |
19 | Coding convention correction and warning removal |
20 | |
8918e700 |
21 | Revision 1.2 1999/09/29 09:24:29 fca |
22 | Introduction of the Copyright and cvs Log |
23 | |
4c039060 |
24 | */ |
25 | |
fe4da5cc |
26 | #include "AliHeader.h" |
27 | #include "stdio.h" |
28 | |
29 | ClassImp(AliHeader) |
30 | |
31 | AliHeader::AliHeader() |
32 | { |
8918e700 |
33 | // |
34 | // Default constructor |
35 | // |
fe4da5cc |
36 | fRun=0; |
37 | fNvertex=0; |
38 | fNprimary=0; |
39 | fNtrack=0; |
40 | fEvent=0; |
41 | } |
42 | |
43 | AliHeader::AliHeader(Int_t run, Int_t event) |
44 | { |
8918e700 |
45 | // |
46 | // Standard constructor |
47 | // |
fe4da5cc |
48 | fRun=run; |
49 | fNvertex=0; |
50 | fNprimary=0; |
51 | fNtrack=0; |
52 | fEvent=event; |
53 | } |
54 | |
55 | void AliHeader::Reset(Int_t run, Int_t event) |
56 | { |
8918e700 |
57 | // |
58 | // Resets the header with new run and event number |
59 | // |
fe4da5cc |
60 | fRun=run; |
61 | fNvertex=0; |
62 | fNprimary=0; |
63 | fNtrack=0; |
64 | fEvent=event; |
65 | } |
66 | |
94de3818 |
67 | void AliHeader::Print(const char *) |
fe4da5cc |
68 | { |
8918e700 |
69 | // |
70 | // Dumps header content |
71 | // |
fe4da5cc |
72 | printf( |
73 | "\n=========== Header for run %d Event %d = beginning ======================================\n", |
74 | fRun,fEvent); |
75 | printf(" Number of Vertex %d\n",fNvertex); |
76 | printf(" Number of Primary %d\n",fNprimary); |
77 | printf(" Number of Tracks %d\n",fNtrack); |
78 | printf( |
79 | "=========== Header for run %d Event %d = end ============================================\n\n", |
80 | fRun,fEvent); |
81 | } |