1 |
bendavid |
1.2 |
// $Id: Track.h,v 1.1 2008/06/04 09:08:36 loizides Exp $
|
2 |
loizides |
1.1 |
|
3 |
|
|
#ifndef DATATREE_TRACK_H
|
4 |
|
|
#define DATATREE_TRACK_H
|
5 |
|
|
|
6 |
|
|
#include "MitAna/DataTree/interface/DataObject.h"
|
7 |
|
|
|
8 |
|
|
//--------------------------------------------------------------------------------------------------
|
9 |
|
|
//
|
10 |
|
|
// Track
|
11 |
|
|
//
|
12 |
|
|
// Details to be worked out...
|
13 |
|
|
//
|
14 |
bendavid |
1.2 |
// Authors: C.Loizides, J. Bendavid
|
15 |
loizides |
1.1 |
//
|
16 |
|
|
//--------------------------------------------------------------------------------------------------
|
17 |
|
|
|
18 |
|
|
namespace mithep
|
19 |
|
|
{
|
20 |
|
|
class Track : public DataObject
|
21 |
|
|
{
|
22 |
|
|
public:
|
23 |
|
|
Track() {}
|
24 |
bendavid |
1.2 |
Track(Double_t phi, Double_t d0, Double_t pt, Double_t dz, Double_t theta) {
|
25 |
|
|
fPhi=phi;
|
26 |
|
|
fD0=d0;
|
27 |
|
|
fPt=pt;
|
28 |
|
|
fDz=dz;
|
29 |
|
|
fTheta=theta;
|
30 |
|
|
}
|
31 |
loizides |
1.1 |
~Track() {}
|
32 |
|
|
|
33 |
bendavid |
1.2 |
void SetHelix(Double_t phi, Double_t d0, Double_t pt, Double_t dz, Double_t theta) {
|
34 |
|
|
fPhi=phi;
|
35 |
|
|
fD0=d0;
|
36 |
|
|
fPt=pt;
|
37 |
|
|
fDz=dz;
|
38 |
|
|
fTheta=theta;
|
39 |
|
|
}
|
40 |
|
|
|
41 |
|
|
void SetErrors(Double_t phiErr, Double_t d0Err, Double_t ptErr, Double_t dzErr, Double_t thetaErr) {
|
42 |
|
|
fPhiErr=phiErr;
|
43 |
|
|
fD0Err=d0Err;
|
44 |
|
|
fPtErr=ptErr;
|
45 |
|
|
fDzErr=dzErr;
|
46 |
|
|
fThetaErr=thetaErr;
|
47 |
|
|
}
|
48 |
|
|
|
49 |
|
|
Double_t Phi() {return fPhi;}
|
50 |
|
|
Double_t D0() {return fD0;}
|
51 |
|
|
Double_t Pt() {return fPt;}
|
52 |
|
|
Double_t Dz() {return fDz;}
|
53 |
|
|
Double_t Theta() {return fTheta;}
|
54 |
|
|
|
55 |
|
|
Double_t PhiErr() {return fPhiErr;}
|
56 |
|
|
Double_t D0Err() {return fD0Err;}
|
57 |
|
|
Double_t PtErr() {return fPtErr;}
|
58 |
|
|
Double_t DzErr() {return fDzErr;}
|
59 |
|
|
Double_t ThetaErr() {return fThetaErr;}
|
60 |
|
|
|
61 |
|
|
Int_t Charge() {return fCharge;}
|
62 |
|
|
|
63 |
|
|
void SetCharge(Int_t charge) {fCharge=charge;}
|
64 |
|
|
|
65 |
|
|
protected:
|
66 |
|
|
Double_t fPhi;
|
67 |
|
|
Double_t fD0;
|
68 |
|
|
Double_t fPt;
|
69 |
|
|
Double_t fDz;
|
70 |
|
|
Double_t fTheta;
|
71 |
|
|
|
72 |
|
|
Double_t fPhiErr;
|
73 |
|
|
Double_t fD0Err;
|
74 |
|
|
Double_t fPtErr;
|
75 |
|
|
Double_t fDzErr;
|
76 |
|
|
Double_t fThetaErr;
|
77 |
|
|
|
78 |
|
|
Int_t fCharge;
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
loizides |
1.1 |
ClassDef(Track, 1) // Track class
|
83 |
|
|
};
|
84 |
|
|
|
85 |
|
|
} /*namespace mithep*/
|
86 |
|
|
|
87 |
|
|
#endif /*DATATREE_TRACK_H*/
|