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 Pythia6( TString mode=
"pp:W", Int_t tune=320 )
75 gSystem->Load(
"libPythia6_4_28.so");
84 if ( tune ) pythia6->
PyTune( tune );
92 if ( mode ==
"pp:minbias" )
97 if ( tune ) pythia6->
PyTune( tune );
101 Double_t pblue[]={0.,0.,30.0};
102 Double_t pyell[]={0.,0.,-320.0};
103 pythia6->
SetFrame(
"3MOM", pblue, pyell );
106 if ( tune ) pythia6->
PyTune( tune );
112 void Pythia8( TString config=
"pp:W" )
120 if ( config==
"pp:W" )
126 pythia8->
Set(
"WeakSingleBoson:all=off");
127 pythia8->
Set(
"WeakSingleBoson:ffbar2W=on");
128 pythia8->
Set(
"24:onMode=0");
129 pythia8->
Set(
"24:onIfAny 11 -11");
132 if ( config==
"pp:minbias" )
138 pythia8->
Set(
"SoftQCD:minBias = on");
141 _primary -> AddGenerator( pythia8 );
146 void starsim( Int_t nevents=1, Int_t Index = 0, Int_t rngSeed=4321 )
149 gROOT->ProcessLine(
".L bfc.C");
151 TString simple =
"y2014 geant gstar usexgeom agml ";
155 gSystem->Load(
"libVMC.so");
157 gSystem->Load(
"StarGeneratorUtil.so" );
158 gSystem->Load(
"StarGeneratorEvent.so" );
159 gSystem->Load(
"StarGeneratorBase.so" );
160 gSystem->Load(
"StarGeneratorDecay.so" );
161 gSystem->Load(
"libMathMore.so" );
162 gSystem->Load(
"libHijing1_383.so");
163 gSystem->Load(
"libKinematics.so");
164 gSystem->Load(
"xgeometry.so" );
166 gSystem->Load(
"libHepMC2_06_09.so");
167 gSystem->Load(
"libPythia8_1_86.so");
168 gSystem->Load(
"libPhotos3_61.so");
169 gSystem->Load(
"libTauola1_1_5.so");
170 gSystem->Load(
"libEvtGen1_06_00.so");
181 TString rootname =
"tau.root";
182 TString fzname =
"gfile o tau.fzd";
190 _primary -> SetFileName(rootname);
191 chain -> AddBefore(
"geant", _primary );
197 _primary -> SetVertex( vx,vy,vz );
198 _primary -> SetSigma( vx_sig,vy_sig,vz_sig );
228 command(
"gkine -4 0");
238 command(
"call agexit");
void PyTune(Int_t tune)
Calls the pytune function.
void SetFrame(const Char_t *frame, const Double_t val)
void Print(const Option_t *opts="head") const
Star Simple Kinematics Generator.
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.
Connects VMC to class(es) which handle particle decays.
Int_t Init()
Initialize generator.
PySubs_t & pysubs()
Returns a reference to the /PYSUBS/ common block.
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)
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())
void Set(const char *s)
Pass a string to Pythia8::Pythia::readString(), for user configuration.