CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcTofHit Class Reference

#include <RecEmcTofHit.h>

Public Member Functions

 RecEmcTofHit ()
 
 RecEmcTofHit (const Identifier &id, const double e, const HepPoint3D pos)
 
 ~RecEmcTofHit ()
 
 RecEmcTofHit (const RecEmcTofHit &tofHit)
 
RecEmcTofHitoperator= (const RecEmcTofHit &tofHit)
 
bool operator< (const RecEmcTofHit &tofHit) const
 
bool operator> (const RecEmcTofHit &tofHit) const
 
int IntCellId () const
 
Identifier CellId () const
 
double Energy () const
 
HepPoint3D Position () const
 
double ZPosition () const
 
void CellId (const Identifier &id)
 
void Energy (const double e)
 
void Position (const HepPoint3D pos)
 
void ZPosition (const double z)
 
void Assign (const Identifier &id, const double e, const HepPoint3D pos)
 
void Clear ()
 
double DistanceTo (const RecEmcTofHit &)
 
 RecEmcTofHit ()
 
 RecEmcTofHit (const Identifier &id, const double e, const HepPoint3D pos)
 
 ~RecEmcTofHit ()
 
 RecEmcTofHit (const RecEmcTofHit &tofHit)
 
RecEmcTofHitoperator= (const RecEmcTofHit &tofHit)
 
bool operator< (const RecEmcTofHit &tofHit) const
 
bool operator> (const RecEmcTofHit &tofHit) const
 
int IntCellId () const
 
Identifier CellId () const
 
double Energy () const
 
HepPoint3D Position () const
 
double ZPosition () const
 
void CellId (const Identifier &id)
 
void Energy (const double e)
 
void Position (const HepPoint3D pos)
 
void ZPosition (const double z)
 
void Assign (const Identifier &id, const double e, const HepPoint3D pos)
 
void Clear ()
 
double DistanceTo (const RecEmcTofHit &)
 

Detailed Description

Constructor & Destructor Documentation

◆ RecEmcTofHit() [1/6]

RecEmcTofHit::RecEmcTofHit ( )

Definition at line 11 of file RecEmcTofHit.cxx.

12{
13 Clear();
14}

◆ RecEmcTofHit() [2/6]

RecEmcTofHit::RecEmcTofHit ( const Identifier id,
const double  e,
const HepPoint3D  pos 
)

Definition at line 16 of file RecEmcTofHit.cxx.

19{
20 m_cellId = id;
21 m_energy = e;
22 m_pos = pos;
23}

◆ ~RecEmcTofHit() [1/2]

RecEmcTofHit::~RecEmcTofHit ( )

Definition at line 25 of file RecEmcTofHit.cxx.

26{}

◆ RecEmcTofHit() [3/6]

RecEmcTofHit::RecEmcTofHit ( const RecEmcTofHit tofHit)

◆ RecEmcTofHit() [4/6]

RecEmcTofHit::RecEmcTofHit ( )

◆ RecEmcTofHit() [5/6]

RecEmcTofHit::RecEmcTofHit ( const Identifier id,
const double  e,
const HepPoint3D  pos 
)

◆ ~RecEmcTofHit() [2/2]

RecEmcTofHit::~RecEmcTofHit ( )

◆ RecEmcTofHit() [6/6]

RecEmcTofHit::RecEmcTofHit ( const RecEmcTofHit tofHit)

Member Function Documentation

◆ Assign() [1/2]

void RecEmcTofHit::Assign ( const Identifier id,
const double  e,
const HepPoint3D  pos 
)

Definition at line 69 of file RecEmcTofHit.cxx.

72{
73 m_cellId = id;
74 m_energy = e;
75 m_pos = pos;
76}

◆ Assign() [2/2]

void RecEmcTofHit::Assign ( const Identifier id,
const double  e,
const HepPoint3D  pos 
)

◆ CellId() [1/4]

Identifier RecEmcTofHit::CellId ( ) const
inline

Definition at line 43 of file Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcTofHit.h.

43{ return m_cellId; }

Referenced by operator<<(), operator=(), and RecEmcTofHit().

◆ CellId() [2/4]

Identifier RecEmcTofHit::CellId ( ) const
inline

Definition at line 43 of file InstallArea/include/EmcRecEventModel/EmcRecEventModel/RecEmcTofHit.h.

43{ return m_cellId; }

◆ CellId() [3/4]

void RecEmcTofHit::CellId ( const Identifier id)

Definition at line 54 of file RecEmcTofHit.cxx.

55{
56 m_cellId = id;
57}

◆ CellId() [4/4]

void RecEmcTofHit::CellId ( const Identifier id)

◆ Clear() [1/2]

void RecEmcTofHit::Clear ( )

Definition at line 78 of file RecEmcTofHit.cxx.

79{
80 m_cellId.clear();
81 m_energy = 0;
82 m_pos = HepPoint3D(0,0,0);
83}

Referenced by RecEmcTofHit().

◆ Clear() [2/2]

void RecEmcTofHit::Clear ( )

◆ DistanceTo() [1/2]

double RecEmcTofHit::DistanceTo ( const RecEmcTofHit tofHit)

