#include <SimHitHandle_ForwardHit.h>
Definition at line 23 of file SimHitHandle_ForwardHit.h.
◆ SimHitHandle_ForwardHit()
| SimHitHandle_ForwardHit::SimHitHandle_ForwardHit |
( |
const SimulationHit * | h | ) |
|
Definition at line 42 of file SimHitHandle_ForwardHit.cxx.
44{
45 if (!h)
46 VP1Msg::message(
"SimHitHandle_ForwardHit constructor ERROR: Received null hit pointer");
47
49}
static void message(const QString &, IVP1System *sys=0)
◆ ~SimHitHandle_ForwardHit()
| SimHitHandle_ForwardHit::~SimHitHandle_ForwardHit |
( |
| ) |
|
|
virtual |
◆ actualMomentum()
| double SimHitHandle_ForwardHit::actualMomentum |
( |
| ) |
const |
|
virtual |
◆ actualPDGCodeFromSimHit()
| int SimHitHandle_ForwardHit::actualPDGCodeFromSimHit |
( |
| ) |
const |
|
virtual |
◆ cacheMomentum()
| void SimHitHandleBase::cacheMomentum |
( |
| ) |
|
|
inlineinherited |
◆ charge()
| double SimHitHandleBase::charge |
( |
| ) |
const |
|
inlineinherited |
◆ createTrackParameters()
Implements SimHitHandleBase.
Definition at line 98 of file SimHitHandle_ForwardHit.cxx.
99{
100
101
103 const Trk::StraightLineSurface * surf = new Trk::StraightLineSurface( transf );
104
105
106 if (!surf) {
107 VP1Msg::message(
"SimHitHandle_ForwardHit::createTrackParameters ERROR: could not get Trk::StraightLineSurface");
108 return nullptr;
109 }
110
113 bool ok;
115 if (!ok) {
116 VP1Msg::message(
"SimHitHandle_ForwardHit::createTrackParameters ERROR: Could not find particle charge (pdg="
117 +QString::number(
m_d->thehit->particleEncoding())+
"). Assuming charge=+1.");
119 } else {
122 }
124 } else {
126 }
128
129}
void setCharge(const double &c)
SimHitHandle_ForwardHit(const SimulationHit *)
Amg::Vector3D posStart() const
Amg::Vector3D momentumDirection() const
static void messageVerbose(const QString &)
static double particleCharge(const int &pdgcode, bool &ok)
static QString str(const QString &s)
Amg::Transform3D CLHEPTranslate3DToEigen(const HepGeom::Translate3D &CLHEPtranslate3D)
Converts a CLHEP-based HepGeom::Translate3 into an Eigen-based Amg::Transform3D.
Eigen::Affine3d Transform3D
ParametersT< TrackParametersDim, Charged, StraightLineSurface > AtaStraightLine
◆ hasCharge()
| bool SimHitHandleBase::hasCharge |
( |
| ) |
const |
|
inlineinherited |
◆ hitTime()
| double SimHitHandle_ForwardHit::hitTime |
( |
| ) |
const |
|
virtual |
◆ momentum()
| double SimHitHandleBase::momentum |
( |
| ) |
const |
|
inlineinherited |
◆ momentumDirection()
| Amg::Vector3D SimHitHandle_ForwardHit::momentumDirection |
( |
| ) |
const |
|
virtual |
Implements SimHitHandleBase.
Definition at line 58 of file SimHitHandle_ForwardHit.cxx.
59{
61}
Amg::Vector3D Hep3VectorToEigen(const CLHEP::Hep3Vector &CLHEPvector)
Converts a CLHEP-based CLHEP::Hep3Vector into an Eigen-based Amg::Vector3D.
◆ particleLink()
◆ pdg()
| int SimHitHandleBase::pdg |
( |
| ) |
const |
|
inlineinherited |
◆ posEnd()
◆ posStart()
◆ setCharge()
| void SimHitHandleBase::setCharge |
( |
const double & | c | ) |
|
|
inlineinherited |
◆ setFakeMomentum()
| void SimHitHandleBase::setFakeMomentum |
( |
const double & | m | ) |
|
|
inlineinherited |
◆ setPDG()
| void SimHitHandleBase::setPDG |
( |
int | pdg | ) |
|
|
inlineprivateinherited |
◆ simBarCode()
Definition at line 48 of file SimHitHandleBase.h.
virtual const HepMcParticleLink & particleLink() const =0
◆ type()
| QString SimHitHandle_ForwardHit::type |
( |
| ) |
const |
|
inlinevirtual |
◆ m_charge
| double SimHitHandleBase::m_charge |
|
privateinherited |
◆ m_d
| Imp* SimHitHandle_ForwardHit::m_d |
|
private |
◆ m_fakemom
| double SimHitHandleBase::m_fakemom |
|
privateinherited |
◆ m_link
◆ m_pdgId
| int SimHitHandleBase::m_pdgId |
|
privateinherited |
◆ m_trackPars
The documentation for this class was generated from the following files: