ATLAS Offline Software
SCT_ClusterContainerCnv_p1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SCT_CLUSTERCONTAINERCNV_P1_H
6 #define SCT_CLUSTERCONTAINERCNV_P1_H
7 
8 //-----------------------------------------------------------------------------
9 //
10 // file: SCT_ClusterContainerCnv_p1.h
11 //
12 //-----------------------------------------------------------------------------
13 
15 
18 
21 
22 class MsgStream;
23 class SCT_ID;
24 class StoreGateSvc;
25 
26 namespace InDet{
27 class SCT_ClusterContainerCnv_p1 : public T_AthenaPoolTPCnvBase< InDet::SCT_ClusterContainer, InDet::InDetPRD_Container_p1 >
28 
29 {
30  public:
34  virtual void transToPers(const TRANS* transCont, PERS* persCont, MsgStream &log);
35  virtual void persToTrans(const PERS* persCont, TRANS* transCont, MsgStream &log);
37  // Method for test/SCT_ClusterContainerCnv_p1_test.cxx
38  void setUseDetectorElement(const bool useDetectorElement);
39  private:
40  const SCT_ID *m_sctId{nullptr};
41  ServiceHandle<StoreGateSvc> m_storeGate{"StoreGateSvc", "SCT_ClusterContainerCnv_p1"};
43  // Declaration of ReadCondHandleKey in SCT_ClusterContainerCnv_p1 triggers memory leak in SCT_ClusterCnv_p1_test.
45  bool m_isInitialized{false};
46  StatusCode initialize(MsgStream &log);
47 };
48 
49 }
50 #endif
51 
InDet::SCT_ClusterContainerCnv_p1::PERS
InDet::InDetPRD_Container_p1 PERS
Definition: SCT_ClusterContainerCnv_p1.h:31
InDet::SCT_ClusterContainerCnv_p1::setUseDetectorElement
void setUseDetectorElement(const bool useDetectorElement)
Definition: SCT_ClusterContainerCnv_p1.cxx:179
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
TPConverterBase
Definition: TPConverter.h:738
InDet::SCT_ClusterContainerCnv_p1::TRANS
InDet::SCT_ClusterContainer TRANS
Definition: SCT_ClusterContainerCnv_p1.h:32
InDet::SCT_ClusterContainer
Trk::PrepRawDataContainer< SCT_ClusterCollection > SCT_ClusterContainer
Definition: SCT_ClusterContainer.h:27
InDet::SCT_ClusterContainerCnv_p1::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: SCT_ClusterContainerCnv_p1.h:42
InDet::SCT_ClusterContainerCnv_p1::m_storeGate
ServiceHandle< StoreGateSvc > m_storeGate
Definition: SCT_ClusterContainerCnv_p1.h:41
InDet::SCT_ClusterContainerCnv_p1::SCT_ClusterContainerCnv_p1
SCT_ClusterContainerCnv_p1()=default
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
InDetPRD_Container_p1.h
InDet::SCT_ClusterContainerCnv_p1::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: SCT_ClusterContainerCnv_p1.cxx:25
InDet::SCT_ClusterContainerCnv_p1::m_sctId
const SCT_ID * m_sctId
Definition: SCT_ClusterContainerCnv_p1.h:40
InDet::SCT_ClusterContainerCnv_p1::m_isInitialized
bool m_isInitialized
Definition: SCT_ClusterContainerCnv_p1.h:45
ReadCondHandleKey.h
SiDetectorElementCollection.h
InDet::SCT_ClusterContainerCnv_p1::createTransient
virtual InDet::SCT_ClusterContainer * createTransient(const InDet::InDetPRD_Container_p1 *persObj, MsgStream &log)
Definition: SCT_ClusterContainerCnv_p1.cxx:148
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
SCT_ID
Definition: SCT_ID.h:68
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
InDet::SCT_ClusterContainerCnv_p1
Definition: SCT_ClusterContainerCnv_p1.h:29
SCT_ClusterContainer.h
InDet::SCT_ClusterContainerCnv_p1::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: SCT_ClusterContainerCnv_p1.cxx:76
InDet::SCT_ClusterContainerCnv_p1::initialize
StatusCode initialize(MsgStream &log)
Definition: SCT_ClusterContainerCnv_p1.cxx:160
InDet::SCT_ClusterContainerCnv_p1::m_useDetectorElement
bool m_useDetectorElement
Definition: SCT_ClusterContainerCnv_p1.h:44
ServiceHandle< StoreGateSvc >
InDet::InDetPRD_Container_p1
Definition: InDetPRD_Container_p1.h:14