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