25 void trig( Int_t n=1 )
27 for ( Int_t i=0; i<n; i++ ) {
36 void Pythia6( TString mode=
"pp:W", Int_t tune=320 )
40 gSystem->Load(
"libPythia6_4_28.so");
48 if ( tune ) pythia6->
PyTune( tune );
52 int& msel = pysubs.msel;
70 pythia6 -> CloseDecays(24);
71 pythia6 -> OpenDecay( 24, 206, 2 );
80 if ( tune ) pythia6->
PyTune( tune );
84 int& msel = pysubs.msel;
88 int& mstp43 = pypars.mstp(43);
102 pythia6 -> CloseDecays(23);
103 pythia6 -> OpenDecay( 23, 186, 2 );
109 if ( mode ==
"pp:minbias" )
114 if ( tune ) pythia6->
PyTune( tune );
118 Double_t pblue[]={0.,0.,30.0};
119 Double_t pyell[]={0.,0.,-320.0};
120 pythia6->
SetFrame(
"3MOM", pblue, pyell );
123 if ( tune ) pythia6->
PyTune( tune );
131 void starsim( Int_t nevents=100, UInt_t rngSeed = 12345 )
134 gROOT->ProcessLine(
".L bfc.C");
136 TString simple =
"tables nodefault";
140 gSystem->Load(
"libVMC.so");
141 gSystem->Load(
"St_g2t.so" );
142 gSystem->Load(
"St_geant_Maker.so" );
144 gSystem->Load(
"StarGeneratorUtil.so" );
145 gSystem->Load(
"StarGeneratorEvent.so" );
146 gSystem->Load(
"StarGeneratorBase.so" );
148 gSystem->Load(
"libMathMore.so" );
157 _primary -> SetFileName(
"pythia6.standalone.root");
171 random.
seed( rngSeed );
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)
static void SetDecayFlag(const int kf, const int flag)
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.
void PyStat(Int_t stat)
Calls the pystat function.
A class for providing random number generation.
PySubs_t & pysubs()
Returns a reference to the /PYSUBS/ common block.
static void seed(UInt_t s)
Base class for event records.
PyPars_t & pypars()
Returns a reference to the /PYPARS/ common block.
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 SetVertex(Double_t x, Double_t y, Double_t z)
Set the x, y and z vertex position.