ATLAS Offline Software
Loading...
Searching...
No Matches
STGC_RawDataCnv_p2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
5
7{
8 // Not much point calling this!
9}
10
12{
13 persObj->m_id = transObj->m_id.get_identifier32().get_compact();
14 persObj->m_bcTag = transObj->bcTag();
15 persObj->m_time = transObj->tdo();
16 persObj->m_charge = transObj->charge();
17 persObj->m_isDead = transObj->isDead();
18}
19
21{
22 Muon::STGC_RawData* trans = new STGC_RawData( Identifier (persObj->m_id),
23 persObj->m_bcTag,
24 static_cast<float>(persObj->m_time),// place holder for tdo->time from calibration
25 persObj->m_time,
26 persObj->m_charge,
27 persObj->m_isDead,
28 false); // all RDOs produced with this persisten version have the time and the charge in physical units, pscholer March 2022
29
30 return trans;
31}
32
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
virtual STGC_RawData * createTransient(const STGC_RawData_p2 *persObj, MsgStream &log) override final
void transToPers(const STGC_RawData *transObj, STGC_RawData_p2 *persObj, MsgStream &log) override final
void persToTrans(const STGC_RawData_p2 *persObj, STGC_RawData *transObj, MsgStream &log) override final
unsigned int m_id
FIXME!
unsigned int charge() const
uint16_t bcTag() const
unsigned int tdo() const
bool isDead() const