BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShower.h
Go to the documentation of this file.
1#ifndef EMCSHOWER_H
2#define EMCSHOWER_H
3
4#include <list>
5#include "EmcBhaCalib/EmcShDigi.h"
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
bool operator==(const EmcShower &otherShower) const
Definition: EmcShower.cxx:72
bool operator<=(const EmcShower &otherShower) const
Definition: EmcShower.cxx:100
bool operator>=(const EmcShower &otherShower) const
Definition: EmcShower.cxx:87
bool operator!=(const EmcShower &otherShower) const
bool operator<(const EmcShower &otherShower) const
Definition: EmcShower.cxx:126
void addDigi(EmcShDigi d)
Definition: EmcShower.cxx:142
EmcShower & operator=(const EmcShower &aShower)
Definition: EmcShower.cxx:49
bool operator>(const EmcShower &otherShower) const
Definition: EmcShower.cxx:113