ATLAS Offline Software
InnerDetector
InDetDetDescr
BLM_GeoModel
src
BLM_GeometryManager.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
BLM_GeoModel/BLM_GeometryManager.h
"
6
7
BLM_GeometryManager::BLM_GeometryManager
()
8
{
9
m_on
= 0;
10
}
11
12
BLM_ModuleParameters
*
BLM_GeometryManager::Module
(
unsigned
int
module_number)
13
{
14
unsigned
int
mask
= (1 << module_number);
15
if
((
mask
&
m_on
) ==
mask
)
16
return
&(
m_moduli
[module_number]);
17
else
18
return
nullptr
;
19
}
20
21
void
BLM_GeometryManager::ModuleOn
(
unsigned
int
module_number)
22
{
23
m_on
=
m_on
| (1 << module_number);
24
}
25
26
void
BLM_GeometryManager::ModuleOff
(
unsigned
int
module_number)
27
{
28
m_on
=
m_on
& (~(1 << module_number));
29
}
30
31
unsigned
int
BLM_GeometryManager::IsModuleOn
(
unsigned
int
module_number)
const
32
{
33
unsigned
int
mask
= (1 << module_number);
34
return
mask
&
m_on
;
35
}
BLM_GeometryManager::ModuleOn
void ModuleOn(unsigned int module_number)
Definition:
BLM_GeometryManager.cxx:21
python.utils.AtlRunQueryLookup.mask
string mask
Definition:
AtlRunQueryLookup.py:460
BLM_GeometryManager::Module
BLM_ModuleParameters * Module(unsigned int module_number)
Definition:
BLM_GeometryManager.cxx:12
BLM_GeometryManager::IsModuleOn
unsigned int IsModuleOn(unsigned int module_number) const
Definition:
BLM_GeometryManager.cxx:31
BLM_GeometryManager.h
BLM_ModuleParameters
Definition:
BLM_ModuleParameters.h:20
BLM_GeometryManager::BLM_GeometryManager
BLM_GeometryManager()
Definition:
BLM_GeometryManager.cxx:7
BLM_GeometryManager::ModuleOff
void ModuleOff(unsigned int module_number)
Definition:
BLM_GeometryManager.cxx:26
BLM_GeometryManager::m_on
unsigned int m_on
Definition:
BLM_GeometryManager.h:31
BLM_GeometryManager::m_moduli
BLM_ModuleParameters m_moduli[12]
Definition:
BLM_GeometryManager.h:30
Generated on Tue Dec 24 2024 21:07:29 for ATLAS Offline Software by
1.8.18