Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DeviceExperimentCuts.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DeviceExperimentCuts.hpp
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
#pragma once
10
11
// SYCL plugin include(s)
12
#include "
Acts/Plugins/Sycl/Seeding/detail/Types.hpp
"
13
14
namespace
Acts::Sycl {
20
class
DeviceExperimentCuts
{
21
public
:
27
float
seedWeight
(
const
detail::DeviceSpacePoint
& bottom,
28
const
detail::DeviceSpacePoint
& middle,
29
const
detail::DeviceSpacePoint
& top)
const
{
30
(void)middle;
31
float
weight = 0;
32
if
(bottom.
r
> 150.f) {
33
weight = 400.f;
34
}
35
if
(top.
r
< 150.f) {
36
weight = 200.f;
37
}
38
return
weight;
39
};
46
bool
singleSeedCut
(
float
weight,
const
detail::DeviceSpacePoint
& bottom,
47
const
detail::DeviceSpacePoint
& middle,
48
const
detail::DeviceSpacePoint
& top)
const
{
49
(void)middle;
50
(void)top;
51
return
!(bottom.
r
> 150.f && weight < 380.f);
52
};
53
};
54
}
// namespace Acts::Sycl
acts
blob
sPHENIX
Plugins
Sycl
include
Acts
Plugins
Sycl
Seeding
DeviceExperimentCuts.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:42
using
1.8.2 with
sPHENIX GitHub integration