ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecTPCnv
RecTPCnv
MuonContainerCnv_p2.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_p2.h
8
// Header file for class MuonContainerCnv_p2
9
// Author: Ketevi A. Assamagan <ketevi@bnl.gov>
11
#ifndef RECTPCNV_MUONCONTAINERCNV_P2_H
12
#define RECTPCNV_MUONCONTAINERCNV_P2_H
13
14
// STL includes
15
#include <string>
16
17
// Gaudi includes
18
#include "GaudiKernel/ToolHandle.h"
19
#include "
StoreGate/StoreGateSvc.h
"
20
21
// muonEvent includes
22
#include "
muonEvent/MuonContainer.h
"
23
24
// AthenaPoolCnvSvc includes
25
#include "
AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h
"
26
27
// RecTPCnv includes
28
#include "
RecTPCnv/MuonContainer_p2.h
"
29
#include "
RecTPCnv/MuonCnv_p2.h
"
30
31
typedef
T_AthenaPoolTPCnvVectorConst
<
32
Analysis::MuonContainer
,
33
MuonContainer_p2
,
34
MuonCnv_p2
35
>
MuonContainerCnvBase_p2
;
36
37
class
MuonContainerCnv_p2
:
public
MuonContainerCnvBase_p2
38
{
39
public
:
40
using
base_class::transToPers
;
41
using
base_class::persToTrans
;
42
43
typedef
ServiceHandle<StoreGateSvc>
StoreGateSvc_t
;
44
MuonContainerCnv_p2
() {}
45
virtual
void
persToTrans
(
const
MuonContainer_p2
* persColl,
Analysis::MuonContainer
* transColl, MsgStream &log)
const
;
46
void
setKey
(
const
std::string& key) {
m_cnv
.setKey( key ); }
47
void
setEventStore
(
const
StoreGateSvc_t
storeGate ) {
m_cnv
.setEventStore( storeGate ); }
48
private
:
49
MuonCnv_p2
m_cnv
;
50
};
51
52
53
inline
void
MuonContainerCnv_p2::persToTrans
(
const
MuonContainer_p2
* persColl,
Analysis::MuonContainer
* transColl, MsgStream &log)
const
54
{
55
MuonContainer_p2::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_P2_H
MuonCnv_p2.h
MuonContainerCnvBase_p2
T_AthenaPoolTPCnvVectorConst< Analysis::MuonContainer, MuonContainer_p2, MuonCnv_p2 > MuonContainerCnvBase_p2
Definition
MuonContainerCnv_p2.h:35
MuonContainer_p2.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_p2
Definition
MuonCnv_p2.h:32
MuonContainerCnv_p2::setEventStore
void setEventStore(const StoreGateSvc_t storeGate)
Definition
MuonContainerCnv_p2.h:47
MuonContainerCnv_p2::setKey
void setKey(const std::string &key)
Definition
MuonContainerCnv_p2.h:46
MuonContainerCnv_p2::persToTrans
virtual void persToTrans(const MuonContainer_p2 *persColl, Analysis::MuonContainer *transColl, MsgStream &log) const
Definition
MuonContainerCnv_p2.h:53
MuonContainerCnv_p2::m_cnv
MuonCnv_p2 m_cnv
Definition
MuonContainerCnv_p2.h:49
MuonContainerCnv_p2::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition
MuonContainerCnv_p2.h:43
MuonContainerCnv_p2::MuonContainerCnv_p2
MuonContainerCnv_p2()
Definition
MuonContainerCnv_p2.h:44
MuonContainer_p2
Definition
MuonContainer_p2.h:23
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