CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Static Private Attributes
Pythia6jets Class Reference

#include <Pythia6jets.h>

Classes

struct  _pythia6jets
 

Public Member Functions

int & k (int i, int j)
 
int & n (void)
 
int & npad (void)
 
double & p (int i, int j)
 
 Pythia6jets (void)
 
double & v (int i, int j)
 
 ~Pythia6jets (void)
 

Private Member Functions

void init (void)
 

Static Private Attributes

static struct _pythia6jets__pythia6jets = 0
 
static double dDummy = 0.0
 
static int nDummy = 0
 

Detailed Description

Definition at line 7 of file Pythia6jets.h.

Constructor & Destructor Documentation

Pythia6jets::Pythia6jets ( void  )

Definition at line 23 of file Pythia6jets.cc.

24 {
25 }
Pythia6jets::~Pythia6jets ( void  )

Definition at line 27 of file Pythia6jets.cc.

28 {
29 }

Member Function Documentation

void Pythia6jets::init ( void  )
private

Definition at line 31 of file Pythia6jets.cc.

References __pythia6jets, getaddr(), and PYJETS.

Referenced by k(), n(), npad(), p(), and v().

32 {
33  __pythia6jets =
34  static_cast<struct Pythia6jets::_pythia6jets *>(getaddr(&PYJETS.n));
35 }
void * getaddr(void *item)
Definition: Pythia6jets.cc:4
#define PYJETS
Definition: Pythia6jets.cc:3
static struct _pythia6jets * __pythia6jets
Definition: Pythia6jets.h:32
int & Pythia6jets::k ( int  i,
int  j 
)

Definition at line 49 of file Pythia6jets.cc.

References __pythia6jets, _depth, _length, init(), Pythia6jets::_pythia6jets::k, and nDummy.

Referenced by Pythia6Decays::particleDaughters().

50 {
51  if (__pythia6jets == 0) init();
52  if ((i<1)||(i>_depth)||
53  (j<1)||(j>_length))
54  {
55  nDummy = -999;
56  return nDummy;
57  }
58  return __pythia6jets->k[j-1][i-1];
59 }
int i
Definition: DBlmapReader.cc:9
#define _length
Definition: Pythia6jets.h:4
#define _depth
Definition: Pythia6jets.h:5
int j
Definition: DBlmapReader.cc:9
static struct _pythia6jets * __pythia6jets
Definition: Pythia6jets.h:32
static int nDummy
Definition: Pythia6jets.h:21
void init(void)
Definition: Pythia6jets.cc:31
int & Pythia6jets::n ( void  )

Definition at line 37 of file Pythia6jets.cc.

References __pythia6jets, init(), and Pythia6jets::_pythia6jets::n.

Referenced by Pythia6Decays::particleDaughters().

38 {
39  if (__pythia6jets == 0) init();
40  return __pythia6jets->n;
41 }
static struct _pythia6jets * __pythia6jets
Definition: Pythia6jets.h:32
void init(void)
Definition: Pythia6jets.cc:31
int & Pythia6jets::npad ( void  )

Definition at line 43 of file Pythia6jets.cc.

References __pythia6jets, init(), and Pythia6jets::_pythia6jets::npad.

44 {
45  if (__pythia6jets == 0) init();
46  return __pythia6jets->npad;
47 }
static struct _pythia6jets * __pythia6jets
Definition: Pythia6jets.h:32
void init(void)
Definition: Pythia6jets.cc:31
double & Pythia6jets::p ( int  i,
int  j 
)

Definition at line 61 of file Pythia6jets.cc.

References __pythia6jets, _depth, _length, dDummy, init(), and Pythia6jets::_pythia6jets::p.

Referenced by Pythia6Decays::particleDaughters().

62 {
63  if (__pythia6jets == 0) init();
64  if ((i<1)||(i>_depth)||
65  (j<1)||(j>_length))
66  {
67  dDummy = -999.0;
68  return dDummy;
69  }
70  return __pythia6jets->p[j-1][i-1];
71 }
static double dDummy
Definition: Pythia6jets.h:22
int i
Definition: DBlmapReader.cc:9
#define _length
Definition: Pythia6jets.h:4
#define _depth
Definition: Pythia6jets.h:5
int j
Definition: DBlmapReader.cc:9
static struct _pythia6jets * __pythia6jets
Definition: Pythia6jets.h:32
void init(void)
Definition: Pythia6jets.cc:31
double & Pythia6jets::v ( int  i,
int  j 
)

Definition at line 73 of file Pythia6jets.cc.

References __pythia6jets, _depth, _length, dDummy, init(), and Pythia6jets::_pythia6jets::v.

Referenced by Pythia6Decays::particleDaughters().

74 {
75  if (__pythia6jets == 0) init();
76  if ((i<1)||(i>_depth)||
77  (j<1)||(j>_length))
78  {
79  dDummy = -999.0;
80  return dDummy;
81  }
82  return __pythia6jets->v[j-1][i-1];
83 }
static double dDummy
Definition: Pythia6jets.h:22
int i
Definition: DBlmapReader.cc:9
#define _length
Definition: Pythia6jets.h:4
#define _depth
Definition: Pythia6jets.h:5
int j
Definition: DBlmapReader.cc:9
static struct _pythia6jets * __pythia6jets
Definition: Pythia6jets.h:32
void init(void)
Definition: Pythia6jets.cc:31

Member Data Documentation

struct Pythia6jets::_pythia6jets * Pythia6jets::__pythia6jets = 0
staticprivate

Definition at line 32 of file Pythia6jets.h.

Referenced by init(), k(), n(), npad(), p(), and v().

double Pythia6jets::dDummy = 0.0
staticprivate

Definition at line 22 of file Pythia6jets.h.

Referenced by p(), and v().

int Pythia6jets::nDummy = 0
staticprivate

Definition at line 21 of file Pythia6jets.h.

Referenced by k().