#include <SimHitHandle_TRTHit.h>
Definition at line 23 of file SimHitHandle_TRTHit.h.
◆ SimHitHandle_TRTHit()
Definition at line 43 of file SimHitHandle_TRTHit.cxx.
45{
46 if (!h)
47 VP1Msg::message(
"SimHitHandle_TRTHit constructor ERROR: Received null hit pointer");
48}
static void message(const QString &, IVP1System *sys=0)
◆ ~SimHitHandle_TRTHit()
| SimHitHandle_TRTHit::~SimHitHandle_TRTHit |
( |
| ) |
|
|
virtual |
◆ actualMomentum()
| double SimHitHandle_TRTHit::actualMomentum |
( |
| ) |
const |
|
virtual |
Reimplemented from SimHitHandleBase.
Definition at line 69 of file SimHitHandle_TRTHit.cxx.
70{
71 bool ok;
73 if (!ok) {
74 VP1Msg::message(
"SimHitHandle_TRTHit constructor WARNING: Could not determine mass for pdg code "
75 +QString::number(
pdg())+
". Assuming charged pion mass.");
77 }
78 const double ekin =
m_d->thehit->GetKineticEnergy()*CLHEP::MeV;
81 if (betasq<=0.0)
82 return 0.0;
83 return sqrt(betasq)*(
mass+ekin);
84}
static double particleMass(const int &pdgcode, bool &ok)
constexpr double chargedPionMassInMeV
the mass of the charged pion (in MeV)
◆ actualPDGCodeFromSimHit()
| int SimHitHandle_TRTHit::actualPDGCodeFromSimHit |
( |
| ) |
const |
|
virtual |
◆ cacheMomentum()
| void SimHitHandleBase::cacheMomentum |
( |
| ) |
|
|
inlineinherited |
◆ charge()
| double SimHitHandleBase::charge |
( |
| ) |
const |
|
inlineinherited |
◆ createTrackParameters()
Implements SimHitHandleBase.
Definition at line 168 of file SimHitHandle_TRTHit.cxx.
169{
170 if (!
m_d->ensureDetElemInit())
171 return nullptr;
172 const Trk::StraightLineSurface * surf
173 =
dynamic_cast<const Trk::StraightLineSurface *
>( &(
m_d->detelem->strawSurface(
m_d->strawID)));
174 if (!surf) {
175 VP1Msg::message(
"SimHitHandle_TRTHit::createTrackParameters ERROR: could not get Trk::StraightLineSurface");
176 return nullptr;
177 }
178
181 bool ok;
183 if (!ok) {
184 VP1Msg::message(
"SimHitHandle_TRTHit::createTrackParameters ERROR: Could not find particle charge (pdg="
185 +QString::number(
m_d->thehit->GetParticleEncoding())+
"). Assuming charge=+1.");
187 } else {
190 }
192 } else {
194 }
196
197}
void setCharge(const double &c)
SimHitHandle_TRTHit(const TRTUncompressedHit *)
Amg::Vector3D posStart() const
Amg::Vector3D momentumDirection() const
Amg::Vector3D posEnd() const
static void messageVerbose(const QString &)
static double particleCharge(const int &pdgcode, bool &ok)
static QString str(const QString &s)
ParametersT< TrackParametersDim, Charged, StraightLineSurface > AtaStraightLine
◆ hasCharge()
| bool SimHitHandleBase::hasCharge |
( |
| ) |
const |
|
inlineinherited |
◆ hitTime()
| double SimHitHandle_TRTHit::hitTime |
( |
| ) |
const |
|
virtual |
◆ momentum()
| double SimHitHandleBase::momentum |
( |
| ) |
const |
|
inlineinherited |
◆ momentumDirection()
Implements SimHitHandleBase.
Definition at line 59 of file SimHitHandle_TRTHit.cxx.
60{
64
66}
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
Eigen::Matrix< double, 3, 1 > Vector3D
@ u
Enums for curvilinear frames.
◆ particleLink()
◆ pdg()
| int SimHitHandleBase::pdg |
( |
| ) |
const |
|
inlineinherited |
◆ posEnd()
Implements SimHitHandleBase.
Definition at line 142 of file SimHitHandle_TRTHit.cxx.
143{
144 if (!
m_d->ensureDetElemInit())
147}
Amg::Transform3D CLHEPTransformToEigen(const HepGeom::Transform3D &CLHEPtransf)
Converts a CLHEP-based HepGeom::Transform3D into an Eigen Amg::Transform3D.
◆ 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_TRTHit::type |
( |
| ) |
const |
|
inlinevirtual |
◆ m_charge
| double SimHitHandleBase::m_charge |
|
privateinherited |
◆ m_d
| Imp* SimHitHandle_TRTHit::m_d |
|
private |
◆ m_fakemom
| double SimHitHandleBase::m_fakemom |
|
privateinherited |
◆ m_pdgId
| int SimHitHandleBase::m_pdgId |
|
privateinherited |
◆ m_trackPars
The documentation for this class was generated from the following files: