ATLAS Offline Software
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
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
25 
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_elecStatFactor
static const double s_elecStatFactor
direction of gravity
Definition: LineSaggingDescriptor.h:58
Trk::LineSaggingDescriptor::s_gravityDirection
static const Amg::Vector3D s_gravityDirection
Definition: LineSaggingDescriptor.h:59
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::LineSaggingDescriptor::LineSaggingDescriptor
LineSaggingDescriptor()
Default Constructor.
Definition: LineSaggingDescriptor.h:35
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