Go to the source code of this file.
sim_box |
( |
Int_t |
nEvents = 100 , |
|
|
TString |
SimEngine = "TGeant3" , |
|
|
Double_t |
BeamMomentum = 6.231552 |
|
) |
| |
Definition at line 8 of file sim_box.C.
References PndMasterRunSim::AddSimTasks(), BeamMomentum, PndMasterRunSim::CreateGeometry(), fRun, nEvents, PndMasterRunSim::SetGenerator(), PndMasterRunSim::SetInput(), PndMasterRunSim::SetNumberOfEvents(), PndMasterRunSim::SetParamAsciiFile(), PndMasterRunSim::Setup(), and TString.
11 TString parAsciiFile =
"all.par";
13 TString inputGenerator =
"box:type(211,1):p(1):tht(10,120)";
18 fRun->SetName(SimEngine);
Bool_t Setup(TString outprefix="")
Initial setup.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.
void SetInput(TString par)
Input of the simulation This string can be: a) the name of the dec file for EvtGen, ending w/ .dec b) "dpm" if you want to use dpm c) "ftf" if you want to use ftf d) "box:[...]" if you want to use box.
void AddSimTasks()
Add simulation tasks.
void SetNumberOfEvents(Int_t par)
Setter of the number of events.
void CreateGeometry()
It switches between different standard geometry volumes.
Class for the master simulation chain.
void SetGenerator()
Set the event generator.