#include <TruthToTrack.h>
Definition at line 27 of file TruthToTrack.h.
◆ StoreGateSvc_t
◆ TruthToTrack()
| Trk::TruthToTrack::TruthToTrack |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
Definition at line 23 of file TruthToTrack.cxx.
26{
27 declareInterface<ITruthToTrack>(this);
29}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< Trk::IExtrapolator > m_extrapolator
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ initialize()
| StatusCode Trk::TruthToTrack::initialize |
( |
| ) |
|
|
virtual |
Definition at line 32 of file TruthToTrack.cxx.
32 {
34 return StatusCode::SUCCESS;
35}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
| const InterfaceID & Trk::ITruthToTrack::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 40 of file ITruthToTrack.h.
40 {
41 static const InterfaceID IID_ITruthToTrack("Trk::ITruthToTrack",1,0);
42 return IID_ITruthToTrack;
43 }
◆ makePerigeeParameters() [1/2]
Implements Trk::ITruthToTrack.
Definition at line 125 of file TruthToTrack.cxx.
125 {
127
129
131 if(productionVertexTrackParams) {
132
133
134
136 Gaudi::Hive::currentContext(),
137 *productionVertexTrackParams,
138 Trk::PerigeeSurface(),
140 false,
142 }
143 }
144
145 return generatedTrackPerigee;
146}
virtual const Trk::TrackParameters * makeProdVertexParameters(HepMC::ConstGenParticlePtr part) const
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the p...
ParametersBase< TrackParametersDim, Charged > TrackParameters
◆ makePerigeeParameters() [2/2]
This function extrapolates track to the perigee, and returns perigee parameters.
The return value points to an object allocated with the operator new. The caller is responsible for deletion of the object.
Implements Trk::ITruthToTrack.
Definition at line 99 of file TruthToTrack.cxx.
99 {
101
103
105 if(productionVertexTrackParams) {
106
107
108
110 Gaudi::Hive::currentContext(),
111 *productionVertexTrackParams,
112 Trk::PerigeeSurface(),
114 false,
116 }
117 }
118
119 return generatedTrackPerigee;
120}
◆ makeProdVertexParameters() [1/2]
Implements Trk::ITruthToTrack.
Definition at line 70 of file TruthToTrack.cxx.
70 {
72
73 if(part &&
part->hasProdVtx()) {
76
79
80 const int id =
part->pdg_id();
81 if (id) {
85 const Trk::PlaneSurface surface(tmpTransf);
87 }
88 else {
90 }
91 }
92
94}
#define ATH_MSG_WARNING(x)
double charge(const T &p)
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
Eigen::Translation< double, 3 > Translation3D
double charge(const T &p)
ParametersT< TrackParametersDim, Charged, PlaneSurface > AtaPlane
◆ makeProdVertexParameters() [2/2]
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the production vertex.
The object is allocated using operator new and returned by pointer. The caller is responsible for deletion of the object. (Wrapping it into a smart pointer may be the most convenient way to make sure the memory is freed.)
Implements Trk::ITruthToTrack.
Definition at line 40 of file TruthToTrack.cxx.
40 {
42
43 if(part &&
part->production_vertex()) {
44 HepMC::FourVector tv =
part->production_vertex()->position();
47
48 const HepMC::FourVector& fv =
part->momentum();
51
52 const int id =
part->pdg_id();
53 if (id) {
57 const Trk::PlaneSurface surface(tmpTransf);
59 }
60 else {
62 }
63 }
64
66}
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_evtStore
◆ m_extrapolator
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: