]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliHeader.cxx
Weird inline removed
[u/mrichter/AliRoot.git] / STEER / AliHeader.cxx
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 Revision 1.7  2001/05/16 14:57:22  alibrary
19 New files for folders and Stack
20
21 Revision 1.4  2000/10/02 21:28:14  fca
22 Removal of useless dependecies via forward declarations
23
24 Revision 1.3  2000/07/12 08:56:25  fca
25 Coding convention correction and warning removal
26
27 Revision 1.2  1999/09/29 09:24:29  fca
28 Introduction of the Copyright and cvs Log
29
30 */
31
32 #include "AliHeader.h"
33 #include <stdio.h>
34  
35 ClassImp(AliHeader)
36
37 AliHeader::AliHeader()
38 {
39   //
40   // Default constructor
41   //
42   fRun=0;       
43   fNvertex=0;
44   fNprimary=0;
45   fNtrack=0;
46   fEvent=0;
47   fStack=0;
48   fGenHeader = 0;
49 }
50
51 AliHeader::AliHeader(Int_t run, Int_t event)
52 {
53   //
54   // Standard constructor
55   //
56   fRun=run;     
57   fNvertex=0;
58   fNprimary=0;
59   fNtrack=0;
60   fEvent=event;
61   fStack=0;
62   fGenHeader = 0;
63 }
64
65 void AliHeader::Reset(Int_t run, Int_t event)
66 {
67   //
68   // Resets the header with new run and event number
69   //
70   fRun=run;     
71   fNvertex=0;
72   fNprimary=0;
73   fNtrack=0;
74   fEvent=event;
75 }
76
77 void AliHeader::Print(const char* option)
78 {
79   //
80   // Dumps header content
81   //
82   printf(
83 "\n=========== Header for run %d Event %d = beginning ======================================\n",
84   fRun,fEvent);
85   printf("              Number of Vertex %d\n",fNvertex);
86   printf("              Number of Primary %d\n",fNprimary);
87   printf("              Number of Tracks %d\n",fNtrack);
88   printf(
89   "=========== Header for run %d Event %d = end ============================================\n\n",
90   fRun,fEvent);
91
92 }
93
94 AliStack* AliHeader::Stack() const
95 {
96 // Return pointer to stack
97     return fStack;
98 }
99
100 void AliHeader::SetStack(AliStack* stack)
101 {
102 // Set pointer to stack
103     fStack = stack;
104 }
105
106 void AliHeader::SetGenEventHeader(AliGenEventHeader* header)
107 {
108 // Set pointer to header for generated event
109     fGenHeader = header;
110 }
111
112 iAliGenEventHeader*  AliHeader::GenEventHeader() const
113 {
114 // Get pointer to header for generated event
115     return fGenHeader;
116 }
117
118
119
120