ATLAS Offline Software
InnerDetector
InDetDetDescr
BCM_GeoModel
src
BCM_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 "
BCM_GeoModel/BCM_GeometryManager.h
"
6
7
BCM_GeometryManager::BCM_GeometryManager
()
8
{
9
m_on
= 0;
10
}
11
12
BCM_ModuleParameters
*
BCM_GeometryManager::Module
(
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
BCM_GeometryManager::ModuleOn
(
int
module_number)
22
{
23
m_on
=
m_on
| (1 << module_number);
24
}
25
26
void
BCM_GeometryManager::ModuleOff
(
int
module_number)
27
{
28
m_on
=
m_on
& (~(1 << module_number));
29
}
30
31
int
BCM_GeometryManager::IsModuleOn
(
int
module_number)
const
32
{
33
int
mask
= (1 << module_number);
34
return
mask
&
m_on
;
35
}
BCM_GeometryManager::m_on
unsigned int m_on
Definition:
BCM_GeometryManager.h:31
BCM_GeometryManager::ModuleOff
void ModuleOff(int module_number)
Definition:
BCM_GeometryManager.cxx:26
BCM_GeometryManager::Module
BCM_ModuleParameters * Module(int module_number)
Definition:
BCM_GeometryManager.cxx:12
BCM_ModuleParameters
Definition:
BCM_ModuleParameters.h:20
python.utils.AtlRunQueryLookup.mask
string mask
Definition:
AtlRunQueryLookup.py:460
BCM_GeometryManager.h
BCM_GeometryManager::BCM_GeometryManager
BCM_GeometryManager()
Definition:
BCM_GeometryManager.cxx:7
BCM_GeometryManager::IsModuleOn
int IsModuleOn(int module_number) const
Definition:
BCM_GeometryManager.cxx:31
BCM_GeometryManager::m_moduli
BCM_ModuleParameters m_moduli[8]
Definition:
BCM_GeometryManager.h:30
BCM_GeometryManager::ModuleOn
void ModuleOn(int module_number)
Definition:
BCM_GeometryManager.cxx:21
Generated on Tue Dec 24 2024 21:07:24 for ATLAS Offline Software by
1.8.18