ATLAS Offline Software
ZdcDigitsCnv_p1.cxx
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // ZdcDigitsCnv_p1.cxx
8 // Implementation file for class ZdcDigitsCnv_p1
9 // Author: Peter Steinberg <peter.steinberg@bnl.gov>
10 // Date: June 2009
12 
13 #include "ZdcEvent/ZdcDigits.h"
15 
16 
17 void
18 ZdcDigitsCnv_p1::persToTrans(const ZdcDigits_p1* persObj, ZdcDigits* transObj, MsgStream &log) const
19 {
20  //log << MSG::INFO << "ZdcDigitsCnv_p1::persToTrans called " << endmsg;
21  log << MSG::VERBOSE << "ZdcDigitsCnv_p1::persToTrans called " << endmsg;
22 
23  *static_cast<ZdcRawData*>(transObj) =
25 
26  //log << MSG::INFO << "ZdcDigitsCnv_p1::reading in... " << endmsg;
31 
32  //log << MSG::INFO << "ZdcDigitsCnv_p1::finished reading in... " << endmsg;
33 
34 }
35 
36 
37 void
38 ZdcDigitsCnv_p1::transToPers(const ZdcDigits* transObj, ZdcDigits_p1* persObj, MsgStream &log) const
39 {
40  log << MSG::VERBOSE << "ZdcDigitsCnv_p1::transToPers called " << endmsg;
41 
42  persObj->m_id = transObj->identify().get_identifier32().get_compact();
43 
44  persObj->m_digits_gain0_delay0 = transObj->get_digits_gain0_delay0();
45  persObj->m_digits_gain0_delay1 = transObj->get_digits_gain0_delay1();
46  persObj->m_digits_gain1_delay0 = transObj->get_digits_gain1_delay0();
47  persObj->m_digits_gain1_delay1 = transObj->get_digits_gain1_delay1();
48 
49 }
ZdcDigits_p1
Definition: ZdcDigits_p1.h:20
Identifier32
Definition: Identifier32.h:25
ZdcRawData
Definition: ZdcRawData.h:33
ZdcDigitsCnv_p1::persToTrans
virtual void persToTrans(const ZdcDigits_p1 *persObj, ZdcDigits *transObj, MsgStream &log) const override
Method creating the transient representation ZdcDigits from its persistent representation ZdcDigits_p...
Definition: ZdcDigitsCnv_p1.cxx:18
ZdcDigits
Definition: ZdcDigits.h:28
ZdcDigits::get_digits_gain1_delay1
const std::vector< int > & get_digits_gain1_delay1(void) const
Definition: ZdcDigits.h:61
ZdcDigits::set_digits_gain1_delay1
void set_digits_gain1_delay1(const std::vector< int > &v)
Definition: ZdcDigits.cxx:139
ZdcDigits_p1::m_digits_gain1_delay1
std::vector< int > m_digits_gain1_delay1
Definition: ZdcDigits_p1.h:37
Identifier32::get_compact
value_type get_compact(void) const
Get the compact id.
Definition: Identifier32.h:171
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ZdcDigits::set_digits_gain1_delay0
void set_digits_gain1_delay0(const std::vector< int > &v)
Definition: ZdcDigits.cxx:134
ZdcDigitsCnv_p1.h
ZdcDigits::get_digits_gain0_delay1
const std::vector< int > & get_digits_gain0_delay1(void) const
Definition: ZdcDigits.h:59
ZdcDigits.h
ZdcDigits::set_digits_gain0_delay1
void set_digits_gain0_delay1(const std::vector< int > &v)
Definition: ZdcDigits.cxx:129
ZdcDigits_p1::m_id
unsigned int m_id
Definition: ZdcDigits_p1.h:33
ZdcDigits_p1::m_digits_gain1_delay0
std::vector< int > m_digits_gain1_delay0
Definition: ZdcDigits_p1.h:36
ZdcDigits_p1::m_digits_gain0_delay0
std::vector< int > m_digits_gain0_delay0
Definition: ZdcDigits_p1.h:34
ZdcDigits::set_digits_gain0_delay0
void set_digits_gain0_delay0(const std::vector< int > &v)
Definition: ZdcDigits.cxx:124
ZdcDigits::get_digits_gain0_delay0
const std::vector< int > & get_digits_gain0_delay0(void) const
Definition: ZdcDigits.h:58
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
ZdcDigits::get_digits_gain1_delay0
const std::vector< int > & get_digits_gain1_delay0(void) const
Definition: ZdcDigits.h:60
ZdcDigits_p1::m_digits_gain0_delay1
std::vector< int > m_digits_gain0_delay1
Definition: ZdcDigits_p1.h:35
ZdcDigitsCnv_p1::transToPers
virtual void transToPers(const ZdcDigits *transObj, ZdcDigits_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation ZdcDigits_p1 from its transient representation ZdcDigit...
Definition: ZdcDigitsCnv_p1.cxx:38
ZdcRawData::identify
Identifier identify(void) const
Definition: ZdcRawData.h:44
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
Identifier::get_identifier32
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.