ATLAS Offline Software
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 
6 
9 
10 
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 
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)
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 
41  CaloClusterMomentStore_p1* pers/*,MsgStream&*/) const
42 {
45 
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 }
CaloClusterMomentStore_p1::m_store
std::vector< ClusterMoment > m_store
Definition: CaloClusterMomentStore_p1.h:19
CaloClusterMoment::MomentType
MomentType
enums to identify different moments
Definition: CaloClusterMoment.h:38
CaloClusterMomentStore_p1::ClusterMoment
Definition: CaloClusterMomentStore_p1.h:15
skel.it
it
Definition: skel.GENtoEVGEN.py:423
CaloClusterMomentStoreCnv_p1::persToTrans
void persToTrans(const CaloClusterMomentStore_p1 *, CaloClusterMomentStore *) const
Definition: CaloClusterMomentStoreCnv_p1.cxx:22
CaloClusterMomentStore::CaloClusterMomentIterator
Internally used iterator.
Definition: CaloClusterMomentStore.h:54
CaloClusterMomentStore_p1.h
CaloClusterMomentStoreCnv_p1::CaloClusterMomentStoreCnv_p1
CaloClusterMomentStoreCnv_p1()
Definition: CaloClusterMomentStoreCnv_p1.cxx:11
CaloClusterMomentStoreCnv_p1::transToPers
void transToPers(const CaloClusterMomentStore *, CaloClusterMomentStore_p1 *) const
Definition: CaloClusterMomentStoreCnv_p1.cxx:40
CaloClusterMomentStore
Stores CaloClusterMoment in a keyed map.
Definition: CaloClusterMomentStore.h:15
CaloClusterMomentStore::begin
virtual moment_iterator begin() const
{
Definition: CaloClusterMomentStore.h:220
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
CaloClusterMomentStore_p1
Definition: CaloClusterMomentStore_p1.h:10
CaloClusterMomentStore.h
CaloClusterMomentStore::insert
virtual void insert(const moment_type &rMomType, const moment_value &rMomData)
Insert key/data pair.
Definition: CaloClusterMomentStore.h:213
CaloClusterMomentStore::end
virtual moment_iterator end() const
iterator loop terminator
Definition: CaloClusterMomentStore.h:226
CaloClusterMoment
defines enums and data types for different moments of CaloCluster
Definition: CaloClusterMoment.h:29
CaloClusterMomentStoreCnv_p1.h