]>
Commit | Line | Data |
---|---|---|
56a10437 | 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 | ||
acd84897 | 16 | /* $Id$ */ |
56a10437 | 17 | |
5d8718b8 | 18 | //--------------------------------------------------------------------- |
675e9664 | 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. | |
675e9664 | 23 | // Author: andreas.morsch@cern.ch |
5d8718b8 | 24 | //--------------------------------------------------------------------- |
675e9664 | 25 | |
56a10437 | 26 | #include "AliGenEventHeader.h" |
27 | ClassImp(AliGenEventHeader) | |
28 | ||
29 | ||
e2afb3b6 | 30 | //_______________________________________________________________________ |
31 | AliGenEventHeader::AliGenEventHeader(): | |
32 | fNProduced(-1), | |
d07f0af2 | 33 | fVertex(3), |
e2643c79 | 34 | fInteractionTime(0.), |
35 | fEventWeight(1.) | |
9e1a0ddb | 36 | { |
e2afb3b6 | 37 | // |
38 | // Constructor | |
39 | // | |
9e1a0ddb | 40 | } |
41 | ||
e2afb3b6 | 42 | //_______________________________________________________________________ |
43 | AliGenEventHeader::AliGenEventHeader(const char * name): | |
44 | TNamed(name, "Event Header"), | |
45 | fNProduced(-1), | |
d07f0af2 | 46 | fVertex(3), |
e2643c79 | 47 | fInteractionTime(0.), |
48 | fEventWeight(1.) | |
56a10437 | 49 | { |
e2afb3b6 | 50 | // |
51 | // Constructor | |
52 | // | |
56a10437 | 53 | } |
675e9664 | 54 | |
e2afb3b6 | 55 | //_______________________________________________________________________ |
c6675d58 | 56 | void AliGenEventHeader::SetPrimaryVertex(const TArrayF &o) |
57 | { | |
58 | // | |
59 | // Set the primary vertex for the event | |
60 | // | |
61 | fVertex[0]=o.At(0); | |
62 | fVertex[1]=o.At(1); | |
63 | fVertex[2]=o.At(2); | |
64 | } | |
675e9664 | 65 | |
e2afb3b6 | 66 | //_______________________________________________________________________ |
c6675d58 | 67 | void AliGenEventHeader::PrimaryVertex(TArrayF &o) const |
68 | { | |
69 | // | |
70 | // Return the primary vertex for the event | |
71 | // | |
674e34cc | 72 | o.Set(3); |
c6675d58 | 73 | o[0] = fVertex.At(0); |
74 | o[1] = fVertex.At(1); | |
75 | o[2] = fVertex.At(2); | |
76 | } | |
675e9664 | 77 |