BOSS 8.0.0
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
6typedef HepGeom::Point3D<double> HepPoint3D;
7#endif
8
9class EmcShDigi {
10public:
11 // Constructors
12 EmcShDigi();
13
14 // Destructors
15 ~EmcShDigi();
16
17 // Copy and assignment
18 EmcShDigi( const EmcShDigi& aDigi );
19 EmcShDigi& operator=( const EmcShDigi& aDigi );
20
21 // Operators
22 bool operator==( const EmcShDigi& otherDigi ) const;
23 bool operator!=( const EmcShDigi& otherDigi ) const;
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
29 const double& energy() const { return m_energy; }
30 const double& theta() const { return m_theta; }
31 const double& phi() const { return m_phi; }
32 const unsigned int& module() const { return m_module; }
33 const unsigned int& thetaIndex() const { return m_thetaIndex; }
34 const unsigned int& phiIndex() const { return m_phiIndex; }
35 const double& time() const { return m_time; }
36 const double& fraction() const { return m_fraction; }
37 const HepPoint3D& where() const { return m_where; }
38 const double& x() const { return m_x; }
39 const double& y() const { return m_y; }
40 const double& z() const { return m_z; }
41
42 void setEnergy( double energy ) { m_energy = energy; }
43 void setTheta( double theta ) { m_theta = theta; }
44 void setPhi( double phi ) { m_phi = phi; }
45 void setModule( unsigned int module ) { m_module = module; }
46 void setThetaIndex( unsigned int thetaIndex ) { m_thetaIndex = thetaIndex; }
47 void setPhiIndex( unsigned int phiIndex ) { m_phiIndex = phiIndex; }
48 void setTime( double time ) { m_time = time; }
49 void setFraction( double fraction ) { m_fraction = fraction; }
50 void setWhere( HepPoint3D where ) { m_where = where; }
51 void setX( double x ) { m_x = x; }
52 void setY( double y ) { m_y = y; }
53 void setZ( double z ) { m_z = z; }
54
55private:
56 double m_energy;
57 double m_theta;
58 double m_phi;
59 unsigned int m_module;
60 unsigned int m_thetaIndex;
61 unsigned int m_phiIndex;
62 double m_time;
63 double m_fraction;
64 HepPoint3D m_where;
65 double m_x;
66 double m_y;
67 double m_z;
68};
69
70inline bool EmcShDigi::operator!=( const EmcShDigi& otherDigi ) const {
71 return !( *this == otherDigi );
72}
73
74#endif // EMCSHDIGI_H
HepGeom::Point3D< double > HepPoint3D
HepGeom::Point3D< double > HepPoint3D
Definition EmcShDigi.h:6
NTuple::Array< double > m_z
NTuple::Array< double > m_x
NTuple::Array< double > m_y
void setWhere(HepPoint3D where)
Definition EmcShDigi.h:50
bool operator<(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:97
const HepPoint3D & where() const
Definition EmcShDigi.h:37
const unsigned int & thetaIndex() const
Definition EmcShDigi.h:33
const double & y() const
Definition EmcShDigi.h:39
const double & energy() const
Definition EmcShDigi.h:29
const double & x() const
Definition EmcShDigi.h:38
bool operator!=(const EmcShDigi &otherDigi) const
Definition EmcShDigi.h:70
const double & fraction() const
Definition EmcShDigi.h:36
const unsigned int & phiIndex() const
Definition EmcShDigi.h:34
bool operator>=(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:74
void setZ(double z)
Definition EmcShDigi.h:53
bool operator==(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:63
void setTheta(double theta)
Definition EmcShDigi.h:43
void setX(double x)
Definition EmcShDigi.h:51
const double & phi() const
Definition EmcShDigi.h:31
void setY(double y)
Definition EmcShDigi.h:52
void setModule(unsigned int module)
Definition EmcShDigi.h:45
const double & theta() const
Definition EmcShDigi.h:30
void setEnergy(double energy)
Definition EmcShDigi.h:42
bool operator>(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:89
void setPhi(double phi)
Definition EmcShDigi.h:44
void setFraction(double fraction)
Definition EmcShDigi.h:49
bool operator<=(const EmcShDigi &otherDigi) const
Definition EmcShDigi.cxx:82
void setTime(double time)
Definition EmcShDigi.h:48
const double & time() const
Definition EmcShDigi.h:35
void setPhiIndex(unsigned int phiIndex)
Definition EmcShDigi.h:47
void setThetaIndex(unsigned int thetaIndex)
Definition EmcShDigi.h:46
const unsigned int & module() const
Definition EmcShDigi.h:32
const double & z() const
Definition EmcShDigi.h:40
EmcShDigi & operator=(const EmcShDigi &aDigi)
Definition EmcShDigi.cxx:43