◆ Imp()
Definition at line 30 of file TrackHandle_SimulationTrack.cxx.
std::vector< AscObj_TruthPoint * > * ascObjs
TrackHandle_SimulationTrack * theclass
const Trk::Track * trkTrack
◆ addPars()
Definition at line 56 of file TrackHandle_SimulationTrack.cxx.
57 {
58 if (!pars)
59 return;
60 Trk::TrackStateOnSurface * tsos =
createTSOS(pars);
61 if (tsos)
63 }
static Trk::TrackStateOnSurface * createTSOS(Trk::TrackParameters *pars)
◆ createTrack()
| void TrackHandle_SimulationTrack::Imp::createTrack |
( |
Trk::TrackStates * | trackStateOnSurfaces | ) |
|
|
inline |
Definition at line 65 of file TrackHandle_SimulationTrack.cxx.
66 {
67 if (!trackStateOnSurfaces) {
68 VP1Msg::messageDebug(
"TrackHandle_SimulationTrack WARNING: Could not create track due to null TSOS vector");
69 return;
70 }
71 if (trackStateOnSurfaces->
empty()) {
72 VP1Msg::messageDebug(
"TrackHandle_SimulationTrack WARNING: Could not create track due to empty TSOS vector");
73 delete trackStateOnSurfaces;
74 return;
75 }
78 delete trackStateOnSurfaces;
79 return;
80 }
81
83 theclass->extrapolationParticleHypothesis());
84
85 std::unique_ptr<Trk::TrackStates> sink(trackStateOnSurfaces);
87 ti,
88 std::move(sink),
89 nullptr );
90
91
92
93
94
95
96 }
bool empty() const noexcept
Returns true if the collection is empty.
@ Unknown
Track fitter not defined.
static void messageDebug(const QString &)
◆ createTSOS()
Definition at line 48 of file TrackHandle_SimulationTrack.cxx.
49 {
50 return pars ?
new Trk::TrackStateOnSurface(
51 nullptr,
52 std::unique_ptr<Trk::TrackParameters>(pars),
53 nullptr)
54 : nullptr;
55 }
◆ ensureInitAscObjs()
| void TrackHandle_SimulationTrack::Imp::ensureInitAscObjs |
( |
| ) |
|
◆ ensureInitTrkTracks()
| void TrackHandle_SimulationTrack::Imp::ensureInitTrkTracks |
( |
| ) |
|
Definition at line 128 of file TrackHandle_SimulationTrack.cxx.
129{
131 return;
132
134 VP1Msg::message(
"TrackHandle_SimulationTrack ERROR: Could not determine particle charge (pdg="
135 +QString::number(
theclass->pdgCode())+
").");
136 return;
137 }
138
139
141
142
144 for ( it =
simHitList.begin(); it != itE; ++it ) {
145
146
147 addPars(trackStateOnSurfaces,
it->second->createTrackParameters());
148 }
149
150
152}
void createTrack(Trk::TrackStates *trackStateOnSurfaces)
static void addPars(Trk::TrackStates *dv, Trk::TrackParameters *pars)
static void message(const QString &, IVP1System *sys=0)
DataVector< const Trk::TrackStateOnSurface > TrackStates
◆ ascObjs
◆ ascObjVis
| bool TrackHandle_SimulationTrack::Imp::ascObjVis |
◆ simBarCode
| SimBarCode TrackHandle_SimulationTrack::Imp::simBarCode |
◆ simHitList
| SimHitList TrackHandle_SimulationTrack::Imp::simHitList |
◆ theclass
◆ trkTrack
| const Trk::Track* TrackHandle_SimulationTrack::Imp::trkTrack |
The documentation for this class was generated from the following file: