ATLAS Offline Software
Classes | Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
PySubs Class Reference

#include <PySubs.h>

Collaboration diagram for PySubs:

Classes

struct  PYSUBS
 

Public Member Functions

 PySubs ()
 
 ~PySubs ()
 
int & msel (void)
 
int & mselpd (void)
 
int & msub (int n)
 
int & kfin (int i, int j)
 
double & ckin (int n)
 
void init (void)
 
int lenMsub () const
 
int leniKfin () const
 
int lenjKfin () const
 
int lenCkin () const
 

Private Attributes

int m_dummy
 
double m_realdummy
 

Static Private Attributes

static const int s_lenMsub = 500
 
static const int s_leniKfin = 2
 
static const int s_lenjKfin = 81
 
static const int s_lenCkin = 200
 
static PYSUBSs_pysubs =0
 

Friends

struct PYSUBS
 

Detailed Description

Definition at line 17 of file PySubs.h.

Constructor & Destructor Documentation

◆ PySubs()

PySubs::PySubs ( )
inline

Definition at line 69 of file PySubs.h.

70  : m_dummy (-999),
71  m_realdummy (-999.)
72 {}

◆ ~PySubs()

PySubs::~PySubs ( )
inline

Definition at line 75 of file PySubs.h.

76 {}

Member Function Documentation

◆ ckin()

double & PySubs::ckin ( int  n)
inline

Definition at line 111 of file PySubs.h.

112 {
113  init(); // check COMMON is initialized
114  if(n < 1 || n > lenCkin()) return m_realdummy;
115  return s_pysubs->ckin[n-1];
116 }

◆ init()

void PySubs::init ( void  )
inline

Definition at line 65 of file PySubs.h.

66 { if (!s_pysubs) s_pysubs = reinterpret_cast<PYSUBS*>(pysubs_address_()); }

◆ kfin()

int & PySubs::kfin ( int  i,
int  j 
)
inline

Definition at line 101 of file PySubs.h.

102 {
103  init(); // check COMMON is initialized
104  if( i < 1 || i > leniKfin() ||
105  j < 1 || j > lenjKfin() ) return m_dummy;
106 
107  return s_pysubs->kfin[j-1][i-1];
108 }

◆ lenCkin()

int PySubs::lenCkin ( ) const
inline

Definition at line 34 of file PySubs.h.

34 {return s_lenCkin;}

◆ leniKfin()

int PySubs::leniKfin ( ) const
inline

Definition at line 32 of file PySubs.h.

32 {return s_leniKfin;}

◆ lenjKfin()

int PySubs::lenjKfin ( ) const
inline

Definition at line 33 of file PySubs.h.

33 {return s_lenjKfin;}

◆ lenMsub()

int PySubs::lenMsub ( ) const
inline

Definition at line 31 of file PySubs.h.

31 {return s_lenMsub;}

◆ msel()

int & PySubs::msel ( void  )
inline

Definition at line 79 of file PySubs.h.

80 {
81  init();
82  return s_pysubs->msel;
83 }

◆ mselpd()

int & PySubs::mselpd ( void  )
inline

Definition at line 86 of file PySubs.h.

87 {
88  init();
89  return s_pysubs->mselpd;
90 }

◆ msub()

int & PySubs::msub ( int  n)
inline

Definition at line 93 of file PySubs.h.

94 {
95  init(); // check COMMON is initialized
96  if(n < 1 || n > lenMsub()) return m_dummy;
97  return s_pysubs->msub[n-1];
98 }

Friends And Related Function Documentation

◆ PYSUBS

friend struct PYSUBS
friend

Definition at line 45 of file PySubs.h.

Member Data Documentation

◆ m_dummy

int PySubs::m_dummy
private

Definition at line 56 of file PySubs.h.

◆ m_realdummy

double PySubs::m_realdummy
private

Definition at line 57 of file PySubs.h.

◆ s_lenCkin

const int PySubs::s_lenCkin = 200
staticprivate

Definition at line 42 of file PySubs.h.

◆ s_leniKfin

const int PySubs::s_leniKfin = 2
staticprivate

Definition at line 40 of file PySubs.h.

◆ s_lenjKfin

const int PySubs::s_lenjKfin = 81
staticprivate

Definition at line 41 of file PySubs.h.

◆ s_lenMsub

const int PySubs::s_lenMsub = 500
staticprivate

Definition at line 39 of file PySubs.h.

◆ s_pysubs

PySubs::PYSUBS * PySubs::s_pysubs =0
staticprivate

Definition at line 58 of file PySubs.h.


The documentation for this class was generated from the following file:
PySubs::s_pysubs
static PYSUBS * s_pysubs
Definition: PySubs.h:58
PySubs::PYSUBS::ckin
double ckin[s_lenCkin]
Definition: PySubs.h:53
pysubs_address_
uintptr_t pysubs_address_()
PySubs::s_lenMsub
static const int s_lenMsub
Definition: PySubs.h:39
PySubs::lenMsub
int lenMsub() const
Definition: PySubs.h:31
PySubs::init
void init(void)
Definition: PySubs.h:65
PySubs::m_dummy
int m_dummy
Definition: PySubs.h:56
PySubs::s_leniKfin
static const int s_leniKfin
Definition: PySubs.h:40
PySubs::PYSUBS::msub
int msub[s_lenMsub]
Definition: PySubs.h:51
PySubs::s_lenCkin
static const int s_lenCkin
Definition: PySubs.h:42
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
PySubs::leniKfin
int leniKfin() const
Definition: PySubs.h:32
PySubs::PYSUBS
friend struct PYSUBS
Definition: PySubs.h:44
PySubs::PYSUBS::msel
int msel
Definition: PySubs.h:49
PySubs::PYSUBS::mselpd
int mselpd
Definition: PySubs.h:50
PySubs::lenjKfin
int lenjKfin() const
Definition: PySubs.h:33
PySubs::s_lenjKfin
static const int s_lenjKfin
Definition: PySubs.h:41
PySubs::lenCkin
int lenCkin() const
Definition: PySubs.h:34
PySubs::PYSUBS::kfin
int kfin[s_lenjKfin][s_leniKfin]
Definition: PySubs.h:52
PySubs::m_realdummy
double m_realdummy
Definition: PySubs.h:57