24 void trig( Int_t n=1 )
26 for ( Int_t i=0; i<n; i++ ) {
29 _primary -> event() -> Print();
35 void Pythia6( TString mode=
"pp:W", Int_t tune=320 )
39 gSystem->Load(
"libPythia6_4_28.so");
47 if ( tune ) pythia6->
PyTune( tune );
51 int& msel = pysubs.msel;
55 float& ckin3 = pysubs.ckin(3);
62 pythia6 -> SetDecayFlag( +24, 0 );
63 pythia6 -> SetDecayFlag( -24, 0 );
64 pythia6 -> SetDecayFlag( +23, 0 );
65 pythia6 -> SetDecayFlag( -23, 0 );
66 pythia6 -> SetDecayFlag( +15, 0 );
67 pythia6 -> SetDecayFlag( -15, 0 );
71 if ( mode ==
"pp:minbias" )
76 if ( tune ) pythia6->
PyTune( tune );
80 Double_t pblue[]={0.,0.,30.0};
81 Double_t pyell[]={0.,0.,-320.0};
82 pythia6->
SetFrame(
"3MOM", pblue, pyell );
85 if ( tune ) pythia6->
PyTune( tune );
93 void Pythia8( TString config=
"pp:W",
const char* _library=
"libPythia8_1_62.so" )
95 gSystem->Load( _library );
102 if ( config==
"pp:W" )
108 pythia8->
Set(
"WeakSingleBoson:all=off");
109 pythia8->
Set(
"WeakSingleBoson:ffbar2W=on");
110 pythia8->
Set(
"24:onMode=0");
111 pythia8->
Set(
"24:onIfAny 11 -11");
114 if ( config==
"pp:minbias" )
120 pythia8->
Set(
"SoftQCD:minBias = on");
123 _primary -> AddGenerator( pythia8 );
129 gSystem->Load(
"libHijing1_383.so");
133 hijing->SetTitle(
"Hijing 1.383");
143 _primary -> AddGenerator(hijing);
144 _primary -> SetCuts( 1.0E-6 , -1., -2.5, +2.5 );
150 void starsim( Int_t nevents=1000, UInt_t rngSeed = 12345 )
153 gROOT->ProcessLine(
".L bfc.C");
155 TString simple =
"tables nodefault";
159 gSystem->Load(
"libVMC.so");
160 gSystem->Load(
"St_g2t.so" );
161 gSystem->Load(
"St_geant_Maker.so" );
163 gSystem->Load(
"StarGeneratorUtil.so" );
164 gSystem->Load(
"StarGeneratorEvent.so" );
165 gSystem->Load(
"StarGeneratorBase.so" );
167 gSystem->Load(
"libMathMore.so" );
176 _primary -> SetFileName(
"hijing.starsim.root");
191 random.
seed( rngSeed );
223 hiparnt.
ihpr2(4) = 0;
224 hiparnt.
ihpr2(3) = 0;
226 hiparnt.
ihpr2(8) = 10;
227 hiparnt.
ihpr2(11) = 1;
228 hiparnt.
ihpr2(12) = 1;
229 hiparnt.
ihpr2(18) = 0;
230 hiparnt.
hipr1(7) = 5.35;
HIJING /HIPARNT/ common block/.
void PyTune(Int_t tune)
Calls the pytune function.
static StarRandom & Instance()
Obtain the single instance of the random number generator.
void SetSigma(Double_t sx, Double_t sy, Double_t sz, Double_t rho=0)
void SetFrame(const Char_t *frame, const Double_t val)
void SetImpact(Double_t bmin, Double_t bmax)
Set the minimum and maximum impact parameters for the collision (HI generators)
void SetPhiRange(Double_t phimin, Double_t phimax)
Set phi range. Particles falling outside this range will be dropped from simulation.
virtual void Clear(Option_t *option="")
User defined functions.
void AddGenerator(StarGenerator *gener)
void SetBlue(const Char_t *b)
Sets the particle species for the blue beam.
A class for providing random number generation.
PySubs_t & pysubs()
Returns a reference to the /PYSUBS/ common block.
HiParnt_t & hiparnt()
Returns a reference to the hijing parameters.
Interface to the HIJING event generator.
static void seed(UInt_t s)
Base class for event records.
Main steering class for event generation.
void SetYell(const Char_t *y)
Sets the particle species for the yellow beam.
void SetPtRange(Double_t ptmin, Double_t ptmax=-1)
Set PT range. Particles falling outside this range will be dropped from simulation.
static void capture()
Capture gRandom random number generator.
void SetEtaRange(Double_t etamin, Double_t etamax)
Set rapidity range. Particles falling outside this range will be dropped from simulation.
void Set(const char *s)
Pass a string to Pythia8::Pythia::readString(), for user configuration.
void SetVertex(Double_t x, Double_t y, Double_t z)
Set the x, y and z vertex position.