#include <RandomProtoTrackCreatorTool.h>
◆ RandomProtoTrackCreatorTool()
| ActsTrk::RandomProtoTrackCreatorTool::RandomProtoTrackCreatorTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~RandomProtoTrackCreatorTool()
| virtual ActsTrk::RandomProtoTrackCreatorTool::~RandomProtoTrackCreatorTool |
( |
| ) |
|
|
virtualdefault |
◆ findProtoTracks()
EF-style pattern recognition to create prototracks.
- Parameters
-
| ctx | Event context |
| pixelContainer | pixel cluster |
| stripContainer | sct cluster |
| foundProtoTracks | vector to hold the found proto tracks - will be populated by the method. Method will not discard existing content |
Definition at line 16 of file RandomProtoTrackCreatorTool.cxx.
19 {
20
23 std::vector<const xAOD::UncalibratedMeasurement*> dummyPoints;
24 size_t nPix = 1;
26 for (
size_t k = 0;
k < nPix; ++
k){
29 }
30
31
35 }
36
37 ATH_MSG_DEBUG(
"Made a proto-track with " <<dummyPoints.size()<<
" random clusters");
38
39
40
42
43
44 foundProtoTracks.push_back({dummyPoints,std::move(inputPerigee)});
45
46 return StatusCode::SUCCESS;
47}
#define ATH_MSG_VERBOSE(x)
@ nStrip
Get number of strips.
◆ getMeasurementPos()
get the global position for an uncalibrated measurement - delegates to the specialisation
- Parameters
-
| theMeas | uncalibrated measurement |
Definition at line 49 of file RandomProtoTrackCreatorTool.cxx.
49 {
51 return dynamic_cast <const xAOD::PixelCluster*
>(theMeas)->globalPosition().cast<
double>();
53 return dynamic_cast<const xAOD::StripCluster*
>(theMeas)->globalPosition().cast<
double>();
54 }
55 return Amg::Vector3D::Zero();
56}
virtual xAOD::UncalibMeasType type() const =0
Returns the type of the measurement type as a simple enumeration.
StripCluster_v1 StripCluster
Define the version of the strip cluster class.
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.
◆ makeDummyParams()
creates a random, dummy set of parameters Warning: This is not a real parameter estimate.
Should only serve as a placeholder. Use with care
- Parameters
-
| firstPRD | First hit on our proto track |
- Returns
- a set of dummy params - just pointing from the origin in a straight line to our hit
Definition at line 59 of file RandomProtoTrackCreatorTool.cxx.
59 {
60
61 using namespace Acts::UnitLiterals;
62 std::shared_ptr<const Acts::Surface> actsSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(
63 Acts::Vector3::Zero());
65
67
68
69
70
72 globalPos.phi(), globalPos.theta(),
73 1. / (1000000000. * 1_MeV), 0.;
74
75
76
77 Acts::BoundMatrix
cov = Acts::BoundMatrix::Identity();
79
80 return std::make_unique<Acts::BoundTrackParameters>(actsSurface, params,
81 cov, Acts::ParticleHypothesis::pion());
82
83}
The documentation for this class was generated from the following files: