BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcShower Class Reference

#include <EmcShower.h>

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

Detailed Description

Constructor & Destructor Documentation

◆ EmcShower() [1/4]

EmcShower::EmcShower ( )

Definition at line 8 of file EmcShower.cxx.

8 :
9 m_energy(0.0),
10 m_theta(999.),
11 m_phi(999.),
12 m_module(999),
13 m_thetaIndex(9999),
14 m_phiIndex(9999),
15 m_numberOfDigis(0),
16 m_where(0,0,0),
17 m_x(0.),
18 m_y(0.),
19 m_z(0.)
20{
21 m_maxima=EmcShDigi();
22}

◆ ~EmcShower() [1/2]

EmcShower::~EmcShower ( )

Definition at line 27 of file EmcShower.cxx.

28{
29}

◆ EmcShower() [2/4]

EmcShower::EmcShower ( const EmcShower aShower)

Definition at line 32 of file EmcShower.cxx.

33{
34 m_energy=aShower.energy();
35 m_theta=aShower.theta();
36 m_phi=aShower.phi();
37 m_module=aShower.module();
38 m_thetaIndex=aShower.thetaIndex();
39 m_phiIndex=aShower.phiIndex();
40 m_numberOfDigis=aShower.numberOfDigis();
41 m_digiList=aShower.digiList();
42 m_maxima=aShower.maxima();
43 m_where = aShower.where();
44 m_x=aShower.x();
45 m_y=aShower.y();
46 m_z=aShower.z();
47}

◆ EmcShower() [3/4]

EmcShower::EmcShower ( )

◆ ~EmcShower() [2/2]

EmcShower::~EmcShower ( )

◆ EmcShower() [4/4]

EmcShower::EmcShower ( const EmcShower aShower)

Member Function Documentation

◆ addDigi() [1/2]

void EmcShower::addDigi ( EmcShDigi  d)

Definition at line 142 of file EmcShower.cxx.

143{
144 m_digiList.push_back(theDigi);
145
146}

◆ addDigi() [2/2]

void EmcShower::addDigi ( EmcShDigi  d)

◆ digiList() [1/2]

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

◆ digiList() [2/2]

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

Definition at line 45 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

45{return m_digiList;}

◆ energy() [1/2]

◆ energy() [2/2]

const double & EmcShower::energy ( ) const
inline

Definition at line 38 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

38{return m_energy;}

◆ maxima() [1/2]

const EmcShDigi EmcShower::maxima ( ) const
inline

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

46{ return m_maxima;}

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

◆ maxima() [2/2]

const EmcShDigi EmcShower::maxima ( ) const
inline

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

46{ return m_maxima;}

◆ module() [1/2]

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

◆ module() [2/2]

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

Definition at line 41 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

41{return m_module;}

◆ numberOfDigis() [1/2]

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

Definition at line 44 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShower.h.

44{return m_numberOfDigis;}

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

◆ numberOfDigis() [2/2]

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

Definition at line 44 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

44{return m_numberOfDigis;}

◆ operator!=() [1/2]

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

Definition at line 87 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShower.h.

87 {
88 return !(*this == otherShower);
89}

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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

Definition at line 125 of file EmcShower.cxx.

127{
128 bool Less=false;
129
130 if ( this->energy() < otherShower.energy() )
131 {
132 Less=true;
133 }
134
135 return Less;
136}

◆ operator<() [2/2]

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

◆ operator<=() [1/2]

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

Definition at line 99 of file EmcShower.cxx.

101{
102 bool Lequal=false;
103
104 if ( this->energy() <= otherShower.energy() )
105 {
106 Lequal=true;
107 }
108
109 return Lequal;
110}

◆ operator<=() [2/2]

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

◆ operator=() [1/2]

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

Definition at line 49 of file EmcShower.cxx.

50{
51 if(this!=&aShower)
52 {
53 m_energy=aShower.energy();
54 m_theta=aShower.theta();
55 m_phi=aShower.phi();
56 m_module=aShower.module();
57 m_thetaIndex=aShower.thetaIndex();
58 m_phiIndex=aShower.phiIndex();
59 m_numberOfDigis=aShower.numberOfDigis();
60 m_digiList=aShower.digiList();
61 m_maxima=aShower.maxima();
62 m_where = aShower.where();
63 m_x=aShower.x();
64 m_y=aShower.y();
65 m_z=aShower.z();
66 }
67
68 return *this;
69}

◆ operator=() [2/2]

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

◆ operator==() [1/2]

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

Definition at line 72 of file EmcShower.cxx.

73{
74 bool equal=false;
75
76 if ( this->theta() == otherShower.theta()
77 && this->phi() == otherShower.phi()
78 && this->energy() == otherShower.energy() )
79 {
80 equal=true;
81 }
82
83 return equal;
84}

◆ operator==() [2/2]

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

◆ operator>() [1/2]

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

Definition at line 113 of file EmcShower.cxx.

114{
115 bool Large=false;
116
117 if ( this->energy() > otherShower.energy() )
118 {
119 Large=true;
120 }
121
122 return Large;
123}

◆ operator>() [2/2]

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

◆ operator>=() [1/2]

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

Definition at line 87 of file EmcShower.cxx.

