BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcShDigi.h
Go to the documentation of this file.
1#ifndef EMCSHDIGI_H
2#define EMCSHDIGI_H
3
4#include "CLHEP/Geometry/Point3D.h"
5#ifndef ENABLE_BACKWARDS_COMPATIBILITY
7#endif
8
10{
11public:
12
13 // Constructors
14 EmcShDigi();
15
16 // Destructors
17 ~EmcShDigi();
18
19 //Copy and assignment
20 EmcShDigi(const EmcShDigi& aDigi);
21 EmcShDigi& operator=(const EmcShDigi& aDigi);
22
23 // Operators
24 bool operator==(const EmcShDigi & otherDigi) const;
25 bool operator!=(const EmcShDigi & otherDigi) const;
26 bool operator>=(const EmcShDigi & otherDigi) const;
27 bool operator<=(const EmcShDigi & otherDigi) const;
28 bool operator> (const EmcShDigi & otherDigi) const;
29 bool operator< (const EmcShDigi & otherDigi) const;
30
31 const double& energy() const {return m_energy;}
32 const double& theta() const {return m_theta;}
33 const double& phi() const {return m_phi;}
34 const unsigned int& module() const {return m_module;}
35 const unsigned int& thetaIndex() const {return m_thetaIndex;}
36 const unsigned int& phiIndex() const {return m_phiIndex;}
37 const double& time() const {return m_time;}
38 const double& fraction() const {return m_fraction;}
39 const HepPoint3D& where() const {return m_where;}
40 const double& x() const {return m_x;}
41 const double& y() const {return m_y;}
42 const double& z() const {return m_z;}
43
44 void setEnergy(double energy) {m_energy = energy;}
45 void setTheta(double theta) {m_theta = theta;}
46 void setPhi(double phi) {m_phi = phi;}
47 void setModule(unsigned int module) {m_module = module;}
48 void setThetaIndex(unsigned int thetaIndex) {m_thetaIndex = thetaIndex;}
49 void setPhiIndex(unsigned int phiIndex) {m_phiIndex = phiIndex;}
50 void setTime(double time ) {m_time = time;}
51 void setFraction(double fraction ) {m_fraction = fraction;}
52 void setWhere(HepPoint3D where) {m_where = where;}
53 void setX(double x) {m_x = x;}
54 void setY(double y) {m_y = y;}
55 void setZ(double z) {m_z = z;}
56
57 private:
58
59 double m_energy;
60 double m_theta;
61 double m_phi;
62 unsigned int m_module;
63 unsigned int m_thetaIndex;
64 unsigned int m_phiIndex;
65 double m_time;
66 double m_fraction;
67 HepPoint3D m_where;
68 double m_x;
69 double m_y;
70 double m_z;
71};
72
73
74inline bool EmcShDigi::operator!=(const EmcShDigi& otherDigi) const {
75 return !(*this == otherDigi);
76}
77
78#endif // EMCSHDIGI_H
79
HepGeom::Point3D< double > HepPoint3D
Definition EmcShDigi.h:6
void setWhere(HepPoint3D where)
Definition EmcShDigi.h:52
bool operator<(const EmcShDigi &otherDigi) const
const HepPoint3D & where() const
Definition EmcShDigi.h:39
const unsigned int & thetaIndex() const
Definition EmcShDigi.h:35
const double & y() const
Definition EmcShDigi.h:41
const double & energy() const
Definition EmcShDigi.h:31
const double & x() const
Definition EmcShDigi.h:40
bool operator!=(const EmcShDigi &otherDigi) const
Definition EmcShDigi.h:74
const double & fraction() const
Definition EmcShDigi.h:38
const unsigned int & phiIndex() const
Definition EmcShDigi.h:36
bool operator>=(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:88
void setZ(double z)
Definition EmcShDigi.h:55
bool operator==(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:71
void setTheta(double theta)
Definition EmcShDigi.h:45
void setX(double x)
Definition EmcShDigi.h:53
const double & phi() const
Definition EmcShDigi.h:33
void setY(double y)
Definition EmcShDigi.h:54
void setModule(unsigned int module)
Definition EmcShDigi.h:47
const double & theta() const
Definition EmcShDigi.h:32
void setEnergy(double energy)
Definition EmcShDigi.h:44
bool operator>(const EmcShDigi &otherDigi) const
void setPhi(double phi)
Definition EmcShDigi.h:46
void setFraction(double fraction)
Definition EmcShDigi.h:51
bool operator<=(const EmcShDigi &otherDigi) const
void setTime(double time)
Definition EmcShDigi.h:50
const double & time() const
Definition EmcShDigi.h:37
void setPhiIndex(unsigned int phiIndex)
Definition EmcShDigi.h:49
void setThetaIndex(unsigned int thetaIndex)
Definition EmcShDigi.h:48
const unsigned int & module() const
Definition EmcShDigi.h:34
const double & z() const
Definition EmcShDigi.h:42
EmcShDigi & operator=(const EmcShDigi &aDigi)
Definition EmcShDigi.cxx:49