CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TEmcTrack.cxx
Go to the documentation of this file.
1
#include "
RootEventData/TEmcTrack.h
"
2
#include <cmath>
3
4
using namespace
std
;
5
6
7
ClassImp
(
TEmcTrack
)
8
9
//**************************************
10
TEmcTrack::TEmcTrack
() {
11
Clear();
12
}
13
14
//*************************************
15
16
TEmcTrack::~TEmcTrack
() {
17
Clear();
18
}
19
20
void
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
40
Double_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
47
Double_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
54
Double_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
ClassImp(TEmcTrack) TEmcTrack
Definition
TEmcTrack.cxx:7
TEmcTrack.h
TEmcTrack
Definition
TEmcTrack.h:7
TEmcTrack::setErr
void setErr(const Double_t err[6])
Definition
TEmcTrack.cxx:20
TEmcTrack::TEmcTrack
TEmcTrack()
TEmcTrack::err
Double_t err(Int_t i) const
Definition
TEmcTrack.h:47
TEmcTrack::dx
Double_t dx() const
Definition
TEmcTrack.cxx:40
TEmcTrack::dy
Double_t dy() const
Definition
TEmcTrack.cxx:47
TEmcTrack::dz
Double_t dz() const
Definition
TEmcTrack.cxx:54
TEmcTrack::~TEmcTrack
~TEmcTrack()
Definition
TEmcTrack.cxx:16
std
Definition
RootEventData_rootcint.cxx:16
6.6.5.h
Event
RootEventData
RootEventData-00-05-16
src
TEmcTrack.cxx
Generated by
1.12.0