ATLAS Offline Software
Loading...
Searching...
No Matches
TrigTrtHitCountsCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
8
11
13 MsgStream mlog(msgSvc(), "TrigTrtHitCountsConverter" );
14 mlog << MSG::DEBUG << "TrigTrtHitCountsCnv::createPersistent" << endmsg;
15
16 TrigTrtHitCountsCnv_p1 converter;
17 TrigTrtHitCounts_PERS *persObj = converter.createPersistent( transObj, mlog );
18
19 return persObj;
20}
21
23 MsgStream mlog(msgSvc(), "TrigTrtHitCountsConverter" );
24 mlog << MSG::DEBUG << "TrigTrtHitCountsCnv::createTransient " << endmsg;
25
26 static const pool::Guid p1_guid("FB33CC3C-74B8-43DF-ABDA-E56BEA1D9D61");
27
28 TrigTrtHitCounts *transObj = 0;
29
30 if( compareClassGuid(p1_guid) ) {
31 mlog << MSG::DEBUG << "TrigTrtHitCountsCnv::reading p1 persistent object" << endmsg;
32 std::unique_ptr< TrigTrtHitCounts_p1 > pers_ptr( poolReadObject< TrigTrtHitCounts_p1 >() );
33 TrigTrtHitCountsCnv_p1 converter;
34 transObj = converter.createTransient(pers_ptr.get(), mlog);
35 }
36 else {
37 throw std::runtime_error("Unsupported persistent version of Data container");
38 }
39
40 return transObj;
41}
#define endmsg
T_AthenaPoolCustomCnv< TrigTrtHitCounts, TrigTrtHitCounts_PERS > TrigTrtHitCountsCnvBase
TrigTrtHitCounts_p1 TrigTrtHitCounts_PERS
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TrigTrtHitCountsCnv(ISvcLocator *svcloc)
TrigTrtHitCounts_PERS * createPersistent(TrigTrtHitCounts *transObj)
TrigTrtHitCounts * createTransient()
A class to store the distributions of time of threshold from the TRT raw data.