#include <SimHit.h>
Inheritance diagram for DayaBay::SimHit:
Public Member Functions | |
| SimHit () | |
| Default Constructor. | |
| virtual | ~SimHit () |
| Default Destructor. | |
| virtual std::ostream & | fillStream (std::ostream &s) const |
| Fill the ASCII output stream. | |
| const DayaBay::SimHitCollection * | hc () const |
| Retrieve const The hit collection to which this hit belongs. | |
| void | setHc (DayaBay::SimHitCollection *value) |
| Update The hit collection to which this hit belongs. | |
| double | hitTime () const |
| Retrieve const The time, relative to the primary vertex time, at which this hit occurred. | |
| void | setHitTime (double value) |
| Update The time, relative to the primary vertex time, at which this hit occurred. | |
| const CLHEP::Hep3Vector & | localPos () const |
| Retrieve const Position of hit in coordinates local to the sensitive detector. | |
| void | setLocalPos (const CLHEP::Hep3Vector &value) |
| Update Position of hit in coordinates local to the sensitive detector. | |
| int | sensDetId () const |
| Retrieve const Number used to identify the hit sensitive-detector in the whole detector. | |
| void | setSensDetId (int value) |
| Update Number used to identify the hit sensitive-detector in the whole detector. | |
| float | weight () const |
| Retrieve const Arbitrary weight by which this hit should be weighted. | |
| void | setWeight (float value) |
| Update Arbitrary weight by which this hit should be weighted. | |
| const DayaBay::SimTrackReference & | ancestor () const |
| Retrieve const The recorded particle most directly responsible for this hit. | |
| void | setAncestor (const DayaBay::SimTrackReference &value) |
| Update The recorded particle most directly responsible for this hit. | |
Static Public Member Functions | |
| static void * | operator new (size_t size) |
| operator new | |
| static void * | operator new (size_t size, void *pObj) |
| placement operator new it is needed by libstdc++ 3.2.3 (e.g. | |
| static void | operator delete (void *p) |
| operator delete | |
| static void | operator delete (void *p, void *pObj) |
| placement operator delete not sure if really needed, but it does not harm | |
Private Attributes | |
| DayaBay::SimHitCollection * | m_hc |
| The hit collection to which this hit belongs. | |
| double | m_hitTime |
| The time, relative to the primary vertex time, at which this hit occurred. | |
| CLHEP::Hep3Vector | m_localPos |
| Position of hit in coordinates local to the sensitive detector. | |
| int | m_sensDetId |
| Number used to identify the hit sensitive-detector in the whole detector. | |
| float | m_weight |
| Arbitrary weight by which this hit should be weighted. | |
| DayaBay::SimTrackReference | m_ancestor |
| The recorded particle most directly responsible for this hit. | |
Definition at line 42 of file SimHit.h.
| DayaBay::SimHit::SimHit | ( | ) | [inline] |
Default Constructor.
Definition at line 47 of file SimHit.h.
00047 : m_hc(0), 00048 m_hitTime(0.0), 00049 m_localPos(), 00050 m_sensDetId(0), 00051 m_weight(0.0), 00052 m_ancestor() {}
| virtual DayaBay::SimHit::~SimHit | ( | ) | [inline, virtual] |
| std::ostream & DayaBay::SimHit::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.
Definition at line 169 of file SimHit.h.
00170 { 00171 s << "{ " << "hc : " << m_hc << std::endl 00172 << "hitTime : " << (float)m_hitTime << std::endl 00173 << "localPos : " << m_localPos << std::endl 00174 << "sensDetId : " << m_sensDetId << std::endl 00175 << "weight : " << m_weight << std::endl 00176 << "ancestor : " << m_ancestor << std::endl << " }"; 00177 return s; 00178 }
| const DayaBay::SimHitCollection * DayaBay::SimHit::hc | ( | ) | const [inline] |
| void DayaBay::SimHit::setHc | ( | DayaBay::SimHitCollection * | value | ) | [inline] |
| double DayaBay::SimHit::hitTime | ( | ) | const [inline] |
| void DayaBay::SimHit::setHitTime | ( | double | value | ) | [inline] |
| const CLHEP::Hep3Vector & DayaBay::SimHit::localPos | ( | ) | const [inline] |
Retrieve const Position of hit in coordinates local to the sensitive detector.
Definition at line 201 of file SimHit.h.
00202 { 00203 return m_localPos; 00204 }
| void DayaBay::SimHit::setLocalPos | ( | const CLHEP::Hep3Vector & | value | ) | [inline] |
Update Position of hit in coordinates local to the sensitive detector.
Definition at line 206 of file SimHit.h.
00207 { 00208 m_localPos = value; 00209 }
| int DayaBay::SimHit::sensDetId | ( | ) | const [inline] |
Retrieve const Number used to identify the hit sensitive-detector in the whole detector.
Definition at line 211 of file SimHit.h.
00212 { 00213 return m_sensDetId; 00214 }
| void DayaBay::SimHit::setSensDetId | ( | int | value | ) | [inline] |
Update Number used to identify the hit sensitive-detector in the whole detector.
Definition at line 216 of file SimHit.h.
00217 { 00218 m_sensDetId = value; 00219 }
| float DayaBay::SimHit::weight | ( | ) | const [inline] |
| void DayaBay::SimHit::setWeight | ( | float | value | ) | [inline] |
| const DayaBay::SimTrackReference & DayaBay::SimHit::ancestor | ( | ) | const [inline] |
Retrieve const The recorded particle most directly responsible for this hit.
Definition at line 231 of file SimHit.h.
00232 { 00233 return m_ancestor; 00234 }
| void DayaBay::SimHit::setAncestor | ( | const DayaBay::SimTrackReference & | value | ) | [inline] |
Update The recorded particle most directly responsible for this hit.
Definition at line 236 of file SimHit.h.
00237 { 00238 m_ancestor = value; 00239 }
| static void* DayaBay::SimHit::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.
Definition at line 111 of file SimHit.h.
00112 { 00113 return ( sizeof(SimHit) == size ? 00114 boost::singleton_pool<SimHit, sizeof(SimHit)>::malloc() : 00115 ::operator new(size) ); 00116 }
| static void* DayaBay::SimHit::operator new | ( | size_t | size, | |
| void * | pObj | |||
| ) | [inline, static] |
placement operator new it is needed by libstdc++ 3.2.3 (e.g.
in std::vector) it is not needed in libstdc++ >= 3.4
Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.
Definition at line 121 of file SimHit.h.
| static void DayaBay::SimHit::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.
Definition at line 127 of file SimHit.h.
00128 { 00129 boost::singleton_pool<SimHit, sizeof(SimHit)>::is_from(p) ? 00130 boost::singleton_pool<SimHit, sizeof(SimHit)>::free(p) : 00131 ::operator delete(p); 00132 }
| static void DayaBay::SimHit::operator delete | ( | void * | p, | |
| void * | pObj | |||
| ) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented in DayaBay::SimPmtHit, and DayaBay::SimRpcHit.
Definition at line 136 of file SimHit.h.
00137 { 00138 ::operator delete (p, pObj); 00139 }
DayaBay::SimHitCollection* DayaBay::SimHit::m_hc [private] |
double DayaBay::SimHit::m_hitTime [private] |
CLHEP::Hep3Vector DayaBay::SimHit::m_localPos [private] |
int DayaBay::SimHit::m_sensDetId [private] |
float DayaBay::SimHit::m_weight [private] |
1.4.7