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

#include <PyDat1.h>

Collaboration diagram for PyDat1:

Classes

struct  PYDAT1
 

Public Member Functions

 PyDat1 ()
 
 ~PyDat1 ()
 
int & mstu (int n)
 
double & paru (int n)
 
int & mstj (int n)
 
double & parj (int n)
 
void init (void)
 
int lenMstu () const
 
int lenParu () const
 
int lenMstj () const
 
int lenParj () const
 

Private Attributes

int m_dummy
 
double m_realdummy
 

Static Private Attributes

static const int s_lenMstu = 200
 
static const int s_lenParu = 200
 
static const int s_lenMstj = 200
 
static const int s_lenParj = 200
 
static PYDAT1s_pydat1 =0
 

Friends

struct PYDAT1
 

Detailed Description

Definition at line 17 of file PyDat1.h.

Constructor & Destructor Documentation

◆ PyDat1()

PyDat1::PyDat1 ( )
inline

Definition at line 67 of file PyDat1.h.

68  : m_dummy (-999),
69  m_realdummy (-999.)
70 {}

◆ ~PyDat1()

PyDat1::~PyDat1 ( )
inline

Definition at line 73 of file PyDat1.h.

74 {}

Member Function Documentation

◆ init()

void PyDat1::init ( void  )
inline

Definition at line 63 of file PyDat1.h.

64 { if (!s_pydat1) s_pydat1 = reinterpret_cast<PYDAT1*>(pydat1_address_()); }

◆ lenMstj()

int PyDat1::lenMstj ( ) const
inline

Definition at line 32 of file PyDat1.h.

32 {return s_lenMstj;}

◆ lenMstu()

int PyDat1::lenMstu ( ) const
inline

Definition at line 30 of file PyDat1.h.

30 {return s_lenMstu;}

◆ lenParj()

int PyDat1::lenParj ( ) const
inline

Definition at line 33 of file PyDat1.h.

33 {return s_lenParj;}

◆ lenParu()

int PyDat1::lenParu ( ) const
inline

Definition at line 31 of file PyDat1.h.

31 {return s_lenParu;}

◆ mstj()

int & PyDat1::mstj ( int  n)
inline

Definition at line 93 of file PyDat1.h.

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

◆ mstu()

int & PyDat1::mstu ( int  n)
inline

Definition at line 77 of file PyDat1.h.

78 {
79  init(); // check COMMON is initialized
80  if(n < 1 || n > lenMstu()) return m_dummy;
81  return s_pydat1->mstu[n-1];
82 }

◆ parj()

double & PyDat1::parj ( int  n)
inline

Definition at line 101 of file PyDat1.h.

102 {
103  init(); // check COMMON is initialized
104  if(n < 1 || n > lenParj()) return m_realdummy;
105  return s_pydat1->parj[n-1];
106 }

◆ paru()

double & PyDat1::paru ( int  n)
inline

Definition at line 85 of file PyDat1.h.

86 {
87  init(); // check COMMON is initialized
88  if(n < 1 || n > lenParu()) return m_realdummy;
89  return s_pydat1->paru[n-1];
90 }

Friends And Related Function Documentation

◆ PYDAT1

friend struct PYDAT1
friend

Definition at line 44 of file PyDat1.h.

Member Data Documentation

◆ m_dummy

int PyDat1::m_dummy
private

Definition at line 54 of file PyDat1.h.

◆ m_realdummy

double PyDat1::m_realdummy
private

Definition at line 55 of file PyDat1.h.

◆ s_lenMstj

const int PyDat1::s_lenMstj = 200
staticprivate

Definition at line 40 of file PyDat1.h.

◆ s_lenMstu

const int PyDat1::s_lenMstu = 200
staticprivate

Definition at line 38 of file PyDat1.h.

◆ s_lenParj

const int PyDat1::s_lenParj = 200
staticprivate

Definition at line 41 of file PyDat1.h.

◆ s_lenParu

const int PyDat1::s_lenParu = 200
staticprivate

Definition at line 39 of file PyDat1.h.

◆ s_pydat1

PyDat1::PYDAT1 * PyDat1::s_pydat1 =0
staticprivate

Definition at line 56 of file PyDat1.h.


The documentation for this class was generated from the following file:
PyDat1::PYDAT1::mstj
int mstj[s_lenMstj]
Definition: PyDat1.h:50
PyDat1::init
void init(void)
Definition: PyDat1.h:63
PyDat1::PYDAT1::mstu
int mstu[s_lenMstu]
Definition: PyDat1.h:48
pydat1_address_
uintptr_t pydat1_address_()
PyDat1::lenMstj
int lenMstj() const
Definition: PyDat1.h:32
PyDat1::s_lenParj
static const int s_lenParj
Definition: PyDat1.h:41
PyDat1::s_lenParu
static const int s_lenParu
Definition: PyDat1.h:39
PyDat1::lenMstu
int lenMstu() const
Definition: PyDat1.h:30
PyDat1::s_lenMstu
static const int s_lenMstu
Definition: PyDat1.h:38
beamspotman.n
n
Definition: beamspotman.py:731
PyDat1::m_dummy
int m_dummy
Definition: PyDat1.h:54
PyDat1::m_realdummy
double m_realdummy
Definition: PyDat1.h:55
PyDat1::PYDAT1::parj
double parj[s_lenParj]
Definition: PyDat1.h:51
PyDat1::PYDAT1::paru
double paru[s_lenParu]
Definition: PyDat1.h:49
PyDat1::PYDAT1
friend struct PYDAT1
Definition: PyDat1.h:43
PyDat1::lenParu
int lenParu() const
Definition: PyDat1.h:31
PyDat1::s_pydat1
static PYDAT1 * s_pydat1
Definition: PyDat1.h:56
PyDat1::lenParj
int lenParj() const
Definition: PyDat1.h:33
PyDat1::s_lenMstj
static const int s_lenMstj
Definition: PyDat1.h:40