]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliGenEventHeader.cxx
Removing AliMCProcess and AliMC
[u/mrichter/AliRoot.git] / STEER / AliGenEventHeader.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.3  2001/10/16 07:44:38  morsch
19 Initialize  fVertex in all constructors.
20
21 Revision 1.2  2001/09/25 11:28:48  morsch
22 Possibility to store and retrieve primary vertex position added.
23
24 Revision 1.1  2001/05/16 14:57:22  alibrary
25 New files for folders and Stack
26
27 Revision 1.2  2000/12/21 16:24:06  morsch
28 Coding convention clean-up
29
30 Revision 1.1  2000/06/15 15:47:48  morsch
31 Proposal for an event header class for generated events.
32
33 */
34
35 // Event header base class for generator. 
36 // Stores as a minimum the date, run number, event number,
37 // number of particles produced  
38 // and the impact parameter.
39 // 
40 // Author: andreas.morsch@cern.ch
41
42 #include "AliGenEventHeader.h"
43 ClassImp(AliGenEventHeader)
44
45
46 //_______________________________________________________________________
47 AliGenEventHeader::AliGenEventHeader():
48   fNProduced(-1),
49   fImpactParameter(-1),
50   fVertex(3)
51 {
52   //
53   // Constructor
54   //
55 }
56
57 //_______________________________________________________________________
58 AliGenEventHeader::AliGenEventHeader(const char * name):
59   TNamed(name, "Event Header"),
60   fNProduced(-1),
61   fImpactParameter(-1),
62   fVertex(3)
63 {
64   //
65   // Constructor
66   //
67 }
68
69 //_______________________________________________________________________
70 void AliGenEventHeader::SetPrimaryVertex(const TArrayF &o)
71 {
72     //
73     // Set the primary vertex for the event
74     //
75     fVertex[0]=o.At(0);
76     fVertex[1]=o.At(1);
77     fVertex[2]=o.At(2);
78 }
79
80 //_______________________________________________________________________
81 void  AliGenEventHeader::PrimaryVertex(TArrayF &o) const
82 {
83     //
84     // Return the primary vertex for the event
85     //
86     o[0] = fVertex.At(0);
87     o[1] = fVertex.At(1);
88     o[2] = fVertex.At(2);    
89 }
90