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

Class definition for HijCrdn, which is used to modify the Hijing HIJCRDN common. More...

#include <HijCrdn.h>

Collaboration diagram for HijCrdn:

Classes

struct  HIJCRDN
 

Public Member Functions

 HijCrdn ()
 
 ~HijCrdn ()
 
float & yp (int i, int j)
 
float & yt (int i, int j)
 
void init (void)
 
int lenI () const
 
int lenJ () const
 

Private Attributes

float m_realdummy
 

Static Private Attributes

static const int s_lenI = 3
 
static const int s_lenJ = 300
 
static HIJCRDNs_hijcrdn =0
 

Friends

struct HIJCRDN
 

Detailed Description

Class definition for HijCrdn, which is used to modify the Hijing HIJCRDN common.

Definition at line 17 of file HijCrdn.h.

Constructor & Destructor Documentation

◆ HijCrdn()

HijCrdn::HijCrdn ( )
inline

Definition at line 60 of file HijCrdn.h.

61  : m_realdummy (-999.)
62 {}

◆ ~HijCrdn()

HijCrdn::~HijCrdn ( )
inline

Definition at line 66 of file HijCrdn.h.

67 {}

Member Function Documentation

◆ init()

void HijCrdn::init ( void  )
inline

Definition at line 55 of file HijCrdn.h.

56 { if (!s_hijcrdn) s_hijcrdn = reinterpret_cast<HIJCRDN*>(hijcrdn_address_()); }

◆ lenI()

int HijCrdn::lenI ( ) const
inline

Definition at line 28 of file HijCrdn.h.

28 {return s_lenI;}

◆ lenJ()

int HijCrdn::lenJ ( ) const
inline

Definition at line 29 of file HijCrdn.h.

29 {return s_lenJ;}

◆ yp()

float & HijCrdn::yp ( int  i,
int  j 
)
inline

Definition at line 70 of file HijCrdn.h.

71 {
72  init(); // check COMMON is initialized
73  if( i < 1 || i > lenI() ||
74  j < 1 || j > lenJ() ) return m_realdummy;
75 
76  return s_hijcrdn->yp[j-1][i-1];
77 }

◆ yt()

float & HijCrdn::yt ( int  i,
int  j 
)
inline

Definition at line 80 of file HijCrdn.h.

81 {
82  init(); // check COMMON is initialized
83  if( i < 1 || i > lenI() ||
84  j < 1 || j > lenJ() ) return m_realdummy;
85 
86  return s_hijcrdn->yt[j-1][i-1];
87 }

Friends And Related Function Documentation

◆ HIJCRDN

friend struct HIJCRDN
friend

Definition at line 38 of file HijCrdn.h.

Member Data Documentation

◆ m_realdummy

float HijCrdn::m_realdummy
private

Definition at line 46 of file HijCrdn.h.

◆ s_hijcrdn

HijCrdn::HIJCRDN * HijCrdn::s_hijcrdn =0
staticprivate

Definition at line 48 of file HijCrdn.h.

◆ s_lenI

const int HijCrdn::s_lenI = 3
staticprivate

Definition at line 34 of file HijCrdn.h.

◆ s_lenJ

const int HijCrdn::s_lenJ = 300
staticprivate

Definition at line 35 of file HijCrdn.h.


The documentation for this class was generated from the following file:
HijCrdn::init
void init(void)
Definition: HijCrdn.h:55
HijCrdn::HIJCRDN
friend struct HIJCRDN
Definition: HijCrdn.h:37
hijcrdn_address_
uintptr_t hijcrdn_address_()
HijCrdn::s_lenI
static const int s_lenI
Definition: HijCrdn.h:34
lumiFormat.i
int i
Definition: lumiFormat.py:85
HijCrdn::s_hijcrdn
static HIJCRDN * s_hijcrdn
Definition: HijCrdn.h:48
HijCrdn::s_lenJ
static const int s_lenJ
Definition: HijCrdn.h:35
HijCrdn::HIJCRDN::yp
float yp[s_lenJ][s_lenI]
Definition: HijCrdn.h:42
HijCrdn::m_realdummy
float m_realdummy
Definition: HijCrdn.h:46
HijCrdn::HIJCRDN::yt
float yt[s_lenJ][s_lenI]
Definition: HijCrdn.h:43
HijCrdn::lenI
int lenI() const
Definition: HijCrdn.h:28
HijCrdn::lenJ
int lenJ() const
Definition: HijCrdn.h:29