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