ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonAlignment
MuonAlignError
MuonAlignErrorBase
MuonAlignErrorBase
AlignmentDeviation.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONALIGNERRORBASE_ALIGNMENTDEVIATION_H
6
#define MUONALIGNERRORBASE_ALIGNMENTDEVIATION_H
7
8
#include <iosfwd>
9
#include <vector>
10
11
#include "
GeoPrimitives/GeoPrimitives.h
"
12
13
namespace
Trk
{
14
15
class
RIO_OnTrack
;
16
20
class
AlignmentDeviation
{
21
public
:
22
AlignmentDeviation
(
const
std::vector<const Trk::RIO_OnTrack*>& hits,
// not owned
23
std::size_t hitshash,
24
bool
hitshashdone);
25
26
virtual
~AlignmentDeviation
() {}
27
31
virtual
int
nPar
()
const
= 0;
32
37
virtual
double
getCovariance
(
int
ipar,
int
jpar)
const
= 0;
38
43
virtual
Amg::Transform3D
getTransform
(
const
std::vector<double>& parameters)
const
= 0;
44
48
const
std::vector<const Trk::RIO_OnTrack*>&
getListOfHits
()
const
;
49
53
std::size_t
getHashOfHits
()
const
;
54
58
void
setHashOfHits
(std::size_t hash);
59
63
bool
hasValidHashOfHits
()
const
;
64
68
virtual
void
print
(std::ostream& out)
const
= 0;
69
70
protected
:
71
std::vector<const Trk::RIO_OnTrack*>
m_hits
;
// not owned
72
std::size_t
m_hitshash
;
73
bool
m_hitshashdone
;
74
};
75
76
inline
77
AlignmentDeviation::AlignmentDeviation
(
const
std::vector<const Trk::RIO_OnTrack*>& hits,
// not owned
78
std::size_t hitshash,
79
bool
hitshashdone)
80
:
m_hits
(hits),
81
m_hitshash
(hitshash),
82
m_hitshashdone
(hitshashdone)
83
{
84
}
85
86
inline
const
std::vector<const Trk::RIO_OnTrack*>&
AlignmentDeviation::getListOfHits
()
const
{
return
m_hits
; }
87
88
inline
std::size_t
AlignmentDeviation::getHashOfHits
()
const
{
return
m_hitshash
; }
89
90
inline
void
AlignmentDeviation::setHashOfHits
(std::size_t hash) {
91
m_hitshash
= hash;
92
m_hitshashdone
=
true
;
93
}
94
95
inline
bool
AlignmentDeviation::hasValidHashOfHits
()
const
{
return
m_hitshashdone
; }
96
97
}
// namespace Trk
98
#endif
GeoPrimitives.h
Trk::AlignmentDeviation::m_hitshash
std::size_t m_hitshash
Definition
AlignmentDeviation.h:72
Trk::AlignmentDeviation::AlignmentDeviation
AlignmentDeviation(const std::vector< const Trk::RIO_OnTrack * > &hits, std::size_t hitshash, bool hitshashdone)
Definition
AlignmentDeviation.h:77
Trk::AlignmentDeviation::getCovariance
virtual double getCovariance(int ipar, int jpar) const =0
The error matrix on the free parameters.
Trk::AlignmentDeviation::m_hitshashdone
bool m_hitshashdone
Definition
AlignmentDeviation.h:73
Trk::AlignmentDeviation::m_hits
std::vector< const Trk::RIO_OnTrack * > m_hits
Definition
AlignmentDeviation.h:71
Trk::AlignmentDeviation::setHashOfHits
void setHashOfHits(std::size_t hash)
Set hash built out of associated hits - cannot be calculated in constructor because of dependencies.
Definition
AlignmentDeviation.h:90
Trk::AlignmentDeviation::print
virtual void print(std::ostream &out) const =0
Verbose.
Trk::AlignmentDeviation::hasValidHashOfHits
bool hasValidHashOfHits() const
Return if the hash created form associated hits is set.
Definition
AlignmentDeviation.h:95
Trk::AlignmentDeviation::getTransform
virtual Amg::Transform3D getTransform(const std::vector< double > ¶meters) const =0
Return a Transform in the global coordinate system, given a list of parameters.
Trk::AlignmentDeviation::getListOfHits
const std::vector< const Trk::RIO_OnTrack * > & getListOfHits() const
Return the list of hits the transform should be applied to.
Definition
AlignmentDeviation.h:86
Trk::AlignmentDeviation::nPar
virtual int nPar() const =0
The number of free parameters.
Trk::AlignmentDeviation::getHashOfHits
std::size_t getHashOfHits() const
Return hash built out of associated hits for fast comparison if deviations have same content.
Definition
AlignmentDeviation.h:88
Trk::AlignmentDeviation::~AlignmentDeviation
virtual ~AlignmentDeviation()
Definition
AlignmentDeviation.h:26
Trk::RIO_OnTrack
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Definition
RIO_OnTrack.h:70
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition
GeoPrimitives.h:46
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0