ATLAS Offline Software
MuonCnv_p2.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_p2.h
8 // Header file for class MuonCnv_p2
9 // Author: Ketevi A. Assamagan <ketevi@bnl.gov>
11 #ifndef RECTPCNV_MUONCNV_P2_H
12 #define RECTPCNV_MUONCNV_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 // AthenaPoolCnvSvc includes
23 
24 // RecTPCnv includes
25 #include "RecTPCnv/Muon_p2.h"
26 
27 // Forward declaration
28 class MsgStream;
29 namespace Analysis { class Muon; }
30 
31 class MuonCnv_p2 : public T_AthenaPoolTPCnvConstBase<Analysis::Muon, Muon_p2>
32 {
33  public:
36 
37 
39 
42  MuonCnv_p2();
43 
44 
48  virtual void persToTrans( const Muon_p2* persObj,
49  Analysis::Muon* transObj,
50  MsgStream& msg ) const override;
51 
55  virtual void transToPers( const Analysis::Muon* transObj,
56  Muon_p2* persObj,
57  MsgStream& msg ) const override;
58 
59  void setKey ( const std::string& key ) { m_muonCaloEnergyContainerName=key; }
61 
62  protected:
63 
66 };
67 
68 
70  : m_storeGate( "StoreGateSvc", "MuonContainerCnv" )
71 {}
72 
73 #endif //> RECTPCNV_MUONCNV_P2_H
MuonCnv_p2
Definition: MuonCnv_p2.h:32
MuonCnv_p2::m_muonCaloEnergyContainerName
std::string m_muonCaloEnergyContainerName
Definition: MuonCnv_p2.h:65
MuonCnv_p2::transToPers
virtual void transToPers(const Analysis::Muon *transObj, Muon_p2 *persObj, MsgStream &msg) const override
Method creating the persistent representation Muon_p1 from its transient representation Analysis::Muo...
Definition: MuonCnv_p2.cxx:191
MuonCnv_p2::persToTrans
virtual void persToTrans(const Muon_p2 *persObj, Analysis::Muon *transObj, MsgStream &msg) const override
Method creating the transient representation of Analysis::Muon from its persistent representation Muo...
Definition: MuonCnv_p2.cxx:46
TPConverterConstBase::transToPers
virtual void transToPers(const TRANS *transObj, PERS *persObj, MsgStream &log) const =0
Convert transient representation to persistent one.
Muon_p2
Definition: Muon_p2.h:38
MuonCnv_p2::m_storeGate
StoreGateSvc_t m_storeGate
Definition: MuonCnv_p2.h:64
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon_p2.h
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
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_p2::setEventStore
void setEventStore(const StoreGateSvc_t storeGate)
Definition: MuonCnv_p2.h:60
MuonCnv_p2::MuonCnv_p2
MuonCnv_p2()
Default constructor:
Definition: MuonCnv_p2.h:69
MuonCnv_p2::setKey
void setKey(const std::string &key)
Definition: MuonCnv_p2.h:59
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
MuonCnv_p2::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition: MuonCnv_p2.h:38