BOSS 7.0.1
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)
 
 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

Constructor & Destructor Documentation

◆ EmcShDigi() [1/4]

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() [1/2]

EmcShDigi::~EmcShDigi ( )

Definition at line 28 of file EmcShDigi.cxx.

29{
30}

◆ EmcShDigi() [2/4]

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}

◆ EmcShDigi() [3/4]

EmcShDigi::EmcShDigi ( )

◆ ~EmcShDigi() [2/2]

EmcShDigi::~EmcShDigi ( )

◆ EmcShDigi() [4/4]

EmcShDigi::EmcShDigi ( const EmcShDigi aDigi)

Member Function Documentation

◆ energy() [1/2]

const double & EmcShDigi::energy ( ) const
inline

◆ energy() [2/2]

const double & EmcShDigi::energy ( ) const
inline

Definition at line 31 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

31{return m_energy;}

◆ fraction() [1/2]

const double & EmcShDigi::fraction ( ) const
inline

Definition at line 38 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

38{return m_fraction;}

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

◆ fraction() [2/2]

const double & EmcShDigi::fraction ( ) const
inline

Definition at line 38 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

38{return m_fraction;}

◆ module() [1/2]

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

Definition at line 34 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

34{return m_module;}

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

◆ module() [2/2]

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

Definition at line 34 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

34{return m_module;}

◆ operator!=() [1/2]

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

Definition at line 74 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

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

◆ operator!=() [2/2]

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

◆ operator<() [1/2]

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<() [2/2]

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

◆ operator<=() [1/2]

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<=() [2/2]

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

◆ operator=() [1/2]

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=() [2/2]

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

◆ operator==() [1/2]

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==() [2/2]

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

◆ operator>() [1/2]

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>() [2/2]

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

◆ operator>=() [1/2]

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}

◆ operator>=() [2/2]

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

◆ phi() [1/2]

const double & EmcShDigi::phi ( ) const
inline

◆ phi() [2/2]

const double & EmcShDigi::phi ( ) const
inline

Definition at line 33 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

33{return m_phi;}

◆ phiIndex() [1/2]

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

Definition at line 36 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

36{return m_phiIndex;}

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

◆ phiIndex() [2/2]

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

Definition at line 36 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

36{return m_phiIndex;}

◆ setEnergy() [1/2]

void EmcShDigi::setEnergy ( double  energy)
inline

◆ setEnergy() [2/2]

void EmcShDigi::setEnergy ( double  energy)
inline

Definition at line 44 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

44{m_energy = energy;}

◆ setFraction() [1/2]

void EmcShDigi::setFraction ( double  fraction)
inline

◆ setFraction() [2/2]

void EmcShDigi::setFraction ( double  fraction)
inline

Definition at line 51 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

51{m_fraction = fraction;}

◆ setModule() [1/2]

void EmcShDigi::setModule ( unsigned int  module)
inline

◆ setModule() [2/2]

void EmcShDigi::setModule ( unsigned int  module)
inline

Definition at line 47 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

47{m_module = module;}

◆ setPhi() [1/2]

void EmcShDigi::setPhi ( double  phi)
inline

◆ setPhi() [2/2]

void EmcShDigi::setPhi ( double  phi)
inline

Definition at line 46 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

46{m_phi = phi;}

◆ setPhiIndex() [1/2]

void EmcShDigi::setPhiIndex ( unsigned int  phiIndex)
inline

◆ setPhiIndex() [2/2]

void EmcShDigi::setPhiIndex ( unsigned int  phiIndex)
inline

Definition at line 49 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

49{m_phiIndex = phiIndex;}

◆ setTheta() [1/2]

void EmcShDigi::setTheta ( double  theta)
inline

◆ setTheta() [2/2]

void EmcShDigi::setTheta ( double  theta)
inline

Definition at line 45 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

45{m_theta = theta;}

◆ setThetaIndex() [1/2]

void EmcShDigi::setThetaIndex ( unsigned int  thetaIndex)
inline

◆ setThetaIndex() [2/2]

void EmcShDigi::setThetaIndex ( unsigned int  thetaIndex)
inline

Definition at line 48 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

48{m_thetaIndex = thetaIndex;}

◆ setTime() [1/2]

void EmcShDigi::setTime ( double  time)
inline

◆ setTime() [2/2]

void EmcShDigi::setTime ( double  time)
inline

Definition at line 50 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

50{m_time = time;}

◆ setWhere() [1/2]

void EmcShDigi::setWhere ( HepPoint3D  where)
inline

◆ setWhere() [2/2]

void EmcShDigi::setWhere ( HepPoint3D  where)
inline

Definition at line 52 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

52{m_where = where;}

◆ setX() [1/2]

void EmcShDigi::setX ( double  x)
inline

◆ setX() [2/2]

void EmcShDigi::setX ( double  x)
inline

Definition at line 53 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

53{m_x = x;}

◆ setY() [1/2]

void EmcShDigi::setY ( double  y)
inline

◆ setY() [2/2]

void EmcShDigi::setY ( double  y)
inline

Definition at line 54 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

54{m_y = y;}

◆ setZ() [1/2]

void EmcShDigi::setZ ( double  z)
inline

◆ setZ() [2/2]

void EmcShDigi::setZ ( double  z)
inline

Definition at line 55 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

55{m_z = z;}

◆ theta() [1/2]

const double & EmcShDigi::theta ( ) const
inline

Definition at line 32 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

32{return m_theta;}

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

◆ theta() [2/2]

const double & EmcShDigi::theta ( ) const
inline

Definition at line 32 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

32{return m_theta;}

◆ thetaIndex() [1/2]

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

Definition at line 35 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

35{return m_thetaIndex;}

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

◆ thetaIndex() [2/2]

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

Definition at line 35 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

35{return m_thetaIndex;}

◆ time() [1/2]

const double & EmcShDigi::time ( ) const
inline

Definition at line 37 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

37{return m_time;}

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

◆ time() [2/2]

const double & EmcShDigi::time ( ) const
inline

Definition at line 37 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

37{return m_time;}

◆ where() [1/2]

const HepPoint3D & EmcShDigi::where ( ) const
inline

Definition at line 39 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

39{return m_where;}

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

◆ where() [2/2]

const HepPoint3D & EmcShDigi::where ( ) const
inline

Definition at line 39 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

39{return m_where;}

◆ x() [1/2]

const double & EmcShDigi::x ( ) const
inline

Definition at line 40 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

40{return m_x;}

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

◆ x() [2/2]

const double & EmcShDigi::x ( ) const
inline

Definition at line 40 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

40{return m_x;}

◆ y() [1/2]

const double & EmcShDigi::y ( ) const
inline

Definition at line 41 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

41{return m_y;}

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

◆ y() [2/2]

const double & EmcShDigi::y ( ) const
inline

Definition at line 41 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

41{return m_y;}

◆ z() [1/2]

const double & EmcShDigi::z ( ) const
inline

Definition at line 42 of file Emc/EmcCalib/EmcBhaCalib/EmcBhaCalib-00-00-34/EmcBhaCalib/EmcShDigi.h.

42{return m_z;}

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

◆ z() [2/2]

const double & EmcShDigi::z ( ) const
inline

Definition at line 42 of file InstallArea/include/EmcBhaCalib/EmcBhaCalib/EmcShDigi.h.

42{return m_z;}

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