ATLAS Offline Software
TRT_DriftCircleOnTrackCnv_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: TRT_DriftCircleOnTrackCnv_p1.cxx
8 //
9 //-----------------------------------------------------------------------------
10 
13 //nclude "TrkEventTPCnv/helpers/CLHEPHelpers.h"
14 
15 
18  InDet::TRT_DriftCircleOnTrack *transObj, MsgStream &log )
19 {
21  m_elCnv.persToTrans(&persObj->m_prdLink,&rio,log);
22 
23  *transObj = InDet::TRT_DriftCircleOnTrack (rio,
25  Amg::MatrixX(),
26  persObj->m_idDE,
27  Identifier(),
28  persObj->m_positionAlongWire,
29  persObj->m_localAngle,
30  static_cast<Trk::DriftCircleStatus>( persObj->m_status ),
31  persObj->m_highLevel,
32  persObj->m_timeOverThreshold
33  );
34 
35  fillTransFromPStore( &m_RIOCnv, persObj->m_RIO, transObj, log );
36 }
37 
38 
41  InDet::TRT_DriftCircleOnTrack_p1 *persObj, MsgStream &log)
42 {
43  persObj->m_RIO = baseToPersistent( &m_RIOCnv, transObj, log );
44  // m_globalPosition - transient?
45 
46  persObj->m_idDE = transObj->idDE();
47  persObj->m_status = static_cast<unsigned int>( transObj->status() );
48  persObj->m_highLevel = transObj->highLevel();
49 
50 //new variables
51  persObj->m_localAngle = transObj->localAngle();
52  persObj->m_positionAlongWire = transObj->positionAlongWire();
53 
54  // added in 12.5
55  persObj->m_timeOverThreshold = (float) transObj->timeOverThreshold();
56 // m_elementLinkConverter.resetForCnv(persObj->m_elementLinkToIDCTRT_DriftCircleContainerNames);
57 // m_elementLinkConverter.transToPers(&transObj->m_rio,&persObj->m_elementLinkToIDCTRT_DriftCircleContainer,log);
58  //m_elCnv.transToPers(&transObj->m_rio,&persObj->m_prdLink,log);
59  persObj->m_prdLink.m_contName = transObj->prepRawDataLink().dataID();// New suggestion from RD - above crashes
60  persObj->m_prdLink.m_elementIndex = transObj->prepRawDataLink().index();
61 }
Trk::LocalParameters
Definition: LocalParameters.h:98
TRT_DriftCircleOnTrackCnv_p1::persToTrans
void persToTrans(const InDet ::TRT_DriftCircleOnTrack_p1 *persObj, InDet ::TRT_DriftCircleOnTrack *transObj, MsgStream &log)
Definition: TRT_DriftCircleOnTrackCnv_p1.cxx:17
InDet::TRT_DriftCircleOnTrack::status
Trk::DriftCircleStatus status() const
returns the status of the drift radius calibration.
Definition: TRT_DriftCircleOnTrack.h:229
InDet::TRT_DriftCircleOnTrack::idDE
virtual IdentifierHash idDE() const override final
returns the DE hashID
Definition: TRT_DriftCircleOnTrack.h:219
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
TRT_DriftCircleOnTrackCnv_p1::m_elCnv
ElementLinkCnv_p1< ElementLinkToIDCTRT_DriftCircleContainer > m_elCnv
Definition: TRT_DriftCircleOnTrackCnv_p1.h:44
InDet::TRT_DriftCircleOnTrack_p1::m_localAngle
float m_localAngle
Definition: TRT_DriftCircleOnTrack_p1.h:43
Trk::DriftCircleStatus
DriftCircleStatus
Enumerates the 'status' of the wire on which the tracks passed (based on the TRT_Side enum,...
Definition: DriftCircleStatus.h:16
InDet::TRT_DriftCircleOnTrack_p1::m_positionAlongWire
float m_positionAlongWire
Definition: TRT_DriftCircleOnTrack_p1.h:44
InDet::TRT_DriftCircleOnTrack_p1
Definition: TRT_DriftCircleOnTrack_p1.h:25
InDet::TRT_DriftCircleOnTrack::highLevel
bool highLevel() const
returns true if the high level threshold was passed
Definition: TRT_DriftCircleOnTrack.h:234
InDet::TRT_DriftCircleOnTrack
Definition: TRT_DriftCircleOnTrack.h:53
InDet::TRT_DriftCircleOnTrack_p1::m_status
unsigned int m_status
Definition: TRT_DriftCircleOnTrack_p1.h:39
ITPConverterFor< TRANS_BASE >::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
TRT_DriftCircleOnTrackCnv_p1::m_RIOCnv
RIO_OnTrackCnv_p1 * m_RIOCnv
Definition: TRT_DriftCircleOnTrackCnv_p1.h:43
InDet::TRT_DriftCircleOnTrack_p1::m_timeOverThreshold
float m_timeOverThreshold
Definition: TRT_DriftCircleOnTrack_p1.h:41
TRT_DriftCircleOnTrack.h
InDet::TRT_DriftCircleOnTrack_p1::m_RIO
TPObjRef m_RIO
Definition: TRT_DriftCircleOnTrack_p1.h:36
ITPConverterFor< TRANS_BASE >::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
InDet::TRT_DriftCircleOnTrack::timeOverThreshold
double timeOverThreshold() const
returns time over threshold in ns for valid digits; zero otherwise
Definition: TRT_DriftCircleOnTrack.h:239
InDet::TRT_DriftCircleOnTrack_p1::m_prdLink
ElementLinkInt_p1 m_prdLink
Link to PRD.
Definition: TRT_DriftCircleOnTrack_p1.h:47
TRT_DriftCircleOnTrackCnv_p1.h
InDet::TRT_DriftCircleOnTrack::localAngle
float localAngle() const
Definition: TRT_DriftCircleOnTrack.h:244
InDet::TRT_DriftCircleOnTrack::positionAlongWire
float positionAlongWire() const
Definition: TRT_DriftCircleOnTrack.h:249
InDet::TRT_DriftCircleOnTrack_p1::m_highLevel
bool m_highLevel
Definition: TRT_DriftCircleOnTrack_p1.h:40
InDet::TRT_DriftCircleOnTrack_p1::m_idDE
IdentifierHash::value_type m_idDE
Definition: TRT_DriftCircleOnTrack_p1.h:38
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDet::TRT_DriftCircleOnTrack::prepRawDataLink
const ElementLinkToIDCTRT_DriftCircleContainer & prepRawDataLink() const
Definition: TRT_DriftCircleOnTrack.h:214
TRT_DriftCircleOnTrackCnv_p1::transToPers
void transToPers(const InDet ::TRT_DriftCircleOnTrack *transObj, InDet ::TRT_DriftCircleOnTrack_p1 *persObj, MsgStream &log)
Definition: TRT_DriftCircleOnTrackCnv_p1.cxx:40
readCCLHist.float
float
Definition: readCCLHist.py:83
Identifier
Definition: IdentifierFieldParser.cxx:14