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

Class definition for HiParnt, which is used to modify the Hijing HIPARNT common. More...

#include <HiParnt.h>

Collaboration diagram for HiParnt:

Classes

struct  HIPARNT
 

Public Member Functions

 HiParnt ()
 
 ~HiParnt ()
 
float & hipr1 (int n)
 
int & ihpr2 (int n)
 
float & hint1 (int n)
 
int & ihnt2 (int n)
 
void init (void)
 
int lenHipr1 () const
 
int lenIhpr2 () const
 
int lenHint1 () const
 
int lenIhnt2 () const
 

Private Attributes

int m_dummy
 
float m_realdummy
 

Static Private Attributes

static const int s_lenHipr1 = 100
 
static const int s_lenIhpr2 = 50
 
static const int s_lenHint1 = 100
 
static const int s_lenIhnt2 = 50
 
static HIPARNTs_hiparnt =0
 

Friends

struct HIPARNT
 

Detailed Description

Class definition for HiParnt, which is used to modify the Hijing HIPARNT common.

Definition at line 18 of file HiParnt.h.

Constructor & Destructor Documentation

◆ HiParnt()

HiParnt::HiParnt ( )
inline

Definition at line 68 of file HiParnt.h.

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

◆ ~HiParnt()

HiParnt::~HiParnt ( )
inline

Definition at line 74 of file HiParnt.h.

75 {}

Member Function Documentation

◆ hint1()

float & HiParnt::hint1 ( int  n)
inline

Definition at line 94 of file HiParnt.h.

95 {
96  init(); // check COMMON is initialized
97  if(n < 1 || n > lenHint1()) return m_realdummy;
98  return s_hiparnt->hint1[n-1];
99 }

◆ hipr1()

float & HiParnt::hipr1 ( int  n)
inline

Definition at line 78 of file HiParnt.h.

79 {
80  init(); // check COMMON is initialized
81  if(n < 1 || n > lenHipr1()) return m_realdummy;
82  return s_hiparnt->hipr1[n-1];
83 }

◆ ihnt2()

int & HiParnt::ihnt2 ( int  n)
inline

Definition at line 103 of file HiParnt.h.

104 {
105  init(); // check COMMON is initialized
106  if(n < 1 || n > lenIhnt2()) return m_dummy;
107  return s_hiparnt->ihnt2[n-1];
108 }

◆ ihpr2()

int & HiParnt::ihpr2 ( int  n)
inline

Definition at line 86 of file HiParnt.h.

87 {
88  init(); // check COMMON is initialized
89  if(n < 1 || n > lenIhpr2()) return m_dummy;
90  return s_hiparnt->ihpr2[n-1];
91 }

◆ init()

void HiParnt::init ( void  )
inline

Definition at line 64 of file HiParnt.h.

65 { if (!s_hiparnt) s_hiparnt = reinterpret_cast<HIPARNT*>(hiparnt_address_()); }

◆ lenHint1()

int HiParnt::lenHint1 ( ) const
inline

Definition at line 33 of file HiParnt.h.

33 {return s_lenHint1;}

◆ lenHipr1()

int HiParnt::lenHipr1 ( ) const
inline

Definition at line 31 of file HiParnt.h.

31 {return s_lenHipr1;}

◆ lenIhnt2()

int HiParnt::lenIhnt2 ( ) const
inline

Definition at line 34 of file HiParnt.h.

34 {return s_lenIhnt2;}

◆ lenIhpr2()

int HiParnt::lenIhpr2 ( ) const
inline

Definition at line 32 of file HiParnt.h.

32 {return s_lenIhpr2;}

Friends And Related Function Documentation

◆ HIPARNT

friend struct HIPARNT
friend

Definition at line 45 of file HiParnt.h.

Member Data Documentation

◆ m_dummy

int HiParnt::m_dummy
private

Definition at line 55 of file HiParnt.h.

◆ m_realdummy

float HiParnt::m_realdummy
private

Definition at line 56 of file HiParnt.h.

◆ s_hiparnt

HiParnt::HIPARNT * HiParnt::s_hiparnt =0
staticprivate

Definition at line 57 of file HiParnt.h.

◆ s_lenHint1

const int HiParnt::s_lenHint1 = 100
staticprivate

Definition at line 41 of file HiParnt.h.

◆ s_lenHipr1

const int HiParnt::s_lenHipr1 = 100
staticprivate

Definition at line 39 of file HiParnt.h.

◆ s_lenIhnt2

const int HiParnt::s_lenIhnt2 = 50
staticprivate

Definition at line 42 of file HiParnt.h.

◆ s_lenIhpr2

const int HiParnt::s_lenIhpr2 = 50
staticprivate

Definition at line 40 of file HiParnt.h.


The documentation for this class was generated from the following file:
HiParnt::m_dummy
int m_dummy
Definition: HiParnt.h:55
HiParnt::s_lenHipr1
static const int s_lenHipr1
Definition: HiParnt.h:39
HiParnt::HIPARNT::hint1
float hint1[s_lenHint1]
Definition: HiParnt.h:51
HiParnt::s_hiparnt
static HIPARNT * s_hiparnt
Definition: HiParnt.h:57
hiparnt_address_
uintptr_t hiparnt_address_()
HiParnt::HIPARNT::hipr1
float hipr1[s_lenHipr1]
Definition: HiParnt.h:49
HiParnt::s_lenHint1
static const int s_lenHint1
Definition: HiParnt.h:41
beamspotman.n
n
Definition: beamspotman.py:731
HiParnt::m_realdummy
float m_realdummy
Definition: HiParnt.h:56
HiParnt::lenIhnt2
int lenIhnt2() const
Definition: HiParnt.h:34
HiParnt::init
void init(void)
Definition: HiParnt.h:64
HiParnt::s_lenIhnt2
static const int s_lenIhnt2
Definition: HiParnt.h:42
HiParnt::lenHipr1
int lenHipr1() const
Definition: HiParnt.h:31
HiParnt::HIPARNT::ihnt2
int ihnt2[s_lenIhnt2]
Definition: HiParnt.h:52
HiParnt::HIPARNT::ihpr2
int ihpr2[s_lenIhpr2]
Definition: HiParnt.h:50
HiParnt::lenIhpr2
int lenIhpr2() const
Definition: HiParnt.h:32
HiParnt::lenHint1
int lenHint1() const
Definition: HiParnt.h:33
HiParnt::HIPARNT
friend struct HIPARNT
Definition: HiParnt.h:44
HiParnt::s_lenIhpr2
static const int s_lenIhpr2
Definition: HiParnt.h:40