19 void geometry( TString tag, Bool_t agml=
true )
21 TString cmd =
"DETP GEOM "; cmd += tag;
22 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
23 geant_maker -> LoadGeometry(cmd);
26 void command( TString cmd )
28 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
29 geant_maker -> Do( cmd );
34 void trig( Int_t n=1 )
42 void Pythia8( TString config=
"pp:W", Double_t ckin3=0.0, Double_t ckin4=-1.0 )
45 gSystem->Load(
"Pythia8_1_62.so" );
58 pythia8->
Set(
"WeakSingleBoson:all=off");
59 pythia8->
Set(
"WeakSingleBoson:ffbar2W=on");
60 pythia8->
Set(
"24:onMode=0");
61 pythia8->
Set(
"24:onIfAny 11 -11");
64 if ( config==
"pp:minbias" )
70 pythia8->
Set(
"HardQCD:all = on");
75 pythia8 -> Set(Form(
"PhaseSpace:ptHatMin=%f", ckin3 ));
76 pythia8 -> Set(Form(
"PhaseSpace:ptHatMax=%f", ckin4 ));
78 _primary -> AddGenerator( pythia8 );
84 void Pythia6( TString mode=
"pp:minbias", Double_t ckin3=0.0, Double_t ckin4=-1.0, Int_t tune=320, Int_t rngSeed=1234 )
88 gSystem->Load(
"libPythia6_4_23.so");
107 if ( tune ) pythia6->
PyTune( tune );
114 if ( mode ==
"pp:minbias" )
127 pysubs.ckin(3)=ckin3;
128 pysubs.ckin(4)=ckin4;
137 void starsim( Int_t nevents=1, Double_t ckin3=7.0, Double_t ckin4=-1.0 )
140 gROOT->ProcessLine(
".L bfc.C");
142 TString simple =
"y2012 geant gstar usexgeom agml ";
146 gSystem->Load(
"libVMC.so");
148 gSystem->Load(
"StarGeneratorUtil.so");
149 gSystem->Load(
"StarGeneratorEvent.so");
150 gSystem->Load(
"StarGeneratorBase.so" );
151 gSystem->Load(
"libMathMore.so" );
156 gSystem->Load(
"StarGeneratorFilt.so" );
158 gMessMgr->SetLevel(999);
166 _primary -> SetFileName( Form(
"filter_%f_%f.gener.root",ckin3,ckin4) );
167 _primary -> SetVertex( 0.1, -0.2, 0.0 );
168 _primary -> SetSigma ( 0.1, 0.1, 30.0 );
169 chain -> AddBefore(
"geant", _primary );
175 Pythia8(
"pp:minbias", ckin3, ckin4 );
182 _primary -> AddFilter( filter );
188 _primary->SetAttr(
"FilterKeepAll",
int(1));
210 command(
"gkine -4 0");
211 command( Form(
"gfile o filter_%f_%f.starsim.fzd",ckin3,ckin4) );
227 command(
"call agexit");
void PyTune(Int_t tune)
Calls the pytune function.
void SetFrame(const Char_t *frame, const Double_t val)
Main filter class. Goes anywhere in the chain, filters StarGenEvent objects.
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.
static void capture()
Capture gRandom random number generator.
void Set(const char *s)
Pass a string to Pythia8::Pythia::readString(), for user configuration.