ATLAS Offline Software
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 
6 
8 {
9  m_on = 0;
10 }
11 
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