ATLAS Offline Software
MuonCnv_p1.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // MuonCnv_p1.h
8 // Header file for class MuonCnv_p1
9 // Author: K.Cranmer<cranmer@cern.ch>
10 // Author: S.Binet<binet@cern.ch>
12 #ifndef RECTPCNV_MUONCNV_P1_H
13 #define RECTPCNV_MUONCNV_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 // AthenaPoolCnvSvc includes
24 
25 // RecTPCnv includes
26 #include "RecTPCnv/Muon_p1.h"
27 
28 // Forward declaration
29 class MsgStream;
30 namespace Analysis { class Muon; }
31 
32 class MuonCnv_p1 : public T_AthenaPoolTPCnvConstBase<Analysis::Muon, Muon_p1>
33 {
34  public:
37 
38 
40 
43  MuonCnv_p1();
44 
45 
49  virtual void persToTrans( const Muon_p1* persObj,
50  Analysis::Muon* transObj,
51  MsgStream& msg ) const override;
52 
56  virtual void transToPers( const Analysis::Muon* transObj,
57  Muon_p1* persObj,
58  MsgStream& msg ) const override;
59 
60  void setKey ( const std::string& key ) { m_muonCaloEnergyContainerName=key; }
62 
63  protected:
64 
67 };
68 
69 
71  : m_storeGate( "StoreGateSvc", "MuonContainerCnv" )
72 {}
73 
74 #endif //> RECTPCNV_MUONCNV_P1_H
TPConverterConstBase::transToPers
virtual void transToPers(const TRANS *transObj, PERS *persObj, MsgStream &log) const =0
Convert transient representation to persistent one.
MuonCnv_p1::m_muonCaloEnergyContainerName
std::string m_muonCaloEnergyContainerName
Definition: MuonCnv_p1.h:66
MuonCnv_p1
Definition: MuonCnv_p1.h:33
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
MuonCnv_p1::setEventStore
void setEventStore(const StoreGateSvc_t storeGate)
Definition: MuonCnv_p1.h:61
Muon_p1.h
MuonCnv_p1::setKey
void setKey(const std::string &key)
Definition: MuonCnv_p1.h:60
MuonCnv_p1::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition: MuonCnv_p1.h:39
MuonCnv_p1::persToTrans
virtual void persToTrans(const Muon_p1 *persObj, Analysis::Muon *transObj, MsgStream &msg) const override
Method creating the transient representation of Analysis::Muon from its persistent representation Muo...
Definition: MuonCnv_p1.cxx:44
Muon_p1
Definition: Muon_p1.h:39
T_AthenaPoolTPConverter.h
Analysis::Muon
The ATLAS Muon object - see doxygen, physics workbookd and the Muon Combined Performance WG's pages f...
Definition: Reconstruction/MuonIdentification/muonEvent/muonEvent/Muon.h:48
MuonCnv_p1::m_storeGate
StoreGateSvc_t m_storeGate
Definition: MuonCnv_p1.h:65
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
TPConverterConstBase::persToTrans
virtual void persToTrans(const PERS *persObj, TRANS *transObj, MsgStream &log) const =0
Convert persistent representation to transient one.
MuonCnv_p1::MuonCnv_p1
MuonCnv_p1()
Default constructor:
Definition: MuonCnv_p1.h:70
MuonCnv_p1::transToPers
virtual void transToPers(const Analysis::Muon *transObj, Muon_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation Muon_p1 from its transient representation Analysis::Muo...
Definition: MuonCnv_p1.cxx:179
TPConverterConstBase
Definition: TPConverter.h:776
StoreGateSvc.h
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
python.PyKernel.storeGate
storeGate
Definition: PyKernel.py:40
ServiceHandle< StoreGateSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37