EmcShower Class Reference

#include <EmcShower.h>

List of all members.

Public Member Functions

 EmcShower ()
 ~EmcShower ()
 EmcShower (const EmcShower &aShower)
EmcShoweroperator= (const EmcShower &aShower)
bool operator== (const EmcShower &otherShower) const
bool operator!= (const EmcShower &otherShower) const
bool operator>= (const EmcShower &otherShower) const
bool operator<= (const EmcShower &otherShower) const
bool operator> (const EmcShower &otherShower) const
bool operator< (const EmcShower &otherShower) const
const double & energy () const
const double & theta () const
const double & phi () const
const unsigned int & module () const
const unsigned int & thetaIndex () const
const unsigned int & phiIndex () const
const long int & numberOfDigis () const
const std::list< EmcShDigidigiList () const
const EmcShDigi maxima () const
const HepPoint3Dwhere () const
const double & x () const
const double & y () const
const double & z () const
void addDigi (EmcShDigi d)
void setEnergy (double energy)
void setTheta (double theta)
void setPhi (double phi)
void setModule (unsigned int module)
void setThetaIndex (unsigned int thetaIndex)
void setPhiIndex (unsigned int phiIndex)
void setNumberOfDigis (long int numberOfDigis)
void setDigiList (std::list< EmcShDigi > digiList)
void setMaxima (EmcShDigi maxima)
void setWhere (HepPoint3D where)
void setX (double x)
void setY (double y)
void setZ (double z)

Private Attributes

double m_energy
double m_theta
double m_phi
unsigned int m_module
unsigned int m_thetaIndex
unsigned int m_phiIndex
long int m_numberOfDigis
EmcShDigi m_maxima
std::list< EmcShDigim_digiList
HepPoint3D m_where
double m_x
double m_y
double m_z


Detailed Description

Definition at line 16 of file EmcShower.h.


Constructor & Destructor Documentation

EmcShower::EmcShower (  ) 

Definition at line 8 of file EmcShower.cxx.

References m_maxima.

00008                     :
00009   m_energy(0.0),
00010   m_theta(999.),
00011   m_phi(999.),
00012   m_module(999),
00013   m_thetaIndex(9999),
00014   m_phiIndex(9999),
00015   m_numberOfDigis(0),
00016   m_where(0,0,0),
00017   m_x(0.),
00018   m_y(0.),
00019   m_z(0.)
00020 {
00021   m_maxima=EmcShDigi();
00022 }

EmcShower::~EmcShower (  ) 

Definition at line 27 of file EmcShower.cxx.

00028 {
00029 }

EmcShower::EmcShower ( const EmcShower aShower  ) 

Definition at line 32 of file EmcShower.cxx.

References digiList(), energy(), m_digiList, m_energy, m_maxima, m_module, m_numberOfDigis, m_phi, m_phiIndex, m_theta, m_thetaIndex, m_where, m_x, m_y, m_z, maxima(), module(), numberOfDigis(), phi(), phiIndex(), theta(), thetaIndex(), where(), x(), y(), and z().

00033 {
00034   m_energy=aShower.energy();
00035   m_theta=aShower.theta();
00036   m_phi=aShower.phi();
00037   m_module=aShower.module();
00038   m_thetaIndex=aShower.thetaIndex();
00039   m_phiIndex=aShower.phiIndex();
00040   m_numberOfDigis=aShower.numberOfDigis();
00041   m_digiList=aShower.digiList();
00042   m_maxima=aShower.maxima();
00043   m_where = aShower.where();
00044   m_x=aShower.x();
00045   m_y=aShower.y();
00046   m_z=aShower.z();
00047 }


Member Function Documentation

void EmcShower::addDigi ( EmcShDigi  d  ) 

Definition at line 142 of file EmcShower.cxx.

References m_digiList.

00143 { 
00144   m_digiList.push_back(theDigi); 
00145 
00146 }

const std::list<EmcShDigi> EmcShower::digiList (  )  const [inline]

Definition at line 45 of file EmcShower.h.

