#include <SimPmtHit.h>
Inheritance diagram for DayaBay::SimPmtHit:
Public Member Functions | |
SimPmtHit () | |
Default Constructor. | |
virtual | ~SimPmtHit () |
Default Destructor. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the ASCII output stream. | |
const CLHEP::Hep3Vector & | dir () const |
Retrieve const The direction of the photon in local PMT coordinates. | |
void | setDir (const CLHEP::Hep3Vector &value) |
Update The direction of the photon in local PMT coordinates. | |
const CLHEP::Hep3Vector & | pol () const |
Retrieve const The polarization of the photon. | |
void | setPol (const CLHEP::Hep3Vector &value) |
Update The polarization of the photon. | |
double | wavelength () const |
Retrieve const The wavelength of the photon. | |
void | setWavelength (double value) |
Update The wavelength of the photon. | |
int | type () const |
Retrieve const The type of hit. | |
void | setType (int value) |
Update The type of hit. | |
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 | |
CLHEP::Hep3Vector | m_dir |
The direction of the photon in local PMT coordinates. | |
CLHEP::Hep3Vector | m_pol |
The polarization of the photon. | |
double | m_wavelength |
The wavelength of the photon. | |
int | m_type |
The type of hit. |
Definition at line 44 of file SimPmtHit.h.
DayaBay::SimPmtHit::SimPmtHit | ( | ) | [inline] |
Default Constructor.
Definition at line 49 of file SimPmtHit.h.
00049 : m_dir(), 00050 m_pol(), 00051 m_wavelength(0.0), 00052 m_type(0) {}
virtual DayaBay::SimPmtHit::~SimPmtHit | ( | ) | [inline, virtual] |
std::ostream & DayaBay::SimPmtHit::fillStream | ( | std::ostream & | s | ) | const [inline, virtual] |
Fill the ASCII output stream.
Reimplemented from DayaBay::SimHit.
Definition at line 151 of file SimPmtHit.h.
00152 { 00153 SimHit::fillStream(s); 00154 s << "{ " << "dir : " << m_dir << std::endl 00155 << "pol : " << m_pol << std::endl 00156 << "wavelength : " << (float)m_wavelength << std::endl 00157 << "type : " << m_type << std::endl << " }"; 00158 return s; 00159 }
const CLHEP::Hep3Vector & DayaBay::SimPmtHit::dir | ( | ) | const [inline] |
Retrieve const The direction of the photon in local PMT coordinates.
Definition at line 162 of file SimPmtHit.h.
00163 { 00164 return m_dir; 00165 }
void DayaBay::SimPmtHit::setDir | ( | const CLHEP::Hep3Vector & | value | ) | [inline] |
Update The direction of the photon in local PMT coordinates.
Definition at line 167 of file SimPmtHit.h.
00168 { 00169 m_dir = value; 00170 }
const CLHEP::Hep3Vector & DayaBay::SimPmtHit::pol | ( | ) | const [inline] |
Retrieve const The polarization of the photon.
Definition at line 172 of file SimPmtHit.h.
00173 { 00174 return m_pol; 00175 }
void DayaBay::SimPmtHit::setPol | ( | const CLHEP::Hep3Vector & | value | ) | [inline] |
Update The polarization of the photon.
Definition at line 177 of file SimPmtHit.h.
00178 { 00179 m_pol = value; 00180 }
double DayaBay::SimPmtHit::wavelength | ( | ) | const [inline] |
Retrieve const The wavelength of the photon.
Definition at line 182 of file SimPmtHit.h.
00183 { 00184 return m_wavelength; 00185 }
void DayaBay::SimPmtHit::setWavelength | ( | double | value | ) | [inline] |
Update The wavelength of the photon.
Definition at line 187 of file SimPmtHit.h.
00188 { 00189 m_wavelength = value; 00190 }
int DayaBay::SimPmtHit::type | ( | ) | const [inline] |
Retrieve const The type of hit.
Definition at line 192 of file SimPmtHit.h.
00193 { 00194 return m_type; 00195 }
void DayaBay::SimPmtHit::setType | ( | int | value | ) | [inline] |
Update The type of hit.
Definition at line 197 of file SimPmtHit.h.
00198 { 00199 m_type = value; 00200 }
static void* DayaBay::SimPmtHit::operator new | ( | size_t | size | ) | [inline, static] |
operator new
Reimplemented from DayaBay::SimHit.
Definition at line 95 of file SimPmtHit.h.
00096 { 00097 return ( sizeof(SimPmtHit) == size ? 00098 boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::malloc() : 00099 ::operator new(size) ); 00100 }
static void* DayaBay::SimPmtHit::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 105 of file SimPmtHit.h.
static void DayaBay::SimPmtHit::operator delete | ( | void * | p | ) | [inline, static] |
operator delete
Reimplemented from DayaBay::SimHit.
Definition at line 111 of file SimPmtHit.h.
00112 { 00113 boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::is_from(p) ? 00114 boost::singleton_pool<SimPmtHit, sizeof(SimPmtHit)>::free(p) : 00115 ::operator delete(p); 00116 }
static void DayaBay::SimPmtHit::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 120 of file SimPmtHit.h.
00121 { 00122 ::operator delete (p, pObj); 00123 }
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 }
CLHEP::Hep3Vector DayaBay::SimPmtHit::m_dir [private] |
CLHEP::Hep3Vector DayaBay::SimPmtHit::m_pol [private] |
double DayaBay::SimPmtHit::m_wavelength [private] |
int DayaBay::SimPmtHit::m_type [private] |