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

#include <EmcBhabha.h>

Public Member Functions

 EmcBhabha ()
 
 EmcBhabha (const EmcBhabha &otherBhabha)
 
 ~EmcBhabha ()
 
const boolfound ()
 
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)
 
 EmcBhabha ()
 
 EmcBhabha (const EmcBhabha &otherBhabha)
 
 ~EmcBhabha ()
 
const boolfound ()
 
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 Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

Constructor & Destructor Documentation

◆ EmcBhabha() [1/4]

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)
38{
39
40}

◆ EmcBhabha() [2/4]

EmcBhabha::EmcBhabha ( const EmcBhabha otherBhabha)

Definition at line 43 of file EmcBhabha.cxx.

43 {
44 m_calibEnergy = otherBhabha.m_calibEnergy;
45 m_errCalibEnergy = otherBhabha.m_errCalibEnergy;
46 m_shower = otherBhabha.m_shower;
47 m_theta = otherBhabha.m_theta;
48 m_found = otherBhabha.m_found;
49 m_thetaIndex = otherBhabha.m_thetaIndex;
50 m_phiIndex = otherBhabha.m_phiIndex;
51}

◆ ~EmcBhabha() [1/2]

EmcBhabha::~EmcBhabha ( )

Definition at line 56 of file EmcBhabha.cxx.

56 {
57
58}

◆ EmcBhabha() [3/4]

EmcBhabha::EmcBhabha ( )

◆ EmcBhabha() [4/4]

EmcBhabha::EmcBhabha ( const EmcBhabha otherBhabha)

◆ ~EmcBhabha() [2/2]

EmcBhabha::~EmcBhabha ( )

Member Function Documentation

◆ calibEnergy() [1/2]

const double & EmcBhabha::calibEnergy ( ) const
inline

Definition at line 46 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

46{return m_calibEnergy;}

Referenced by print().

◆ calibEnergy() [2/2]

const double & EmcBhabha::calibEnergy ( ) const
inline

Definition at line 46 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

46{return m_calibEnergy;}

◆ errorOnCalibEnergy() [1/2]

const double & EmcBhabha::errorOnCalibEnergy ( ) const
inline

Definition at line 49 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

49{return m_errCalibEnergy;}

Referenced by print(), and sigma2().

◆ errorOnCalibEnergy() [2/2]

const double & EmcBhabha::errorOnCalibEnergy ( ) const
inline

Definition at line 49 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

49{return m_errCalibEnergy;}

◆ errorOnShowerEnergy() [1/2]

double EmcBhabha::errorOnShowerEnergy ( ) const

Definition at line 61 of file EmcBhabha.cxx.

61 {
62
63 double sig=0,sig1=0,sig2=0;
64
65 //energy measurement error of calorimeter
66 /*
67 sig1 = 0.0034/shower().energy();
68 sig1 *= sig1;
69 sig2 = (0.0070/pow(shower().energy(),0.25));
70 sig2 *= sig2;
71 sig = sig1+sig2;
72 sig += (0.0134*0.0134);
73 sig = sqrt(sig) * shower().energy();
74 */
75 return sig;
76}

Referenced by print(), and sigma2().

◆ errorOnShowerEnergy() [2/2]

double EmcBhabha::errorOnShowerEnergy ( ) const

◆ found() [1/2]

const bool & EmcBhabha::found ( )
inline

◆ found() [2/2]

const bool & EmcBhabha::found ( )
inline

Definition at line 43 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

43{return m_found;}

◆ phi() [1/2]

const double & EmcBhabha::phi ( ) const
inline

Definition at line 68 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

69 {
70 return m_phi;
71 }

Referenced by setPhi().

◆ phi() [2/2]

const double & EmcBhabha::phi ( ) const
inline

Definition at line 68 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

69 {
70 return m_phi;
71 }

◆ phiIndex() [1/2]

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

Definition at line 78 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

79 {
80 return m_phiIndex;
81 }

Referenced by EmcSelBhaEvent::CollectBhabha(), and setPhiIndex().

◆ phiIndex() [2/2]

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

Definition at line 78 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

79 {
80 return m_phiIndex;
81 }

◆ print() [1/2]

void EmcBhabha::print ( )

Definition at line 95 of file EmcBhabha.cxx.

