ATLAS Offline Software
DetectorDescription
Identifier
Identifier
IdHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef IDENTIFIER_IDHELPER_H
8
#define IDENTIFIER_IDHELPER_H
9
10
#include <string>
11
12
class
Identifier
;
13
class
IdentifierHash
;
14
class
IdContext
;
15
class
IdDictMgr
;
16
class
IMessageSvc;
17
24
class
IdHelper
{
25
public
:
26
27
virtual
~IdHelper
() =
default
;
28
29
// Create compact id from hash id (return == 0 for OK)
30
virtual
int
get_id
(
const
IdentifierHash
& hash_id,
31
Identifier
&
id
,
32
const
IdContext
* context = 0)
const
= 0;
33
34
// Create hash id from compact id (return == 0 for OK)
35
virtual
int
get_hash
(
const
Identifier
&
id
,
36
IdentifierHash
& hash_id,
37
const
IdContext
* context = 0)
const
= 0;
38
39
// Initialization from the identifier dictionary
40
virtual
int
initialize_from_dictionary
(
const
IdDictMgr
& dict_mgr) = 0;
41
42
// retrieve version of the dictionary
43
virtual
std::string
dictionaryVersion
(
void
)
const
= 0;
44
48
virtual
bool
do_checks
()
const
= 0;
49
virtual
void
set_do_checks
(
bool
do_checks
) = 0;
53
virtual
bool
do_neighbours
()
const
= 0;
54
virtual
void
set_do_neighbours
(
bool
do_neighbours
) = 0;
55
56
// setting pointer to the MessageSvc
57
virtual
void
setMessageSvc
(IMessageSvc*
msgSvc
) = 0;
58
59
virtual
void
setDictVersion
(
const
IdDictMgr
& dict_mgr,
const
std::string&
name
) = 0;
60
};
61
62
63
64
#endif // IDENTIFIER_IDCONVERSIONSTRATEGY_H
IdHelper::set_do_checks
virtual void set_do_checks(bool do_checks)=0
IdHelper::get_id
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const =0
IdHelper::~IdHelper
virtual ~IdHelper()=default
IdHelper::get_hash
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const =0
IdDictMgr
Definition:
IdDictDefs.h:32
IdHelper::dictionaryVersion
virtual std::string dictionaryVersion(void) const =0
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition:
StdJOSetup.py:36
IdHelper
This is an abstract base class for helper classes that know how to convert Identifier <-> IdentifierH...
Definition:
IdHelper.h:24
IdHelper::do_checks
virtual bool do_checks() const =0
Checks are performed by default in debug compilation and NOT in optimized compilation.
IdHelper::setMessageSvc
virtual void setMessageSvc(IMessageSvc *msgSvc)=0
IdHelper::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr)=0
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
IdHelper::setDictVersion
virtual void setDictVersion(const IdDictMgr &dict_mgr, const std::string &name)=0
IdHelper::do_neighbours
virtual bool do_neighbours() const =0
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition:
IdentifierHash.h:25
IdHelper::set_do_neighbours
virtual void set_do_neighbours(bool do_neighbours)=0
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition:
IdContext.h:26
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:16:38 for ATLAS Offline Software by
1.8.18