ATLAS Offline Software
Loading...
Searching...
No Matches
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{}
float m_realdummy
Definition HiStrng.h:51
int m_dummy
Definition HiStrng.h:50

◆ ~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_()); }
uintptr_t histrng_address_()
static HISTRNG * s_histrng
Definition HiStrng.h:53

◆ lenI()

int HiStrng::lenI ( ) const
inline

Definition at line 30 of file HiStrng.h.

30{return s_lenI;}
static const int s_lenI
Definition HiStrng.h:36

◆ lenJ()

int HiStrng::lenJ ( ) const
inline

Definition at line 31 of file HiStrng.h.

31{return s_lenJ;}
static const int s_lenJ
Definition HiStrng.h:37

◆ 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}
int lenI() const
Definition HiStrng.h:30
int lenJ() const
Definition HiStrng.h:31
void init(void)
Definition HiStrng.h:60

◆ 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}

◆ 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: