1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-----------------------------------------------------------------------
19 // Simulation event header class
20 // Collaborates with AliRun, AliStack, and AliGenReaderTreeK classes
21 // Many other classes depend on it
23 //-----------------------------------------------------------------------
28 #include "AliHeader.h"
32 //_______________________________________________________________________
33 AliHeader::AliHeader():
44 // Default constructor
48 //_______________________________________________________________________
49 AliHeader::AliHeader(const AliHeader& head):
66 //_______________________________________________________________________
67 AliHeader::AliHeader(Int_t run, Int_t event):
78 // Standard constructor
82 //_______________________________________________________________________
83 AliHeader::AliHeader(Int_t run, Int_t event, Int_t evNumber):
89 fEventNrInRun(evNumber),
94 // Standard constructor
98 //_______________________________________________________________________
99 void AliHeader::Reset(Int_t run, Int_t event)
102 // Resets the header with new run and event number
111 //_______________________________________________________________________
112 void AliHeader::Reset(Int_t run, Int_t event, Int_t evNumber)
115 // Resets the header with new run and event number
122 fEventNrInRun=evNumber;
125 //_______________________________________________________________________
126 void AliHeader::Print(const char*) const
129 // Dumps header content
132 "\n=========== Header for run %d Event %d = beginning ======================================\n",
134 printf(" Number of Vertex %d\n",fNvertex);
135 printf(" Number of Primary %d\n",fNprimary);
136 printf(" Number of Tracks %d\n",fNtrack);
138 "=========== Header for run %d Event %d = end ============================================\n\n",
143 //_______________________________________________________________________
144 AliStack* AliHeader::Stack() const
146 // Return pointer to stack
150 //_______________________________________________________________________
151 void AliHeader::SetStack(AliStack* stack)
153 // Set pointer to stack
157 //_______________________________________________________________________
158 void AliHeader::SetGenEventHeader(AliGenEventHeader* header)
160 // Set pointer to header for generated event
164 //_______________________________________________________________________
165 AliGenEventHeader* AliHeader::GenEventHeader() const
167 // Get pointer to header for generated event
171 //_______________________________________________________________________
172 void AliHeader::Copy(TObject&) const
174 AliFatal("Not implemented");