BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
DstEmcShower.cxx
Go to the documentation of this file.
2
3double 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
11double 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
19double 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
27ostream& 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}
ostream & operator<<(ostream &os, const DstEmcShower &aShower)
double dy() const
int cellId() const
Definition: DstEmcShower.h:32
HepPoint3D position() const
Definition: DstEmcShower.h:34
int status() const
Definition: DstEmcShower.h:31
double latMoment() const
Definition: DstEmcShower.h:52
double a42Moment() const
Definition: DstEmcShower.h:54
double eSeed() const
Definition: DstEmcShower.h:47
double dphi() const
Definition: DstEmcShower.h:44
double theta() const
Definition: DstEmcShower.h:38
int module() const
Definition: DstEmcShower.h:33
double e3x3() const
Definition: DstEmcShower.h:48
double dz() const
double phi() const
Definition: DstEmcShower.h:39
double dx() const
Definition: DstEmcShower.cxx:3
double secondMoment() const
Definition: DstEmcShower.h:51
int trackId() const
Definition: DstEmcShower.h:29
HepSymMatrix errorMatrix() const
Definition: DstEmcShower.h:55
double e5x5() const
Definition: DstEmcShower.h:49
double time() const
Definition: DstEmcShower.h:50
int numHits() const
Definition: DstEmcShower.h:30
double a20Moment() const
Definition: DstEmcShower.h:53
double energy() const
Definition: DstEmcShower.h:45
double dE() const
Definition: DstEmcShower.h:46
double dtheta() const
Definition: DstEmcShower.h:43