StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AliStHbtEvent.cxx
1 // any problems, send an email to chajecki@mps.ohio-state.edu
2 #include "AliStHbtEvent.h"
3 #include "AliStHbtTrack.h"
4 #include "TClonesArray.h"
5 
6 ClassImp(AliStHbtEvent)
7 
9  {
10  fTracks = new TClonesArray("AliStHbtTrack", 20000);
11  mNTracks = 0;
12  }
13 
14 int AliStHbtEvent::GetRunNumber()
15 {
16  return mRunNumber;
17 }
18 
19 void AliStHbtEvent::SetRunNumber(int number)
20 {
21  mRunNumber = number;
22 }
23 
24 int AliStHbtEvent::GetEventNumber()
25 {
26  return mEventNumber;
27 }
28 
29 void AliStHbtEvent::SetEventNumber(int number)
30 {
31  mEventNumber = number;
32 }
33 
34 void AliStHbtEvent::Clear(const Option_t* option="")
35 {
36  fTracks->Clear("C");
37  mNTracks = 0;
38 }
39 
40 AliStHbtTrack* AliStHbtEvent::AddTrack()
41 {
42  TClonesArray &tracks = *fTracks;
43  AliStHbtTrack *track = new(tracks[mNTracks++]) AliStHbtTrack;
44  return track;
45 }
46