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);
27 void command( TString cmd )
29 if ( !geant_maker ) geant_maker = (
St_geant_Maker *)chain->GetMaker(
"geant");
30 geant_maker -> Do( cmd );
38 void trig( Int_t n=1 )
47 void Pythia8( TString config=
"pp:W", Double_t ckin3=0.0, Double_t ckin4=-1.0 )
61 pythia8->
Set(
"WeakSingleBoson:all=off");
62 pythia8->
Set(
"WeakSingleBoson:ffbar2W=on");
63 pythia8->
Set(
"24:onMode=0");
64 pythia8->
Set(
"24:onIfAny 11 -11");
67 if ( config==
"pp:minbias" )
73 pythia8->
Set(
"HardQCD:all = on");
76 if ( config==
"pp:heavyflavor:D0jets" )
78 pythia8->
Set(
"HardQCD:gg2ccbar = on");
79 pythia8->
Set(
"HardQCD:qqbar2ccbar = on");
80 pythia8->
Set(
"Charmonium:all = on");
82 pythia8->
Set(
"421:mayDecay = 0");
91 pythia8 -> Set(Form(
"PhaseSpace:ptHatMin=%f", ckin3 ));
92 pythia8 -> Set(Form(
"PhaseSpace:ptHatMax=%f", ckin4 ));
94 _primary -> AddGenerator( pythia8 );
100 void starsim( Int_t nevents=10, Int_t rngSeed=1234 )
103 gROOT->ProcessLine(
".L bfc.C");
105 TString simple =
"y2014x geant gstar usexgeom agml sdt20140530 DbV20150316 misalign ";
109 gSystem->Load(
"libVMC.so");
111 gSystem->Load(
"StarGeneratorUtil.so");
112 gSystem->Load(
"StarGeneratorEvent.so");
113 gSystem->Load(
"StarGeneratorBase.so" );
115 gSystem->Load(
"Pythia8_3_03.so" );
117 gSystem->Load(
"libMathMore.so" );
120 gSystem->Load(
"xgeometry.so" );
122 gSystem->Load(
"$OPTSTAR/lib/libfastjet.so");
123 gSystem->Load(
"StarGeneratorFilt.so" );
124 gSystem->Load(
"FastJetFilter.so" );
145 _primary -> SetFileName(
"pythia8.starsim.root");
146 _primary -> SetVertex( 0.1, -0.1, 0.0 );
147 _primary -> SetSigma ( 0.1, 0.1, 30.0 );
148 chain -> AddBefore(
"geant", _primary );
156 Pythia8(
"pp:heavyflavor:D0jets", ckin3, ckin4 );
157 command(
"call gstar_part");
167 _primary -> AddFilter( filter );
173 _primary->SetAttr(
"FilterKeepAll",
int(1));
205 _primary->
SetSigma( 0.1, 0.1, 30.0 );
213 command(
"gkine -4 0");
214 command(
"gfile o pythia8.starsim.fzd");
230 command(
"call agexit");
void SetSigma(Double_t sx, Double_t sy, Double_t sz, Double_t rho=0)
void SetFrame(const Char_t *frame, const Double_t val)
void Print(const Option_t *opts="head") const
void SetPhiRange(Double_t phimin, Double_t phimax)
Set phi range. Particles falling outside this range will be dropped from simulation.
Main filter class. Goes anywhere in the chain, filters StarGenEvent objects.
void SetBlue(const Char_t *b)
Sets the particle species for the blue beam.
static void seed(UInt_t s)
Filter which requires one or more particles in the final state of the event record.
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.
void SetPtRange(Double_t ptmin, Double_t ptmax=-1)
Set PT range. Particles falling outside this range will be dropped from simulation.
static void capture()
Capture gRandom random number generator.
void SetEtaRange(Double_t etamin, Double_t etamax)
Set rapidity range. Particles falling outside this range will be dropped from simulation.
void Set(const char *s)
Pass a string to Pythia8::Pythia::readString(), for user configuration.
void SetVertex(Double_t x, Double_t y, Double_t z)
Set the x, y and z vertex position.