ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
include
src
EventData
Geometry
MagneticField
Material
Propagator
Surfaces
AnnulusBounds.cpp
ConeBounds.cpp
ConeSurface.cpp
CylinderBounds.cpp
CylinderSurface.cpp
DiamondBounds.cpp
DiscSurface.cpp
DiscTrapezoidBounds.cpp
EllipseBounds.cpp
LineBounds.cpp
LineSurface.cpp
PerigeeSurface.cpp
PlaneSurface.cpp
RadialBounds.cpp
RectangleBounds.cpp
StrawSurface.cpp
Surface.cpp
SurfaceArray.cpp
TrapezoidBounds.cpp
Utilities
Vertexing
Visualization
doc
Examples
Fatras
Plugins
Tests
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
LineBounds.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file LineBounds.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-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
#include "
Acts/Surfaces/LineBounds.hpp
"
10
11
#include <iomanip>
12
#include <iostream>
13
14
Acts::SurfaceBounds::BoundsType
Acts::LineBounds::type
()
const
{
15
return
SurfaceBounds::eLine
;
16
}
17
18
bool
Acts::LineBounds::inside
(
const
Acts::Vector2D
& lposition,
19
const
Acts::BoundaryCheck
& bcheck)
const
{
20
double
r
=
get
(
LineBounds::eR
);
21
double
halfLengthZ =
get
(
LineBounds::eHalfLengthZ
);
22
return
bcheck.
isInside
(lposition,
Vector2D
(-r, -halfLengthZ),
23
Vector2D
(r, halfLengthZ));
24
}
25
26
double
Acts::LineBounds::distanceToBoundary
(
27
const
Acts::Vector2D
& lposition)
const
{
28
// per definition the min Distance of a correct local position is r
29
return
lposition[
Acts::eLOC_R
];
30
}
31
32
// ostream operator overload
33
std::ostream&
Acts::LineBounds::toStream
(std::ostream& sl)
const
{
34
sl << std::setiosflags(std::ios::fixed);
35
sl << std::setprecision(7);
36
sl <<
"Acts::LineBounds: (radius, halflengthInZ) = "
;
37
sl <<
"("
<<
get
(
LineBounds::eR
) <<
", "
<<
get
(
LineBounds::eHalfLengthZ
)
38
<<
")"
;
39
sl << std::setprecision(-1);
40
return
sl;
41
}
acts
blob
master
Core
src
Surfaces
LineBounds.cpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration