Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
include
scripts
src
AmbiguityResolution
Definitions
Detector
Digitization
EventData
Geometry
MagneticField
Material
Propagator
Surfaces
detail
AnnulusBounds.cpp
ConeBounds.cpp
ConeSurface.cpp
ConvexPolygonBounds.cpp
CylinderBounds.cpp
CylinderSurface.cpp
DiamondBounds.cpp
DiscSurface.cpp
DiscTrapezoidBounds.cpp
EllipseBounds.cpp
IntersectionHelper2D.cpp
LineBounds.cpp
LineSurface.cpp
PerigeeSurface.cpp
PlaneSurface.cpp
RadialBounds.cpp
RectangleBounds.cpp
StrawSurface.cpp
Surface.cpp
SurfaceArray.cpp
SurfaceError.cpp
TrapezoidBounds.cpp
VerticesHelper.cpp
TrackFinding
TrackFitting
Utilities
Vertexing
Visualization
ActsVersion.cpp
docs
Examples
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
RectangleBounds.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RectangleBounds.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/RectangleBounds.hpp
"
10
11
#include <iomanip>
12
#include <iostream>
13
14
bool
Acts::RectangleBounds::inside
(
const
Acts::Vector2
& lposition,
15
const
Acts::BoundaryCheck
& bcheck)
const
{
16
return
bcheck.
isInside
(lposition,
m_min
,
m_max
);
17
}
18
19
std::vector<Acts::Vector2>
Acts::RectangleBounds::vertices
(
20
unsigned
int
/*lseg*/
)
const
{
21
// counter-clockwise starting from bottom-left corner
22
return
{m_min, {m_max.x(), m_min.y()}, m_max, {m_min.x(), m_max.y()}};
23
}
24
25
const
Acts::RectangleBounds
&
Acts::RectangleBounds::boundingBox
()
const
{
26
return
(*
this
);
27
}
28
29
// ostream operator overload
30
std::ostream&
Acts::RectangleBounds::toStream
(std::ostream& sl)
const
{
31
sl << std::setiosflags(std::ios::fixed);
32
sl << std::setprecision(7);
33
sl <<
"Acts::RectangleBounds: (hlX, hlY) = "
34
<<
"("
<< 0.5 * (
get
(eMaxX) -
get
(eMinX)) <<
", "
35
<< 0.5 * (
get
(eMaxY) -
get
(eMinY)) <<
")"
;
36
sl <<
"\n(lower left, upper right):\n"
;
37
sl <<
min
().transpose() <<
"\n"
<< max().transpose();
38
sl << std::setprecision(-1);
39
return
sl;
40
}
acts
blob
sPHENIX
Core
src
Surfaces
RectangleBounds.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:36
using
1.8.2 with
sPHENIX GitHub integration