ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloCnv
CaloTPCnv
src
CaloClusterMomentStoreCnv_p1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
CaloTPCnv/CaloClusterMomentStoreCnv_p1.h
"
6
7
#include "
CaloEvent/CaloClusterMomentStore.h
"
8
#include "
CaloTPCnv/CaloClusterMomentStore_p1.h
"
9
10
11
CaloClusterMomentStoreCnv_p1::CaloClusterMomentStoreCnv_p1
()
12
{
13
}
14
15
16
// CaloClusterMomentStore* CaloClusterMomentStoreCnv_p1::createTrans(const CaloClusterMomentStore_p1* pers /*,MsgStream&*/) {
17
// CaloClusterMomentStore* trans=new CaloClusterMomentStore();
18
// persToTrans(pers,trans);
19
// return trans;
20
// }
21
22
void
CaloClusterMomentStoreCnv_p1::persToTrans
(
const
CaloClusterMomentStore_p1
* pers,
23
CaloClusterMomentStore
* trans
/*,MsgStream&*/
)
const
24
{
25
std::vector<CaloClusterMomentStore_p1::ClusterMoment>::const_iterator it=pers->
m_store
.begin();
26
std::vector<CaloClusterMomentStore_p1::ClusterMoment>::const_iterator it_e=pers->
m_store
.end();
27
for
(;it!=it_e;++it)
28
trans->
insert
((
CaloClusterMoment::MomentType
)it->key,
CaloClusterMoment
(it->value));
29
}
30
31
32
33
// CaloClusterMomentStore_p1* CaloClusterMomentStoreCnv_p1::createPers(const CaloClusterMomentStore* trans /*,MsgStream& */) {
34
// CaloClusterMomentStore_p1* pers=new CaloClusterMomentStore_p1();
35
// transToPers(trans,pers);
36
// return pers;
37
// }
38
39
40
void
CaloClusterMomentStoreCnv_p1::transToPers
(
const
CaloClusterMomentStore
* trans,
41
CaloClusterMomentStore_p1
* pers
/*,MsgStream&*/
)
const
42
{
43
CaloClusterMomentStore::moment_iterator
it=trans->
begin
();
44
CaloClusterMomentStore::moment_iterator
it_e=trans->
end
();
45
46
CaloClusterMomentStore_p1::ClusterMoment
mom;
47
for
(;it!=it_e;++it) {
48
mom.key=it.getMomentType();
49
mom.value=it.getMoment().getValue();
50
pers->
m_store
.push_back(mom);
51
}
52
}
CaloClusterMomentStoreCnv_p1.h
CaloClusterMomentStore.h
CaloClusterMomentStore_p1.h
CaloClusterMomentStoreCnv_p1::transToPers
void transToPers(const CaloClusterMomentStore *, CaloClusterMomentStore_p1 *) const
Definition
CaloClusterMomentStoreCnv_p1.cxx:40
CaloClusterMomentStoreCnv_p1::CaloClusterMomentStoreCnv_p1
CaloClusterMomentStoreCnv_p1()
Definition
CaloClusterMomentStoreCnv_p1.cxx:11
CaloClusterMomentStoreCnv_p1::persToTrans
void persToTrans(const CaloClusterMomentStore_p1 *, CaloClusterMomentStore *) const
Definition
CaloClusterMomentStoreCnv_p1.cxx:22
CaloClusterMomentStore_p1
Definition
CaloClusterMomentStore_p1.h:10
CaloClusterMomentStore_p1::m_store
std::vector< ClusterMoment > m_store
Definition
CaloClusterMomentStore_p1.h:19
CaloClusterMomentStore
Stores CaloClusterMoment in a keyed map.
Definition
CaloClusterMomentStore.h:15
CaloClusterMomentStore::end
virtual moment_iterator end() const
iterator loop terminator
Definition
CaloClusterMomentStore.h:226
CaloClusterMomentStore::moment_iterator
CaloClusterMomentIterator moment_iterator
External moment iterator type.
Definition
CaloClusterMomentStore.h:137
CaloClusterMomentStore::insert
virtual void insert(const moment_type &rMomType, const moment_value &rMomData)
Insert key/data pair.
Definition
CaloClusterMomentStore.h:213
CaloClusterMomentStore::begin
virtual moment_iterator begin() const
{
Definition
CaloClusterMomentStore.h:220
CaloClusterMoment
defines enums and data types for different moments of CaloCluster
Definition
CaloClusterMoment.h:29
CaloClusterMoment::MomentType
MomentType
enums to identify different moments
Definition
CaloClusterMoment.h:38
CaloClusterMomentStore_p1::ClusterMoment
Definition
CaloClusterMomentStore_p1.h:15
Generated on
for ATLAS Offline Software by
1.17.0