]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliGenEventHeader.cxx
Fixed compilation
[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 /* $Id$ */
17
18 //---------------------------------------------------------------------
19 // Event header base class for generator. 
20 // Stores as a minimum the date, run number, event number,
21 // number of particles produced  
22 // and the impact parameter.
23 // Author: andreas.morsch@cern.ch
24 //---------------------------------------------------------------------
25
26 #include "AliGenEventHeader.h"
27 ClassImp(AliGenEventHeader)
28
29
30 //_______________________________________________________________________
31 AliGenEventHeader::AliGenEventHeader():
32   fNProduced(-1),
33   fVertex(3),
34   fInteractionTime(0.)
35 {
36   //
37   // Constructor
38   //
39 }
40
41 //_______________________________________________________________________
42 AliGenEventHeader::AliGenEventHeader(const char * name):
43   TNamed(name, "Event Header"),
44   fNProduced(-1),
45   fVertex(3),
46   fInteractionTime(0.)
47 {
48   //
49   // Constructor
50   //
51 }
52
53 //_______________________________________________________________________
54 void AliGenEventHeader::SetPrimaryVertex(const TArrayF &o)
55 {
56     //
57     // Set the primary vertex for the event
58     //
59     fVertex[0]=o.At(0);
60     fVertex[1]=o.At(1);
61     fVertex[2]=o.At(2);
62 }
63
64 //_______________________________________________________________________
65 void  AliGenEventHeader::PrimaryVertex(TArrayF &o) const
66 {
67     //
68     // Return the primary vertex for the event
69     //
70     o.Set(3);
71     o[0] = fVertex.At(0);
72     o[1] = fVertex.At(1);
73     o[2] = fVertex.At(2);    
74 }
75