ATLAS Offline Software
InnerDetector
InDetEventCnv
InDetEventAthenaPool
src
SCT3_RawDataCnv_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
5
#include "
InDetRawData/SCT3_RawData.h
"
6
// Persistent class and converter header file
7
#include "
InDetEventAthenaPool/SCT3_RawData_p1.h
"
8
#include "
SCT3_RawDataCnv_p1.h
"
9
10
// Other stuff
11
#include "Identifier/Identifier.h"
12
#include "
MsgUtil.h
"
13
14
15
void
16
SCT3_RawDataCnv_p1::persToTrans
(
const
SCT3_RawData_p1
* persObj,
SCT3_RawData
* transObj, MsgStream&
log
)
17
{
18
MSG_DEBUG
(
log
,
"SCT3_RawDataCnv_p1::persToTrans called "
);
19
20
std::vector<int> errHit;
21
errHit.reserve(20);
22
for
(
int
ii=0; ii<20; ii++) {
23
if
(persObj->
m_errCH
[ii] > 0) {
24
errHit.push_back(ii);
25
}
26
}
27
28
*transObj =
SCT3_RawData
(
Identifier
(persObj->
m_rdoId
),
29
persObj->
m_word
,
30
std::move(errHit));
31
}
32
33
void
34
SCT3_RawDataCnv_p1::transToPers
(
const
SCT3_RawData
*,
SCT3_RawData_p1
*, MsgStream&
log
)
35
{
36
log
<< MSG::ERROR <<
"SCT3_RawDataCnv_p1::transToPers is deprecated. "
<<
endmsg
;
37
}
SCT3_RawDataCnv_p1::transToPers
virtual void transToPers(const SCT3_RawData *transObj, SCT3_RawData_p1 *persObj, MsgStream &log)
Definition:
SCT3_RawDataCnv_p1.cxx:34
SCT3_RawDataCnv_p1::persToTrans
virtual void persToTrans(const SCT3_RawData_p1 *persObj, SCT3_RawData *transObj, MsgStream &log)
Definition:
SCT3_RawDataCnv_p1.cxx:16
SCT3_RawData.h
SCT3_RawData
Definition:
SCT3_RawData.h:24
Identifier
Definition:
DetectorDescription/Identifier/Identifier/Identifier.h:32
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
SCT3_RawData_p1.h
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
MSG_DEBUG
#define MSG_DEBUG(log, x)
Definition:
MsgUtil.h:15
SCT3_RawData_p1::m_errCH
float m_errCH[20]
Definition:
SCT3_RawData_p1.h:22
SCT3_RawData_p1
Definition:
SCT3_RawData_p1.h:14
SCT3_RawDataCnv_p1.h
SCT3_RawData_p1::m_rdoId
Identifier32::value_type m_rdoId
Definition:
SCT3_RawData_p1.h:20
SCT3_RawData_p1::m_word
unsigned int m_word
Definition:
SCT3_RawData_p1.h:21
MsgUtil.h
Generated on Tue Jul 2 2024 21:26:01 for ATLAS Offline Software by
1.8.18