]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliGenEventHeader.cxx
Bug fix: corrected file name (Levente)
[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
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"
27ClassImp(AliGenEventHeader)
28
29
e2afb3b6 30//_______________________________________________________________________
31AliGenEventHeader::AliGenEventHeader():
32 fNProduced(-1),
e2afb3b6 33 fVertex(3)
9e1a0ddb 34{
e2afb3b6 35 //
36 // Constructor
37 //
9e1a0ddb 38}
39
e2afb3b6 40//_______________________________________________________________________
41AliGenEventHeader::AliGenEventHeader(const char * name):
42 TNamed(name, "Event Header"),
43 fNProduced(-1),
e2afb3b6 44 fVertex(3)
56a10437 45{
e2afb3b6 46 //
47 // Constructor
48 //
56a10437 49}
675e9664 50
e2afb3b6 51//_______________________________________________________________________
c6675d58 52void AliGenEventHeader::SetPrimaryVertex(const TArrayF &o)
53{
54 //
55 // Set the primary vertex for the event
56 //
57 fVertex[0]=o.At(0);
58 fVertex[1]=o.At(1);
59 fVertex[2]=o.At(2);
60}
675e9664 61
e2afb3b6 62//_______________________________________________________________________
c6675d58 63void AliGenEventHeader::PrimaryVertex(TArrayF &o) const
64{
65 //
66 // Return the primary vertex for the event
67 //
674e34cc 68 o.Set(3);
c6675d58 69 o[0] = fVertex.At(0);
70 o[1] = fVertex.At(1);
71 o[2] = fVertex.At(2);
72}
675e9664 73