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
3double 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
10double 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
17double 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
24ostream& 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}
ostream & operator<<(ostream &os, const DstEmcShower &aShower)
double dy() const
double dz() const
double dx() const