ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileSvc
TileSimEventTPCnv
src
TileHitVectorCnv_p1.cxx
Go to the documentation of this file.
1
2
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
}
pvec
std::array< fp_t, 2 > pvec
Definition
FPGATrackSimLLPDoubletHoughTransformTool.cxx:9
TileHitVectorCnv_p1.h
TileHitVector
AtlasHitsVector< TileHit > TileHitVector
Definition
TileHitVector.h:28
AtlasHitsVector::begin
const_iterator begin() const
Definition
AtlasHitsVector.h:130
AtlasHitsVector::resize
void resize(size_type n)
Definition
AtlasHitsVector.h:159
AtlasHitsVector< TileHit >::iterator
CONT::iterator iterator
Definition
AtlasHitsVector.h:41
TileHitCnv_p1
Definition
TileHitCnv_p1.h:22
TileHitCnv_p1::persToTrans
virtual void persToTrans(const TileHit_p1 *persObj, TileHit *transObj, MsgStream &log) const override
Definition
TileHitCnv_p1.cxx:19
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
Definition
TileHitVector_p1.h:20
TileHitVector_p1::HitVector
std::vector< TileHit_p1 > HitVector
typedefs
Definition
TileHitVector_p1.h:24
TileHitVector_p1::getVector
const HitVector & getVector() const
Definition
TileHitVector_p1.h:33
TileHitVector_p1::const_iterator
HitVector::const_iterator const_iterator
Definition
TileHitVector_p1.h:25
TileHitVector_p1::name
const std::string & name() const
Definition
TileHitVector_p1.h:32
Generated on
for ATLAS Offline Software by
1.17.0