16 void geometry( TString tag, Bool_t agml=
true )
18 TString cmd =
"DETP GEOM "; cmd += tag;
19 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
20 geant_maker -> LoadGeometry(cmd);
24 void command( TString cmd )
26 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
27 geant_maker -> Do( cmd );
30 void trig( Int_t n=1 )
32 for ( Int_t i=0; i<n; i++ ) {
40 void Pythia6( TString mode=
"pp:W", Int_t tune=320 )
44 gSystem->Load(
"libPythia6_4_28.so");
53 if ( tune ) pythia6->
PyTune( tune );
61 if ( mode ==
"pp:minbias" )
66 if ( tune ) pythia6->
PyTune( tune );
70 Double_t pblue[]={0.,0.,30.0};
71 Double_t pyell[]={0.,0.,-320.0};
72 pythia6->
SetFrame(
"3MOM", pblue, pyell );
75 if ( tune ) pythia6->
PyTune( tune );
83 void starsim( Int_t nevents=1, Int_t rngSeed=1234 )
86 gROOT->ProcessLine(
".L bfc.C");
88 TString simple =
"y2012 geant gstar agml usexgeom ";
92 gSystem->Load(
"libVMC.so");
94 gSystem->Load(
"StarGeneratorUtil.so" );
95 gSystem->Load(
"StarGeneratorEvent.so" );
96 gSystem->Load(
"StarGeneratorBase.so" );
98 gSystem->Load(
"libMathMore.so" );
99 gSystem->Load(
"xgeometry.so" );
113 chain -> AddBefore(
"geant", _primary );
150 _primary->
SetSigma( 0.1, 0.1, 30.0 );
161 command(
"gkine -4 0");
162 command(
"gfile o pythia6.starsim.fzd");
170 command(
"call agexit");
void PyTune(Int_t tune)
Calls the pytune function.
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.
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 SetVertex(Double_t x, Double_t y, Double_t z)
Set the x, y and z vertex position.