CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcShDigi Class Reference

#include <EmcShDigi.h>

Public Member Functions

 EmcShDigi ()
 
 ~EmcShDigi ()
 
 EmcShDigi (const EmcShDigi &aDigi)
 
EmcShDigioperator= (const EmcShDigi &aDigi)
 
bool operator== (const EmcShDigi &otherDigi) const
 
bool operator!= (const EmcShDigi &otherDigi) const
 
bool operator>= (const EmcShDigi &otherDigi) const
 
bool operator<= (const EmcShDigi &otherDigi) const
 
bool operator> (const EmcShDigi &otherDigi) const
 
bool operator< (const EmcShDigi &otherDigi) 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 double & time () const
 
const double & fraction () const
 
const HepPoint3Dwhere () const
 
const double & x () const
 
const double & y () const
 
const double & z () const
 
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 setTime (double time)
 
void setFraction (double fraction)
 
void setWhere (HepPoint3D where)
 
void setX (double x)
 
void setY (double y)
 
void setZ (double z)
 

Detailed Description

Definition at line 9 of file EmcShDigi.h.

Constructor & Destructor Documentation

◆ EmcShDigi() [1/2]

EmcShDigi::EmcShDigi ( )

Definition at line 8 of file EmcShDigi.cxx.

8 :
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_time(0.0),
16 m_fraction(0.),
17 m_where(0,0,0),
18 m_x(0),
19 m_y(0),
20 m_z(0)
21{
22
23}

◆ ~EmcShDigi()

EmcShDigi::~EmcShDigi ( )

Definition at line 28 of file EmcShDigi.cxx.

29{
30}

◆ EmcShDigi() [2/2]

EmcShDigi::EmcShDigi ( const EmcShDigi & aDigi)

Definition at line 33 of file EmcShDigi.cxx.

34{
35 m_energy=aDigi.energy();
36 m_theta=aDigi.theta();
37 m_phi=aDigi.phi();
38 m_module=aDigi.module();
39 m_thetaIndex=aDigi.thetaIndex();
40 m_phiIndex=aDigi.phiIndex();
41 m_time=aDigi.time();
42 m_fraction=aDigi.fraction();
43 m_where = aDigi.where();
44 m_x=aDigi.x();
45 m_y=aDigi.y();
46 m_z=aDigi.z();
47}
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
const double & fraction() const
Definition EmcShDigi.h:38
const unsigned int & phiIndex() const
Definition EmcShDigi.h:36
const double & phi() const
Definition EmcShDigi.h:33
const double & theta() const
Definition EmcShDigi.h:32
const double & time() const
Definition EmcShDigi.h:37
const unsigned int & module() const
Definition EmcShDigi.h:34
const double & z() const
Definition EmcShDigi.h:42

Member Function Documentation

◆ energy()

const double & EmcShDigi::energy ( ) const
inline

Definition at line 31 of file EmcShDigi.h.

31{return m_energy;}