95 {
96
97 cout << "EmcBhabha: " << endl
98 << "Energies: calib: " << calibEnergy()
99 << " shower: " << m_shower.energy()
100 << " Theta: " << theta()
101 << " nr Xtals: " << m_shower.digiList().size()
102 << endl
103 << "Errors: calibEne: " << errorOnCalibEnergy()
104 << " shower: " << errorOnShowerEnergy()
105 << " sum: " << sigma2()
106 << endl;
107
108}
double sigma2() const
Definition: EmcBhabha.cxx:79
double errorOnShowerEnergy() const
Definition: EmcBhabha.cxx:61

Referenced by EmcBhabhaEvent::print().

◆ print() [2/2]

void EmcBhabha::print ( )

◆ setCalibEnergy() [1/2]

void EmcBhabha::setCalibEnergy ( double  energy)
inline

Definition at line 90 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

90{m_calibEnergy=energy;}
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot 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

Referenced by EmcSelBhaEvent::CollectBhabha().

◆ setCalibEnergy() [2/2]

void EmcBhabha::setCalibEnergy ( double  energy)
inline

Definition at line 90 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

90{m_calibEnergy=energy;}

◆ setErrorOnCalibEnergy() [1/2]

void EmcBhabha::setErrorOnCalibEnergy ( double  error)
inline

◆ setErrorOnCalibEnergy() [2/2]

void EmcBhabha::setErrorOnCalibEnergy ( double  error)
inline

Definition at line 91 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

91{ m_errCalibEnergy = error;}

◆ setFound() [1/2]

void EmcBhabha::setFound ( bool  what)
inline

◆ setFound() [2/2]

void EmcBhabha::setFound ( bool  what)
inline

Definition at line 89 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

89{m_found=what;}

◆ setPhi() [1/2]

void EmcBhabha::setPhi ( double  phi)
inline

◆ setPhi() [2/2]

void EmcBhabha::setPhi ( double  phi)
inline

Definition at line 94 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

94{m_phi=phi;}

◆ setPhiIndex() [1/2]

void EmcBhabha::setPhiIndex ( unsigned int  phiIndex)
inline

◆ setPhiIndex() [2/2]

void EmcBhabha::setPhiIndex ( unsigned int  phiIndex)
inline

Definition at line 96 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

96{m_phiIndex=phiIndex;}

◆ setShower() [1/2]

void EmcBhabha::setShower ( EmcShower  aShower)
inline

Definition at line 92 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

92{ m_shower=aShower;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setShower() [2/2]

void EmcBhabha::setShower ( EmcShower  aShower)
inline

Definition at line 92 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

92{ m_shower=aShower;}

◆ setTheta() [1/2]

void EmcBhabha::setTheta ( double  theta)
inline

◆ setTheta() [2/2]

void EmcBhabha::setTheta ( double  theta)
inline

Definition at line 93 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

93{m_theta=theta;}

◆ setThetaIndex() [1/2]

void EmcBhabha::setThetaIndex ( unsigned int  thetaIndex)
inline

◆ setThetaIndex() [2/2]

void EmcBhabha::setThetaIndex ( unsigned int  thetaIndex)
inline

Definition at line 95 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

95{m_thetaIndex=thetaIndex;}

◆ shower() [1/2]

EmcShower EmcBhabha::shower ( ) const
inline

Definition at line 55 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

55{return m_shower;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ shower() [2/2]

EmcShower EmcBhabha::shower ( ) const
inline

Definition at line 55 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

55{return m_shower;}

◆ sigma2() [1/2]

double EmcBhabha::sigma2 ( ) const

Definition at line 79 of file EmcBhabha.cxx.

79 {
80
81 double sigSh=0., sigDepo=0., sig2=0.;
82
83 //error on measured shower energy
84 sigSh = errorOnShowerEnergy();
85
86 //error of energy to calibrate on
87 sigDepo = errorOnCalibEnergy();
88
89 sig2 = (sigSh * sigSh) + (sigDepo * sigDepo);
90 return sig2;
91}

Referenced by print().

◆ sigma2() [2/2]

double EmcBhabha::sigma2 ( ) const

◆ theta() [1/2]

const double & EmcBhabha::theta ( ) const
inline

Definition at line 59 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

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

Referenced by EmcSelBhaEvent::FillBhabha(), print(), and setTheta().

◆ theta() [2/2]

const double & EmcBhabha::theta ( ) const
inline

Definition at line 59 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

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

◆ thetaIndex() [1/2]

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

Definition at line 73 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcBhabha.h.

74 {
75 return m_thetaIndex;
76 }

Referenced by EmcSelBhaEvent::CollectBhabha(), and setThetaIndex().

◆ thetaIndex() [2/2]

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

Definition at line 73 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcBhabha.h.

74 {
75 return m_thetaIndex;
76 }

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