27   gSystem->Load(
"libtrackrep");
 
   29   gSystem->Load(
"librazhyp");
 
   30   gSystem->Load(
"libHyp");
 
   32   FairRunSim *
fRun = 
new FairRunSim();
 
   38   if(Decfile==
"giBUU+backg")inFile= 
"/data/work/kpha4/lorente/sim_panda/carbon2_allParticles_1_32.root";
 
   42   if(Decfile==
"hist"||Decfile==
"param")inFile= 
"XiGengiBUUSamp.root";
 
   53   if(Decfile==
"giBUU")inFile= 
"../../../../../FairFeb14/pandaroot/macro/hyp/Alicia/carbon_onlyXi_2_5.root";
 
   58   if(Decfile==
"hypbup"){
 
   61       inFile= 
"/data/work/kpha4/lorente/sim_panda/hypBupV1T_Decay_gam_"+prefix+
".root";
 
   63       inFile= 
"hypBupV1T_Decay_"+prefix+
".root";
 
   74   fRun->SetName(
"TGeant4");
 
   82   if(Decfile==
"giBUU+backg")fRun->SetOutputFile(
"/data/work/kpha4/lorente/sim_panda/Sim_hypFSG41TBg_SebGeo_"+prefix+
".root");
 
   86   if(Decfile==
"box")fRun->SetOutputFile(
"sim_box.root");
 
   87   if(Decfile==
"param")fRun->SetOutputFile(
"/data/work/kpha4/lorente/sim_panda/Sim_hypFSG41TXm_SebGeo_"+prefix+
".root");
 
   88   if(Decfile==
"giBUU") fRun->SetOutputFile(
"sim_gibuu.root");
 
   96   if(Decfile==
"hypbup")fRun->SetOutputFile(
"Bup_hypFSG41TXm.root");
 
  104   fRun->SetMaterials(
"media_pnd.geo");
 
  110   Cave->SetGeometryFileName(
"pndcave.geo");
 
  111   fRun->AddModule(Cave); 
 
  140   if(vers==
"standard"){
 
  148     Hyp->SetGeometryFileName(
"HYPST_assexy3C5Lay_mvd.root");
 
  163     Hyp->SetGeometryFileName(
"TargetSystem_Ti_TcT150um_filledCorners_addSens.root");
 
  175       Hyp->
SetTreeFName(
"/data/work/kpha4/lorente/sim_panda/hypBupV1T_Decay_gam_"+prefix+
".root");
 
  183   fRun->AddModule(Hyp);
 
  203   if(Decfile==
"giBUU+backg"){ 
 
  205     fRun->SetGenerator(primGen);
 
  207     FairPrimaryGenerator* 
primGen = 
new FairPrimaryGenerator();
 
  208     fRun->SetGenerator(primGen);
 
  221     boxGen->
SetXYZ(0., 0., -55.0); 
 
  235   if(Decfile==
"param"){
 
  244   if(Decfile==
"giBUU"){
 
  249     primGen->AddGenerator(AsciiGen);
 
  252   if(Decfile==
"giBUU+backg"){
 
  257     primGen->AddGenerator(AsciiGen);
 
  258     FairEvtFilterOnCounts* min1Lmd_1aLmd = 
new FairEvtFilterOnCounts();
 
  259     min1Lmd_1aLmd->AndMinMaxPdgCodes(1, 9999, 3312); 
 
  260     min1Lmd_1aLmd->AndMinMaxPdgCodes(1, 9999, -3312); 
 
  261     primGen->AndNotFilter(min1Lmd_1aLmd);
 
  270   if(Decfile==
"hypbup"){
 
  280     primGen->AddGenerator(partGen);
 
  290   fRun->SetField(fMagField);
 
  302   fRun->SetStoreTraj(kTRUE); 
 
  312   FairRuntimeDb *
rtdb=fRun->GetRuntimeDb();
 
  321   fieldPar->setInputVersion(fRun->GetRunId(),1);
 
  322   fieldPar->setChanged();
 
  325   FairParRootFileIo* 
output=
new FairParRootFileIo(kParameterMerged);
 
  327  if(Decfile==
"param") output->open(
"/data/work/kpha4/lorente/sim_panda/Sim_hypFS1TG4Xm_SebGeo3params_"+prefix+
".root");
 
  328  if(Decfile==
"giBUU") output->open(
"sim_gibuuparams.root");
 
  329  if(Decfile==
"box") output->open(
"sim_boxparams.root");
 
  331   if(Decfile==
"hypbup")output->open(
"Bup_hypFS1TG4Xmparams.root");
 
  333   if(Decfile==
"giBUU+backg")output->open(
"/data/work/kpha4/lorente/sim_panda/Sim_hypFS1TG4Bg_SebGeoparams_"+prefix+
".root");
 
  335   rtdb->setOutput(output);
 
  350   printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
 
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90)
void SetListMat(TString mat="carbon")
void SetXYZ(Double32_t x=0, Double32_t y=0, Double32_t z=0)
PndUrqmdSmmGenerator * AsciiGen
void GammaEmissPar(Bool_t On=kFALSE)
PndHypBupGenerator * partGen
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
FairParRootFileIo * output
void SetFieldRegion(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t zMin, Double_t zMax)
FairPrimaryGenerator * primGen
void SetSensorVol(TString VolSi)
PndConstField * fMagField
void SetMatbud(bool mbud)
Primary generator with added event filtering capabilities. 
void SetHypSDtoFile(bool onf, bool val)
void SetField(Double_t bX, Double_t bY, Double_t bZ)
PndMultiFieldPar * fieldPar
void SetHypGamFEm(bool gam)
void SetAbsorberVol(TString VolAb)
void SetParameters(FairField *field)
void SetTreeFName(const Char_t *Name)
void SetThetaRange(Double_t thetLow=0., Double_t thetHigh=0.)
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)
FairBoxGenerator * boxGen
void SetGeoVersion(TString vers="standard")
void SetThetaRange(Double32_t thetamin=0, Double32_t thetamax=90)
void SetPRange(Double32_t pmin=0, Double32_t pmax=10)
void SetPhiRange(Double32_t phimin=0, Double32_t phimax=360)