Referenced by EmcShDigi(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and setEnergy().

◆ fraction()

const double & EmcShDigi::fraction ( ) const
inline

Definition at line 38 of file EmcShDigi.h.

38{return m_fraction;}

Referenced by EmcShDigi(), operator=(), operator==(), and setFraction().

◆ module()

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

Definition at line 34 of file EmcShDigi.h.

34{return m_module;}

Referenced by EmcShDigi(), and operator=().

◆ operator!=()

bool EmcShDigi::operator!= ( const EmcShDigi & otherDigi) const
inline

Definition at line 74 of file EmcShDigi.h.

74 {
75 return !(*this == otherDigi);
76}

◆ operator<()

bool EmcShDigi::operator< ( const EmcShDigi & otherDigi) const

Definition at line 125 of file EmcShDigi.cxx.

127{
128 bool Less=false;
129
130 if ( this->energy() < otherDigi.energy())
131 {
132 Less=true;
133 }
134
135 return Less;
136}

◆ operator<=()

bool EmcShDigi::operator<= ( const EmcShDigi & otherDigi) const

Definition at line 100 of file EmcShDigi.cxx.

102{
103 bool Lequal=false;
104
105 if ( this->energy() <= otherDigi.energy())
106 {
107 Lequal=true;
108 }
109 return Lequal;
110}

◆ operator=()

EmcShDigi & EmcShDigi::operator= ( const EmcShDigi & aDigi)

Definition at line 49 of file EmcShDigi.cxx.

50{
51 if(this!=&aDigi)
52 {
53 m_energy=aDigi.energy();
54 m_theta=aDigi.theta();
55 m_phi=aDigi.phi();
56 m_module=aDigi.module();
57 m_thetaIndex=aDigi.thetaIndex();
58 m_phiIndex=aDigi.phiIndex();
59 m_time=aDigi.time();
60 m_fraction=aDigi.fraction();
61 m_where = aDigi.where();
62 m_x=aDigi.x();
63 m_y=aDigi.y();
64 m_z=aDigi.z();
65 }
66
67 return *this;
68}

◆ operator==()

bool EmcShDigi::operator== ( const EmcShDigi & otherDigi) const

Definition at line 71 of file EmcShDigi.cxx.

72{
73 bool equal=false;
74
75 if ( this->energy() == otherDigi.energy()
76 && this->theta() == otherDigi.theta()
77 && this->phi() == otherDigi.phi()
78 && this->time() == otherDigi.time()
79 && this->fraction() == otherDigi.fraction() )
80 {
81 equal=true;
82 }
83
84 return equal;
85}

◆ operator>()

bool EmcShDigi::operator> ( const EmcShDigi & otherDigi) const

Definition at line 113 of file EmcShDigi.cxx.

114{
115 bool Large=false;
116
117 if ( this->energy() > otherDigi.energy())
118 {
119 Large=true;
120 }
121
122 return Large;
123}

◆ operator>=()

bool EmcShDigi::operator>= ( const EmcShDigi & otherDigi) const

Definition at line 88 of file EmcShDigi.cxx.

89{
90 bool Gequal=false;
91
92 if ( this->energy() >= otherDigi.energy())
93 {
94 Gequal=true;
95 }
96
97 return Gequal;
98}

◆ phi()

const double & EmcShDigi::phi ( ) const
inline

Definition at line 33 of file EmcShDigi.h.

33{return m_phi;}

Referenced by EmcShDigi(), operator=(), operator==(), and setPhi().

◆ phiIndex()

const unsigned int & EmcShDigi::phiIndex ( ) const
inline

Definition at line 36 of file EmcShDigi.h.

36{return m_phiIndex;}

Referenced by EmcShDigi(), operator=(), and setPhiIndex().

◆ setEnergy()

void EmcShDigi::setEnergy ( double energy)
inline

Definition at line 44 of file EmcShDigi.h.

44{m_energy = energy;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setFraction()

void EmcShDigi::setFraction ( double fraction)
inline

Definition at line 51 of file EmcShDigi.h.

51{m_fraction = fraction;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setModule()

void EmcShDigi::setModule ( unsigned int module)
inline

Definition at line 47 of file EmcShDigi.h.

47{m_module = module;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhi()

void EmcShDigi::setPhi ( double phi)
inline

Definition at line 46 of file EmcShDigi.h.

46{m_phi = phi;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setPhiIndex()

void EmcShDigi::setPhiIndex ( unsigned int phiIndex)
inline

Definition at line 49 of file EmcShDigi.h.

49{m_phiIndex = phiIndex;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setTheta()

void EmcShDigi::setTheta ( double theta)
inline

Definition at line 45 of file EmcShDigi.h.

45{m_theta = theta;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setThetaIndex()

void EmcShDigi::setThetaIndex ( unsigned int thetaIndex)
inline

Definition at line 48 of file EmcShDigi.h.

48{m_thetaIndex = thetaIndex;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setTime()

void EmcShDigi::setTime ( double time)
inline

Definition at line 50 of file EmcShDigi.h.

50{m_time = time;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setWhere()

void EmcShDigi::setWhere ( HepPoint3D where)
inline

Definition at line 52 of file EmcShDigi.h.

52{m_where = where;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setX()

void EmcShDigi::setX ( double x)
inline

Definition at line 53 of file EmcShDigi.h.

53{m_x = x;}

◆ setY()

void EmcShDigi::setY ( double y)
inline

Definition at line 54 of file EmcShDigi.h.

54{m_y = y;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ setZ()

void EmcShDigi::setZ ( double z)
inline

Definition at line 55 of file EmcShDigi.h.

55{m_z = z;}

Referenced by EmcSelBhaEvent::FillBhabha().

◆ theta()

const double & EmcShDigi::theta ( ) const
inline

Definition at line 32 of file EmcShDigi.h.

32{return m_theta;}

Referenced by EmcShDigi(), operator=(), operator==(), and setTheta().

◆ thetaIndex()

const unsigned int & EmcShDigi::thetaIndex ( ) const
inline

Definition at line 35 of file EmcShDigi.h.

35{return m_thetaIndex;}

Referenced by EmcShDigi(), operator=(), and setThetaIndex().

◆ time()

const double & EmcShDigi::time ( ) const
inline

Definition at line 37 of file EmcShDigi.h.

37{return m_time;}

Referenced by EmcShDigi(), operator=(), operator==(), and setTime().

◆ where()

const HepPoint3D & EmcShDigi::where ( ) const
inline

Definition at line 39 of file EmcShDigi.h.

39{return m_where;}

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

◆ x()

const double & EmcShDigi::x ( ) const
inline

Definition at line 40 of file EmcShDigi.h.

40{return m_x;}

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

◆ y()

const double & EmcShDigi::y ( ) const
inline

Definition at line 41 of file EmcShDigi.h.

41{return m_y;}

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

◆ z()

const double & EmcShDigi::z ( ) const
inline

Definition at line 42 of file EmcShDigi.h.

42{return m_z;}

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


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