26 Float_t minEta = -1.5;
27 Float_t maxEta = +1.5;
30 void geometry( TString tag, Bool_t agml=
true )
32 TString cmd =
"DETP GEOM "; cmd += tag;
33 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
34 geant_maker -> LoadGeometry(cmd);
38 void command( TString cmd )
40 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
41 geant_maker -> Do( cmd );
44 void trig( Int_t n=0 )
46 for ( Int_t i=0; i<n+1; i++ ) {
49 if (kinematics) kinematics->
Kine( 1,
"Dalitz", minPt, maxPt, minEta, maxEta );
68 data.
AddParticle(
"Dalitz",
"pi0-->e+e-gamma 100%",0.135,0,0,0,
"meson",100111,-100111,10007);
71 _primary -> AddGenerator(kinematics);
77 hijing->SetTitle(
"Hijing 1.383");
102 _primary -> AddGenerator(hijing);
103 _primary -> SetCuts( 1.0E-6 , -1., -2.5, +2.5 );
109 void starsim( Int_t nevents=10, Int_t rngSeed=4321 )
112 gROOT->ProcessLine(
".L bfc.C");
114 TString simple =
"y2014a geant gstar usexgeom agml ";
118 gSystem->Load(
"libVMC.so");
120 gSystem->Load(
"StarGeneratorUtil.so" );
121 gSystem->Load(
"StarGeneratorEvent.so" );
122 gSystem->Load(
"StarGeneratorBase.so" );
123 gSystem->Load(
"libMathMore.so" );
124 gSystem->Load(
"libHijing1_383.so");
125 gSystem->Load(
"libKinematics.so");
126 gSystem->Load(
"xgeometry.so" );
129 gSystem->Load(
"gstar.so" );
130 command(
"call gstar");
142 _primary -> SetFileName(
"hijing.starsim.root");
143 chain -> AddBefore(
"geant", _primary );
149 _primary -> SetVertex( 0., 0., 0. );
150 _primary -> SetSigma( 0.3, 0.3, 60.0 );
174 command(
"gkine -4 0");
175 command(
"gfile o hijing.starsim.fzd");
186 command(
"call agexit");
HIJING /HIPARNT/ common block/.
void SetFrame(const Char_t *frame, const Double_t val)
void Print(const Option_t *opts="head") const
Star Simple Kinematics Generator.
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.
static StarParticleData & instance()
Returns a reference to the single instance of this class.
Interface to PDG information.
void SetBlue(const Char_t *b)
Sets the particle species for the blue beam.
void AddParticle(const Char_t *name, TParticlePDG *particle)
Add a particle to the database.
Int_t Init()
Initialize generator.
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.
StarGenEvent * event()
Return a pointer to the event.
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.
Sparse class to hold track kinematics.
void Kine(Int_t ntrack, const Char_t *type="pi+,pi-,K+,K-,proton,antiproton", Double_t ptlow=0.0, Double_t pthigh=500.0, Double_t ylow=-10.0, Double_t yhigh=+10.0, Double_t philow=0.0, Double_t phihigh=TMath::TwoPi())