#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) |
Private Attributes | |
double | m_calibEnergy |
double | m_errCalibEnergy |
EmcShower | m_shower |
double | m_theta |
double | m_phi |
bool | m_found |
unsigned int | m_thetaIndex |
unsigned int | m_phiIndex |
Definition at line 29 of file EmcBhabha.h.
EmcBhabha::EmcBhabha | ( | ) |
Definition at line 30 of file EmcBhabha.cxx.
00031 :m_calibEnergy(0), 00032 m_errCalibEnergy(0), 00033 m_shower(EmcShower()), 00034 m_theta(-1.), 00035 m_found(false), 00036 m_thetaIndex(9999), 00037 m_phiIndex(9999) 00038 { 00039 00040 }
EmcBhabha::EmcBhabha | ( | const EmcBhabha & | otherBhabha | ) |
Definition at line 43 of file EmcBhabha.cxx.
References m_calibEnergy, m_errCalibEnergy, m_found, m_phiIndex, m_shower, m_theta, and m_thetaIndex.
00043 { 00044 m_calibEnergy = otherBhabha.m_calibEnergy; 00045 m_errCalibEnergy = otherBhabha.m_errCalibEnergy; 00046 m_shower = otherBhabha.m_shower; 00047 m_theta = otherBhabha.m_theta; 00048 m_found = otherBhabha.m_found; 00049 m_thetaIndex = otherBhabha.m_thetaIndex; 00050 m_phiIndex = otherBhabha.m_phiIndex; 00051 }
EmcBhabha::~EmcBhabha | ( | ) |
const double& EmcBhabha::calibEnergy | ( | ) | const [inline] |
Definition at line 46 of file EmcBhabha.h.
References m_calibEnergy.
Referenced by EmcSelBhaEvent::fillMatrix(), and print().
00046 {return m_calibEnergy;}
const double& EmcBhabha::errorOnCalibEnergy | ( | ) | const [inline] |
Definition at line 49 of file EmcBhabha.h.
References m_errCalibEnergy.
Referenced by EmcSelBhaEvent::fillMatrix(), print(), and sigma2().
00049 {return m_errCalibEnergy;}
double EmcBhabha::errorOnShowerEnergy | ( | ) | const |
Definition at line 61 of file EmcBhabha.cxx.
Referenced by print(), and sigma2().
00061 { 00062 00063 double sig=0,sig1=0,sig2=0; 00064 00065 //energy measurement error of calorimeter 00066 /* 00067 sig1 = 0.0034/shower().energy(); 00068 sig1 *= sig1; 00069 sig2 = (0.0070/pow(shower().energy(),0.25)); 00070 sig2 *= sig2; 00071 sig = sig1+sig2; 00072 sig += (0.0134*0.0134); 00073 sig = sqrt(sig) * shower().energy(); 00074 */ 00075 return sig; 00076 }
const bool& EmcBhabha::found | ( | ) | [inline] |
Definition at line 43 of file EmcBhabha.h.
References m_found.
Referenced by EmcSelBhaEvent::CollectBhabha(), and EmcSelBhaEvent::fillMatrix().
00043 {return m_found;}
const double& EmcBhabha::phi | ( | ) | const [inline] |
const unsigned int& EmcBhabha::phiIndex | ( | ) | const [inline] |
Definition at line 78 of file EmcBhabha.h.
References m_phiIndex.
Referenced by EmcSelBhaEvent::CollectBhabha(), and EmcSelBhaEvent::fillMatrix().
00079 { 00080 return m_phiIndex; 00081 }
void EmcBhabha::print | ( | ) |
Definition at line 95 of file EmcBhabha.cxx.
References calibEnergy(), EmcShower::digiList(), EmcShower::energy(), errorOnCalibEnergy(), errorOnShowerEnergy(), m_shower, sigma2(), and theta().
Referenced by EmcBhabhaEvent::print().
00095 { 00096 00097 cout << "EmcBhabha: " << endl 00098 << "Energies: calib: " << calibEnergy() 00099 << " shower: " << m_shower.energy() 00100 << " Theta: " << theta() 00101 << " nr Xtals: " << m_shower.digiList().size() 00102 << endl 00103 << "Errors: calibEne: " << errorOnCalibEnergy() 00104 << " shower: " << errorOnShowerEnergy() 00105 << " sum: " << sigma2() 00106 << endl; 00107 00108 }
void EmcBhabha::setCalibEnergy | ( | double | energy | ) | [inline] |
Definition at line 90 of file EmcBhabha.h.
References m_calibEnergy.
Referenced by EmcSelBhaEvent::CollectBhabha().
00090 {m_calibEnergy=energy;}
void EmcBhabha::setErrorOnCalibEnergy | ( | double | error | ) | [inline] |
Definition at line 91 of file EmcBhabha.h.
References m_errCalibEnergy.
Referenced by EmcSelBhaEvent::CollectBhabha().
00091 { m_errCalibEnergy = error;}
void EmcBhabha::setFound | ( | bool | what | ) | [inline] |
Definition at line 89 of file EmcBhabha.h.
References m_found.
Referenced by EmcSelBhaEvent::FillBhabha().
00089 {m_found=what;}
void EmcBhabha::setPhi | ( | double | phi | ) | [inline] |
Definition at line 94 of file EmcBhabha.h.
References m_phi.
Referenced by EmcSelBhaEvent::FillBhabha().
void EmcBhabha::setPhiIndex | ( | unsigned int | phiIndex | ) | [inline] |
Definition at line 96 of file EmcBhabha.h.
References m_phiIndex.
Referenced by EmcSelBhaEvent::FillBhabha().
00096 {m_phiIndex=phiIndex;}
void EmcBhabha::setShower | ( | EmcShower | aShower | ) | [inline] |
Definition at line 92 of file EmcBhabha.h.
References m_shower.
Referenced by EmcSelBhaEvent::FillBhabha().
00092 { m_shower=aShower;}
void EmcBhabha::setTheta | ( | double | theta | ) | [inline] |
Definition at line 93 of file EmcBhabha.h.
References m_theta.
Referenced by EmcSelBhaEvent::FillBhabha().
void EmcBhabha::setThetaIndex | ( | unsigned int | thetaIndex | ) | [inline] |
Definition at line 95 of file EmcBhabha.h.
References m_thetaIndex.
Referenced by EmcSelBhaEvent::FillBhabha().
00095 {m_thetaIndex=thetaIndex;}
EmcShower EmcBhabha::shower | ( | ) | const [inline] |
Definition at line 55 of file EmcBhabha.h.
References m_shower.
Referenced by EmcSelBhaEvent::FillBhabha(), and EmcSelBhaEvent::fillMatrix().
00055 {return m_shower;}
double EmcBhabha::sigma2 | ( | ) | const |
Definition at line 79 of file EmcBhabha.cxx.
References errorOnCalibEnergy(), and errorOnShowerEnergy().
Referenced by EmcSelBhaEvent::fillMatrix(), and print().
00079 { 00080 00081 double sigSh=0., sigDepo=0., sig2=0.; 00082 00083 //error on measured shower energy 00084 sigSh = errorOnShowerEnergy(); 00085 00086 //error of energy to calibrate on 00087 sigDepo = errorOnCalibEnergy(); 00088 00089 sig2 = (sigSh * sigSh) + (sigDepo * sigDepo); 00090 return sig2; 00091 }
const double& EmcBhabha::theta | ( | ) | const [inline] |
Definition at line 59 of file EmcBhabha.h.
References m_theta.
Referenced by EmcSelBhaEvent::FillBhabha(), and print().
00060 { 00061 if ( m_theta < 0 ) 00062 { 00063 cout<<"warning: " << " EmcBhabha::theta not yet set !" << endl; 00064 } 00065 return m_theta; 00066 }
const unsigned int& EmcBhabha::thetaIndex | ( | ) | const [inline] |
Definition at line 73 of file EmcBhabha.h.
References m_thetaIndex.
Referenced by EmcSelBhaEvent::CollectBhabha(), and EmcSelBhaEvent::fillMatrix().
00074 { 00075 return m_thetaIndex; 00076 }
double EmcBhabha::m_calibEnergy [private] |
Definition at line 101 of file EmcBhabha.h.
Referenced by calibEnergy(), EmcBhabha(), and setCalibEnergy().
double EmcBhabha::m_errCalibEnergy [private] |
Definition at line 104 of file EmcBhabha.h.
Referenced by EmcBhabha(), errorOnCalibEnergy(), and setErrorOnCalibEnergy().
bool EmcBhabha::m_found [private] |
double EmcBhabha::m_phi [private] |
unsigned int EmcBhabha::m_phiIndex [private] |
Definition at line 122 of file EmcBhabha.h.
Referenced by EmcBhabha(), phiIndex(), and setPhiIndex().
EmcShower EmcBhabha::m_shower [private] |
Definition at line 107 of file EmcBhabha.h.
Referenced by EmcBhabha(), print(), setShower(), and shower().
double EmcBhabha::m_theta [private] |
unsigned int EmcBhabha::m_thetaIndex [private] |
Definition at line 119 of file EmcBhabha.h.
Referenced by EmcBhabha(), setThetaIndex(), and thetaIndex().