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