StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StarHijing.h
1 #ifndef __StarHijing_h__
2 #define __StarHijing_h__
3 
42 #include "StarGenerator/BASE/StarGenerator.h"
43 
44 #include "Hijing.h"
45 #include <map>
46 using namespace std;
47 
48 class StarHijing : public StarGenerator
49 {
50  public:
51  StarHijing( const Char_t *name="Hijing" );
52  ~StarHijing(){ /* nada */ };
53 
54  Int_t Init();
55  Int_t Generate();
56 
58  HiParnt_t &hiparnt(){ return *address_of_hiparnt();}
59  HiParnt_t* hiparntPtr(){ return address_of_hiparnt();}
60 
62  HiMain1_t& himain1(){ return *address_of_himain1(); }
63  HiMain1_t* himain1Ptr(){ return address_of_himain1(); }
64 
66  HiMain2_t &himain2(){ return *address_of_himain2(); }
67  HiMain2_t* himain2Ptr(){ return address_of_himain2(); }
68 
70  Ludat3_t &ludat3(){ return *address_of_ludat3(); }
71  Ludat3_t* ludat3Ptr(){ return address_of_ludat3(); }
72 
75  Int_t LuComp( Int_t jetsetid );
76 
77  private:
78  protected:
79  ClassDef(StarHijing,1);
80 
81  void FillAA( StarGenEvent *event );
82 
83  map<Int_t, Int_t> mStatusCode;
84  map<Int_t, Int_t> mParticleCode;
85 
86  // Count number of spectator protons and neutrons
87  Int_t mNumberOfSpectatorProtons[2];
88  Int_t mNumberOfSpectatorNeutrons[2];
89 
90  Int_t mNumberOfBeamProtons[2];
91  Int_t mNumberOfBeamNeutrons[2];
92 
96  Int_t pdgid(const Int_t &code);
97 
98 };
99 
100 #endif
HIJING /HIPARNT/ common block/.
Definition: Hijing.h:79
ABC for defining event generator interfaces.
Definition: StarGenerator.h:34
HiMain2_t & himain2()
Returns a refernece to the hijing main2 block.
Definition: StarHijing.h:66
PYTHIA /LUDAT3/ common block, controls configuration of pythia.
Definition: Hijing.h:113
HiParnt_t & hiparnt()
Returns a reference to the hijing parameters.
Definition: StarHijing.h:58
HiMain1_t & himain1()
Returns a reference to the hijing main1 block.
Definition: StarHijing.h:62
Interface to the HIJING event generator.
Definition: StarHijing.h:48
Base class for event records.
Definition: StarGenEvent.h:81
HIJING /HIMAIN2/ common block.
Definition: Hijing.h:52
Ludat3_t & ludat3()
Returns a reference to the ludat3 (pydat3) common block.
Definition: StarHijing.h:70