BOSS 8.0.0
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
4using namespace std;
5
7
8//**************************************
9TEmcTrack::TEmcTrack() { Clear(); }
10
11//*************************************
12
14
15void TEmcTrack::setErr( const Double_t err[6] ) {
16 for ( int i = 0; i < 6; i++ ) { m_err[i] = err[i]; }
17}
18/************************************
19
20 void TEmcTrack::Clear(Option_t *option) {
21 }
22
23
24 void TEmcTrack::Print(Option_t *option) const {
25 TObject::Print(option);
26 std::cout.precision(2);
27 std::cout << "Idetifier: " << m_intId << std::endl;
28 std::cout << "TimeChannel: " << m_timeChannel <<std::endl;
29 std::cout << "ChargeChannel:" << m_chargeChannel <<std::endl;
30 }
31 ******************************/
32
33Double_t TEmcTrack::dx() const {
34 double xx = 99.;
35 if ( m_err[0] > 0 ) xx = sqrt( m_err[0] );
36 else if ( m_err[0] == 0 ) xx = 0.;
37 return xx;
38}
39
40Double_t TEmcTrack::dy() const {
41 double yy = 99.;
42 if ( m_err[1] > 0 ) yy = sqrt( m_err[1] );
43 else if ( m_err[1] == 0 ) yy = 0.;
44 return yy;
45}
46
47Double_t TEmcTrack::dz() const {
48 double zz = 99.;
49 if ( m_err[2] > 0 ) zz = sqrt( m_err[2] );
50 else if ( m_err[2] == 0 ) zz = 0.;
51 return zz;
52}
ClassImp(TEmcTrack)
void setErr(const Double_t err[6])
Definition TEmcTrack.cxx:15
Double_t dx() const
Definition TEmcTrack.cxx:33
Double_t dy() const
Definition TEmcTrack.cxx:40
Double_t dz() const
Definition TEmcTrack.cxx:47