32 void trig( Int_t n=1 )
34 for ( Int_t i=0; i<n; i++ ) {
46 void reader( Int_t nevents=1, UInt_t rngSeed = 12345 )
49 gROOT->ProcessLine(
".L bfc.C");
51 TString simple =
"tables nodefault";
55 gSystem->Load(
"libVMC.so");
56 gSystem->Load(
"St_g2t.so" );
57 gSystem->Load(
"St_geant_Maker.so" );
59 gSystem->Load(
"StarGeneratorUtil.so" );
60 gSystem->Load(
"StarGeneratorEvent.so" );
61 gSystem->Load(
"StarGeneratorBase.so" );
63 gSystem->Load(
"libMathMore.so" );
64 gSystem->Load(
"libStarGenEventReader.so" );
73 _primary -> SetFileName(
"output.pythia6.starsim.root");
76 eventreader =
new StarEventReader();
77 eventreader -> SetInputFile(
"pythia6.starsim.root",
"genevents",
"primaryEvent");
86 random.
seed( rngSeed );
108 _primary->
SetSigma( 0.1, 0.1, 30.0 );
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 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)
A class for providing random number generation.
static void seed(UInt_t s)
Base class for event records.
Main steering class for event generation.
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.