#include <RecEmcTofHit.h>
Public Member Functions | |
void | Assign (const Identifier &id, const double e, const HepPoint3D pos) |
void | Assign (const Identifier &id, const double e, const HepPoint3D pos) |
void | CellId (const Identifier &id) |
Identifier | CellId () const |
void | CellId (const Identifier &id) |
Identifier | CellId () const |
void | Clear () |
void | Clear () |
double | DistanceTo (const RecEmcTofHit &) |
double | DistanceTo (const RecEmcTofHit &) |
void | Energy (const double e) |
double | Energy () const |
void | Energy (const double e) |
double | Energy () const |
int | IntCellId () const |
int | IntCellId () const |
bool | operator< (const RecEmcTofHit &tofHit) const |
bool | operator< (const RecEmcTofHit &tofHit) const |
RecEmcTofHit & | operator= (const RecEmcTofHit &tofHit) |
RecEmcTofHit & | operator= (const RecEmcTofHit &tofHit) |
bool | operator> (const RecEmcTofHit &tofHit) const |
bool | operator> (const RecEmcTofHit &tofHit) const |
void | Position (const HepPoint3D pos) |
HepPoint3D | Position () const |
void | Position (const HepPoint3D pos) |
HepPoint3D | Position () const |
RecEmcTofHit (const RecEmcTofHit &tofHit) | |
RecEmcTofHit (const Identifier &id, const double e, const HepPoint3D pos) | |
RecEmcTofHit () | |
RecEmcTofHit (const RecEmcTofHit &tofHit) | |
RecEmcTofHit (const Identifier &id, const double e, const HepPoint3D pos) | |
RecEmcTofHit () | |
void | ZPosition (const double z) |
double | ZPosition () const |
void | ZPosition (const double z) |
double | ZPosition () const |
~RecEmcTofHit () | |
~RecEmcTofHit () | |
Private Attributes | |
Identifier | m_cellId |
double | m_energy |
HepPoint3D | m_pos |
|
00012 { 00013 Clear(); 00014 }
|
|
|
|
00026 {}
|
|
00030 { 00031 m_cellId = tofHit.CellId(); 00032 m_energy = tofHit.Energy(); 00033 m_pos = tofHit.Position(); 00034 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
00043 { return m_cellId; }
|
|
00055 { 00056 m_cellId = id; 00057 }
|
|
00043 { return m_cellId; }
|
|
|
|
00079 { 00080 m_cellId.clear(); 00081 m_energy = 0; 00082 m_pos = HepPoint3D(0,0,0); 00083 }
|
|
|
|
00086 { 00087 //double dphi = m_pos.phi()-tofHit.m_pos.phi(); 00088 00089 //if(dphi>CLHEP::pi) dphi = CLHEP::twopi - dphi; 00090 //if(dphi<-CLHEP::pi) dphi = CLHEP::twopi + dphi; 00091 00092 Hep3Vector pos1(m_pos); 00093 Hep3Vector pos2(tofHit.m_pos); 00094 00095 return fabs(pos1.deltaPhi(pos2)); 00096 00097 //cout<<"dphi="<<dphi<<"\tdeltaPhi="<<deltaPhi<<endl; 00098 //return fabs(dphi); 00099 }
|
|
|
|
00044 { return m_energy; }
|
|
00060 { 00061 m_energy = e; 00062 }
|
|
00044 { return m_energy; }
|
|
|
|
00048 { 00049 int layer = TofID::layer(m_cellId); 00050 int im = TofID::phi_module(m_cellId); 00051 return im+layer*88; 00052 }
|
|
|
|
|
|
|
|
00037 { 00038 if(this!=&tofHit) { 00039 m_cellId = tofHit.CellId(); 00040 m_energy = tofHit.Energy(); 00041 m_pos = tofHit.Position(); 00042 } 00043 return *this; 00044 }
|
|
|
|
|
|
|
|
00045 { return m_pos; }
|
|
00065 { 00066 m_pos = pos; 00067 }
|
|
00045 { return m_pos; }
|
|
|
|
00046 { return m_pos.z(); }
|
|
|
|
00046 { return m_pos.z(); }
|
|
|
|
|
|
|