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