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 **************************************************************************/
20 #include "AliHeader.h"
24 //_______________________________________________________________________
25 AliHeader::AliHeader():
36 // Default constructor
40 //_______________________________________________________________________
41 AliHeader::AliHeader(const AliHeader& head):
58 //_______________________________________________________________________
59 AliHeader::AliHeader(Int_t run, Int_t event):
70 // Standard constructor
74 //_______________________________________________________________________
75 AliHeader::AliHeader(Int_t run, Int_t event, Int_t evNumber):
81 fEventNrInRun(evNumber),
86 // Standard constructor
90 //_______________________________________________________________________
91 void AliHeader::Reset(Int_t run, Int_t event)
94 // Resets the header with new run and event number
103 //_______________________________________________________________________
104 void AliHeader::Reset(Int_t run, Int_t event, Int_t evNumber)
107 // Resets the header with new run and event number
114 fEventNrInRun=evNumber;
117 //_______________________________________________________________________
118 void AliHeader::Print(const char*) const
121 // Dumps header content
124 "\n=========== Header for run %d Event %d = beginning ======================================\n",
126 printf(" Number of Vertex %d\n",fNvertex);
127 printf(" Number of Primary %d\n",fNprimary);
128 printf(" Number of Tracks %d\n",fNtrack);
130 "=========== Header for run %d Event %d = end ============================================\n\n",
135 //_______________________________________________________________________
136 AliStack* AliHeader::Stack() const
138 // Return pointer to stack
142 //_______________________________________________________________________
143 void AliHeader::SetStack(AliStack* stack)
145 // Set pointer to stack
149 //_______________________________________________________________________
150 void AliHeader::SetGenEventHeader(AliGenEventHeader* header)
152 // Set pointer to header for generated event
156 //_______________________________________________________________________
157 AliGenEventHeader* AliHeader::GenEventHeader() const
159 // Get pointer to header for generated event
163 //_______________________________________________________________________
164 void AliHeader::Copy(AliHeader&) const
166 Fatal("Copy","Not implemented\n");