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

#include <BCM_GeometryManager.h>

Collaboration diagram for BCM_GeometryManager:

Public Member Functions

 BCM_GeometryManager ()
 
BCM_ModuleParametersModule (int module_number)
 
void ModuleOn (int module_number)
 
void ModuleOff (int module_number)
 
int IsModuleOn (int module_number) const
 

Private Attributes

BCM_ModuleParameters m_moduli [8]
 
unsigned int m_on
 

Detailed Description

Beam Condition 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 BCM_GeometryManager.h.

Constructor & Destructor Documentation

◆ BCM_GeometryManager()

BCM_GeometryManager::BCM_GeometryManager ( )

Definition at line 7 of file BCM_GeometryManager.cxx.

8 {
9  m_on = 0;
10 }

Member Function Documentation

◆ IsModuleOn()

int BCM_GeometryManager::IsModuleOn ( int  module_number) const

Definition at line 31 of file BCM_GeometryManager.cxx.

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

◆ Module()

BCM_ModuleParameters * BCM_GeometryManager::Module ( int  module_number)

Definition at line 12 of file BCM_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 BCM_GeometryManager::ModuleOff ( int  module_number)

Definition at line 26 of file BCM_GeometryManager.cxx.

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

◆ ModuleOn()

void BCM_GeometryManager::ModuleOn ( int  module_number)

Definition at line 21 of file BCM_GeometryManager.cxx.

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

Member Data Documentation

◆ m_moduli

BCM_ModuleParameters BCM_GeometryManager::m_moduli[8]
private

Definition at line 30 of file BCM_GeometryManager.h.

◆ m_on

unsigned int BCM_GeometryManager::m_on
private

Definition at line 31 of file BCM_GeometryManager.h.


The documentation for this class was generated from the following files:
BCM_GeometryManager::m_on
unsigned int m_on
Definition: BCM_GeometryManager.h:31
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
BCM_GeometryManager::m_moduli
BCM_ModuleParameters m_moduli[8]
Definition: BCM_GeometryManager.h:30