Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
acts-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
acts
acts-core
Commits
af8ed334
Commit
af8ed334
authored
5 years ago
by
Xiaocong Ai
Committed by
Xiaocong Ai
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add the TrackStateTypeFlag for TrackState
parent
671122ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!706
Kf with nested material interaction
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Core/include/Acts/EventData/TrackState.hpp
+36
-2
36 additions, 2 deletions
Core/include/Acts/EventData/TrackState.hpp
with
36 additions
and
2 deletions
Core/include/Acts/EventData/TrackState.hpp
+
36
−
2
View file @
af8ed334
...
...
@@ -17,6 +17,18 @@
namespace
Acts
{
/// @enum TrackStateFlag
///
/// This enum describes the type of TrackState
enum
TrackStateFlag
{
MeasurementFlag
=
0
,
ParameterFlag
=
1
,
OutlierFlag
=
2
,
HoleFlag
=
3
,
MaterialFlag
=
4
,
NumTrackStateFlags
=
5
};
class
Surface
;
/// @class TrackState
...
...
@@ -44,6 +56,7 @@ class TrackState {
/// @param m The measurement object
TrackState
(
SourceLink
m
)
:
m_surface
(
&
m
.
referenceSurface
())
{
measurement
.
uncalibrated
=
std
::
move
(
m
);
m_typeFlags
.
set
(
MeasurementFlag
);
}
/// Constructor from parameters
...
...
@@ -53,6 +66,7 @@ class TrackState {
TrackState
(
parameters_t
p
)
{
m_surface
=
&
p
.
referenceSurface
();
parameter
.
predicted
=
std
::
move
(
p
);
m_typeFlags
.
set
(
ParameterFlag
);
}
/// Virtual destructor
...
...
@@ -64,7 +78,8 @@ class TrackState {
TrackState
(
const
TrackState
&
rhs
)
:
parameter
(
rhs
.
parameter
),
measurement
(
rhs
.
measurement
),
m_surface
(
rhs
.
m_surface
)
{}
m_surface
(
rhs
.
m_surface
),
m_typeFlags
(
rhs
.
m_typeFlags
)
{}
/// Copy move constructor
///
...
...
@@ -72,7 +87,8 @@ class TrackState {
TrackState
(
TrackState
&&
rhs
)
:
parameter
(
std
::
move
(
rhs
.
parameter
)),
measurement
(
std
::
move
(
rhs
.
measurement
)),
m_surface
(
std
::
move
(
rhs
.
m_surface
))
{}
m_surface
(
std
::
move
(
rhs
.
m_surface
)),
m_typeFlags
(
std
::
move
(
rhs
.
m_typeFlags
))
{}
/// Assignment operator
///
...
...
@@ -81,6 +97,7 @@ class TrackState {
parameter
=
rhs
.
parameter
;
measurement
=
rhs
.
measurement
;
m_surface
=
rhs
.
m_surface
;
m_typeFlags
=
rhs
.
m_typeFlags
;
return
(
*
this
);
}
...
...
@@ -91,12 +108,27 @@ class TrackState {
parameter
=
std
::
move
(
rhs
.
parameter
);
measurement
=
std
::
move
(
rhs
.
measurement
);
m_surface
=
std
::
move
(
rhs
.
m_surface
);
m_typeFlags
=
std
::
move
(
rhs
.
m_typeFlags
);
return
(
*
this
);
}
/// @brief return method for the surface
const
Surface
&
referenceSurface
()
const
{
return
(
*
m_surface
);
}
/// @brief set the type flag
void
setType
(
const
TrackStateFlag
&
flag
,
bool
status
=
true
)
{
m_typeFlags
.
set
(
flag
,
status
);
}
/// @brief test if the tracks state is flagged as a given type
bool
isType
(
const
TrackStateFlag
&
flag
)
const
{
assert
(
flag
<
NumTrackStateFlags
);
return
m_typeFlags
.
test
(
flag
);
}
/// @brief return method for the type flags
std
::
bitset
<
NumTrackStateFlags
>
type
()
const
{
return
m_typeFlags
;
}
/// @brief number of Measured parameters, forwarded
/// @note This only returns a value if there is a calibrated measurement
/// set. If not, this returns boost::none
...
...
@@ -141,5 +173,7 @@ class TrackState {
private
:
/// The surface of this TrackState
const
Surface
*
m_surface
=
nullptr
;
/// The type flag of this TrackState
std
::
bitset
<
NumTrackStateFlags
>
m_typeFlags
;
};
}
// namespace Acts
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment