|
ATLAS Offline Software
|
Go to the documentation of this file.
10 const std::string&
name,
91 return StatusCode::SUCCESS;
96 const Acts::SpacePointContainer<ActsTrk::SpacePointCollector, Acts::detail::RefHolder>& spContainer,
97 const Acts::Vector3& beamSpotPos,
98 const Acts::Vector3& bField,
102 Acts::SeedFinderOptions finderOpts;
103 finderOpts.beamPos = Acts::Vector2(beamSpotPos[
Amg::x],
105 finderOpts.bFieldInZ = bField[2];
106 finderOpts = finderOpts.toInternalUnits().calculateDerivedQuantities(
m_finderCfg);
109 auto groupSeeds =
m_finder.createSeeds(finderOpts, spContainer);
112 seedContainer.
reserve(groupSeeds.size());
113 for(
const auto& seed: groupSeeds) {
114 const auto [bottom, middle,
top] = seed.sp();
116 std::unique_ptr< ActsTrk::Seed >
toAdd =
117 std::make_unique< ActsTrk::Seed >(bottom->externalSpacePoint(),
118 middle->externalSpacePoint(),
119 top->externalSpacePoint());
120 toAdd->setVertexZ(seed.z());
121 toAdd->setQuality(seed.seedQuality());
125 return StatusCode::SUCCESS;
132 Acts::SeedFilterConfig filterCfg;
164 m_finderCfg.seedFilter = std::make_shared<Acts::SeedFilter<value_type>>(filterCfg.toInternalUnits(),
logger().cloneWithSuffix(
"Filter"));
188 m_finderCfg.centralSeedConfirmationRange = filterCfg.centralSeedConfirmationRange;
189 m_finderCfg.forwardSeedConfirmationRange = filterCfg.forwardSeedConfirmationRange;
195 std::vector<float> convertedVec;
197 for (
const auto&
val :
vec) {
198 convertedVec.push_back(
static_cast<float>(
val));
201 m_finderCfg.rRangeMiddleSP.push_back(convertedVec);
206 [](
const void*,
float bottomRadius,
float cotTheta) ->
bool {
208 float fastTrackingRMin = 50.;
209 float fastTrackingCotThetaMax = 1.5;
211 if (bottomRadius < fastTrackingRMin and
212 (
cotTheta > fastTrackingCotThetaMax or
213 cotTheta < -fastTrackingCotThetaMax)) {
224 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
std::vector< size_t > vec
std::unique_ptr< const Acts::Logger > makeActsAthenaLogger(IMessageSvc *svc, const std::string &name, int level, std::optional< std::string > parent_name)
::StatusCode StatusCode
StatusCode definition for legacy code.
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...