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

#include <PyPars.h>

Collaboration diagram for PyPars:

Classes

struct  PYPARS
 

Public Member Functions

 PyPars ()
 
 ~PyPars ()
 
int & mstp (int n)
 
double & parp (int n)
 
int & msti (int n)
 
double & pari (int n)
 
void init (void)
 
int lenMstp () const
 
int lenParp () const
 
int lenMsti () const
 
int lenPari () const
 

Private Attributes

int m_dummy
 
double m_realdummy
 

Static Private Attributes

static const int s_lenMstp = 200
 
static const int s_lenParp = 200
 
static const int s_lenMsti = 200
 
static const int s_lenPari = 200
 
static PYPARSs_pypars =0
 

Friends

struct PYPARS
 

Detailed Description

Definition at line 17 of file PyPars.h.

Constructor & Destructor Documentation

◆ PyPars()

PyPars::PyPars ( )
inline

Definition at line 67 of file PyPars.h.

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

◆ ~PyPars()

PyPars::~PyPars ( )
inline

Definition at line 73 of file PyPars.h.

74 {}

Member Function Documentation

◆ init()

void PyPars::init ( void  )
inline

Definition at line 63 of file PyPars.h.

64 { if (!s_pypars) s_pypars = reinterpret_cast<PYPARS*>(pypars_address_()); }

◆ lenMsti()

int PyPars::lenMsti ( ) const
inline

Definition at line 32 of file PyPars.h.

32 {return s_lenMsti;}

◆ lenMstp()

int PyPars::lenMstp ( ) const
inline

Definition at line 30 of file PyPars.h.

30 {return s_lenMstp;}

◆ lenPari()

int PyPars::lenPari ( ) const
inline

Definition at line 33 of file PyPars.h.

33 {return s_lenPari;}

◆ lenParp()

int PyPars::lenParp ( ) const
inline

Definition at line 31 of file PyPars.h.

31 {return s_lenParp;}

◆ msti()

int & PyPars::msti ( int  n)
inline

Definition at line 93 of file PyPars.h.

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

◆ mstp()

int & PyPars::mstp ( int  n)
inline

Definition at line 77 of file PyPars.h.

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

◆ pari()

double & PyPars::pari ( int  n)
inline

Definition at line 101 of file PyPars.h.

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

◆ parp()

double & PyPars::parp ( int  n)
inline

Definition at line 85 of file PyPars.h.

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

Friends And Related Function Documentation

◆ PYPARS

friend struct PYPARS
friend

Definition at line 44 of file PyPars.h.

Member Data Documentation

◆ m_dummy

int PyPars::m_dummy
private

Definition at line 54 of file PyPars.h.

◆ m_realdummy

double PyPars::m_realdummy
private

Definition at line 55 of file PyPars.h.

◆ s_lenMsti

const int PyPars::s_lenMsti = 200
staticprivate

Definition at line 40 of file PyPars.h.

◆ s_lenMstp

const int PyPars::s_lenMstp = 200
staticprivate

Definition at line 38 of file PyPars.h.

◆ s_lenPari

const int PyPars::s_lenPari = 200
staticprivate

Definition at line 41 of file PyPars.h.

◆ s_lenParp

const int PyPars::s_lenParp = 200
staticprivate

Definition at line 39 of file PyPars.h.

◆ s_pypars

PyPars::PYPARS * PyPars::s_pypars =0
staticprivate

Definition at line 56 of file PyPars.h.


The documentation for this class was generated from the following file:
PyPars::lenMsti
int lenMsti() const
Definition: PyPars.h:32
PyPars::lenMstp
int lenMstp() const
Definition: PyPars.h:30
PyPars::s_lenMstp
static const int s_lenMstp
Definition: PyPars.h:38
PyPars::init
void init(void)
Definition: PyPars.h:63
PyPars::lenParp
int lenParp() const
Definition: PyPars.h:31
PyPars::PYPARS::mstp
int mstp[s_lenMstp]
Definition: PyPars.h:48
PyPars::s_lenMsti
static const int s_lenMsti
Definition: PyPars.h:40
pypars_address_
uintptr_t pypars_address_()
beamspotman.n
n
Definition: beamspotman.py:731
PyPars::s_lenParp
static const int s_lenParp
Definition: PyPars.h:39
PyPars::PYPARS
friend struct PYPARS
Definition: PyPars.h:43
PyPars::PYPARS::pari
double pari[s_lenPari]
Definition: PyPars.h:51
PyPars::lenPari
int lenPari() const
Definition: PyPars.h:33
PyPars::s_lenPari
static const int s_lenPari
Definition: PyPars.h:41
PyPars::PYPARS::msti
int msti[s_lenMsti]
Definition: PyPars.h:50
PyPars::m_realdummy
double m_realdummy
Definition: PyPars.h:55
PyPars::s_pypars
static PYPARS * s_pypars
Definition: PyPars.h:56
PyPars::PYPARS::parp
double parp[s_lenParp]
Definition: PyPars.h:49
PyPars::m_dummy
int m_dummy
Definition: PyPars.h:54