References m_digiList.

Referenced by EmcShower(), EmcSelBhaEvent::fillMatrix(), operator=(), and EmcBhabha::print().

00045 {return  m_digiList;} 

const double& EmcShower::energy (  )  const [inline]

Definition at line 38 of file EmcShower.h.

References m_energy.

Referenced by EmcShower(), EmcSelBhaEvent::FillBhabha(), EmcSelBhaEvent::fillMatrix(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), EmcBhabha::print(), and EmcBhabhaEvent::showerVector().

00038 {return m_energy;}

const EmcShDigi EmcShower::maxima (  )  const [inline]

Definition at line 46 of file EmcShower.h.

References m_maxima.

Referenced by EmcShower(), EmcSelBhaEvent::fillMatrix(), operator=(), and setMaxima().

00046 { return m_maxima;}

const unsigned int& EmcShower::module (  )  const [inline]

Definition at line 41 of file EmcShower.h.

References m_module.

Referenced by EmcShower(), EmcSelBhaEvent::FillBhabha(), and operator=().

00041 {return m_module;}

const long int& EmcShower::numberOfDigis (  )  const [inline]

Definition at line 44 of file EmcShower.h.

References m_numberOfDigis.

Referenced by EmcShower(), and operator=().

00044 {return m_numberOfDigis;}

bool EmcShower::operator!= ( const EmcShower otherShower  )  const [inline]

Definition at line 87 of file EmcShower.h.

00087                                                                     {
00088   return !(*this == otherShower);
00089 }

bool EmcShower::operator< ( const EmcShower otherShower  )  const

Definition at line 126 of file EmcShower.cxx.

References energy().

00127 {
00128   bool Less=false;
00129 
00130   if ( this->energy() < otherShower.energy() ) 
00131     {
00132       Less=true;
00133     }
00134 
00135   return Less;
00136 }

bool EmcShower::operator<= ( const EmcShower otherShower  )  const

Definition at line 100 of file EmcShower.cxx.

References energy().

00101 {
00102   bool Lequal=false;
00103 
00104   if ( this->energy() <= otherShower.energy() ) 
00105     {
00106       Lequal=true;
00107     }
00108   
00109   return Lequal;
00110 }

EmcShower & EmcShower::operator= ( const EmcShower aShower  ) 

Definition at line 49 of file EmcShower.cxx.

References digiList(), energy(), m_digiList, m_energy, m_maxima, m_module, m_numberOfDigis, m_phi, m_phiIndex, m_theta, m_thetaIndex, m_where, m_x, m_y, m_z, maxima(), module(), numberOfDigis(), phi(), phiIndex(), theta(), thetaIndex(), where(), x(), y(), and z().

00050 {
00051    if(this!=&aShower)
00052      {
00053        m_energy=aShower.energy();
00054        m_theta=aShower.theta();
00055        m_phi=aShower.phi();
00056        m_module=aShower.module();
00057        m_thetaIndex=aShower.thetaIndex();
00058        m_phiIndex=aShower.phiIndex();
00059        m_numberOfDigis=aShower.numberOfDigis();
00060        m_digiList=aShower.digiList();
00061        m_maxima=aShower.maxima();
00062        m_where = aShower.where();
00063        m_x=aShower.x();
00064        m_y=aShower.y();
00065        m_z=aShower.z();
00066      }
00067 
00068    return *this;
00069 }

bool EmcShower::operator== ( const EmcShower otherShower  )  const

Definition at line 72 of file EmcShower.cxx.

References energy(), phi(), and theta().

00073 {
00074   bool equal=false;
00075 
00076   if ( this->theta() == otherShower.theta() 
00077        && this->phi() == otherShower.phi() 
00078        && this->energy() == otherShower.energy() ) 
00079     {
00080       equal=true;
00081     }
00082 
00083   return equal;
00084 }

bool EmcShower::operator> ( const EmcShower otherShower  )  const

Definition at line 113 of file EmcShower.cxx.

References energy(), and Large().

