EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TestHostCuts.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TestHostCuts.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 // Local include(s).
10 #include "TestHostCuts.hpp"
11 
16  float weight = 0;
17  if (bottom.radius() > 150) {
18  weight = 400;
19  }
20  if (top.radius() < 150) {
21  weight = 200;
22  }
23  return weight;
24 }
25 
27  float weight, const Acts::InternalSpacePoint<TestSpacePoint>& b,
30  return !(b.radius() > 150. && weight < 380.);
31 }
32 
34  std::pair<float, std::unique_ptr<const Acts::InternalSeed<TestSpacePoint>>>>
36  std::vector<std::pair<
37  float, std::unique_ptr<const Acts::InternalSeed<TestSpacePoint>>>>
38  seeds) const {
39  std::vector<std::pair<
40  float, std::unique_ptr<const Acts::InternalSeed<TestSpacePoint>>>>
41  newSeedsVector;
42  if (seeds.size() > 1) {
43  newSeedsVector.push_back(std::move(seeds[0]));
44  size_t itLength = std::min(seeds.size(), size_t(5));
45  // don't cut first element
46  for (size_t i = 1; i < itLength; i++) {
47  if (seeds[i].first > 200. || seeds[i].second->sp[0]->radius() > 43.) {
48  newSeedsVector.push_back(std::move(seeds[i]));
49  }
50  }
51  return newSeedsVector;
52  }
53  return seeds;
54 }