ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
LUCID
LUCID_Cnv
LUCID_EventTPCnv
src
LUCID_DigitContainerCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LUCID_EventTPCnv/LUCID_DigitContainerCnv_p1.h
"
6
#include "GaudiKernel/MsgStream.h"
7
8
static
const
LUCID_DigitCnv_p1
digitConv
;
9
10
void
LUCID_DigitContainerCnv_p1::transToPers
(
const
LUCID_DigitContainer
* transObj,
LUCID_DigitContainer_p1
* persObj, MsgStream& log)
const
{
11
12
log << MSG::DEBUG <<
"In LUCID_DigitContainerCnv_p1::transToPers"
<<
endmsg
;
13
14
persObj->resize(transObj->
size
());
15
16
for
(
unsigned
int
i=0; i<transObj->
size
(); ++i) {
17
18
LUCID_Digit_p1
& digit = (*persObj)[i];
19
20
digitConv
.transToPers((*transObj)[i], &digit, log);
21
}
22
}
23
24
void
LUCID_DigitContainerCnv_p1::persToTrans
(
const
LUCID_DigitContainer_p1
* persObj,
LUCID_DigitContainer
* transObj, MsgStream& log)
const
{
25
26
log << MSG::DEBUG <<
"In LUCID_DigitContainerCnv_p1::persToTrans"
<<
endmsg
;
27
28
transObj->
reserve
(persObj->size());
29
30
for
(
unsigned
int
i=0; i<persObj->size(); ++i) {
31
32
const
LUCID_Digit_p1
* digit = &((*persObj)[i]);
33
34
transObj->
push_back
(
digitConv
.createTransientConst(digit, log));
35
}
36
}
37
digitConv
static const ALFA_DigitCnv_p1 digitConv
Definition
ALFA_DigitCollectionCnv_p1.cxx:8
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
LUCID_DigitContainerCnv_p1.h
DataVector::reserve
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
LUCID_DigitCnv_p1
Definition
LUCID_DigitCnv_p1.h:14
LUCID_DigitContainerCnv_p1::persToTrans
virtual void persToTrans(const LUCID_DigitContainer_p1 *persObj, LUCID_DigitContainer *transObj, MsgStream &log) const override
Definition
LUCID_DigitContainerCnv_p1.cxx:24
LUCID_DigitContainerCnv_p1::transToPers
virtual void transToPers(const LUCID_DigitContainer *transObj, LUCID_DigitContainer_p1 *persObj, MsgStream &log) const override
Definition
LUCID_DigitContainerCnv_p1.cxx:10
LUCID_DigitContainer_p1
Definition
LUCID_DigitContainer_p1.h:16
LUCID_DigitContainer
Definition
LUCID_DigitContainer.h:13
LUCID_Digit_p1
Definition
LUCID_Digit_p1.h:8
Generated on
for ATLAS Offline Software by
1.17.0