ATLAS Offline Software
Loading...
Searching...
No Matches
CaloIDHelper_IDDetDescrCnv.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4*/
28
29
30#ifndef CALOIDCNV_CALOIDHELPER_IDDETDESCRCNV_H
31#define CALOIDCNV_CALOIDHELPER_IDDETDESCRCNV_H
32
33
35
36
37class IdHelper;
38
39
40namespace CaloIdCnv {
41
42
53 : public DetDescrConverter
54{
55public:
61 virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
62
63
67 virtual long int repSvcType() const;
68
69
75 CaloIDHelper_IDDetDescrCnv (const CLID& clid, ISvcLocator* svcloc);
76
77
84 virtual StatusCode createHelper (const std::string& helperKey,
85 IdHelper* & idhelper,
86 DataObject*& pObj) = 0;
87};
88
89
99template <class T>
100StatusCode make_CaloIDHelper (ISvcLocator* svcloc,
101 const std::string& helperKey,
102 T* & idhelper);
103
104
113template <class T>
116{
117
118public:
123 static CLID classID();
124
125
130 CaloIDHelper_IDDetDescrCnv_T (ISvcLocator* svcloc);
131
132
139 virtual StatusCode createHelper (const std::string& helperKey,
140 IdHelper* & idhelper,
141 DataObject*& pObj);
142};
143
144
145} // namespace CaloIdCnv
146
147
149
150
151#endif // not CALOIDCNV_CALOIDHELPER_IDDETDESCRCNV_H
uint32_t CLID
The Class ID type.
CaloIDHelper_IDDetDescrCnv_T(ISvcLocator *svcloc)
Constructor.
static CLID classID()
Return the CLID of the class we create.
virtual StatusCode createHelper(const std::string &helperKey, IdHelper *&idhelper, DataObject *&pObj)
Create the helper object.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Called by the converter infrastructure to create an object.
virtual StatusCode createHelper(const std::string &helperKey, IdHelper *&idhelper, DataObject *&pObj)=0
Create the helper object.
virtual long int repSvcType() const
Return the service type.
CaloIDHelper_IDDetDescrCnv(const CLID &clid, ISvcLocator *svcloc)
Constructor.
DetDescrConverter(const CLID &myCLID, ISvcLocator *svcloc, const char *name=nullptr)
This is an abstract base class for helper classes that know how to convert Identifier <-> IdentifierH...
Definition IdHelper.h:24
StatusCode make_CaloIDHelper(ISvcLocator *svcloc, const std::string &helperKey, T *&idhelper)
Helper function to actually create a new helper.