ATLAS Offline Software
EnergyLossCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
9  const Trk::EnergyLoss_p1 *persObj,
10  Trk :: EnergyLoss *transObj,
11  MsgStream& ) const
12 {
13  *transObj = Trk::EnergyLoss (persObj->m_deltaE,
14  persObj->m_sigmaDeltaE,
15  persObj->m_sigmaMinusDeltaE,
16  persObj->m_sigmaPlusDeltaE,
17  0, 0, 0, 0,
18  // Questionable, but preserves previous behavior.
19  transObj->length());
20 }
21 
23  const Trk::EnergyLoss *transObj,
24  Trk::EnergyLoss_p1 *persObj,
25  MsgStream& ) const
26 {
27  persObj->m_deltaE = (float)transObj->deltaE();
28  persObj->m_sigmaDeltaE = (float)transObj->sigmaDeltaE();
29  persObj->m_sigmaMinusDeltaE = (float)transObj->sigmaMinusDeltaE();
30  persObj->m_sigmaPlusDeltaE = (float)transObj->sigmaPlusDeltaE();
31 }
32 
33 
34 
Trk::EnergyLoss::sigmaMinusDeltaE
double sigmaMinusDeltaE() const
returns the negative side
EnergyLoss.h
EnergyLossCnv_p1.h
EnergyLossCnv_p1::persToTrans
virtual void persToTrans(const Trk ::EnergyLoss_p1 *persObj, Trk ::EnergyLoss *transObj, MsgStream &log) const override
Definition: EnergyLossCnv_p1.cxx:8
Trk::EnergyLoss_p1
Persistent representation of class EnergyLoss.h.
Definition: EnergyLoss_p1.h:14
Trk::EnergyLoss::sigmaDeltaE
double sigmaDeltaE() const
returns the symmatric error
Trk::EnergyLoss::deltaE
double deltaE() const
returns the
EnergyLossCnv_p1::transToPers
virtual void transToPers(const Trk ::EnergyLoss *transObj, Trk ::EnergyLoss_p1 *persObj, MsgStream &log) const override
Definition: EnergyLossCnv_p1.cxx:22
Trk::EnergyLoss
This class describes energy loss material effects in the ATLAS tracking EDM.
Definition: EnergyLoss.h:34
Trk::EnergyLoss_p1::m_sigmaMinusDeltaE
float m_sigmaMinusDeltaE
Definition: EnergyLoss_p1.h:20
Trk::EnergyLoss_p1::m_sigmaPlusDeltaE
float m_sigmaPlusDeltaE
Definition: EnergyLoss_p1.h:21
Trk::EnergyLoss::sigmaPlusDeltaE
double sigmaPlusDeltaE() const
returns the positive side
readCCLHist.float
float
Definition: readCCLHist.py:83
Trk::EnergyLoss_p1::m_deltaE
float m_deltaE
Definition: EnergyLoss_p1.h:18
Trk::EnergyLoss_p1::m_sigmaDeltaE
float m_sigmaDeltaE
Definition: EnergyLoss_p1.h:19