]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FASTSIM/AliFastEvent.h
Cosmetics and new GetLengthDef() method
[u/mrichter/AliRoot.git] / FASTSIM / AliFastEvent.h
1 #ifndef ALIFASTEVENT_H
2 #define ALIFASTEVENT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TObject.h>
9 #include <TArrayF.h>
10
11 class AliFastEvent : public TObject {
12  public:
13     AliFastEvent(){;}
14     virtual ~AliFastEvent(){;}
15     virtual void  SetMultiplicty(Int_t mul) 
16         {fMultiplicity = mul;}
17     virtual Int_t GetMultiplicty() 
18         {return fMultiplicity;}
19     virtual void SetVertex(const TArrayF &o) 
20         {
21             fEventVertex[0] = o.At(0);
22             fEventVertex[1] = o.At(1);
23             fEventVertex[2] = o.At(2);
24         }
25
26     virtual void GetVertex(TArrayF &o) const
27         {
28             o[0] = fEventVertex.At(0);
29             o[1] = fEventVertex.At(1);
30             o[2] = fEventVertex.At(2);
31         }
32
33  protected:
34     Int_t     fMultiplicity;    // Event Multiplicity
35     TArrayF   fEventVertex;     // Event primary vertex
36     
37     ClassDef(AliFastEvent,1) // Base class for fast event
38 };
39
40 #endif 
41
42
43