7#include "Acts/Surfaces/PerigeeSurface.hpp"
11 const std::string& name,
12 const IInterface* parent)
13 : base_class(
type,name,parent)
19 std::vector<ActsTrk::ProtoTrack> & foundProtoTracks )
const {
21 std::vector<ActsTrk::ATLASUncalibSourceLink> dummyPoints;
24 for (
size_t k = 0; k < nPix; ++k){
25 auto index = rand() % pixelContainer.size();
30 for (
size_t k = 0; k < nStrip; ++k){
31 auto index = rand() % stripContainer.size();
35 ATH_MSG_DEBUG(
"Made a proto-track with " <<dummyPoints.size()<<
" random clusters");
42 foundProtoTracks.push_back({dummyPoints,std::move(inputPerigee)});
44 return StatusCode::SUCCESS;
49 return dynamic_cast <const xAOD::PixelCluster*
>(theMeas)->globalPosition().cast<
double>();
51 return dynamic_cast<const xAOD::StripCluster*
>(theMeas)->globalPosition().cast<
double>();
53 return Amg::Vector3D::Zero();
60 using namespace Acts::UnitLiterals;
61 std::shared_ptr<const Acts::Surface> actsSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(
62 Acts::Vector3(0., 0., 0.));
63 Acts::BoundVector params;
71 globalPos.phi(), globalPos.theta(),
72 1. / (1000000000. * 1_MeV), 0.;
76 Acts::BoundSquareMatrix cov = Acts::BoundSquareMatrix::Identity();
79 return std::make_unique<Acts::BoundTrackParameters>(actsSurface, params,
80 cov, Acts::ParticleHypothesis::pion());
virtual xAOD::UncalibMeasType type() const =0
Returns the type of the measurement type as a simple enumeration.
const xAOD::UncalibratedMeasurement & getUncalibratedMeasurement(const ATLASUncalibSourceLink &source_link)
ATLASUncalibSourceLink makeATLASUncalibSourceLink(const xAOD::UncalibratedMeasurementContainer *container, std::size_t index, const EventContext &ctx)
const xAOD::UncalibratedMeasurement * ATLASUncalibSourceLink
Eigen::Matrix< double, 3, 1 > Vector3D
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
StripCluster_v1 StripCluster
Define the version of the strip cluster class.
StripClusterContainer_v1 StripClusterContainer
Define the version of the strip cluster container.
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.