ATLAS Offline Software
TrackCollectionCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //-----------------------------------------------------------------------------
6 //
7 // file: TrackCollectionCnv.h
8 // author: Lukasz Janyst <ljanyst@cern.ch>
9 //
10 //-----------------------------------------------------------------------------
11 
12 #ifndef TRKEVENTATHENAPOOL_TRACKCOLLECTIONCNV_H
13 #define TRKEVENTATHENAPOOL_TRACKCOLLECTIONCNV_H
14 
15 #include "GaudiKernel/MsgStream.h"
16 
19 
22 
24 
32 
33 //-----------------------------------------------------------------------------
34 // Base class definition - defined which is the to-be-used persistent version
35 //-----------------------------------------------------------------------------
36 
38 
40 
41 //-----------------------------------------------------------------------------
42 // Converter for TrackCollection object
43 //-----------------------------------------------------------------------------
45  : public TrackCollectionCnvBase,
47 {
48 friend class CnvFactory<TrackCollectionCnv>;
49 
50 public:
51  TrackCollectionCnv( ISvcLocator *svcloc );
52 
53 protected:
54  virtual StatusCode initialize() override;
55 
57  const std::string& key) override;
58  virtual TrackCollection *createTransientWithKey (const std::string& key) override;
59 
61 
62 
63 private:
65 
66  IMessageSvc* m_msgSvc;
67  MsgStream m_log;
68  bool m_oldExtCnvInitialized = false;
69 
76  TrackCollectionCnv_tlp7 m_TPConverter; // <- the current one
77 };
78 
79 #endif // TRKEVENTATHENAPOOL_TRACKCOLLECTIONCNV_H
TrackCollectionCnv::m_TPConverter
TrackCollectionCnv_tlp7 m_TPConverter
Definition: TrackCollectionCnv.h:76
TrackCollectionCnv::m_msgSvc
IMessageSvc * m_msgSvc
Definition: TrackCollectionCnv.h:66
TrackCollectionCnv_tlp4
Definition: TrackCollectionCnv_tlp4.h:57
AthenaPoolCnvTPExtension
Definition: AthenaPoolCnvTPExtension.h:15
TrackCollectionCnv_tlp6.h
TrackCollectionCnv_tlp3.h
TrackCollectionCnv_tlp1
Definition: TrackCollectionCnv_tlp1.h:54
TrackCollectionCnv::getTopLevelTPCnv
virtual AthenaPoolTopLevelTPCnvBase * getTopLevelTPCnv() override
returns the main top-level TP converter
Definition: TrackCollectionCnv.h:60
TrackCollectionCnv::createPersistentWithKey
virtual TrackCollection_PERS * createPersistentWithKey(TrackCollection *transCont, const std::string &key) override
Definition: TrackCollectionCnv.cxx:77
TrackCollectionCnv::initializeOldExtConverters
void initializeOldExtConverters()
setup old extended converters when reading old data
Definition: TrackCollectionCnv.cxx:42
TrackCollectionCnv::createTransientWithKey
virtual TrackCollection * createTransientWithKey(const std::string &key) override
method to be implemented by the developer.
Definition: TrackCollectionCnv.cxx:93
TrackCollectionCnv_tlp5.h
TrackCollectionCnv::m_TPConverter_tlp6
TrackCollectionCnv_tlp6 m_TPConverter_tlp6
Definition: TrackCollectionCnv.h:75
TrackCollectionCnv_tlp7.h
TrackCollectionCnv_tlp4.h
T_AthenaPoolCustomCnvWithKey
This templated class extends T_AthenaPoolCustCnv to provide management of the persistent objects crea...
Definition: T_AthenaPoolCustomCnv.h:35
ITrkEventCnvTool.h
TrackCollectionCnv_tlp3
Definition: TrackCollectionCnv_tlp3.h:61
TrackCollectionCnv::m_TPConverter_tlp4
TrackCollectionCnv_tlp4 m_TPConverter_tlp4
Definition: TrackCollectionCnv.h:73
AtlasDetectorID.h
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
TrackCollectionCnv::m_TPConverter_tlp5
TrackCollectionCnv_tlp5 m_TPConverter_tlp5
Definition: TrackCollectionCnv.h:74
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrackCollectionCnv
Definition: TrackCollectionCnv.h:47
TrackCollectionCnv_tlp2.h
TrackCollection.h
TrackCollectionCnv_tlp7
Definition: TrackCollectionCnv_tlp7.h:52
T_AthenaPoolCustomCnv.h
his file contains the class definition for the templated T_AthenaPoolCustomCnv class.
TrackCollectionCnv::m_TPConverter_tlp3
TrackCollectionCnv_tlp3 m_TPConverter_tlp3
Definition: TrackCollectionCnv.h:72
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
TrackCollectionCnv_tlp1.h
Trk::TrackCollection_tlp7
Definition: TrackCollection_tlp7.h:74
DataVector< Trk::Track >
TrackCollectionCnv_tlp6
Definition: TrackCollectionCnv_tlp6.h:43
TrackCollectionCnv::m_log
MsgStream m_log
Definition: TrackCollectionCnv.h:67
TrackCollectionCnvBase
T_AthenaPoolCustomCnvWithKey< TrackCollection, TrackCollection_PERS > TrackCollectionCnvBase
Definition: TrackCollectionCnv.h:39
TrackCollectionCnv::TrackCollectionCnv
TrackCollectionCnv(ISvcLocator *svcloc)
Definition: TrackCollectionCnv.cxx:25
TrackCollectionCnv::m_oldExtCnvInitialized
bool m_oldExtCnvInitialized
Definition: TrackCollectionCnv.h:68
TopLevelTPCnvBase
Base class for top-level TP converters.
Definition: TopLevelTPCnvBase.h:32
TrackCollectionCnv::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: TrackCollectionCnv.cxx:35
TrackCollection_PERS
Trk::TrackCollection_tlp7 TrackCollection_PERS
Definition: TrackCollectionCnv.h:37
AthenaPoolCnvTPExtension.h
TrackCollectionCnv_tlp5
Definition: TrackCollectionCnv_tlp5.h:40
TrackCollectionCnv::m_TPConverter_tlp1
TrackCollectionCnv_tlp1 m_TPConverter_tlp1
Definition: TrackCollectionCnv.h:70
TrackCollectionCnv::m_TPConverter_tlp2
TrackCollectionCnv_tlp2 m_TPConverter_tlp2
Definition: TrackCollectionCnv.h:71
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
TrackCollectionCnv_tlp2
Definition: TrackCollectionCnv_tlp2.h:58