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