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

Class definition for HiStrng, which is used to modify the Hijing HISTRNG common. More...

#include <HiStrng.h>

Collaboration diagram for HiStrng:

Classes

struct  HISTRNG
 

Public Member Functions

 HiStrng ()
 
 ~HiStrng ()
 
int & nfp (int i, int j)
 
float & pp (int i, int j)
 
int & nft (int i, int j)
 
float & pt (int i, int j)
 
void init (void)
 
int lenI () const
 
int lenJ () const
 

Private Attributes

int m_dummy
 
float m_realdummy
 

Static Private Attributes

static const int s_lenI = 300
 
static const int s_lenJ = 15
 
static HISTRNGs_histrng =0
 

Friends

struct HISTRNG
 

Detailed Description

Class definition for HiStrng, which is used to modify the Hijing HISTRNG common.

Definition at line 17 of file HiStrng.h.

Constructor & Destructor Documentation

◆ HiStrng()

HiStrng::HiStrng ( )
inline

Definition at line 65 of file HiStrng.h.

66  : m_dummy (-999),
67  m_realdummy (-999.)
68 {}

◆ ~HiStrng()

HiStrng::~HiStrng ( )
inline

Definition at line 72 of file HiStrng.h.

73 {}

Member Function Documentation

◆ init()

void HiStrng::init ( void  )
inline

Definition at line 60 of file HiStrng.h.

61 { if (!s_histrng) s_histrng = reinterpret_cast<HISTRNG*>(histrng_address_()); }

◆ lenI()

int HiStrng::lenI ( ) const
inline

Definition at line 30 of file HiStrng.h.

30 {return s_lenI;}

◆ lenJ()

int HiStrng::lenJ ( ) const
inline

Definition at line 31 of file HiStrng.h.

31 {return s_lenJ;}

◆ nfp()

int & HiStrng::nfp ( int  i,
int  j 
)
inline

Definition at line 76 of file HiStrng.h.

77 {
78  init(); // check COMMON is initialized
79  if( i < 1 || i > lenI() ||
80  j < 1 || j > lenJ() ) return m_dummy;
81 
82  return s_histrng->nfp[j-1][i-1];
83 }

◆ nft()

int & HiStrng::nft ( int  i,
int  j 
)
inline

Definition at line 96 of file HiStrng.h.

97 {
98  init(); // check COMMON is initialized
99  if( i < 1 || i > lenI() ||
100  j < 1 || j > lenJ() ) return m_dummy;
101 
102  return s_histrng->nft[j-1][i-1];
103 }

◆ pp()

float & HiStrng::pp ( int  i,
int  j 
)
inline

Definition at line 86 of file HiStrng.h.

87 {
88  init(); // check COMMON is initialized
89  if( i < 1 || i > lenI() ||
90  j < 1 || j > lenJ() ) return m_realdummy;
91 
92  return s_histrng->pp[j-1][i-1];
93 }

◆ pt()

float & HiStrng::pt ( int  i,
int  j 
)
inline

Definition at line 106 of file HiStrng.h.

107 {
108  init(); // check COMMON is initialized
109  if( i < 1 || i > lenI() ||
110  j < 1 || j > lenJ() ) return m_realdummy;
111 
112  return s_histrng->pt[j-1][i-1];
113 }

Friends And Related Function Documentation

◆ HISTRNG

friend struct HISTRNG
friend

Definition at line 40 of file HiStrng.h.

Member Data Documentation

◆ m_dummy

int HiStrng::m_dummy
private

Definition at line 50 of file HiStrng.h.

◆ m_realdummy

float HiStrng::m_realdummy
private

Definition at line 51 of file HiStrng.h.

◆ s_histrng

HiStrng::HISTRNG * HiStrng::s_histrng =0
staticprivate

Definition at line 53 of file HiStrng.h.

◆ s_lenI

const int HiStrng::s_lenI = 300
staticprivate

Definition at line 36 of file HiStrng.h.

◆ s_lenJ

const int HiStrng::s_lenJ = 15
staticprivate

Definition at line 37 of file HiStrng.h.


The documentation for this class was generated from the following file:
HiStrng::s_lenI
static const int s_lenI
Definition: HiStrng.h:36
HiStrng::HISTRNG::nft
int nft[s_lenJ][s_lenI]
Definition: HiStrng.h:46
histrng_address_
uintptr_t histrng_address_()
HiStrng::init
void init(void)
Definition: HiStrng.h:60
HiStrng::HISTRNG::pt
float pt[s_lenJ][s_lenI]
Definition: HiStrng.h:47
HiStrng::HISTRNG::pp
float pp[s_lenJ][s_lenI]
Definition: HiStrng.h:45
HiStrng::HISTRNG
friend struct HISTRNG
Definition: HiStrng.h:39
lumiFormat.i
int i
Definition: lumiFormat.py:85
HiStrng::s_lenJ
static const int s_lenJ
Definition: HiStrng.h:37
HiStrng::m_dummy
int m_dummy
Definition: HiStrng.h:50
HiStrng::HISTRNG::nfp
int nfp[s_lenJ][s_lenI]
Definition: HiStrng.h:44
HiStrng::m_realdummy
float m_realdummy
Definition: HiStrng.h:51
HiStrng::lenJ
int lenJ() const
Definition: HiStrng.h:31
HiStrng::s_histrng
static HISTRNG * s_histrng
Definition: HiStrng.h:53
HiStrng::lenI
int lenI() const
Definition: HiStrng.h:30