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

Class definition for HiMain2, which is used to modify the Hijing HIMAIN2 common. More...

#include <HiMain2.h>

Collaboration diagram for HiMain2:

Classes

struct  HIMAIN2
 

Public Member Functions

 HiMain2 ()
 
 ~HiMain2 ()
 
int & katt (int i, int j)
 
float & patt (int i, int j)
 
float & vatt (int i, int j)
 
void init (void)
 
int leniKatt () const
 
int lenjKatt () const
 
int leniPatt () const
 
int lenjPatt () const
 
int leniVatt () const
 
int lenjVatt () const
 

Private Attributes

int m_dummy
 
float m_realdummy
 

Static Private Attributes

static const int s_leniKatt = 130000
 
static const int s_lenjKatt = 4
 
static const int s_leniPatt = 130000
 
static const int s_lenjPatt = 4
 
static const int s_leniVatt = 130000
 
static const int s_lenjVatt = 4
 
static HIMAIN2s_himain2 =0
 

Friends

struct HIMAIN2
 

Detailed Description

Class definition for HiMain2, which is used to modify the Hijing HIMAIN2 common.

Definition at line 17 of file HiMain2.h.

Constructor & Destructor Documentation

◆ HiMain2()

HiMain2::HiMain2 ( )
inline

Definition at line 71 of file HiMain2.h.

72  : m_dummy (-999),
73  m_realdummy (-999.)
74 {}

◆ ~HiMain2()

HiMain2::~HiMain2 ( )
inline

Definition at line 78 of file HiMain2.h.

79 {}

Member Function Documentation

◆ init()

void HiMain2::init ( void  )
inline

Definition at line 66 of file HiMain2.h.

67 { if (!s_himain2) s_himain2 = reinterpret_cast<HIMAIN2*>(himain2_address_()); }

◆ katt()

int & HiMain2::katt ( int  i,
int  j 
)
inline

Definition at line 82 of file HiMain2.h.

83 {
84  init(); // check COMMON is initialized
85  if( i < 1 || i > leniKatt() ||
86  j < 1 || j > lenjKatt() ) return m_dummy;
87 
88  return s_himain2->katt[j-1][i-1];
89 }

◆ leniKatt()

int HiMain2::leniKatt ( ) const
inline

Definition at line 29 of file HiMain2.h.

29 {return s_leniKatt;}

◆ leniPatt()

int HiMain2::leniPatt ( ) const
inline

Definition at line 31 of file HiMain2.h.

31 {return s_leniPatt;}

◆ leniVatt()

int HiMain2::leniVatt ( ) const
inline

Definition at line 33 of file HiMain2.h.

33 {return s_leniVatt;}

◆ lenjKatt()

int HiMain2::lenjKatt ( ) const
inline

Definition at line 30 of file HiMain2.h.

30 {return s_lenjKatt;}

◆ lenjPatt()

int HiMain2::lenjPatt ( ) const
inline

Definition at line 32 of file HiMain2.h.

32 {return s_lenjPatt;}

◆ lenjVatt()

int HiMain2::lenjVatt ( ) const
inline

Definition at line 34 of file HiMain2.h.

34 {return s_lenjVatt;}

◆ patt()

float & HiMain2::patt ( int  i,
int  j 
)
inline

Definition at line 92 of file HiMain2.h.

93 {
94  init(); // check COMMON is initialized
95  if( i < 1 || i > leniPatt() ||
96  j < 1 || j > lenjPatt() ) return m_realdummy;
97 
98  return s_himain2->patt[j-1][i-1];
99 }

◆ vatt()

float & HiMain2::vatt ( int  i,
int  j 
)
inline

Definition at line 102 of file HiMain2.h.

103 {
104  init(); // check COMMON is initialized
105  if( i < 1 || i > leniVatt() ||
106  j < 1 || j > lenjVatt() ) return m_realdummy;
107 
108  return s_himain2->vatt[j-1][i-1];
109 }

Friends And Related Function Documentation

◆ HIMAIN2

friend struct HIMAIN2
friend

Definition at line 47 of file HiMain2.h.

Member Data Documentation

◆ m_dummy

int HiMain2::m_dummy
private

Definition at line 56 of file HiMain2.h.

◆ m_realdummy

float HiMain2::m_realdummy
private

Definition at line 57 of file HiMain2.h.

◆ s_himain2

HiMain2::HIMAIN2 * HiMain2::s_himain2 =0
staticprivate

Definition at line 59 of file HiMain2.h.

◆ s_leniKatt

const int HiMain2::s_leniKatt = 130000
staticprivate

Definition at line 39 of file HiMain2.h.

◆ s_leniPatt

const int HiMain2::s_leniPatt = 130000
staticprivate

Definition at line 41 of file HiMain2.h.

◆ s_leniVatt

const int HiMain2::s_leniVatt = 130000
staticprivate

Definition at line 43 of file HiMain2.h.

◆ s_lenjKatt

const int HiMain2::s_lenjKatt = 4
staticprivate

Definition at line 40 of file HiMain2.h.

◆ s_lenjPatt

const int HiMain2::s_lenjPatt = 4
staticprivate

Definition at line 42 of file HiMain2.h.

◆ s_lenjVatt

const int HiMain2::s_lenjVatt = 4
staticprivate

Definition at line 44 of file HiMain2.h.


The documentation for this class was generated from the following file:
HiMain2::lenjVatt
int lenjVatt() const
Definition: HiMain2.h:34
HiMain2::lenjPatt
int lenjPatt() const
Definition: HiMain2.h:32
HiMain2::s_leniKatt
static const int s_leniKatt
Definition: HiMain2.h:39
HiMain2::leniKatt
int leniKatt() const
Definition: HiMain2.h:29
HiMain2::leniVatt
int leniVatt() const
Definition: HiMain2.h:33
HiMain2::s_himain2
static HIMAIN2 * s_himain2
Definition: HiMain2.h:59
HiMain2::HIMAIN2::vatt
float vatt[s_lenjVatt][s_leniVatt]
Definition: HiMain2.h:53
HiMain2::HIMAIN2
friend struct HIMAIN2
Definition: HiMain2.h:46
HiMain2::init
void init(void)
Definition: HiMain2.h:66
HiMain2::s_lenjKatt
static const int s_lenjKatt
Definition: HiMain2.h:40
HiMain2::m_dummy
int m_dummy
Definition: HiMain2.h:56
himain2_address_
uintptr_t himain2_address_()
lumiFormat.i
int i
Definition: lumiFormat.py:85
HiMain2::lenjKatt
int lenjKatt() const
Definition: HiMain2.h:30
HiMain2::s_lenjPatt
static const int s_lenjPatt
Definition: HiMain2.h:42
HiMain2::s_leniVatt
static const int s_leniVatt
Definition: HiMain2.h:43
HiMain2::leniPatt
int leniPatt() const
Definition: HiMain2.h:31
HiMain2::HIMAIN2::katt
int katt[s_lenjKatt][s_leniKatt]
Definition: HiMain2.h:51
HiMain2::HIMAIN2::patt
float patt[s_lenjPatt][s_leniPatt]
Definition: HiMain2.h:52
HiMain2::s_leniPatt
static const int s_leniPatt
Definition: HiMain2.h:41
HiMain2::m_realdummy
float m_realdummy
Definition: HiMain2.h:57
HiMain2::s_lenjVatt
static const int s_lenjVatt
Definition: HiMain2.h:44