|
ATLAS Offline Software
|
Go to the documentation of this file.
10 const std::string&
name,
88 return StatusCode::SUCCESS;
93 const std::vector<const xAOD::SpacePoint*>& spContainer,
94 const Acts::Vector3& beamSpotPos,
95 const Acts::Vector3& bField,
99 Acts::SeedFinderOptions finderOpts;
100 finderOpts.beamPos = Acts::Vector2(beamSpotPos[
Amg::x],
102 finderOpts.bFieldInZ = bField[2];
103 finderOpts = finderOpts.toInternalUnits().calculateDerivedQuantities(
m_finderCfg);
105 std::function<std::tuple<Acts::Vector3, Acts::Vector2, std::optional<Acts::ActsScalar>>(
const xAOD::SpacePoint *sp)>
107 Acts::Vector3 position(sp->
x(), sp->
y(), sp->
z());
109 return std::make_tuple(position, variance, std::nullopt);
113 auto groupSeeds =
m_finder.createSeeds(finderOpts, spContainer,
117 seedContainer.
reserve(groupSeeds.size());
118 for(
const auto& seed: groupSeeds) {
119 std::unique_ptr<seed_type> to_add = std::make_unique<seed_type>(seed);
120 seedContainer.
push_back(std::move(to_add));
123 return StatusCode::SUCCESS;
130 Acts::SeedFilterConfig filterCfg;
162 m_finderCfg.seedFilter = std::make_shared<Acts::SeedFilter<value_type>>(filterCfg.toInternalUnits());
186 m_finderCfg.centralSeedConfirmationRange = filterCfg.centralSeedConfirmationRange;
187 m_finderCfg.forwardSeedConfirmationRange = filterCfg.forwardSeedConfirmationRange;
193 std::vector<float> convertedVec;
195 for (
const auto&
val :
vec) {
196 convertedVec.push_back(
static_cast<float>(
val));
199 m_finderCfg.rRangeMiddleSP.push_back(convertedVec);
204 [](
const void*,
float bottomRadius,
float cotTheta) ->
bool {
206 float fastTrackingRMin = 50.;
207 float fastTrackingCotThetaMax = 1.5;
209 if (bottomRadius < fastTrackingRMin and
210 (
cotTheta > fastTrackingCotThetaMax or
211 cotTheta < -fastTrackingCotThetaMax)) {
222 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
std::vector< size_t > vec
::StatusCode StatusCode
StatusCode definition for legacy code.
float varianceR() const
Returns the variances.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...