Pluto v6.3.0
Loading...
Searching...
No Matches
PStdData.h
Go to the documentation of this file.
1// Author: M.A. Kagarlis
2// Written: 31.01.99
3// Revised: 17/10/2006 R.H.
4// PData Class Header
5// (copied in part to PStdData) IF
6
7#ifndef _PSTDDATA_H_
8#define _PSTDDATA_H_
9
10#include "TROOT.h"
11#include "TArrayI.h"
12#include "TArrayD.h"
13#include <iostream>
14
15#include "PStaticData.h"
16
17class PStdData;
20
21class PStdData : public TObject {
22
23 public:
24
25 //constructor
27 //destructor
29
30 Bool_t fillDataBase(void); //Copies the static entries into the PDataBase
31
32
33 private:
34
35 int disable;
36
37 void resetPosition() {
38 // Resets the array PPosition
39
40 int i, nm, position=0;
41 for (i=0; i<maxnumpar; ++i) {
42 nm = PNModes[i]; // number of decay modes of particle pid=i
43 if (!nm) PPosition[i] = -1; // signifies stable particle
44 else {
45 PPosition[i] = position; // index of 1st decay mode for current particle
46 position += nm; // reposition for the next particle
47 }
48 }
49 }
50
51 int *PPosition;
52
53 static int maxnumpar, maxnummodes, *Pkf, *PMeson, *PBaryon, *PLepton,
54 *PCharge, *PJ, *PParity, *PI, *PNModes, *intcache,
55 cachesize, save, nfiles;
56 static double *PMass, *PWidth, *PBR, *dblcache, scale;
57 static char **PName, **PMDescription, **PMode;
58
59
60 // local storage area
61 static int *pmes_tmp, *pbar_tmp, *plep_tmp, *pchar_tmp, *pspin_tmp,
62 *pparity_tmp, *pispin_tmp, *pnmod_tmp, *id_tmp, *pkf_tmp;
63 static double *pmass_tmp, *pwidth_tmp, *pbr_tmp;
64 static char **pnam_tmp, **pmdescr_tmp, **pmod_tmp;
65
66 static const char *MESSAGE[];
67 static const char *NAME[];
68 static double MASS[];
69 static double WIDTH[];
70 static const int PYTHIAKF[];
71 static const int MESON[];
72 static const int BARYON[];
73 static const int LEPTON[];
74 static const int CHARGE[];
75 static const int SPIN[];
76 static const int PARITY[];
77 static const int ISPIN[];
78 static const int NMODES[];
79 static double BRR[];
80 static const char *MODE[];
81 static const char *DESCRIPTION[];
82
83 static const long double hbar;
84
85 ClassDef(PStdData, 0) //Pluto Particle Std Data Class
86};
87
88#endif // _PSTDDATA_H_
89
90
91
92
93
94
95
PStdData * makeStdData()
PStdData & fStdData()
Bool_t fillDataBase(void)