BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TEmcTrack.cxx
Go to the documentation of this file.
2#include <cmath>
3
4using namespace std;
5
6
8
9//**************************************
11 Clear();
12}
13
14//*************************************
15
17 Clear();
18}
19
20void TEmcTrack::setErr(const Double_t err[6] ) {
21 for (int i=0;i<6;i++) {
22 m_err[i] = err[i];
23 }
24}
25/************************************
26
27 void TEmcTrack::Clear(Option_t *option) {
28 }
29
30
31 void TEmcTrack::Print(Option_t *option) const {
32 TObject::Print(option);
33 std::cout.precision(2);
34 std::cout << "Idetifier: " << m_intId << std::endl;
35 std::cout << "TimeChannel: " << m_timeChannel <<std::endl;
36 std::cout << "ChargeChannel:" << m_chargeChannel <<std::endl;
37 }
38 ******************************/
39
40Double_t TEmcTrack::dx() const {
41 double xx=99.;
42 if(m_err[0]>0) xx=sqrt(m_err[0]);
43 else if(m_err[0]==0) xx=0.;
44 return xx;
45}
46
47Double_t TEmcTrack::dy() const {
48 double yy=99.;
49 if(m_err[1]>0) yy=sqrt(m_err[1]);
50 else if(m_err[1]==0) yy=0.;
51 return yy;
52}
53
54Double_t TEmcTrack::dz() const {
55 double zz=99.;
56 if(m_err[2]>0) zz=sqrt(m_err[2]);
57 else if(m_err[2]==0) zz=0.;
58 return zz;
59}
ClassImp(TEmcTrack) TEmcTrack
Definition: TEmcTrack.cxx:7
void setErr(const Double_t err[6])
Definition: TEmcTrack.cxx:20
Double_t err(Int_t i) const
Definition: TEmcTrack.h:47
Double_t dx() const
Definition: TEmcTrack.cxx:40
Double_t dy() const
Definition: TEmcTrack.cxx:47
Double_t dz() const
Definition: TEmcTrack.cxx:54