88{
89 bool Gequal=false;
90
91 if ( this->energy() >= otherShower.energy() )
92 {
93 Gequal=true;
94 }
95
96 return Gequal;
97}

◆ operator>=() [2/2]

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

◆ phi() [1/2]

const double & EmcShower::phi ( ) const
inline

◆ phi() [2/2]

const double & EmcShower::phi ( ) const
inline

Definition at line 40 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

40{return m_phi;}

◆ phiIndex() [1/2]

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

◆ phiIndex() [2/2]

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

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

43{return m_phiIndex;}

◆ setDigiList() [1/2]

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

◆ setDigiList() [2/2]

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

Definition at line 62 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

62{m_digiList = digiList;}

◆ setEnergy() [1/2]

void EmcShower::setEnergy ( double  energy)
inline

◆ setEnergy() [2/2]

void EmcShower::setEnergy ( double  energy)
inline

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

55{m_energy = energy;}

◆ setMaxima() [1/2]

void EmcShower::setMaxima ( EmcShDigi  maxima)
inline

◆ setMaxima() [2/2]

void EmcShower::setMaxima ( EmcShDigi  maxima)
inline

Definition at line 63 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

63{m_maxima = maxima;}

◆ setModule() [1/2]

void EmcShower::setModule ( unsigned int  module)
inline

◆ setModule() [2/2]

void EmcShower::setModule ( unsigned int  module)
inline

Definition at line 58 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

58{m_module = module;}

◆ setNumberOfDigis() [1/2]

void EmcShower::setNumberOfDigis ( long int  numberOfDigis)
inline

◆ setNumberOfDigis() [2/2]

void EmcShower::setNumberOfDigis ( long int  numberOfDigis)
inline

Definition at line 61 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

61{m_numberOfDigis = numberOfDigis;}

◆ setPhi() [1/2]

void EmcShower::setPhi ( double  phi)
inline

◆ setPhi() [2/2]

void EmcShower::setPhi ( double  phi)
inline

Definition at line 57 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

57{m_phi = phi;}

◆ setPhiIndex() [1/2]

void EmcShower::setPhiIndex ( unsigned int  phiIndex)
inline

◆ setPhiIndex() [2/2]

void EmcShower::setPhiIndex ( unsigned int  phiIndex)
inline

Definition at line 60 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

60{m_phiIndex = phiIndex;}

◆ setTheta() [1/2]

void EmcShower::setTheta ( double  theta)
inline

◆ setTheta() [2/2]

void EmcShower::setTheta ( double  theta)
inline

Definition at line 56 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

56{m_theta = theta;}

◆ setThetaIndex() [1/2]

void EmcShower::setThetaIndex ( unsigned int  thetaIndex)
inline

◆ setThetaIndex() [2/2]

void EmcShower::setThetaIndex ( unsigned int  thetaIndex)
inline

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

59{m_thetaIndex = thetaIndex;}

◆ setWhere() [1/2]

void EmcShower::setWhere ( HepPoint3D  where)
inline

◆ setWhere() [2/2]

void EmcShower::setWhere ( HepPoint3D  where)
inline

Definition at line 64 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

64{m_where = where;}

◆ setX() [1/2]

void EmcShower::setX ( double  x)
inline

◆ setX() [2/2]

void EmcShower::setX ( double  x)
inline

Definition at line 65 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

65{m_x = x;}

◆ setY() [1/2]

void EmcShower::setY ( double  y)
inline

◆ setY() [2/2]

void EmcShower::setY ( double  y)
inline

Definition at line 66 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

66{m_y = y;}

◆ setZ() [1/2]

void EmcShower::setZ ( double  z)
inline

◆ setZ() [2/2]

void EmcShower::setZ ( double  z)
inline

Definition at line 67 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

67{m_z = z;}

◆ theta() [1/2]

const double & EmcShower::theta ( ) const
inline

◆ theta() [2/2]

const double & EmcShower::theta ( ) const
inline

Definition at line 39 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

39{return m_theta;}

◆ thetaIndex() [1/2]

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

◆ thetaIndex() [2/2]

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

Definition at line 42 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

42{return m_thetaIndex;}

◆ where() [1/2]

const HepPoint3D & EmcShower::where ( ) const
inline

Definition at line 47 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShower.h.

47{return m_where;}

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

◆ where() [2/2]

const HepPoint3D & EmcShower::where ( ) const
inline

Definition at line 47 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

47{return m_where;}

◆ x() [1/2]

const double & EmcShower::x ( ) const
inline

Definition at line 48 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShower.h.

48{return m_x;}

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

◆ x() [2/2]

const double & EmcShower::x ( ) const
inline

Definition at line 48 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

48{return m_x;}

◆ y() [1/2]

const double & EmcShower::y ( ) const
inline

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

49{return m_y;}

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

◆ y() [2/2]

const double & EmcShower::y ( ) const
inline

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

49{return m_y;}

◆ z() [1/2]

const double & EmcShower::z ( ) const
inline

Definition at line 50 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShower.h.

50{return m_z;}

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

◆ z() [2/2]

const double & EmcShower::z ( ) const
inline

Definition at line 50 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShower.h.

50{return m_z;}

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