00114 {
00115   bool Large=false;
00116 
00117   if ( this->energy() > otherShower.energy() ) 
00118     {
00119       Large=true;
00120     }
00121 
00122   return Large;
00123 }

bool EmcShower::operator>= ( const EmcShower otherShower  )  const

Definition at line 87 of file EmcShower.cxx.

References energy().

00088 {
00089   bool Gequal=false;
00090 
00091   if ( this->energy() >= otherShower.energy() ) 
00092     {
00093       Gequal=true;
00094     }
00095   
00096   return Gequal;
00097 }

const double& EmcShower::phi (  )  const [inline]

Definition at line 40 of file EmcShower.h.

References m_phi.

Referenced by EmcShower(), EmcSelBhaEvent::FillBhabha(), EmcSelBhaEvent::fillMatrix(), operator=(), operator==(), and EmcBhabhaEvent::showerVector().

00040 {return m_phi;}

const unsigned int& EmcShower::phiIndex (  )  const [inline]

Definition at line 43 of file EmcShower.h.

References m_phiIndex.

Referenced by EmcShower(), EmcSelBhaEvent::FillBhabha(), and operator=().

00043 {return m_phiIndex;}

void EmcShower::setDigiList ( std::list< EmcShDigi digiList  )  [inline]

Definition at line 62 of file EmcShower.h.

References m_digiList.

Referenced by EmcSelBhaEvent::FillBhabha().

00062 {m_digiList = digiList;}

void EmcShower::setEnergy ( double  energy  )  [inline]

Definition at line 55 of file EmcShower.h.

References m_energy.

Referenced by EmcSelBhaEvent::FillBhabha().

00055 {m_energy = energy;}

void EmcShower::setMaxima ( EmcShDigi  maxima  )  [inline]

Definition at line 63 of file EmcShower.h.

References m_maxima, and maxima().

Referenced by EmcSelBhaEvent::FillBhabha().

00063 {m_maxima = maxima;}

void EmcShower::setModule ( unsigned int  module  )  [inline]

Definition at line 58 of file EmcShower.h.

References m_module.

Referenced by EmcSelBhaEvent::FillBhabha().

00058 {m_module = module;}

void EmcShower::setNumberOfDigis ( long int  numberOfDigis  )  [inline]

Definition at line 61 of file EmcShower.h.

References m_numberOfDigis.

Referenced by EmcSelBhaEvent::FillBhabha().

void EmcShower::setPhi ( double  phi  )  [inline]

Definition at line 57 of file EmcShower.h.

References m_phi.

Referenced by EmcSelBhaEvent::FillBhabha().

00057 {m_phi = phi;}

void EmcShower::setPhiIndex ( unsigned int  phiIndex  )  [inline]

Definition at line 60 of file EmcShower.h.

References m_phiIndex.

Referenced by EmcSelBhaEvent::FillBhabha().

00060 {m_phiIndex = phiIndex;}

void EmcShower::setTheta ( double  theta  )  [inline]

Definition at line 56 of file EmcShower.h.

References m_theta.

Referenced by EmcSelBhaEvent::FillBhabha().

00056 {m_theta = theta;}

void EmcShower::setThetaIndex ( unsigned int  thetaIndex  )  [inline]

Definition at line 59 of file EmcShower.h.

References m_thetaIndex.

Referenced by EmcSelBhaEvent::FillBhabha().

void EmcShower::setWhere ( HepPoint3D  where  )  [inline]

Definition at line 64 of file EmcShower.h.

References m_where.

Referenced by EmcSelBhaEvent::FillBhabha().

00064 {m_where = where;}

void EmcShower::setX ( double  x  )  [inline]

Definition at line 65 of file EmcShower.h.

References m_x.

Referenced by EmcSelBhaEvent::FillBhabha().

00065 {m_x = x;}

void EmcShower::setY ( double  y  )  [inline]

Definition at line 66 of file EmcShower.h.

References m_y.

Referenced by EmcSelBhaEvent::FillBhabha().

