ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkTrack
src
MultiComponentStateOnSurface.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrkTrack/MultiComponentStateOnSurface.h
"
6
7
#include "GaudiKernel/MsgStream.h"
8
#include "
TrkEventPrimitives/FitQuality.h
"
9
#include "
TrkMaterialOnTrack/MaterialEffectsBase.h
"
10
#include "
TrkMeasurementBase/MeasurementBase.h
"
11
#include <iostream>
12
#include <string>
13
14
Trk::MultiComponentStateOnSurface::MultiComponentStateOnSurface
()
15
:
TrackStateOnSurface
(
16
{},
17
nullptr
,
18
nullptr
,
19
nullptr
,
20
std::bitset<TrackStateOnSurface::NumberOfTrackStateOnSurfaceTypes>(
21
1 << (
int
)
TrackStateOnSurface::Measurement
))
22
, m_multiComponentState{}
23
{
24
}
25
26
Trk::MultiComponentStateOnSurface::MultiComponentStateOnSurface
(
27
const
Trk::FitQualityOnSurface
&
fitQualityOnSurface
,
28
std::unique_ptr<Trk::MeasurementBase> measurementBase,
29
std::unique_ptr<Trk::TrackParameters>
trackParameters
,
30
MultiComponentState
&& multiComponentState,
31
std::unique_ptr<MaterialEffectsBase>
materialEffectsOnTrack
)
32
:
TrackStateOnSurface
(
33
fitQualityOnSurface
,
34
std
::move(measurementBase),
35
std
::move(
trackParameters
),
36
std
::move(
materialEffectsOnTrack
),
37
std
::bitset<
TrackStateOnSurface
::
NumberOfTrackStateOnSurfaceTypes
>(
38
1 << (int)
TrackStateOnSurface
::
Measurement
))
39
,
m_multiComponentState
(
std
::move(multiComponentState))
40
{
41
}
42
43
Trk::MultiComponentStateOnSurface::MultiComponentStateOnSurface
(
44
const
Trk::FitQualityOnSurface
&
fitQualityOnSurface
,
45
std::unique_ptr<Trk::MeasurementBase> measurementBase,
46
std::unique_ptr<Trk::TrackParameters>
trackParameters
,
47
MultiComponentState
&& multiComponentState,
48
std::unique_ptr<MaterialEffectsBase>
materialEffectsOnTrack
,
49
const
std::bitset<NumberOfTrackStateOnSurfaceTypes>&
types
)
50
:
TrackStateOnSurface
(
fitQualityOnSurface
,
51
std
::move(measurementBase),
52
std
::move(
trackParameters
),
53
std
::move(
materialEffectsOnTrack
),
54
types
)
55
,
m_multiComponentState
(
std
::move(multiComponentState))
56
{
57
}
58
59
Trk::MultiComponentStateOnSurface::MultiComponentStateOnSurface
(
60
const
Trk::MultiComponentStateOnSurface
& other)
61
:
TrackStateOnSurface
(other)
62
,
m_multiComponentState
(
63
Trk
::
MultiComponentStateHelpers
::
clone
(other.
components
()))
64
{
65
}
66
67
Trk::MultiComponentStateOnSurface
&
68
Trk::MultiComponentStateOnSurface::operator=
(
69
const
MultiComponentStateOnSurface
& other)
70
{
71
if
(
this
!= &other) {
72
TrackStateOnSurface::operator=
(other);
73
m_multiComponentState
=
74
Trk::MultiComponentStateHelpers::clone
(other.components());
75
}
76
return
*
this
;
77
}
78
79
Trk::MultiComponentStateOnSurface
*
80
Trk::MultiComponentStateOnSurface::clone
()
const
81
{
82
return
new
MultiComponentStateOnSurface
(*
this
);
83
}
84
85
MsgStream&
86
Trk::operator<<
(MsgStream& log,
const
Trk::MultiComponentStateOnSurface
&)
87
{
88
return
log;
89
}
90
91
std::ostream&
92
Trk::operator<<
(std::ostream& log,
const
Trk::MultiComponentStateOnSurface
&)
93
{
94
return
log;
95
}
FitQuality.h
MaterialEffectsBase.h
MeasurementBase.h
MultiComponentStateOnSurface.h
Trk::FitQualityOnSurface
Definition
FitQualityOnSurface.h:19
Trk::MultiComponentStateOnSurface
Definition
MultiComponentStateOnSurface.h:42
Trk::MultiComponentStateOnSurface::m_multiComponentState
MultiComponentState m_multiComponentState
Definition
MultiComponentStateOnSurface.h:100
Trk::MultiComponentStateOnSurface::clone
virtual MultiComponentStateOnSurface * clone() const override final
Clone method for deep copy of MultiComponentStateOnSurface.
Definition
MultiComponentStateOnSurface.cxx:80
Trk::MultiComponentStateOnSurface::operator=
MultiComponentStateOnSurface & operator=(const MultiComponentStateOnSurface &other)
Definition
MultiComponentStateOnSurface.cxx:68
Trk::MultiComponentStateOnSurface::MultiComponentStateOnSurface
MultiComponentStateOnSurface()
Default constructor for POOL.
Definition
MultiComponentStateOnSurface.cxx:14
Trk::MultiComponentStateOnSurface::components
const MultiComponentState & components() const
Method to return a referenceto the multi-component state const overload.
Trk::TrackStateOnSurface::types
const std::bitset< NumberOfTrackStateOnSurfaceTypes > types() const
returns a bitset with the types of this bitset.
Trk::TrackStateOnSurface::TrackStateOnSurface
TrackStateOnSurface()
Default ctor for POOL.
Trk::TrackStateOnSurface::trackParameters
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
Trk::TrackStateOnSurface::fitQualityOnSurface
const FitQualityOnSurface & fitQualityOnSurface() const
return FitQuality On Surface const overload
Trk::TrackStateOnSurface::operator=
Trk::TrackStateOnSurface & operator=(const Trk::TrackStateOnSurface &rhs)
Definition
TrackStateOnSurface.cxx:110
Trk::TrackStateOnSurface::Measurement
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Definition
TrackStateOnSurface.h:101
Trk::TrackStateOnSurface::NumberOfTrackStateOnSurfaceTypes
@ NumberOfTrackStateOnSurfaceTypes
Definition
TrackStateOnSurface.h:152
Trk::TrackStateOnSurface::materialEffectsOnTrack
const MaterialEffectsBase * materialEffectsOnTrack() const
return material effects const overload
Trk::MultiComponentStateHelpers
Definition
ComponentParameters.h:29
Trk::MultiComponentStateHelpers::clone
MultiComponentState clone(const MultiComponentState &in)
Clone TrackParameters method.
Definition
ComponentParameters.cxx:15
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::MultiComponentState
std::vector< ComponentParameters > MultiComponentState
Definition
ComponentParameters.h:27
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition
AlignModule.cxx:204
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0