ATLAS Offline Software
Tracking
TrkEvent
TrkMaterialOnTrack
src
MaterialEffectsOnTrack.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrkMaterialOnTrack/MaterialEffectsOnTrack.h
"
6
#include "GaudiKernel/MsgStream.h"
7
#include <cassert>
8
#include <ostream>
9
#include <string>
10
11
// Overload of << operator for MsgStream for debug output
12
MsgStream&
13
Trk::MaterialEffectsOnTrack::dump
(MsgStream& sl)
const
14
{
15
sl <<
"MaterialEffectsOnTrack based on"
<<
endmsg
;
16
Trk::MaterialEffectsBase::dump
(sl);
17
sl <<
"MaterialEffects, Scatterer? : "
<< (
scatteringAngles
() ?
"yes:"
:
"none"
)
18
<<
endmsg
;
19
if
(
scatteringAngles
()) {
20
sl << *
scatteringAngles
() <<
endmsg
;
21
}
22
sl <<
"MaterialEffects, E-loss ? : "
<< (
energyLoss
() ?
"yes:"
:
"none"
)
23
<<
endmsg
;
24
if
(
energyLoss
()) {
25
sl << *
energyLoss
() <<
endmsg
;
26
}
27
return
sl;
28
}
29
// Overload of << operator for std::ostream for debug output
30
std::ostream&
31
Trk::MaterialEffectsOnTrack::dump
(std::ostream& sl)
const
32
{
33
sl <<
"MaterialEffectsOnTrack based on"
<< std::endl;
34
Trk::MaterialEffectsBase::dump
(sl);
35
sl <<
"MaterialEffects, Scatterer? : "
<< (scatteringAngles() ?
"yes:"
:
"none"
)
36
<< std::endl;
37
if
(scatteringAngles()) {
38
sl << *scatteringAngles() << std::endl;
39
}
40
sl <<
"MaterialEffects, E-loss ? : "
<< (energyLoss() ?
"yes:"
:
"none"
)
41
<< std::endl;
42
if
(energyLoss()) {
43
sl << *energyLoss() << std::endl;
44
}
45
return
sl;
46
}
47
MaterialEffectsOnTrack.h
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
Trk::MaterialEffectsBase::dump
virtual MsgStream & dump(MsgStream &sl) const
Interface method for output, can be overloaded by child classes.
Definition:
MaterialEffectsBase.cxx:65
Trk::MaterialEffectsOnTrack::energyLoss
const EnergyLoss * energyLoss() const
returns the energy loss object.
Trk::MaterialEffectsOnTrack::dump
virtual MsgStream & dump(MsgStream &sl) const override final
Interface method for output.
Definition:
MaterialEffectsOnTrack.cxx:13
Trk::MaterialEffectsOnTrack::scatteringAngles
const ScatteringAngles * scatteringAngles() const
returns the MCS-angles object.
Generated on Thu Nov 7 2024 21:20:26 for ATLAS Offline Software by
1.8.18