BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
DstEmcShower.cxx
Go to the documentation of this file.
1#include "DstEvent/DstEmcShower.h"
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
double dz() const
double dx() const
Definition: DstEmcShower.cxx:3