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 //-----------------------------------------------------------------------
27 #include "AliHeader.h"
31 //_______________________________________________________________________
32 AliHeader::AliHeader():
43 // Default constructor
47 //_______________________________________________________________________
48 AliHeader::AliHeader(const AliHeader& head):
65 //_______________________________________________________________________
66 AliHeader::AliHeader(Int_t run, Int_t event):
77 // Standard constructor
81 //_______________________________________________________________________
82 AliHeader::AliHeader(Int_t run, Int_t event, Int_t evNumber):
88 fEventNrInRun(evNumber),
93 // Standard constructor
97 //_______________________________________________________________________
98 void AliHeader::Reset(Int_t run, Int_t event)
101 // Resets the header with new run and event number
110 //_______________________________________________________________________
111 void AliHeader::Reset(Int_t run, Int_t event, Int_t evNumber)
114 // Resets the header with new run and event number
121 fEventNrInRun=evNumber;
124 //_______________________________________________________________________
125 void AliHeader::Print(const char*) const
128 // Dumps header content
131 "\n=========== Header for run %d Event %d = beginning ======================================\n",
133 printf(" Number of Vertex %d\n",fNvertex);
134 printf(" Number of Primary %d\n",fNprimary);
135 printf(" Number of Tracks %d\n",fNtrack);
137 "=========== Header for run %d Event %d = end ============================================\n\n",
142 //_______________________________________________________________________
143 AliStack* AliHeader::Stack() const
145 // Return pointer to stack
149 //_______________________________________________________________________
150 void AliHeader::SetStack(AliStack* stack)
152 // Set pointer to stack
156 //_______________________________________________________________________
157 void AliHeader::SetGenEventHeader(AliGenEventHeader* header)
159 // Set pointer to header for generated event
163 //_______________________________________________________________________
164 AliGenEventHeader* AliHeader::GenEventHeader() const
166 // Get pointer to header for generated event
170 //_______________________________________________________________________
171 void AliHeader::Copy(AliHeader&) const
173 Fatal("Copy","Not implemented\n");