00066 {m_y = y;}

void EmcShower::setZ ( double  z  )  [inline]

Definition at line 67 of file EmcShower.h.

References m_z.

Referenced by EmcSelBhaEvent::FillBhabha().

00067 {m_z = z;}

const double& EmcShower::theta (  )  const [inline]

Definition at line 39 of file EmcShower.h.

References m_theta.

Referenced by EmcShower(), EmcSelBhaEvent::FillBhabha(), EmcSelBhaEvent::fillMatrix(), operator=(), operator==(), and EmcBhabhaEvent::showerVector().

00039 {return m_theta;}

const unsigned int& EmcShower::thetaIndex (  )  const [inline]

Definition at line 42 of file EmcShower.h.

References m_thetaIndex.

Referenced by EmcShower(), EmcSelBhaEvent::FillBhabha(), and operator=().

00042 {return m_thetaIndex;}

const HepPoint3D& EmcShower::where (  )  const [inline]

Definition at line 47 of file EmcShower.h.

References m_where.

Referenced by EmcShower(), and operator=().

00047 {return m_where;}

const double& EmcShower::x (  )  const [inline]

Definition at line 48 of file EmcShower.h.

References m_x.

Referenced by EmcShower(), and operator=().

00048 {return m_x;}

const double& EmcShower::y (  )  const [inline]

Definition at line 49 of file EmcShower.h.

References m_y.

Referenced by EmcShower(), and operator=().

00049 {return m_y;}

const double& EmcShower::z (  )  const [inline]

Definition at line 50 of file EmcShower.h.

References m_z.

Referenced by EmcShower(), and operator=().

00050 {return m_z;}


Member Data Documentation

std::list<EmcShDigi> EmcShower::m_digiList [private]

Definition at line 79 of file EmcShower.h.

Referenced by addDigi(), digiList(), EmcShower(), operator=(), and setDigiList().

double EmcShower::m_energy [private]

Definition at line 71 of file EmcShower.h.

Referenced by EmcShower(), energy(), operator=(), and setEnergy().

EmcShDigi EmcShower::m_maxima [private]

Definition at line 78 of file EmcShower.h.

Referenced by EmcShower(), maxima(), operator=(), and setMaxima().

unsigned int EmcShower::m_module [private]

Definition at line 74 of file EmcShower.h.

Referenced by EmcShower(), module(), operator=(), and setModule().

long int EmcShower::m_numberOfDigis [private]

Definition at line 77 of file EmcShower.h.

Referenced by EmcShower(), numberOfDigis(), operator=(), and setNumberOfDigis().

double EmcShower::m_phi [private]

Definition at line 73 of file EmcShower.h.

Referenced by EmcShower(), operator=(), phi(), and setPhi().

unsigned int EmcShower::m_phiIndex [private]

Definition at line 76 of file EmcShower.h.

Referenced by EmcShower(), operator=(), phiIndex(), and setPhiIndex().

double EmcShower::m_theta [private]

Definition at line 72 of file EmcShower.h.

Referenced by EmcShower(), operator=(), setTheta(), and theta().

unsigned int EmcShower::m_thetaIndex [private]

Definition at line 75 of file EmcShower.h.

Referenced by EmcShower(), operator=(), setThetaIndex(), and thetaIndex().

HepPoint3D EmcShower::m_where [private]

Definition at line 80 of file EmcShower.h.

Referenced by EmcShower(), operator=(), setWhere(), and where().

double EmcShower::m_x [private]

Definition at line 81 of file EmcShower.h.

Referenced by EmcShower(), operator=(), setX(), and x().

double EmcShower::m_y [private]

Definition at line 82 of file EmcShower.h.

Referenced by EmcShower(), operator=(), setY(), and y().

double EmcShower::m_z [private]

Definition at line 83 of file EmcShower.h.

Referenced by EmcShower(), operator=(), setZ(), and z().


Generated on Tue Nov 29 23:18:47 2016 for BOSS_7.0.2 by  doxygen 1.4.7