22 void trig( Int_t n=1 )
24 for ( Int_t i=0; i<n; i++ ) {
27 _primary ->
event() -> Print();
33 void Pythia6( TString mode=
"pp:W", Int_t tune=320 )
37 gSystem->Load(
"libPythia6_4_28.so");
45 if ( tune ) pythia6->
PyTune( tune );
49 int& msel = pysubs.msel;
53 float& ckin3 = pysubs.ckin(3);
60 pythia6 -> SetDecayFlag( +24, 0 );
61 pythia6 -> SetDecayFlag( -24, 0 );
62 pythia6 -> SetDecayFlag( +23, 0 );
63 pythia6 -> SetDecayFlag( -23, 0 );
64 pythia6 -> SetDecayFlag( +15, 0 );
65 pythia6 -> SetDecayFlag( -15, 0 );
69 if ( mode ==
"pp:minbias" )
74 if ( tune ) pythia6->
PyTune( tune );
78 Double_t pblue[]={0.,0.,30.0};
79 Double_t pyell[]={0.,0.,-320.0};
80 pythia6->
SetFrame(
"3MOM", pblue, pyell );
83 if ( tune ) pythia6->
PyTune( tune );
91 void starsim( Int_t nevents=1000, UInt_t rngSeed = 12345 )
94 gROOT->ProcessLine(
".L bfc.C");
96 TString simple =
"tables nodefault";
100 gSystem->Load(
"libVMC.so");
101 gSystem->Load(
"St_g2t.so" );
102 gSystem->Load(
"St_geant_Maker.so" );
104 gSystem->Load(
"StarGeneratorUtil.so" );
105 gSystem->Load(
"StarGeneratorEvent.so" );
106 gSystem->Load(
"StarGeneratorBase.so" );
108 gSystem->Load(
"libMathMore.so" );
131 random.
seed( rngSeed );
void PyTune(Int_t tune)
Calls the pytune function.
static StarRandom & Instance()
Obtain the single instance of the random number generator.
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 SetFileName(const Char_t *name)
Set the filename of the output TTree.
void SetPhiRange(Double_t phimin, Double_t phimax)
Set phi range. Particles falling outside this range will be dropped from simulation.
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.
A class for providing random number generation.
PySubs_t & pysubs()
Returns a reference to the /PYSUBS/ common block.
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.
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 SetVertex(Double_t x, Double_t y, Double_t z)
Set the x, y and z vertex position.