ATLAS Offline Software
AlignmentEffectsOnTrack.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "GaudiKernel/MsgStream.h"
7 #include "TrkSurfaces/Surface.h"
8 
10  double deltaTranslation,
11  double sigmaDeltaTranslation,
12  double deltaAngle,
13  double sigmaDeltaAngle,
14  const std::vector<Identifier>& affectedTSOS,
15  const Trk::Surface& surface)
16  : SurfacePtrHolder(surface)
17  , m_deltaTranslation(deltaTranslation)
18  , m_sigmaDeltaTranslation(sigmaDeltaTranslation)
19  , m_deltaAngle(deltaAngle)
20  , m_sigmaDeltaAngle(sigmaDeltaAngle)
21  , m_affectedTSOS(affectedTSOS)
22 {}
23 
26 MsgStream&
27 Trk::operator<<(MsgStream& sl, const Trk::AlignmentEffectsOnTrack& aeot)
28 {
29  if (sl.level() < MSG::INFO) {
30  sl << "AlignmentEffectsOnTrack:" << endmsg;
31  sl << "deltaTranslation = " << aeot.deltaTranslation() << endmsg;
32  sl << "sigmaDeltaTranslation = " << aeot.deltaTranslation() << endmsg;
33  sl << "deltaAngle = " << aeot.deltaAngle() << endmsg;
34  sl << "sigmaDeltaAngle = " << aeot.sigmaDeltaAngle() << endmsg;
35  sl << "surface = " << aeot.associatedSurface() << endmsg;
36  }
37  return sl;
38 }
39 
40 std::ostream&
41 Trk::operator<<(std::ostream& sl, const Trk::AlignmentEffectsOnTrack& aeot)
42 {
43  sl << "AlignmentEffectsOnTrack:" << std::endl;
44  sl << "deltaTranslation = " << aeot.deltaTranslation() << std::endl;
45  sl << "sigmaDeltaTranslation = " << aeot.deltaTranslation() << std::endl;
46  sl << "deltaAngle = " << aeot.deltaAngle() << std::endl;
47  sl << "sigmaDeltaAngle = " << aeot.sigmaDeltaAngle() << std::endl;
48  sl << "surface = " << aeot.associatedSurface() << std::endl;
49  return sl;
50 }
AlignmentEffectsOnTrack.h
Surface.h
Trk::AlignmentEffectsOnTrack::deltaAngle
double deltaAngle() const
returns the
Definition: AlignmentEffectsOnTrack.h:103
Trk::SurfacePtrHolderImpl
Definition: SurfaceHolderImpl.h:79
Trk::AlignmentEffectsOnTrack
Class to represent misalignments or 'discontinuities' on tracks These have a surface where the z axis...
Definition: AlignmentEffectsOnTrack.h:24
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition: AlignModule.cxx:204
Trk::AlignmentEffectsOnTrack::deltaTranslation
double deltaTranslation() const
returns the
Definition: AlignmentEffectsOnTrack.h:91
Trk::AlignmentEffectsOnTrack::associatedSurface
const Trk::Surface & associatedSurface() const
The surface on which this offset is expressed.
Definition: AlignmentEffectsOnTrack.h:128
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
Trk::AlignmentEffectsOnTrack::AlignmentEffectsOnTrack
AlignmentEffectsOnTrack(double deltaTranslation, double m_sigmaDeltaTranslation, double deltaAngle, double sigmaDeltaAngle, const std::vector< Identifier > &identifiersOfAffectedTSOS, const Trk::Surface &surf)
Definition: AlignmentEffectsOnTrack.cxx:9
Trk::AlignmentEffectsOnTrack::sigmaDeltaAngle
double sigmaDeltaAngle() const
returns the
Definition: AlignmentEffectsOnTrack.h:109