ATLAS Offline Software
T_Muon_IDDetDescrCnv.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 MUONCNV_T_MUON_IDDETDESCRCNV_H
6 #define MUONCNV_T_MUON_IDDETDESCRCNV_H
7 
8 #include "GaudiKernel/IOpaqueAddress.h"
9 #include "GaudiKernel/ISvcLocator.h"
10 #include "GaudiKernel/StatusCode.h"
11 
15 
16 
22 template <class IDHELPER>
24 
25 public:
26  T_Muon_IDDetDescrCnv(ISvcLocator* svcloc, const char* name);
27 
28  virtual StatusCode initialize() override;
29  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj) override;
30  virtual long int repSvcType() const override { return storageType(); }
31 
32  // Storage type and class ID (used by CnvFactory)
33  static long storageType() { return DetDescr_StorageType; }
34  static const CLID& classID() { return ClassID_traits<IDHELPER>::ID(); }
35 };
36 
37 #include "T_Muon_IDDetDescrCnv.icc"
38 
39 #endif
T_Muon_IDDetDescrCnv
Templated base class for Muon detector description converters.
Definition: T_Muon_IDDetDescrCnv.h:23
DetDescr_StorageType
const long DetDescr_StorageType
Definition: DetDescrCnvSvc.cxx:20
DetDescrAddress.h
T_Muon_IDDetDescrCnv::T_Muon_IDDetDescrCnv
T_Muon_IDDetDescrCnv(ISvcLocator *svcloc, const char *name)
T_Muon_IDDetDescrCnv.icc
T_Muon_IDDetDescrCnv::repSvcType
virtual long int repSvcType() const override
Definition: T_Muon_IDDetDescrCnv.h:30
ClassID_traits::ID
static const CLID & ID()
the CLID of T
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:50
DetDescrConverter
Definition: DetDescrConverter.h:25
ClassID_traits.h
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_Muon_IDDetDescrCnv::createObj
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DetDescrConverter.h
T_Muon_IDDetDescrCnv::classID
static const CLID & classID()
Definition: T_Muon_IDDetDescrCnv.h:34
T_Muon_IDDetDescrCnv::initialize
virtual StatusCode initialize() override
T_Muon_IDDetDescrCnv::storageType
static long storageType()
Definition: T_Muon_IDDetDescrCnv.h:33