ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_DriftCircleCnv_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_DriftCircleCnv_p1.cxx
8//
9//-----------------------------------------------------------------------------
10
13
14
16 InDet::TRT_DriftCircle *transObj,
17 MsgStream &log )
18{
19 Amg::Vector2D localPos;
20 localPos.setZero();
21
22 unsigned int trtdata = persObj->m_driftTimeValid ? 0x08000000 : 0x0;
23 if(persObj->m_highLevel)
24 trtdata |=0x04020100;
25
27 localPos,
28 std::vector<Identifier>(), // rdoList
29 {}, // cmat
30 nullptr, // detEl
31 trtdata
32 );
33
34 fillTransFromPStore( &m_rawDataCnv, persObj->m_rawData, transObj, log );
35}
36
39 MsgStream &log)
40{
41 persObj->m_rawData = baseToPersistent( &m_rawDataCnv, transObj, log );
42
43 persObj->m_driftTimeValid = transObj->getWord() & 0x08000000;
44 persObj->m_highLevel = transObj->getWord() & 0x04020100;
45}
46
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Definition TPConverter.h:97
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
unsigned int getWord() const
returns the TRT dataword
void transToPers(const InDet::TRT_DriftCircle *transObj, InDet::TRT_DriftCircle_p1 *persObj, MsgStream &log)
ITPConverterFor< Trk::PrepRawData > * m_rawDataCnv
void persToTrans(const InDet::TRT_DriftCircle_p1 *persObj, InDet::TRT_DriftCircle *transObj, MsgStream &log)
Eigen::Matrix< double, 2, 1 > Vector2D