ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecTPCnv
RecTPCnv
MuonContainerCnv_p1.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// MuonContainerCnv_p1.h
8
// Header file for class MuonContainerCnv_p1
9
// Author: K.Cranmer<cranmer@cern.ch>
10
// Author: S.Binet<binet@cern.ch>
12
#ifndef RECTPCNV_MUONCONTAINERCNV_P1_H
13
#define RECTPCNV_MUONCONTAINERCNV_P1_H
14
15
// STL includes
16
#include <string>
17
18
// Gaudi includes
19
#include "GaudiKernel/ToolHandle.h"
20
#include "
StoreGate/StoreGateSvc.h
"
21
22
// muonEvent includes
23
#include "
muonEvent/MuonContainer.h
"
24
25
// AthenaPoolCnvSvc includes
26
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
27
28
// RecTPCnv includes
29
#include "
RecTPCnv/MuonContainer_p1.h
"
30
#include "
RecTPCnv/MuonCnv_p1.h
"
31
32
typedef
T_AthenaPoolTPCnvVectorConst
<
33
Analysis::MuonContainer
,
34
MuonContainer_p1
,
35
MuonCnv_p1
36
>
MuonContainerCnvBase_p1
;
37
38
class
MuonContainerCnv_p1
:
public
MuonContainerCnvBase_p1
39
{
40
public
:
41
using
base_class::transToPers
;
42
using
base_class::persToTrans
;
43
44
typedef
ServiceHandle<StoreGateSvc>
StoreGateSvc_t
;
45
MuonContainerCnv_p1
(){}
46
virtual
void
persToTrans
(
const
MuonContainer_p1
* persColl,
Analysis::MuonContainer
* transColl, MsgStream &log)
const
;
47
void
setKey
(
const
std::string& key) {
m_cnv
.setKey( key ); }
48
void
setEventStore
(
const
StoreGateSvc_t
storeGate ) {
m_cnv
.setEventStore( storeGate ); }
49
private
:
50
MuonCnv_p1
m_cnv
;
51
};
52
53
inline
void
MuonContainerCnv_p1::persToTrans
(
const
MuonContainer_p1
* persColl,
Analysis::MuonContainer
* transColl, MsgStream &log)
const
54
{
55
MuonContainer_p1::const_iterator it;
56
transColl->
clear
();
57
transColl->
reserve
(persColl->size());
58
for
(it = persColl->begin(); it != persColl->end(); ++it) {
59
transColl->
push_back
(
m_cnv
.createTransientConst(&(*it), log));
60
}
61
}
62
63
#endif
//> RECTPCNV_MUONCONTAINERCNV_P1_H
MuonCnv_p1.h
MuonContainerCnvBase_p1
T_AthenaPoolTPCnvVectorConst< Analysis::MuonContainer, MuonContainer_p1, MuonCnv_p1 > MuonContainerCnvBase_p1
Definition
MuonContainerCnv_p1.h:36
MuonContainer_p1.h
MuonContainer.h
StoreGateSvc.h
T_AthenaPoolTPConverter.h
T_AthenaPoolTPCnvVectorConst
TPCnvVectorConst< TRANS, PERS, CONV > T_AthenaPoolTPCnvVectorConst
Definition
T_AthenaPoolTPConverter.h:69
Analysis::MuonContainer
definition of StoreGate container holding a vector of Analysis::Muon
Definition
Reconstruction/MuonIdentification/muonEvent/muonEvent/MuonContainer.h:38
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::clear
void clear()
Erase all the elements in the collection.
MuonCnv_p1
Definition
MuonCnv_p1.h:33
MuonContainerCnv_p1::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition
MuonContainerCnv_p1.h:44
MuonContainerCnv_p1::setEventStore
void setEventStore(const StoreGateSvc_t storeGate)
Definition
MuonContainerCnv_p1.h:48
MuonContainerCnv_p1::MuonContainerCnv_p1
MuonContainerCnv_p1()
Definition
MuonContainerCnv_p1.h:45
MuonContainerCnv_p1::m_cnv
MuonCnv_p1 m_cnv
Definition
MuonContainerCnv_p1.h:50
MuonContainerCnv_p1::setKey
void setKey(const std::string &key)
Definition
MuonContainerCnv_p1.h:47
MuonContainerCnv_p1::persToTrans
virtual void persToTrans(const MuonContainer_p1 *persColl, Analysis::MuonContainer *transColl, MsgStream &log) const
Definition
MuonContainerCnv_p1.h:53
MuonContainer_p1
Definition
MuonContainer_p1.h:27
ServiceHandle
Definition
ClusterMakerTool.h:36
TPConverterConstBase::transToPers
virtual void transToPers(const TRANS *transObj, PERS *persObj, MsgStream &log) const =0
Convert transient representation to persistent one.
TPConverterConstBase::persToTrans
virtual void persToTrans(const PERS *persObj, TRANS *transObj, MsgStream &log) const =0
Convert persistent representation to transient one.
Generated on
for ATLAS Offline Software by
1.17.0