CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcShower.h
Go to the documentation of this file.
1#ifndef EMCSHOWER_H
2#define EMCSHOWER_H
3
4#include <list>
6#include "CLHEP/Geometry/Point3D.h"
7#ifndef ENABLE_BACKWARDS_COMPATIBILITY
9#endif
10
11using namespace std;
12//------------------------------------
13// Collaborating Class Declarations --
14//------------------------------------
15
17{
18 public:
19
20 // Constructors
21 EmcShower();
22
23 // Destructors
24 ~EmcShower();
25
26 //Copy and assignment
27 EmcShower(const EmcShower& aShower);
28 EmcShower& operator=(const EmcShower& aShower);
29
30 // Operators
31 bool operator==(const EmcShower & otherShower) const;
32 bool operator!=(const EmcShower & otherShower) const;
33 bool operator>=(const EmcShower & otherShower) const;
34 bool operator<=(const EmcShower & otherShower) const;
35 bool operator>(const EmcShower & otherShower) const;
36 bool operator<(const EmcShower & otherShower) const;
37
38 const double& energy() const {return m_energy;}
39 const double& theta() const {return m_theta;}
40 const double& phi() const {return m_phi;}
41 const unsigned int& module() const {return m_module;}
42 const unsigned int& thetaIndex() const {return m_thetaIndex;}
43 const unsigned int& phiIndex() const {return m_phiIndex;}
44 const long int& numberOfDigis() const {return m_numberOfDigis;}
45 const std::list<EmcShDigi> digiList() const {return m_digiList;}
46 const EmcShDigi maxima() const { return m_maxima;}
47 const HepPoint3D& where() const {return m_where;}
48 const double& x() const {return m_x;}
49 const double& y() const {return m_y;}
50 const double& z() const {return m_z;}
51
52 // Modifiers
53 void addDigi( EmcShDigi d );
54
55 void setEnergy(double energy) {m_energy = energy;}
56 void setTheta(double theta) {m_theta = theta;}
57 void setPhi(double phi) {m_phi = phi;}
58 void setModule(unsigned int module) {m_module = module;}
59 void setThetaIndex(unsigned int thetaIndex) {m_thetaIndex = thetaIndex;}
60 void setPhiIndex(unsigned int phiIndex) {m_phiIndex = phiIndex;}
61 void setNumberOfDigis(long int numberOfDigis ) {m_numberOfDigis = numberOfDigis;}
62 void setDigiList(std::list<EmcShDigi> digiList) {m_digiList = digiList;}
63 void setMaxima( EmcShDigi maxima) {m_maxima = maxima;}
64 void setWhere(HepPoint3D where) {m_where = where;}
65 void setX(double x) {m_x = x;}
66 void setY(double y) {m_y = y;}
67 void setZ(double z) {m_z = z;}
68
69 private:
70
71 double m_energy;
72 double m_theta;
73 double m_phi;
74 unsigned int m_module;
75 unsigned int m_thetaIndex;
76 unsigned int m_phiIndex;
77 long int m_numberOfDigis;
78 EmcShDigi m_maxima;
79 std::list<EmcShDigi> m_digiList;
80 HepPoint3D m_where;
81 double m_x;
82 double m_y;
83 double m_z;
84};
85
86
87inline bool EmcShower::operator!=(const EmcShower& otherShower) const {
88 return !(*this == otherShower);
89}
90
91#endif // EMCSHOWER_H
92
HepGeom::Point3D< double > HepPoint3D
Definition EmcShower.h:8
bool operator==(const EmcShower &otherShower) const
Definition EmcShower.cxx:72
void setPhi(double phi)
Definition EmcShower.h:57
bool operator<=(const EmcShower &otherShower) const
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
void setEnergy(double energy)
Definition EmcShower.h:55
const double & theta() const
Definition EmcShower.h:39
void setTheta(double theta)
Definition EmcShower.h:56
bool operator>=(const EmcShower &otherShower) const
Definition EmcShower.cxx:87
const double & y() const
Definition EmcShower.h:49
const double & energy() const
Definition EmcShower.h:38
void setDigiList(std::list< EmcShDigi > digiList)
Definition EmcShower.h:62
void setPhiIndex(unsigned int phiIndex)
Definition EmcShower.h:60
void setX(double x)
Definition EmcShower.h:65
bool operator!=(const EmcShower &otherShower) const
Definition EmcShower.h:87
const double & phi() const
Definition EmcShower.h:40
bool operator<(const EmcShower &otherShower) const
void setY(double y)
Definition EmcShower.h:66
void addDigi(EmcShDigi d)
void setThetaIndex(unsigned int thetaIndex)
Definition EmcShower.h:59
EmcShower & operator=(const EmcShower &aShower)
Definition EmcShower.cxx:49
const EmcShDigi maxima() const
Definition EmcShower.h:46
const long int & numberOfDigis() const
Definition EmcShower.h:44
void setZ(double z)
Definition EmcShower.h:67
const HepPoint3D & where() const
Definition EmcShower.h:47
void setMaxima(EmcShDigi maxima)
Definition EmcShower.h:63
const unsigned int & phiIndex() const
Definition EmcShower.h:43
bool operator>(const EmcShower &otherShower) const
void setWhere(HepPoint3D where)
Definition EmcShower.h:64
const std::list< EmcShDigi > digiList() const
Definition EmcShower.h:45
void setNumberOfDigis(long int numberOfDigis)
Definition EmcShower.h:61
const unsigned int & module() const
Definition EmcShower.h:41
void setModule(unsigned int module)
Definition EmcShower.h:58