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

Detailed Description

Definition at line 16 of file EmcShower.h.

Constructor & Destructor Documentation

◆ EmcShower() [1/2]

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

EmcShower::~EmcShower ( )

Definition at line 27 of file EmcShower.cxx.

28{
29}

◆ EmcShower() [2/2]

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}
const double & z() const
Definition: EmcShower.h:50
const unsigned int & thetaIndex() const
Definition: EmcShower.h:42
const double & x() const
Definition: EmcShower.h:48
const double & theta() const
Definition: EmcShower.h:39
const double & y() const
Definition: EmcShower.h:49
const double & energy() const
Definition: EmcShower.h:38
const double & phi() const
Definition: EmcShower.h:40
const EmcShDigi maxima() const
Definition: EmcShower.h:46
const long int & numberOfDigis() const
Definition: EmcShower.h:44
const HepPoint3D & where() const
Definition: EmcShower.h:47
const unsigned int & phiIndex() const
Definition: EmcShower.h:43
const std::list< EmcShDigi > digiList() const
Definition: EmcShower.h:45
const unsigned int & module() const
Definition: EmcShower.h:41

Member Function Documentation

◆ addDigi()

void EmcShower::addDigi ( EmcShDigi  d)

Definition at line 142 of file EmcShower.cxx.

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

◆ digiList()

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

Definition at line 45 of file EmcShower.h.

45{return m_digiList;}

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

◆ energy()

const double & EmcShower::energy ( ) const
inline

◆ maxima()

const EmcShDigi EmcShower::maxima ( ) const
inline

Definition at line 46 of file EmcShower.h.

46{ return m_maxima;}

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

◆ module()

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

Definition at line 41 of file EmcShower.h.

41{return m_module;}

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

◆ numberOfDigis()

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

Definition at line 44 of file EmcShower.h.

44{return m_numberOfDigis;}

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

◆ operator!=()

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

Definition at line 87 of file EmcShower.h.

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

◆ operator<()

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

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

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

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

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

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}

◆ phi()

const double & EmcShower::phi ( ) const
inline

Definition at line 40 of file EmcShower.h.

40{return m_phi;}

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

◆ phiIndex()

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

Definition at line 43 of file EmcShower.h.

43{return m_phiIndex;}

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

◆ setDigiList()

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

Definition at line 62 of file EmcShower.h.

62{m_digiList = digiList;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setEnergy()

void EmcShower::setEnergy ( double  energy)
inline

Definition at line 55 of file EmcShower.h.

55{m_energy = energy;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setMaxima()

void EmcShower::setMaxima ( EmcShDigi  maxima)
inline

Definition at line 63 of file EmcShower.h.

63{m_maxima = maxima;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setModule()

void EmcShower::setModule ( unsigned int  module)
inline

Definition at line 58 of file EmcShower.h.

58{m_module = module;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setNumberOfDigis()

void EmcShower::setNumberOfDigis ( long int  numberOfDigis)
inline

Definition at line 61 of file EmcShower.h.

61{m_numberOfDigis = numberOfDigis;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhi()

void EmcShower::setPhi ( double  phi)
inline

Definition at line 57 of file EmcShower.h.

57{m_phi = phi;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhiIndex()

void EmcShower::setPhiIndex ( unsigned int  phiIndex)
inline

Definition at line 60 of file EmcShower.h.

60{m_phiIndex = phiIndex;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setTheta()

void EmcShower::setTheta ( double  theta)
inline

Definition at line 56 of file EmcShower.h.

56{m_theta = theta;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setThetaIndex()

void EmcShower::setThetaIndex ( unsigned int  thetaIndex)
inline

Definition at line 59 of file EmcShower.h.

59{m_thetaIndex = thetaIndex;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setWhere()

void EmcShower::setWhere ( HepPoint3D  where)
inline

Definition at line 64 of file EmcShower.h.

64{m_where = where;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setX()

void EmcShower::setX ( double  x)
inline

Definition at line 65 of file EmcShower.h.

65{m_x = x;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setY()

void EmcShower::setY ( double  y)
inline

Definition at line 66 of file EmcShower.h.

66{m_y = y;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setZ()

void EmcShower::setZ ( double  z)
inline

Definition at line 67 of file EmcShower.h.

67{m_z = z;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ theta()

const double & EmcShower::theta ( ) const
inline

Definition at line 39 of file EmcShower.h.

39{return m_theta;}

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

◆ thetaIndex()

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

Definition at line 42 of file EmcShower.h.

42{return m_thetaIndex;}

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

◆ where()

const HepPoint3D & EmcShower::where ( ) const
inline

Definition at line 47 of file EmcShower.h.

47{return m_where;}

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

◆ x()

const double & EmcShower::x ( ) const
inline

Definition at line 48 of file EmcShower.h.

48{return m_x;}

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

◆ y()

const double & EmcShower::y ( ) const
inline

Definition at line 49 of file EmcShower.h.

49{return m_y;}

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

◆ z()

const double & EmcShower::z ( ) const
inline

Definition at line 50 of file EmcShower.h.

50{return m_z;}

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


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