BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcBhabha Class Reference

#include <EmcBhabha.h>

Public Member Functions

 EmcBhabha ()
 EmcBhabha (const EmcBhabha &otherBhabha)
 ~EmcBhabha ()
const bool & found ()
const double & calibEnergy () const
const double & errorOnCalibEnergy () const
double errorOnShowerEnergy () const
EmcShower shower () const
const double & theta () const
const double & phi () const
const unsigned int & thetaIndex () const
const unsigned int & phiIndex () const
void print ()
double sigma2 () const
void setFound (bool what)
void setCalibEnergy (double energy)
void setErrorOnCalibEnergy (double error)
void setShower (EmcShower aShower)
void setTheta (double theta)
void setPhi (double phi)
void setThetaIndex (unsigned int thetaIndex)
void setPhiIndex (unsigned int phiIndex)

Detailed Description

This class holds the information of one Bhabha particle like. the energy, the shower ... It is filled in SelectBhabha and read out in CollectBhabha to fill the calibration matrix and vector.

Definition at line 29 of file EmcBhabha.h.

Constructor & Destructor Documentation

◆ EmcBhabha() [1/2]

EmcBhabha::EmcBhabha ( )

Definition at line 30 of file EmcBhabha.cxx.

31 : m_calibEnergy( 0 )
32 , m_errCalibEnergy( 0 )
33 , m_shower( EmcShower() )
34 , m_theta( -1. )
35 , m_found( false )
36 , m_thetaIndex( 9999 )
37 , m_phiIndex( 9999 ) {}

Referenced by EmcBhabha().

◆ EmcBhabha() [2/2]

EmcBhabha::EmcBhabha ( const EmcBhabha & otherBhabha)

Definition at line 40 of file EmcBhabha.cxx.

40 {
41 m_calibEnergy = otherBhabha.m_calibEnergy;
42 m_errCalibEnergy = otherBhabha.m_errCalibEnergy;
43 m_shower = otherBhabha.m_shower;
44 m_theta = otherBhabha.m_theta;
45 m_found = otherBhabha.m_found;
46 m_thetaIndex = otherBhabha.m_thetaIndex;
47 m_phiIndex = otherBhabha.m_phiIndex;
48}

◆ ~EmcBhabha()

EmcBhabha::~EmcBhabha ( )

Definition at line 53 of file EmcBhabha.cxx.

53{}

Member Function Documentation

◆ calibEnergy()

const double & EmcBhabha::calibEnergy ( ) const
inline

Definition at line 44 of file EmcBhabha.h.

44{ return m_calibEnergy; }

Referenced by print().

◆ errorOnCalibEnergy()

const double & EmcBhabha::errorOnCalibEnergy ( ) const
inline

Definition at line 47 of file EmcBhabha.h.

47{ return m_errCalibEnergy; }

Referenced by print(), and sigma2().

◆ errorOnShowerEnergy()

double EmcBhabha::errorOnShowerEnergy ( ) const

Definition at line 55 of file EmcBhabha.cxx.

55 {
56
57 double sig = 0, sig1 = 0, sig2 = 0;
58
59 // energy measurement error of calorimeter
60 /*
61 sig1 = 0.0034/shower().energy();
62 sig1 *= sig1;
63 sig2 = (0.0070/pow(shower().energy(),0.25));
64 sig2 *= sig2;
65 sig = sig1+sig2;
66 sig += (0.0134*0.0134);
67 sig = sqrt(sig) * shower().energy();
68 */
69 return sig;
70}

Referenced by print(), and sigma2().

◆ found()

const bool & EmcBhabha::found ( )
inline

Definition at line 41 of file EmcBhabha.h.

41{ return m_found; }

◆ phi()

const double & EmcBhabha::phi ( ) const
inline

Definition at line 66 of file EmcBhabha.h.

66{ return m_phi; }

Referenced by setPhi().

◆ phiIndex()

const unsigned int & EmcBhabha::phiIndex ( ) const
inline

Definition at line 70 of file EmcBhabha.h.

70{ return m_phiIndex; }

