#include <SimRpcHit.h>
Inheritance diagram for DayaBay::SimRpcHit:
Public Member Functions | |
SimRpcHit () | |
Default Constructor. | |
virtual | ~SimRpcHit () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
double | energyDep () const |
Retrieve const The energy deposited by the particle. | |
void | setEnergyDep (double value) |
Update The energy deposited by the particle. | |
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 | |
double | m_energyDep |
The energy deposited by the particle. |
Definition at line 43 of file SimRpcHit.h.
DayaBay::SimRpcHit::SimRpcHit | ( | ) | [inline] |
virtual DayaBay::SimRpcHit::~SimRpcHit | ( | ) | [inline, virtual] |
std::ostream & DayaBay::SimRpcHit::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::SimHit.
Definition at line 120 of file SimRpcHit.h.
00121 { 00122 SimHit::fillStream(s); 00123 s << "{ " << "energyDep : " << (float)m_energyDep << std::endl << " }"; 00124 return s; 00125 }
double DayaBay::SimRpcHit::energyDep | ( | ) | const [inline] |
Retrieve const The energy deposited by the particle.
Definition at line 128 of file SimRpcHit.h.
00129 { 00130 return m_energyDep; 00131 }
void DayaBay::SimRpcHit::setEnergyDep | ( | double | value | ) | [inline] |
Update The energy deposited by the particle.
Definition at line 133 of file SimRpcHit.h.
00134 { 00135 m_energyDep = value; 00136 }
static void* DayaBay::SimRpcHit::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::SimHit.
Definition at line 67 of file SimRpcHit.h.
00068 { 00069 return ( sizeof(SimRpcHit) == size ? 00070 boost::singleton_pool<SimRpcHit, sizeof(SimRpcHit)>::malloc() : 00071 ::operator new(size) ); 00072 }
static void* DayaBay::SimRpcHit::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 from DayaBay::SimHit.
Definition at line 77 of file SimRpcHit.h.
static void DayaBay::SimRpcHit::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::SimHit.
Definition at line 83 of file SimRpcHit.h.
00084 { 00085 boost::singleton_pool<SimRpcHit, sizeof(SimRpcHit)>::is_from(p) ? 00086 boost::singleton_pool<SimRpcHit, sizeof(SimRpcHit)>::free(p) : 00087 ::operator delete(p); 00088 }
static void DayaBay::SimRpcHit::operator delete | ( | void * | p, | |
void * | pObj | |||
) | [inline, static] |
placement operator delete not sure if really needed, but it does not harm
Reimplemented from DayaBay::SimHit.
Definition at line 92 of file SimRpcHit.h.
00093 { 00094 ::operator delete (p, pObj); 00095 }
const DayaBay::SimHitCollection * DayaBay::SimHit::hc | ( | ) | const [inline, inherited] |
void DayaBay::SimHit::setHc | ( | DayaBay::SimHitCollection * | value | ) | [inline, inherited] |
double DayaBay::SimHit::hitTime | ( | ) | const [inline, inherited] |
void DayaBay::SimHit::setHitTime | ( | double | value | ) | [inline, inherited] |
const CLHEP::Hep3Vector & DayaBay::SimHit::localPos | ( | ) | const [inline, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
void DayaBay::SimHit::setWeight | ( | float | value | ) | [inline, inherited] |
const DayaBay::SimTrackReference & DayaBay::SimHit::ancestor | ( | ) | const [inline, inherited] |
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, inherited] |
Update The recorded particle most directly responsible for this hit.
Definition at line 236 of file SimHit.h.
00237 { 00238 m_ancestor = value; 00239 }
double DayaBay::SimRpcHit::m_energyDep [private] |