ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkDetDescr
TrkDistortedSurfaces
src
LineSaggingDescriptor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// LineSaggingDescriptor.h, (c) ATLAS Detector software
8
9
// Trk
10
#include "
TrkDistortedSurfaces/LineSaggingDescriptor.h
"
11
#include "
TrkEventPrimitives/ParamDefs.h
"
12
#include <iomanip>
13
#include <ostream>
14
15
// static gravity direction
16
alignas
(16)
17
const
Amg::Vector3D
Trk::LineSaggingDescriptor::s_gravityDirection
= -1 * Amg::Vector3D::UnitY();
18
19
// a reference direction
20
alignas
(16)
21
const
Amg::Vector3D
Trk::LineSaggingDescriptor::s_referenceDirection
(1./sqrt(3.),1./sqrt(3.),1./sqrt(3.));
22
23
// and a electro static scale factor
24
const
double
Trk::LineSaggingDescriptor::s_elecStatFactor
(1.);
25
26
Trk::LineSaggingDescriptor::LineSaggingDescriptor
(
double
wireLength,
27
double
wireTension,
28
double
linearDensity) :
29
m_wireLength
(wireLength),
30
m_wireTension
(wireTension),
31
m_linearDensity
(linearDensity)
32
{
33
34
}
35
36
MsgStream&
Trk::LineSaggingDescriptor::dump
( MsgStream& sl )
const
37
{
38
sl << std::setiosflags(std::ios::fixed);
39
sl << std::setprecision(7);
40
sl <<
"Trk::LineSaggingDescriptor"
;
41
sl <<
'\t'
<<
"- wire length :"
<<
m_wireLength
<< std::endl;
42
sl <<
'\t'
<<
"- wire tension :"
<<
m_wireTension
<< std::endl;
43
sl <<
'\t'
<<
"- linear density :"
<<
m_linearDensity
<< std::endl;
44
sl << std::setprecision(-1);
45
return
sl;
46
}
47
48
std::ostream&
Trk::LineSaggingDescriptor::dump
( std::ostream& sl )
const
49
{
50
sl << std::setiosflags(std::ios::fixed);
51
sl << std::setprecision(7);
52
sl <<
"Trk::LineSaggingDescriptor:"
;
53
sl <<
'\t'
<<
"- wire length :"
<<
m_wireLength
<< std::endl;
54
sl <<
'\t'
<<
"- wire tension :"
<<
m_wireTension
<< std::endl;
55
sl <<
'\t'
<<
"- linear density :"
<<
m_linearDensity
<< std::endl;
56
sl << std::setprecision(-1);
57
return
sl;
58
}
LineSaggingDescriptor.h
ParamDefs.h
Trk::LineSaggingDescriptor::s_gravityDirection
static const Amg::Vector3D s_gravityDirection
Definition
LineSaggingDescriptor.h:59
Trk::LineSaggingDescriptor::m_linearDensity
double m_linearDensity
Definition
LineSaggingDescriptor.h:55
Trk::LineSaggingDescriptor::s_elecStatFactor
static const double s_elecStatFactor
direction of gravity
Definition
LineSaggingDescriptor.h:58
Trk::LineSaggingDescriptor::dump
MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition
LineSaggingDescriptor.cxx:36
Trk::LineSaggingDescriptor::s_referenceDirection
static const Amg::Vector3D s_referenceDirection
Definition
LineSaggingDescriptor.h:60
Trk::LineSaggingDescriptor::m_wireTension
double m_wireTension
Definition
LineSaggingDescriptor.h:54
Trk::LineSaggingDescriptor::m_wireLength
double m_wireLength
< the wire end positions
Definition
LineSaggingDescriptor.h:53
Trk::LineSaggingDescriptor::LineSaggingDescriptor
LineSaggingDescriptor()
Default Constructor.
Definition
LineSaggingDescriptor.h:35
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition
GeoPrimitives.h:48
Generated on
for ATLAS Offline Software by
1.17.0