BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DstEmcShower.cxx
Go to the documentation of this file.
1
#include "DstEvent/DstEmcShower.h"
2
3
double
DstEmcShower::dx
()
const
{
4
double
xx = 99.;
5
if
( m_errorMatrix[0][0] > 0 ) xx = sqrt( m_errorMatrix[0][0] );
6
else
if
( m_errorMatrix[0][0] == 0 ) xx = 0.;
7
return
xx;
8
}
9
10
double
DstEmcShower::dy
()
const
{
11
double
yy = 99.;
12
if
( m_errorMatrix[1][1] > 0 ) yy = sqrt( m_errorMatrix[1][1] );
13
else
if
( m_errorMatrix[1][1] == 0 ) yy = 0.;
14
return
yy;
15
}
16
17
double
DstEmcShower::dz
()
const
{
18
double
zz = 99.;
19
if
( m_errorMatrix[2][2] > 0 ) zz = sqrt( m_errorMatrix[2][2] );
20
else
if
( m_errorMatrix[2][2] == 0 ) zz = 0.;
21
return
zz;
22
}
23
24
ostream&
operator<<
( ostream& os,
const
DstEmcShower
& aShower ) {
25
os <<
"------------------DstEmcShower:"
<< endl;
26
os <<
"Track id: "
<< aShower.
trackId
() <<
", number of hits: "
<< aShower.
numHits
()
27
<<
", status: "
<< aShower.
status
() <<
", cell id: "
<< aShower.
cellId
()
28
<<
", module: "
<< aShower.
module
() <<
", time: "
<< aShower.
time
() << endl;
29
os <<
"Energy: "
<< aShower.
energy
() <<
", de: "
<< aShower.
dE
()
30
<<
", eseed: "
<< aShower.
eSeed
() <<
", e3x3: "
<< aShower.
e3x3
()
31
<<
", e5x5: "
<< aShower.
e5x5
() << endl;
32
os <<
"Position: "
<< aShower.
position
() <<
", theta: "
<< aShower.
theta
()
33
<<
", phi: "
<< aShower.
phi
() <<
"\ndx: "
<< aShower.
dx
() <<
", dy: "
<< aShower.
dy
()
34
<<
", dz: "
<< aShower.
dz
() <<
", dtheta: "
<< aShower.
dtheta
()
35
<<
", dphi: "
<< aShower.
dphi
() << endl;
36
os <<
"Second moment: "
<< aShower.
secondMoment
() <<
", lat moment: "
<< aShower.
latMoment
()
37
<<
", a20 moment: "
<< aShower.
a20Moment
() <<
", a42 moment: "
<< aShower.
a42Moment
()
38
<< endl;
39
os <<
"Error matrix: \n"
<< aShower.
errorMatrix
() << endl;
40
41
return
os;
42
}
operator<<
ostream & operator<<(ostream &os, const DstEmcShower &aShower)
Definition
DstEmcShower.cxx:24
DstEmcShower
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:21
DstEmcShower::dy
double dy() const
Definition
DstEmcShower.cxx:10
DstEmcShower::cellId
int cellId() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:32
DstEmcShower::position
HepPoint3D position() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:34
DstEmcShower::status
int status() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:31
DstEmcShower::latMoment
double latMoment() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:52
DstEmcShower::a42Moment
double a42Moment() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:54
DstEmcShower::eSeed
double eSeed() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:47
DstEmcShower::dphi
double dphi() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:44
DstEmcShower::theta
double theta() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:38
DstEmcShower::module
int module() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:33
DstEmcShower::e3x3
double e3x3() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:48
DstEmcShower::dz
double dz() const
Definition
DstEmcShower.cxx:17
DstEmcShower::phi
double phi() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:39
DstEmcShower::dx
double dx() const
Definition
DstEmcShower.cxx:3
DstEmcShower::secondMoment
double secondMoment() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:51
DstEmcShower::trackId
int trackId() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:29
DstEmcShower::errorMatrix
HepSymMatrix errorMatrix() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:55
DstEmcShower::e5x5
double e5x5() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:49
DstEmcShower::time
double time() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:50
DstEmcShower::numHits
int numHits() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:30
DstEmcShower::a20Moment
double a20Moment() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:53
DstEmcShower::energy
double energy() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:45
DstEmcShower::dE
double dE() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:46
DstEmcShower::dtheta
double dtheta() const
Definition
Event/DstEvent/include/DstEvent/DstEmcShower.h:43
8.0.0
BOSS_Source
Event
DstEvent
src
DstEmcShower.cxx
Generated by
1.16.1