ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardDetectors
LUCID
LUCID_Cnv
LUCID_EventTPCnv
src
LUCID_RawDataContainerCnv_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_RawDataContainerCnv_p1.h
"
6
#include "GaudiKernel/MsgStream.h"
7
8
static
const
LUCID_RawDataCnv_p1
rawDataConv
;
9
10
void
LUCID_RawDataContainerCnv_p1::transToPers
(
const
LUCID_RawDataContainer
* transObj,
LUCID_RawDataContainer_p1
* persObj, MsgStream& log)
const
{
11
12
log << MSG::DEBUG <<
"In LUCID_RawDataContainerCnv_p1::transToPers"
<<
endmsg
;
13
14
persObj->resize(transObj->
size
());
15
16
for
(
unsigned
int
i=0; i<transObj->
size
(); ++i) {
17
18
LUCID_RawData_p1
& rawData = (*persObj)[i];
19
20
rawDataConv
.transToPers((*transObj)[i], &rawData, log);
21
}
22
}
23
24
void
LUCID_RawDataContainerCnv_p1::persToTrans
(
const
LUCID_RawDataContainer_p1
* persObj,
LUCID_RawDataContainer
* transObj, MsgStream& log)
const
{
25
26
log << MSG::DEBUG <<
"In LUCID_RawDataContainerCnv_p1::persToTrans"
<<
endmsg
;
27
28
transObj->
reserve
(persObj->size());
29
30
for
(
unsigned
int
i=0; i<persObj->size(); ++i) {
31
32
const
LUCID_RawData_p1
* rawData = &((*persObj)[i]);
33
34
transObj->
push_back
(
rawDataConv
.createTransientConst(rawData, log));
35
}
36
}
37
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
rawDataConv
static const LUCID_RawDataCnv_p1 rawDataConv
Definition
LUCID_RawDataContainerCnv_p1.cxx:8
LUCID_RawDataContainerCnv_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_RawDataCnv_p1
Definition
LUCID_RawDataCnv_p1.h:14
LUCID_RawDataContainerCnv_p1::transToPers
virtual void transToPers(const LUCID_RawDataContainer *transObj, LUCID_RawDataContainer_p1 *persObj, MsgStream &log) const override
Definition
LUCID_RawDataContainerCnv_p1.cxx:10
LUCID_RawDataContainerCnv_p1::persToTrans
virtual void persToTrans(const LUCID_RawDataContainer_p1 *persObj, LUCID_RawDataContainer *transObj, MsgStream &log) const override
Definition
LUCID_RawDataContainerCnv_p1.cxx:24
LUCID_RawDataContainer_p1
Definition
LUCID_RawDataContainer_p1.h:13
LUCID_RawDataContainer
Definition
LUCID_RawDataContainer.h:12
LUCID_RawData_p1
Definition
LUCID_RawData_p1.h:8
Generated on
for ATLAS Offline Software by
1.17.0