ATLAS Offline Software
Loading...
Searching...
No Matches
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
16alignas(16)
17const Amg::Vector3D Trk::LineSaggingDescriptor::s_gravityDirection = -1 * Amg::Vector3D::UnitY();
18
19// a reference direction
20alignas(16)
21const 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
36MsgStream& 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
48std::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}
static const Amg::Vector3D s_gravityDirection
static const double s_elecStatFactor
direction of gravity
MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
static const Amg::Vector3D s_referenceDirection
double m_wireLength
< the wire end positions
LineSaggingDescriptor()
Default Constructor.
Eigen::Matrix< double, 3, 1 > Vector3D