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=0 )
32 for ( Int_t i=0; i<n+1; i++ ) {
41 hijing->SetTitle(
"Hijing 1.383");
52 hiparnt.
hipr1(10) = 2.0;
53 hiparnt.
ihpr2(8) = 10;
54 hiparnt.
ihpr2(11) = 1;
55 hiparnt.
ihpr2(12) = 1;
56 hiparnt.
ihpr2(18) = 0;
57 hiparnt.
hipr1(7) = 5.35;
64 _primary ->
SetCuts( 1.0E-6 , -1., -2.5, +2.5 );
70 void starsim( Int_t nevents=50, Int_t rngSeed=1234 )
73 gROOT->ProcessLine(
".L bfc.C");
75 TString simple =
"y2012 geant gstar usexgeom agml ";
81 gSystem->Load(
"libVMC.so");
83 gSystem->Load(
"StarGeneratorUtil.so" );
84 gSystem->Load(
"StarGeneratorEvent.so" );
85 gSystem->Load(
"StarGeneratorBase.so" );
86 gSystem->Load(
"libMathMore.so" );
87 gSystem->Load(
"libHijing1_383.so");
88 gSystem->Load(
"xgeometry.so" );
101 chain -> AddBefore(
"geant", _primary );
119 command(
"gkine -4 0");
120 command(
"gfile o hijing.starsim.fzd");
126 command(
"gprint kine");
HIJING /HIPARNT/ common block/.
void SetFrame(const Char_t *frame, const Double_t val)
void SetFileName(const Char_t *name)
Set the filename of the output TTree.
void SetImpact(Double_t bmin, Double_t bmax)
Set the minimum and maximum impact parameters for the collision (HI generators)
virtual void Clear(Option_t *option="")
User defined functions.
void SetCuts(Double_t ptmin, Double_t ptmax=-1, Double_t ymin=0, Double_t ymax=-1, Double_t phimin=0, Double_t phimax=-1, Double_t zmin=-999, Double_t zmax=+999)
Set particle cuts.
void AddGenerator(StarGenerator *gener)
void SetBlue(const Char_t *b)
Sets the particle species for the blue beam.
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.
static void capture()
Capture gRandom random number generator.