ATLAS Offline Software
TileCalorimeter
TileSvc
TileSimEventTPCnv
src
TileHitVectorCnv_p1.cxx
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// TileHitVectorCnv_p1.cxx
8
// Implementation file for class TileHitVectorCnv_p1
9
// Author: Alexander Solodkov <Sanya.Solodkov@cern.ch>
10
// Date: June 2009
12
13
#include "
TileSimEventTPCnv/TileHitVectorCnv_p1.h
"
14
15
TileHitVector
*
TileHitVectorCnv_p1::createTransient
(
const
TileHitVector_p1
* persObj, MsgStream &
log
) {
16
17
const
TileHitVector_p1::HitVector
&
pvec
= persObj->
getVector
();
18
19
// the only reason why we reimplement this method is that we want to be sure
20
// that correct size is reserved for the vector directly in the constructor
21
TileHitVector
* trans =
new
TileHitVector
(persObj->
name
(),
pvec
.size());
22
trans->
resize
(
pvec
.size());
23
24
// since we reimplement this method anyhow, let's call directly persToTrans method of
25
// the converter instead of doing this through few calls in base class
26
TileHitCnv_p1
element_cnv;
27
TileHitVector::iterator
it
;
28
TileHitVector_p1::const_iterator
ip
;
29
30
for
(
it
= trans->
begin
(),
ip
=
pvec
.begin();
ip
!=
pvec
.end(); ++
ip
, ++
it
) {
31
element_cnv.
persToTrans
( &*
ip
, &*
it
,
log
);
32
}
33
34
35
return
trans;
36
}
TileHitVector
AtlasHitsVector< TileHit > TileHitVector
Definition:
TileHitVector.h:28
TileHitCnv_p1
Definition:
TileHitCnv_p1.h:22
TileHitVector_p1::getVector
const HitVector & getVector() const
Definition:
TileHitVector_p1.h:33
AtlasHitsVector::iterator
CONT::iterator iterator
Definition:
AtlasHitsVector.h:42
AtlasHitsVector
Definition:
AtlasHitsVector.h:33
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
TileHitVector_p1::name
const std::string & name() const
Definition:
TileHitVector_p1.h:32
TileHitVectorCnv_p1.h
AtlasHitsVector::resize
void resize(size_type n)
Definition:
AtlasHitsVector.h:160
AtlasHitsVector::begin
const_iterator begin() const
Definition:
AtlasHitsVector.h:131
TileHitCnv_p1::persToTrans
virtual void persToTrans(const TileHit_p1 *persObj, TileHit *transObj, MsgStream &log) const override
Definition:
TileHitCnv_p1.cxx:19
TileHitVector_p1
Definition:
TileHitVector_p1.h:20
find_tgc_unfilled_channelids.ip
ip
Definition:
find_tgc_unfilled_channelids.py:3
TileHitVectorCnv_p1::createTransient
virtual TileHitVector * createTransient(const TileHitVector_p1 *persObj, MsgStream &log)
Create transient representation of a persistent object.
Definition:
TileHitVectorCnv_p1.cxx:15
TileHitVector_p1::const_iterator
HitVector::const_iterator const_iterator
Definition:
TileHitVector_p1.h:25
python.CaloCondTools.log
log
Definition:
CaloCondTools.py:20
pvec
std::array< fp_t, 2 > pvec
Definition:
FPGATrackSimLLPDoubletHoughTransformTool.cxx:9
TileHitVector_p1::HitVector
std::vector< TileHit_p1 > HitVector
typedefs
Definition:
TileHitVector_p1.h:24
Generated on Fri Jan 10 2025 21:19:13 for ATLAS Offline Software by
1.8.18