ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
BLM_GeometryManager Class Reference

#include <BLM_GeometryManager.h>

Collaboration diagram for BLM_GeometryManager:

Public Member Functions

 BLM_GeometryManager ()
 
BLM_ModuleParametersModule (unsigned int module_number)
 
void ModuleOn (unsigned int module_number)
 
void ModuleOff (unsigned int module_number)
 
unsigned int IsModuleOn (unsigned int module_number) const
 

Private Attributes

BLM_ModuleParameters m_moduli [12]
 
unsigned int m_on
 

Detailed Description

Beam Loss Monitor Geometry Manager

Author
Bostjan Macek bostj.nosp@m.an.m.nosp@m.acek@.nosp@m.cern.nosp@m..ch

Definition at line 19 of file BLM_GeometryManager.h.

Constructor & Destructor Documentation

◆ BLM_GeometryManager()

BLM_GeometryManager::BLM_GeometryManager ( )

Definition at line 7 of file BLM_GeometryManager.cxx.

8 {
9  m_on = 0;
10 }

Member Function Documentation

◆ IsModuleOn()

unsigned int BLM_GeometryManager::IsModuleOn ( unsigned int  module_number) const

Definition at line 31 of file BLM_GeometryManager.cxx.

32 {
33  unsigned int mask = (1 << module_number);
34  return mask & m_on;
35 }

◆ Module()

BLM_ModuleParameters * BLM_GeometryManager::Module ( unsigned int  module_number)

Definition at line 12 of file BLM_GeometryManager.cxx.

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 }

◆ ModuleOff()

void BLM_GeometryManager::ModuleOff ( unsigned int  module_number)

Definition at line 26 of file BLM_GeometryManager.cxx.

27 {
28  m_on = m_on & (~(1 << module_number));
29 }

◆ ModuleOn()

void BLM_GeometryManager::ModuleOn ( unsigned int  module_number)

Definition at line 21 of file BLM_GeometryManager.cxx.

22 {
23  m_on = m_on | (1 << module_number);
24 }

Member Data Documentation

◆ m_moduli

BLM_ModuleParameters BLM_GeometryManager::m_moduli[12]
private

Definition at line 30 of file BLM_GeometryManager.h.

◆ m_on

unsigned int BLM_GeometryManager::m_on
private

Definition at line 31 of file BLM_GeometryManager.h.


The documentation for this class was generated from the following files:
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
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