ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
InDetIdentifier
InDetIdentifier
PLR_ID.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 INDETIDENTIFIER_PLR_ID_H
6
#define INDETIDENTIFIER_PLR_ID_H
11
12
#include "
InDetIdentifier/PixelID.h
"
13
20
21
class
PLR_ID
final:
public
PixelID
22
{
23
public
:
24
PLR_ID
(
const
std::string & name =
"PLR_ID"
,
const
std::string &
group
=
"pixel"
);
26
AtlasDetectorID::HelperType
helper
()
const
override final{
27
return
AtlasDetectorID::HelperType::PLR
;
28
}
29
31
virtual
int
initialize_from_dictionary
(
const
IdDictMgr
& dict_mgr)
override
;
32
33
size_type
m_LUMI_INDEX
{1};
34
size_type
m_PLR_INDEX
{2};
35
36
private
:
37
int
initLevelsFromDict
();
38
39
IdDictFieldImplementation
m_lumi_impl
;
40
IdDictFieldImplementation
m_plr_impl
;
41
42
};
43
44
// using the macros below we can assign an identifier (and a version) (clid PLR_ID returned: 131939624 PLR_ID)
45
// This is required and checked at compile time when you try to record/retrieve
46
// See here: https://gitlab.cern.ch/atlas/athena/-/blob/master/DetectorDescription/DetDescrCnvSvc/src/DetDescrCnvSvc.cxx#L165
47
CLASS_DEF
(
PLR_ID
, 131939624, 1)
48
49
#endif
// INDETIDENTIFIER_PLR_ID_H
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
PixelID.h
This is an Identifier helper class for the Pixel subdetector.
AtlasDetectorID::HelperType
HelperType
enum class for eventual final derived types of this class
Definition
AtlasDetectorID.h:56
AtlasDetectorID::HelperType::PLR
@ PLR
Definition
AtlasDetectorID.h:59
AtlasDetectorID::group
const std::string & group() const
Group name for this helper.
Definition
AtlasDetectorID.cxx:39
IdDictFieldImplementation
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
Definition
IdDictFieldImplementation.h:59
IdDictMgr
Definition
IdDictMgr.h:17
PLR_ID
This is a Identifier helper class for the PLR subdetector.
Definition
PLR_ID.h:22
PLR_ID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Definition
PLR_ID.cxx:35
PLR_ID::m_LUMI_INDEX
size_type m_LUMI_INDEX
Definition
PLR_ID.h:33
PLR_ID::PLR_ID
PLR_ID(const std::string &name="PLR_ID", const std::string &group="pixel")
Definition
PLR_ID.cxx:24
PLR_ID::m_PLR_INDEX
size_type m_PLR_INDEX
Definition
PLR_ID.h:34
PLR_ID::m_plr_impl
IdDictFieldImplementation m_plr_impl
Definition
PLR_ID.h:40
PLR_ID::helper
AtlasDetectorID::HelperType helper() const override final
This is an PLR_ID helper.
Definition
PLR_ID.h:26
PLR_ID::m_lumi_impl
IdDictFieldImplementation m_lumi_impl
Definition
PLR_ID.h:39
PLR_ID::initLevelsFromDict
int initLevelsFromDict()
Definition
PLR_ID.cxx:183
PixelID::PixelID
PixelID(const std::string &name="PixelID", const std::string &group="pixel")
Definition
PixelID.cxx:25
PixelID::size_type
Identifier::size_type size_type
Definition
PixelID.h:73
const
Generated on
for ATLAS Offline Software by
1.17.0