BOSS 8.0.0
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.

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 m_maxima = EmcShDigi();
21}
NTuple::Array< double > m_z
NTuple::Array< double > m_x
NTuple::Array< double > m_y

Referenced by EmcShower(), operator!=(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().

◆ ~EmcShower()

EmcShower::~EmcShower ( )

Definition at line 26 of file EmcShower.cxx.

26{}

◆ EmcShower() [2/2]

EmcShower::EmcShower ( const EmcShower & aShower)

Definition at line 29 of file EmcShower.cxx.

29 {
30 m_energy = aShower.energy();
31 m_theta = aShower.theta();
32 m_phi = aShower.phi();
33 m_module = aShower.module();
34 m_thetaIndex = aShower.thetaIndex();
35 m_phiIndex = aShower.phiIndex();
36 m_numberOfDigis = aShower.numberOfDigis();
37 m_digiList = aShower.digiList();
38 m_maxima = aShower.maxima();
39 m_where = aShower.where();
40 m_x = aShower.x();
41 m_y = aShower.y();
42 m_z = aShower.z();
43}
const double & z() const
Definition EmcShower.h:48
const unsigned int & thetaIndex() const
Definition EmcShower.h:40
const double & x() const
Definition EmcShower.h:46
const double & theta() const
Definition EmcShower.h:37
const double & y() const
Definition EmcShower.h:47
const double & energy() const
Definition EmcShower.h:36
const double & phi() const
Definition EmcShower.h:38
const EmcShDigi maxima() const
Definition EmcShower.h:44
const long int & numberOfDigis() const
Definition EmcShower.h:42
const HepPoint3D & where() const
Definition EmcShower.h:45
const unsigned int & phiIndex() const
Definition EmcShower.h:41
const std::list< EmcShDigi > digiList() const
Definition EmcShower.h:43
const unsigned int & module() const
Definition EmcShower.h:39

Member Function Documentation

◆ addDigi()

void EmcShower::addDigi ( EmcShDigi d)

Definition at line 111 of file EmcShower.cxx.

111{ m_digiList.push_back( theDigi ); }

◆ digiList()

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

Definition at line 43 of file EmcShower.h.

43{ return m_digiList; }

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

◆ energy()

const double & EmcShower::energy ( ) const
inline

Definition at line 36 of file EmcShower.h.

36{ return m_energy; }

Referenced by EmcShower(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), setEnergy(), and EmcBhabhaEvent::showerVector().

◆ maxima()

const EmcShDigi EmcShower::maxima ( ) const
inline

Definition at line 44 of file EmcShower.h.

44{ return m_maxima; }

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

◆ module()

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

Definition at line 39 of file EmcShower.h.

39{ return m_module; }

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

◆ numberOfDigis()

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

Definition at line 42 of file EmcShower.h.

42{ return m_numberOfDigis; }

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

◆ operator!=()

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

Definition at line 83 of file EmcShower.h.

83 {
84 return !( *this == otherShower );
85}

◆ operator<()

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

Definition at line 100 of file EmcShower.cxx.

100 {
101 bool Less = false;
102
103 if ( this->energy() < otherShower.energy() ) { Less = true; }
104
105 return Less;
106}

◆ operator<=()

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

Definition at line 84 of file EmcShower.cxx.

84 {
85 bool Lequal = false;
86
87 if ( this->energy() <= otherShower.energy() ) { Lequal = true; }
88
89 return Lequal;
90}

◆ operator=()

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

Definition at line 45 of file EmcShower.cxx.

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

◆ operator==()

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

Definition at line 66 of file EmcShower.cxx.

66 {
67 bool equal = false;
68
69 if ( this->theta() == otherShower.theta() && this->phi() == otherShower.phi() &&
70 this->energy() == otherShower.energy() )
71 { equal = true; }
72
73 return equal;
74}

◆ operator>()

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

Definition at line 92 of file EmcShower.cxx.

92 {
93 bool Large = false;
94
95 if ( this->energy() > otherShower.energy() ) { Large = true; }
96
97 return Large;
98}

◆ operator>=()

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

Definition at line 76 of file EmcShower.cxx.

76 {
77 bool Gequal = false;
78
79 if ( this->energy() >= otherShower.energy() ) { Gequal = true; }
80
81 return Gequal;
82}

◆ phi()

const double & EmcShower::phi ( ) const
inline

Definition at line 38 of file EmcShower.h.

38{ 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 41 of file EmcShower.h.

41{ return m_phiIndex; }

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

◆ setDigiList()

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

Definition at line 60 of file EmcShower.h.

60{ m_digiList = digiList; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setEnergy()

void EmcShower::setEnergy ( double energy)
inline

Definition at line 53 of file EmcShower.h.

53{ m_energy = energy; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setMaxima()

void EmcShower::setMaxima ( EmcShDigi maxima)
inline

Definition at line 61 of file EmcShower.h.

61{ m_maxima = maxima; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setModule()

void EmcShower::setModule ( unsigned int module)
inline

Definition at line 56 of file EmcShower.h.

56{ m_module = module; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setNumberOfDigis()

void EmcShower::setNumberOfDigis ( long int numberOfDigis)
inline

Definition at line 59 of file EmcShower.h.

59{ m_numberOfDigis = numberOfDigis; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhi()

void EmcShower::setPhi ( double phi)
inline

Definition at line 55 of file EmcShower.h.

55{ m_phi = phi; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhiIndex()

void EmcShower::setPhiIndex ( unsigned int phiIndex)
inline

Definition at line 58 of file EmcShower.h.

58{ m_phiIndex = phiIndex; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setTheta()

void EmcShower::setTheta ( double theta)
inline

Definition at line 54 of file EmcShower.h.

54{ m_theta = theta; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setThetaIndex()

void EmcShower::setThetaIndex ( unsigned int thetaIndex)
inline

Definition at line 57 of file EmcShower.h.

57{ m_thetaIndex = thetaIndex; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setWhere()

void EmcShower::setWhere ( HepPoint3D where)
inline

Definition at line 62 of file EmcShower.h.

62{ m_where = where; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setX()

void EmcShower::setX ( double x)
inline

Definition at line 63 of file EmcShower.h.

63{ m_x = x; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setY()

void EmcShower::setY ( double y)
inline

Definition at line 64 of file EmcShower.h.

64{ m_y = y; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setZ()

void EmcShower::setZ ( double z)
inline

Definition at line 65 of file EmcShower.h.

65{ m_z = z; }

Referenced by EmcSelBhaEvent::FillBhabha().

◆ theta()

const double & EmcShower::theta ( ) const
inline

Definition at line 37 of file EmcShower.h.

37{ 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 40 of file EmcShower.h.

40{ return m_thetaIndex; }

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

◆ where()

const HepPoint3D & EmcShower::where ( ) const
inline

Definition at line 45 of file EmcShower.h.

45{ return m_where; }

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

◆ x()

const double & EmcShower::x ( ) const
inline

Definition at line 46 of file EmcShower.h.

46{ return m_x; }

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

◆ y()

const double & EmcShower::y ( ) const
inline

Definition at line 47 of file EmcShower.h.

47{ return m_y; }

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

◆ z()

const double & EmcShower::z ( ) const
inline

Definition at line 48 of file EmcShower.h.

48{ return m_z; }

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


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