EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
CI
Core
docs
Examples
Fatras
Plugins
Cuda
DD4hep
Digitization
include
Acts
Plugins
Digitization
detail
Clusterization.ipp
DoubleHitSpacePointBuilder.ipp
SingleHitSpacePointBuilder.ipp
CartesianSegmentation.hpp
Clusterization.hpp
DigitizationCell.hpp
DigitizationModule.hpp
DoubleHitSpacePointBuilder.hpp
PlanarModuleCluster.hpp
PlanarModuleStepper.hpp
Segmentation.hpp
SingleHitSpacePointBuilder.hpp
SpacePointBuilder.hpp
src
Identification
Json
Legacy
Sycl
TGeo
Tests
thirdparty
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SingleHitSpacePointBuilder.ipp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SingleHitSpacePointBuilder.ipp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2018-2019 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
template
<
typename
Cluster>
10
Acts::Vector2D
Acts::SpacePointBuilder<Acts::SpacePoint<Cluster>
>::localCoords(
11
const
Cluster& cluster)
const
{
12
// Local position information
13
auto
par = cluster.parameters();
14
Acts::Vector2D
local(par[
Acts::BoundIndices::eBoundLoc0
],
15
par[
Acts::BoundIndices::eBoundLoc1
]);
16
return
local;
17
}
18
19
template
<
typename
Cluster>
20
Acts::Vector3D
Acts::SpacePointBuilder<Acts::SpacePoint<Cluster>
>::globalCoords(
21
const
GeometryContext
&
gctx
,
const
Cluster& cluster)
const
{
22
// Receive corresponding surface
23
auto
& clusterSurface = cluster.referenceObject();
24
25
// Transform local into global position information
26
Acts::Vector3D
mom
(1., 1., 1.);
27
return
clusterSurface.localToGlobal(gctx, localCoords(cluster),
mom
);
28
}
29
30
template
<
typename
Cluster>
31
void
Acts::SpacePointBuilder<Acts::SpacePoint<Cluster>
>::calculateSpacePoints(
32
const
GeometryContext
& gctx,
const
std::vector<const Cluster*>& clusters,
33
std::vector
<
Acts::SpacePoint<Cluster>
>& spacePointStorage)
const
{
34
// Set the space point for all stored hits
35
for
(
const
auto
&
c
: clusters) {
36
Acts::SpacePoint<Cluster>
spacePoint;
37
spacePoint.
vector
= globalCoords(gctx, *
c
);
38
spacePoint.
clusterModule
.push_back(
c
);
39
spacePointStorage.push_back(std::move(spacePoint));
40
}
41
}
acts
blob
sPHENIX
Plugins
Digitization
include
Acts
Plugins
Digitization
detail
SingleHitSpacePointBuilder.ipp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:26
using
1.8.2 with
EIC GitHub integration