ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
ZDC
ZdcCnv
ZdcEventTPCnv
src
ZdcDigitsCnv_p1.cxx
Go to the documentation of this file.
1
2
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
"
14
#include "
ZdcEventTPCnv/ZdcDigitsCnv_p1.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) =
24
ZdcRawData
(
Identifier
(
Identifier32
(persObj->
m_id
)));
25
26
//log << MSG::INFO << "ZdcDigitsCnv_p1::reading in... " << endmsg;
27
transObj->
set_digits_gain0_delay0
(persObj->
m_digits_gain0_delay0
);
28
transObj->
set_digits_gain0_delay1
(persObj->
m_digits_gain0_delay1
);
29
transObj->
set_digits_gain1_delay0
(persObj->
m_digits_gain1_delay0
);
30
transObj->
set_digits_gain1_delay1
(persObj->
m_digits_gain1_delay1
);
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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
ZdcDigitsCnv_p1.h
ZdcDigits.h
Identifier32
Definition
Identifier32.h:28
Identifier32::get_compact
value_type get_compact() const
Get the compact id.
Definition
Identifier32.h:47
Identifier::get_identifier32
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
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
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_p1
Definition
ZdcDigits_p1.h:20
ZdcDigits_p1::m_digits_gain1_delay0
std::vector< int > m_digits_gain1_delay0
Definition
ZdcDigits_p1.h:36
ZdcDigits_p1::m_id
unsigned int m_id
Definition
ZdcDigits_p1.h:33
ZdcDigits_p1::m_digits_gain0_delay1
std::vector< int > m_digits_gain0_delay1
Definition
ZdcDigits_p1.h:35
ZdcDigits_p1::m_digits_gain0_delay0
std::vector< int > m_digits_gain0_delay0
Definition
ZdcDigits_p1.h:34
ZdcDigits_p1::m_digits_gain1_delay1
std::vector< int > m_digits_gain1_delay1
Definition
ZdcDigits_p1.h:37
ZdcDigits
Definition
ZdcDigits.h:28
ZdcDigits::get_digits_gain0_delay0
const std::vector< int > & get_digits_gain0_delay0(void) const
Definition
ZdcDigits.h:58
ZdcDigits::set_digits_gain0_delay1
void set_digits_gain0_delay1(const std::vector< int > &v)
Definition
ZdcDigits.cxx:129
ZdcDigits::get_digits_gain1_delay1
const std::vector< int > & get_digits_gain1_delay1(void) const
Definition
ZdcDigits.h:61
ZdcDigits::set_digits_gain0_delay0
void set_digits_gain0_delay0(const std::vector< int > &v)
Definition
ZdcDigits.cxx:124
ZdcDigits::get_digits_gain1_delay0
const std::vector< int > & get_digits_gain1_delay0(void) const
Definition
ZdcDigits.h:60
ZdcDigits::set_digits_gain1_delay1
void set_digits_gain1_delay1(const std::vector< int > &v)
Definition
ZdcDigits.cxx:139
ZdcDigits::set_digits_gain1_delay0
void set_digits_gain1_delay0(const std::vector< int > &v)
Definition
ZdcDigits.cxx:134
ZdcDigits::get_digits_gain0_delay1
const std::vector< int > & get_digits_gain0_delay1(void) const
Definition
ZdcDigits.h:59
ZdcRawData
Definition
ZdcRawData.h:32
ZdcRawData::identify
Identifier identify() const
Definition
ZdcRawData.h:50
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0