ATLAS Offline Software
Loading...
Searching...
No Matches
CollimatorSet.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
8#include "ForwardTracker/STLHelpers.h" // for absZGreater
9#include <algorithm>
10
11namespace ForwardTracker {
12
14 Collimator::Container_t collimators;
15 const CollimatorData& collData(cData);
16 for (int i =0; i<collData.coll_n; ++i) {
18 collData.coll_a[side][i],
19 side));
20 collimators.push_back(std::move(col));
21 }
22 std::sort(collimators.begin(), collimators.end(), absZGreater<Collimator::ConstPtr_t>);
23 return collimators;
24 }
25}
std::shared_ptr< const Collimator > ConstPtr_t
bool absZGreater(const PtrType rhs, const PtrType lhs)
Collimator::Container_t CollimatorSet(const ConfigData &, const Side &side)
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.