27 Float_t vx_sig = 0.01;
28 Float_t vy_sig = 0.01;
38 void geometry( TString tag, Bool_t agml=
true )
40 TString cmd =
"DETP GEOM "; cmd += tag;
41 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
42 geant_maker -> LoadGeometry(cmd);
46 void command( TString cmd )
48 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
49 geant_maker -> Do( cmd );
52 void trig( Int_t n=0 )
54 for ( Int_t i=0; i<n+1; i++ ) {
58 if (kinematics) kinematics ->
Kine( 1,
"tau-", 10.0, 20.0, -1.0, 1.0 );
68 _primary -> AddGenerator(kinematics);
71 void starsim( Int_t nevents=1, Int_t Index = 0, Int_t rngSeed=4321 )
74 gROOT->ProcessLine(
".L bfc.C");
76 TString simple =
"y2014 geant gstar usexgeom agml ";
80 gSystem->Load(
"libVMC.so");
82 gSystem->Load(
"StarGeneratorUtil.so" );
83 gSystem->Load(
"StarGeneratorEvent.so" );
84 gSystem->Load(
"StarGeneratorBase.so" );
85 gSystem->Load(
"StarGeneratorDecay.so" );
86 gSystem->Load(
"libMathMore.so" );
87 gSystem->Load(
"libHijing1_383.so");
88 gSystem->Load(
"libKinematics.so");
89 gSystem->Load(
"xgeometry.so" );
91 gSystem->Load(
"libHepMC2_06_09.so");
92 gSystem->Load(
"libPythia8_1_86.so");
93 gSystem->Load(
"libPhotos3_61.so");
94 gSystem->Load(
"libTauola1_1_5.so");
95 gSystem->Load(
"libEvtGen1_06_00.so");
106 TString rootname =
"tau.root";
107 TString fzname =
"gfile o tau.fzd";
115 _primary -> SetFileName(rootname);
116 chain -> AddBefore(
"geant", _primary );
122 _primary -> SetVertex( vx,vy,vz );
123 _primary -> SetSigma( vx_sig,vy_sig,vz_sig );
151 command(
"gkine -4 0");
161 command(
"call agexit");
void Print(const Option_t *opts="head") const
Star Simple Kinematics Generator.
virtual void Clear(Option_t *option="")
User defined functions.
Connects VMC to class(es) which handle particle decays.
Int_t Init()
Initialize generator.
static void seed(UInt_t s)
Base class for event records.
STAR wrapper for EvtGen Decayer.
StarGenEvent * event()
Return a pointer to the event.
Main steering class for event generation.
void AddDecayer(Int_t pdgid, TVirtualMCDecayer *decayer)
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())