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