BOSS 6.6.4.p03
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)
 

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::EmcShower()),
34 m_theta(-1.),
35 m_found(false),
36 m_thetaIndex(9999),
37 m_phiIndex(9999)
38{
39
40}

◆ EmcBhabha() [2/2]

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()

EmcBhabha::~EmcBhabha ( )

Definition at line 56 of file EmcBhabha.cxx.

56 {
57
58}

Member Function Documentation

◆ calibEnergy()

const double & EmcBhabha::calibEnergy ( ) const
inline

Definition at line 46 of file EmcBhabha.h.

46{return m_calibEnergy;}

Referenced by print().

◆ errorOnCalibEnergy()

const double & EmcBhabha::errorOnCalibEnergy ( ) const
inline

Definition at line 49 of file EmcBhabha.h.

49{return m_errCalibEnergy;}

Referenced by print(), and sigma2().

◆ errorOnShowerEnergy()

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().

◆ found()

const bool & EmcBhabha::found ( )
inline

Definition at line 43 of file EmcBhabha.h.

43{return m_found;}

Referenced by EmcSelBhaEvent::CollectBhabha().

◆ phi()

const double & EmcBhabha::phi ( ) const
inline

Definition at line 68 of file EmcBhabha.h.

69 {
70 return m_phi;
71 }

Referenced by setPhi().

◆ phiIndex()

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

Definition at line 78 of file EmcBhabha.h.

79 {
80 return m_phiIndex;
81 }

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

◆ print()

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}
const double & theta() const
Definition: EmcBhabha.h:59
double sigma2() const
Definition: EmcBhabha.cxx:79
const double & calibEnergy() const
Definition: EmcBhabha.h:46
double errorOnShowerEnergy() const
Definition: EmcBhabha.cxx:61
const double & errorOnCalibEnergy() const
Definition: EmcBhabha.h:49
const double & energy() const
Definition: EmcShower.h:38
const std::list< EmcShDigi > digiList() const
Definition: EmcShower.h:45

Referenced by EmcBhabhaEvent::print().

◆ setCalibEnergy()

void EmcBhabha::setCalibEnergy ( double  energy)
inline

Definition at line 90 of file 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().

◆ setErrorOnCalibEnergy()

void EmcBhabha::setErrorOnCalibEnergy ( double  error)
inline

Definition at line 91 of file EmcBhabha.h.

91{ m_errCalibEnergy = error;}
@ error
Definition: Core.h:24

Referenced by EmcSelBhaEvent::CollectBhabha().

◆ setFound()

void EmcBhabha::setFound ( bool  what)
inline

Definition at line 89 of file EmcBhabha.h.

89{m_found=what;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhi()

void EmcBhabha::setPhi ( double  phi)
inline

Definition at line 94 of file EmcBhabha.h.

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

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhiIndex()

void EmcBhabha::setPhiIndex ( unsigned int  phiIndex)
inline

Definition at line 96 of file EmcBhabha.h.

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

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setShower()

void EmcBhabha::setShower ( EmcShower  aShower)
inline

Definition at line 92 of file EmcBhabha.h.

92{ m_shower=aShower;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setTheta()

void EmcBhabha::setTheta ( double  theta)
inline

Definition at line 93 of file EmcBhabha.h.

93{m_theta=theta;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setThetaIndex()

void EmcBhabha::setThetaIndex ( unsigned int  thetaIndex)
inline

Definition at line 95 of file EmcBhabha.h.

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

Referenced by EmcSelBhaEvent::FillBhabha().

◆ shower()

EmcShower EmcBhabha::shower ( ) const
inline

Definition at line 55 of file EmcBhabha.h.

55{return m_shower;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ sigma2()

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().

◆ theta()

const double & EmcBhabha::theta ( ) const
inline

Definition at line 59 of file 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().

◆ thetaIndex()

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

Definition at line 73 of file EmcBhabha.h.

74 {
75 return m_thetaIndex;
76 }

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


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