-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAliGMFTTreeTrack.cxx
47 lines (43 loc) · 1.35 KB
/
AliGMFTTreeTrack.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// author: redmer alexander bertens ([email protected])
#include "AliGMFTTreeTrack.h"
ClassImp(AliGMFTTreeTrack);
using namespace std;
AliGMFTTreeTrack::AliGMFTTreeTrack() : TObject(),
fPt (0.001),
fEta (10.),
fPhi (0),
fCharge (0.),
fUsed (kFALSE),
fFilled (kFALSE),
fNumber (0)
{
// default constructor
}
//_____________________________________________________________________________
AliGMFTTreeTrack::~AliGMFTTreeTrack(){}
//_____________________________________________________________________________
void AliGMFTTreeTrack::Fill(AliGMFTTreeTrack* track) {
// fill current track with info from supplied track
fPt = track->GetPt();
fEta = track->GetEta();
fPhi = track->GetPhi();
fCharge = track->GetCharge();
fUsed = track->GetUsed();
fFilled = kTRUE;
fNumber = track->GetNumber();
}
//_____________________________________________________________________________
void AliGMFTTreeTrack::Reset() {
// fill current track with info from supplied track
fPt = .001;
fEta = 10.;
fPhi = 0;
fCharge = -1;
fUsed = kFALSE;
fFilled = kFALSE;
fNumber = 0;
}
//_____________________________________________________________________________
void AliGMFTTreeTrack::PrintInfo() {
printf(" pt %.4f \t eta %.4f \t phi %.4f \n", fPt, fEta, fPhi);
}