ATLAS Offline Software
ScatteringAngleOnTrackCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------------
6 //
7 // file: ScatteringAngleOnTrackCnv_p1.cxx
8 // author: Lukasz Janyst <ljanyst@cern.ch>, W Liebig
9 //
10 //-----------------------------------------------------------------------------
11 
14 
18  MsgStream& )
19 {
20  transObj->m_tInX0 = 0.0;
21  transObj->m_scatteringAngles =
23  persObj->m_deltaTheta,
24  persObj->m_sigmaDeltaPhi,
25  persObj->m_sigmaDeltaTheta);
26  transObj->m_energyLoss = nullptr;
27  transObj->m_typeFlags = 1;
28  // FIXME: surface, deal with it here (free Sf) or later (detEl Sf)
29 }
30 
31 
35  MsgStream& log)
36 {
37  if (transObj->m_typeFlags != 1)
38  log << MSG::ERROR << "wrong type, backwards "
39  << "compatibility isn't possible." << endmsg;
40  if (transObj->scatteringAngles()) {
41  persObj->m_deltaPhi = transObj->scatteringAngles()->deltaPhi();
42  persObj->m_deltaTheta = transObj->scatteringAngles()->deltaTheta();
43  persObj->m_sigmaDeltaPhi = transObj->scatteringAngles()->sigmaDeltaPhi();
44  persObj->m_sigmaDeltaTheta = transObj->scatteringAngles()->sigmaDeltaTheta();
45  } else {
46  persObj->m_deltaPhi = 0.0;
47  persObj->m_deltaTheta = 0.0;
48  persObj->m_sigmaDeltaPhi = 0.0;
49  persObj->m_sigmaDeltaTheta = 0.0;
50  }
51 }
Trk::ScatteringAngles::deltaPhi
double deltaPhi() const
returns the
Definition: ScatteringAngles.h:82
ScatteringAngleOnTrackCnv_p1.h
ScatteringAngles.h
Trk::ScatteringAngleOnTrack_p1::m_deltaPhi
double m_deltaPhi
Definition: ScatteringAngleOnTrack_p1.h:21
Trk::ScatteringAngles
represents a deflection of the track caused through multiple scattering in material.
Definition: ScatteringAngles.h:26
ScatteringAngleOnTrackCnv_p1::transToPers
virtual void transToPers(const Trk ::MaterialEffectsOnTrack *transObj, Trk ::ScatteringAngleOnTrack_p1 *persObj, MsgStream &log)
Definition: ScatteringAngleOnTrackCnv_p1.cxx:33
Trk::MaterialEffectsBase::m_tInX0
double m_tInX0
- the traversed thickness in RadiationLengths
Definition: MaterialEffectsBase.h:139
Trk::ScatteringAngleOnTrack_p1::m_sigmaDeltaTheta
double m_sigmaDeltaTheta
Definition: ScatteringAngleOnTrack_p1.h:24
Trk::ScatteringAngleOnTrack_p1::m_sigmaDeltaPhi
double m_sigmaDeltaPhi
Definition: ScatteringAngleOnTrack_p1.h:23
Trk::ScatteringAngleOnTrack_p1::m_deltaTheta
double m_deltaTheta
Definition: ScatteringAngleOnTrack_p1.h:22
Trk::MaterialEffectsOnTrack::m_scatteringAngles
std::optional< ScatteringAngles > m_scatteringAngles
holds the scattering angles+errors in a separate object
Definition: MaterialEffectsOnTrack.h:146
Trk::MaterialEffectsOnTrack
represents the full description of deflection and e-loss of a track in material.
Definition: MaterialEffectsOnTrack.h:40
Trk::ScatteringAngles::sigmaDeltaTheta
double sigmaDeltaTheta() const
returns the
Definition: ScatteringAngles.h:100
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Trk::ScatteringAngleOnTrack_p1
Definition: ScatteringAngleOnTrack_p1.h:17
Trk::MaterialEffectsOnTrack::m_energyLoss
std::unique_ptr< const EnergyLoss > m_energyLoss
holds the measured and/or estimated energy loss in a separate object
Definition: MaterialEffectsOnTrack.h:148
ScatteringAngleOnTrackCnv_p1::persToTrans
virtual void persToTrans(const Trk ::ScatteringAngleOnTrack_p1 *persObj, Trk ::MaterialEffectsOnTrack *transObj, MsgStream &log)
Definition: ScatteringAngleOnTrackCnv_p1.cxx:16
Trk::MaterialEffectsBase::m_typeFlags
long m_typeFlags
Definition: MaterialEffectsBase.h:140
Trk::MaterialEffectsOnTrack::scatteringAngles
const ScatteringAngles * scatteringAngles() const
returns the MCS-angles object.
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Trk::ScatteringAngles::sigmaDeltaPhi
double sigmaDeltaPhi() const
returns the
Definition: ScatteringAngles.h:94
Trk::ScatteringAngles::deltaTheta
double deltaTheta() const
returns the
Definition: ScatteringAngles.h:88