22 void trig( Int_t n=1 )
24 for ( Int_t i=0; i<n; i++ ) {
32 void Pythia6( TString mode=
"pp:W", Int_t tune=320 )
36 gSystem->Load(
"libPythia6_4_23.so");
37 gSystem->Load(
"StarPythia6.so" );
45 if ( tune ) pythia6->
PyTune( tune );
53 if ( mode ==
"pp:minbias" )
58 if ( tune ) pythia6->
PyTune( tune );
62 Double_t pblue[]={0.,0.,30.0};
63 Double_t pyell[]={0.,0.,-320.0};
64 pythia6->
SetFrame(
"3MOM", pblue, pyell );
67 if ( tune ) pythia6->
PyTune( tune );
75 void standalone( Int_t nevents=100, UInt_t rngSeed = 12345 )
78 gROOT->ProcessLine(
".L bfc.C");
80 TString simple =
"tables nodefault";
84 gSystem->Load(
"libVMC.so");
85 gSystem->Load(
"St_g2t.so" );
86 gSystem->Load(
"St_geant_Maker.so" );
88 gSystem->Load(
"StarGeneratorUtil.so" );
89 gSystem->Load(
"StarGeneratorEvent.so" );
90 gSystem->Load(
"StarGeneratorBase.so" );
92 gSystem->Load(
"libMathMore.so" );
115 random.
seed( rngSeed );
137 _primary->
SetSigma( 0.1, 0.1, 30.0 );
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 SetFileName(const Char_t *name)
Set the filename of the output TTree.
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.
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 SetVertex(Double_t x, Double_t y, Double_t z)
Set the x, y and z vertex position.