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/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
31
32
33#ifndef CALOIDCNV_CALOIDHELPER_IDDETDESCRCNV_H
34#define CALOIDCNV_CALOIDHELPER_IDDETDESCRCNV_H
35
36
38
39
40class IdHelper;
41
42
43namespace CaloIdCnv {
44
45
56 : public DetDescrConverter
57{
58public:
64 virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
65
66
70 virtual long int repSvcType() const;
71
72
78 CaloIDHelper_IDDetDescrCnv (const CLID& clid, ISvcLocator* svcloc);
79
80
87 virtual StatusCode createHelper (const std::string& helperKey,
88 IdHelper* & idhelper,
89 DataObject*& pObj) = 0;
90};
91
92
102template <class T>
103StatusCode make_CaloIDHelper (ISvcLocator* svcloc,
104 const std::string& helperKey,
105 T* & idhelper);
106
107
116template <class T>
119{
120
121public:
126 static const CLID& classID();
127
128
133 CaloIDHelper_IDDetDescrCnv_T (ISvcLocator* svcloc);
134
135
142 virtual StatusCode createHelper (const std::string& helperKey,
143 IdHelper* & idhelper,
144 DataObject*& pObj);
145};
146
147
148} // namespace CaloIdCnv
149
150
152
153
154#endif // not CALOIDCNV_CALOIDHELPER_IDDETDESCRCNV_H
uint32_t CLID
The Class ID type.
static const CLID & classID()
Return the CLID of the class we create.
CaloIDHelper_IDDetDescrCnv_T(ISvcLocator *svcloc)
Constructor.
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.