Definition at line 85 of file RecEmcTofHit.cxx.

86{
87 //double dphi = m_pos.phi()-tofHit.m_pos.phi();
88
89 //if(dphi>CLHEP::pi) dphi = CLHEP::twopi - dphi;
90 //if(dphi<-CLHEP::pi) dphi = CLHEP::twopi + dphi;
91
92 Hep3Vector pos1(m_pos);
93 Hep3Vector pos2(tofHit.m_pos);
94
95 return fabs(pos1.deltaPhi(pos2));
96
97 //cout<<"dphi="<<dphi<<"\tdeltaPhi="<<deltaPhi<<endl;
98 //return fabs(dphi);
99}

◆ DistanceTo() [2/2]

double RecEmcTofHit::DistanceTo ( const RecEmcTofHit )

◆ Energy() [1/4]

double RecEmcTofHit::Energy ( ) const
inline

Definition at line 44 of file Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcTofHit.h.

44{ return m_energy; }

Referenced by operator<<(), operator=(), and RecEmcTofHit().

◆ Energy() [2/4]

double RecEmcTofHit::Energy ( ) const
inline

Definition at line 44 of file InstallArea/include/EmcRecEventModel/EmcRecEventModel/RecEmcTofHit.h.

44{ return m_energy; }

◆ Energy() [3/4]

void RecEmcTofHit::Energy ( const double  e)

Definition at line 59 of file RecEmcTofHit.cxx.

60{
61 m_energy = e;
62}

◆ Energy() [4/4]

void RecEmcTofHit::Energy ( const double  e)

◆ IntCellId() [1/2]

int RecEmcTofHit::IntCellId ( ) const

Definition at line 47 of file RecEmcTofHit.cxx.

48{
49 int layer = TofID::layer(m_cellId);
50 int im = TofID::phi_module(m_cellId);
51 return im+layer*88;
52}
static int phi_module(const Identifier &id)
static int layer(const Identifier &id)

Referenced by operator<<().

◆ IntCellId() [2/2]

int RecEmcTofHit::IntCellId ( ) const

◆ operator<() [1/2]

bool RecEmcTofHit::operator< ( const RecEmcTofHit tofHit) const
inline

Definition at line 33 of file Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcTofHit.h.

33 {
34 return m_energy < tofHit.m_energy;
35 }

◆ operator<() [2/2]

bool RecEmcTofHit::operator< ( const RecEmcTofHit tofHit) const
inline

Definition at line 33 of file InstallArea/include/EmcRecEventModel/EmcRecEventModel/RecEmcTofHit.h.

33 {
34 return m_energy < tofHit.m_energy;
35 }

◆ operator=() [1/2]

RecEmcTofHit & RecEmcTofHit::operator= ( const RecEmcTofHit tofHit)

Definition at line 36 of file RecEmcTofHit.cxx.

37{
38 if(this!=&tofHit) {
39 m_cellId = tofHit.CellId();
40 m_energy = tofHit.Energy();
41 m_pos = tofHit.Position();
42 }
43 return *this;
44}

◆ operator=() [2/2]

RecEmcTofHit & RecEmcTofHit::operator= ( const RecEmcTofHit tofHit)

◆ operator>() [1/2]

bool RecEmcTofHit::operator> ( const RecEmcTofHit tofHit) const
inline

Definition at line 37 of file Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcTofHit.h.

37 {
38 return m_energy > tofHit.m_energy;
39 }

◆ operator>() [2/2]

bool RecEmcTofHit::operator> ( const RecEmcTofHit tofHit) const
inline

Definition at line 37 of file InstallArea/include/EmcRecEventModel/EmcRecEventModel/RecEmcTofHit.h.

37 {
38 return m_energy > tofHit.m_energy;
39 }

◆ Position() [1/4]

HepPoint3D RecEmcTofHit::Position ( ) const
inline

Definition at line 45 of file Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcTofHit.h.

45{ return m_pos; }

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

◆ Position() [2/4]

HepPoint3D RecEmcTofHit::Position ( ) const
inline

Definition at line 45 of file InstallArea/include/EmcRecEventModel/EmcRecEventModel/RecEmcTofHit.h.

45{ return m_pos; }

◆ Position() [3/4]

void RecEmcTofHit::Position ( const HepPoint3D  pos)

Definition at line 64 of file RecEmcTofHit.cxx.

65{
66 m_pos = pos;
67}

◆ Position() [4/4]

void RecEmcTofHit::Position ( const HepPoint3D  pos)

◆ ZPosition() [1/4]

double RecEmcTofHit::ZPosition ( ) const
inline

Definition at line 46 of file Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/EmcRecEventModel/RecEmcTofHit.h.

46{ return m_pos.z(); }

Referenced by operator<<().

◆ ZPosition() [2/4]

double RecEmcTofHit::ZPosition ( ) const
inline

Definition at line 46 of file InstallArea/include/EmcRecEventModel/EmcRecEventModel/RecEmcTofHit.h.

46{ return m_pos.z(); }

◆ ZPosition() [3/4]

void RecEmcTofHit::ZPosition ( const double  z)

◆ ZPosition() [4/4]

void RecEmcTofHit::ZPosition ( const double  z)

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