Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EmcBhabha Class Reference

#include <EmcBhabha.h>

List of all members.

Public Member Functions

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

Private Attributes

double m_calibEnergy
double m_errCalibEnergy
bool m_found
double m_phi
unsigned int m_phiIndex
EmcShower m_shower
double m_theta
unsigned int m_thetaIndex


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.


Constructor & Destructor Documentation

EmcBhabha::EmcBhabha  ) 
 

00031   :m_calibEnergy(0),
00032    m_errCalibEnergy(0),
00033    m_shower(EmcShower::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  ) 
 

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  ) 
 

00056                       {
00057  
00058 }

EmcBhabha::EmcBhabha  ) 
 

EmcBhabha::EmcBhabha const EmcBhabha otherBhabha  ) 
 

EmcBhabha::~EmcBhabha  ) 
 


Member Function Documentation

const double& EmcBhabha::calibEnergy  )  const [inline]
 

00046 {return m_calibEnergy;}

const double& EmcBhabha::calibEnergy  )  const [inline]
 

00046 {return m_calibEnergy;}

const double& EmcBhabha::errorOnCalibEnergy  )  const [inline]
 

00049 {return m_errCalibEnergy;}

const double& EmcBhabha::errorOnCalibEnergy  )  const [inline]
 

00049 {return m_errCalibEnergy;}

double EmcBhabha::errorOnShowerEnergy  )  const
 

double EmcBhabha::errorOnShowerEnergy  )  const
 

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]
 

00043 {return m_found;}

const bool& EmcBhabha::found  )  [inline]
 

00043 {return m_found;}

const double& EmcBhabha::phi  )  const [inline]
 

00069     {
00070       return m_phi;
00071     }

const double& EmcBhabha::phi  )  const [inline]
 

00069     {
00070       return m_phi;
00071     }

const unsigned int& EmcBhabha::phiIndex  )  const [inline]
 

00079     {
00080       return m_phiIndex;
00081     }

const unsigned int& EmcBhabha::phiIndex  )  const [inline]
 

00079     {
00080       return m_phiIndex;
00081     }

void EmcBhabha::print  ) 
 

void EmcBhabha::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]
 

00090 {m_calibEnergy=energy;}

void EmcBhabha::setCalibEnergy double  energy  )  [inline]
 

00090 {m_calibEnergy=energy;}

void EmcBhabha::setErrorOnCalibEnergy double  error  )  [inline]
 

00091 { m_errCalibEnergy = error;}

void EmcBhabha::setErrorOnCalibEnergy double  error  )  [inline]
 

00091 { m_errCalibEnergy = error;}

void EmcBhabha::setFound bool  what  )  [inline]
 

00089 {m_found=what;}

void EmcBhabha::setFound bool  what  )  [inline]
 

00089 {m_found=what;}

void EmcBhabha::setPhi double  phi  )  [inline]
 

00094 {m_phi=phi;}

void EmcBhabha::setPhi double  phi  )  [inline]
 

00094 {m_phi=phi;}

void EmcBhabha::setPhiIndex unsigned int  phiIndex  )  [inline]
 

00096 {m_phiIndex=phiIndex;}

void EmcBhabha::setPhiIndex unsigned int  phiIndex  )  [inline]
 

00096 {m_phiIndex=phiIndex;}

void EmcBhabha::setShower EmcShower  aShower  )  [inline]
 

00092 { m_shower=aShower;}

void EmcBhabha::setShower EmcShower  aShower  )  [inline]
 

00092 { m_shower=aShower;}

void EmcBhabha::setTheta double  theta  )  [inline]
 

00093 {m_theta=theta;}

void EmcBhabha::setTheta double  theta  )  [inline]
 

00093 {m_theta=theta;}

void EmcBhabha::setThetaIndex unsigned int  thetaIndex  )  [inline]
 

00095 {m_thetaIndex=thetaIndex;}

void EmcBhabha::setThetaIndex unsigned int  thetaIndex  )  [inline]
 

00095 {m_thetaIndex=thetaIndex;}

EmcShower EmcBhabha::shower  )  const [inline]
 

00055 {return m_shower;}

EmcShower EmcBhabha::shower  )  const [inline]
 

00055 {return m_shower;}

double EmcBhabha::sigma2  )  const
 

double EmcBhabha::sigma2  )  const
 

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]
 

00060     {
00061       if ( m_theta < 0 )
00062         {
00063           cout<<"warning: " << " EmcBhabha::theta not yet set !" << endl;
00064         }
00065       return m_theta;
00066     }

const double& EmcBhabha::theta  )  const [inline]
 

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]
 

00074     {      
00075       return m_thetaIndex;
00076     }

const unsigned int& EmcBhabha::thetaIndex  )  const [inline]
 

00074     {      
00075       return m_thetaIndex;
00076     }


Member Data Documentation

double EmcBhabha::m_calibEnergy [private]
 

double EmcBhabha::m_errCalibEnergy [private]
 

bool EmcBhabha::m_found [private]
 

double EmcBhabha::m_phi [private]
 

unsigned int EmcBhabha::m_phiIndex [private]
 

EmcShower EmcBhabha::m_shower [private]
 

double EmcBhabha::m_theta [private]
 

unsigned int EmcBhabha::m_thetaIndex [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:01:04 2011 for BOSS6.5.5 by  doxygen 1.3.9.1