Referenced by setPhiIndex().

◆ print()

void EmcBhabha::print ( )

Definition at line 87 of file EmcBhabha.cxx.

87 {
88
89 cout << "EmcBhabha: " << endl
90 << "Energies: calib: " << calibEnergy() << " shower: " << m_shower.energy()
91 << " Theta: " << theta() << " nr Xtals: " << m_shower.digiList().size() << endl
92 << "Errors: calibEne: " << errorOnCalibEnergy() << " shower: " << errorOnShowerEnergy()
93 << " sum: " << sigma2() << endl;
94}
const double & theta() const
Definition EmcBhabha.h:57
double sigma2() const
Definition EmcBhabha.cxx:72
const double & calibEnergy() const
Definition EmcBhabha.h:44
double errorOnShowerEnergy() const
Definition EmcBhabha.cxx:55
const double & errorOnCalibEnergy() const
Definition EmcBhabha.h:47

Referenced by EmcBhabhaEvent::print().

◆ setCalibEnergy()

void EmcBhabha::setCalibEnergy ( double energy)
inline

Definition at line 79 of file EmcBhabha.h.

79{ m_calibEnergy = energy; }
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
Definition KK2f.h:50

◆ setErrorOnCalibEnergy()

void EmcBhabha::setErrorOnCalibEnergy ( double error)
inline

Definition at line 80 of file EmcBhabha.h.

80{ m_errCalibEnergy = error; }

◆ setFound()

void EmcBhabha::setFound ( bool what)
inline

Definition at line 78 of file EmcBhabha.h.

78{ m_found = what; }

◆ setPhi()

void EmcBhabha::setPhi ( double phi)
inline

Definition at line 83 of file EmcBhabha.h.

83{ m_phi = phi; }
const double & phi() const
Definition EmcBhabha.h:66

◆ setPhiIndex()

void EmcBhabha::setPhiIndex ( unsigned int phiIndex)
inline

Definition at line 85 of file EmcBhabha.h.

85{ m_phiIndex = phiIndex; }
const unsigned int & phiIndex() const
Definition EmcBhabha.h:70

◆ setShower()

void EmcBhabha::setShower ( EmcShower aShower)
inline

Definition at line 81 of file EmcBhabha.h.

81{ m_shower = aShower; }

◆ setTheta()

void EmcBhabha::setTheta ( double theta)
inline

Definition at line 82 of file EmcBhabha.h.

82{ m_theta = theta; }

◆ setThetaIndex()

void EmcBhabha::setThetaIndex ( unsigned int thetaIndex)
inline

Definition at line 84 of file EmcBhabha.h.

84{ m_thetaIndex = thetaIndex; }
const unsigned int & thetaIndex() const
Definition EmcBhabha.h:68

◆ shower()

EmcShower EmcBhabha::shower ( ) const
inline

Definition at line 53 of file EmcBhabha.h.

53{ return m_shower; }

◆ sigma2()

double EmcBhabha::sigma2 ( ) const

Definition at line 72 of file EmcBhabha.cxx.

72 {
73
74 double sigSh = 0., sigDepo = 0., sig2 = 0.;
75
76 // error on measured shower energy
77 sigSh = errorOnShowerEnergy();
78
79 // error of energy to calibrate on
80 sigDepo = errorOnCalibEnergy();
81
82 sig2 = ( sigSh * sigSh ) + ( sigDepo * sigDepo );
83 return sig2;
84}

Referenced by print().

◆ theta()

const double & EmcBhabha::theta ( ) const
inline

Definition at line 57 of file EmcBhabha.h.

57 {
58 if ( m_theta < 0 )
59 {
60 cout << "warning: "
61 << " EmcBhabha::theta not yet set !" << endl;
62 }
63 return m_theta;
64 }

Referenced by print(), and setTheta().

◆ thetaIndex()

const unsigned int & EmcBhabha::thetaIndex ( ) const
inline

Definition at line 68 of file EmcBhabha.h.

68{ return m_thetaIndex; }

Referenced by setThetaIndex().


The documentation for this class was generated from the following files: