Initialize the session 
Definition at line 3 of file tutorials/feb12/run_sim_sttcombi_evtgen.C.
References allDigiFile, Bool_t, Cave, ctime, digiFile, Dipole, Double_t, Drc, Dsk, Emc, emcHitProd, evtGen, fField, fRun, FTof, Fts, gDebug, Gem, kParameterMerged, Magnet, mom, Muo, Mvd, nEvents, output, parFile, parIo1, particle, Pipe, primGen, printf(), rootlogon(), rtdb, rtime, seed, PndMdt::SetBarrel(), PndMdt::SetEndcap(), PndEmc::SetGeometryVersion(), PndMdt::SetMdtMagnet(), PndMdt::SetMdtMFIron(), PndMdt::SetMuonFilter(), PndDrc::SetRunCherenkov(), PndEmc::SetStorageOfData(), PndDsk::SetStoreCerenkovs(), PndDsk::SetStoreTrackPoints(), PndEvtGenDirect::SetStoreTree(), Stt, timer, and TString.
    6   gRandom->SetSeed(
seed);
 
   12   gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
 
   18   FairRunSim *
fRun = 
new FairRunSim();
 
   23   fRun->SetName(
"TGeant3");
 
   26   fRun->SetOutputFile(
"points_sttcombi.root");
 
   31   allDigiFile += 
"/macro/params/";
 
   34   FairRuntimeDb* 
rtdb = fRun->GetRuntimeDb();
 
   35   FairParAsciiFileIo* 
parIo1 = 
new FairParAsciiFileIo();
 
   36   parIo1->open(allDigiFile.Data(),
"in");
 
   37   rtdb->setFirstInput(parIo1);        
 
   40   FairParRootFileIo* 
output=
new FairParRootFileIo(kParameterMerged);
 
   41   output->open(parFile);
 
   42   rtdb->setOutput(output);
 
   46   fRun->SetMaterials(
"media_pnd.geo");
 
   51   Cave->SetGeometryFileName(
"pndcave.geo");
 
   52   fRun->AddModule(Cave); 
 
   56   Magnet->SetGeometryFileName(
"FullSuperconductingSolenoid_v831.root");
 
   57   fRun->AddModule(Magnet);
 
   60   Dipole->SetGeometryFileName(
"dipole.geo");
 
   61   fRun->AddModule(Dipole);
 
   65   fRun->AddModule(Pipe);
 
   67   FairDetector *
Stt= 
new PndStt(
"STT", kTRUE);
 
   68   Stt->SetGeometryFileName(
"straws_skewed_blocks_35cm_pipe.geo");
 
   72   Mvd->SetGeometryFileName(
"Mvd-2.1_FullVersion.root");
 
   80   FairDetector *SciT = 
new PndSciT(
"SCIT",kTRUE);
 
   81   SciT->SetGeometryFileName(
"SciTil_Barrel_woPCB.root");
 
   82   fRun->AddModule(SciT);
 
   93   Gem->SetGeometryFileName(
"gem_3Stations.root");
 
   97   Dsk->SetGeometryFileName(
"dsk.root");
 
  100   fRun->AddModule(Dsk);
 
  103   Drc->SetGeometryFileName(
"dirc_l0_p0_updated.root");
 
  105   fRun->AddModule(Drc);
 
  107   FairDetector *
Fts= 
new PndFts(
"FTS", kTRUE);
 
  108   Fts->SetGeometryFileName(
"fts.geo");
 
  109   fRun->AddModule(Fts);
 
  112   FTof->SetGeometryFileName(
"ftofwall.root");
 
  113   fRun->AddModule(FTof);
 
  118   FairPrimaryGenerator* 
primGen = 
new FairPrimaryGenerator();
 
  119   fRun->SetGenerator(primGen);
 
  123   primGen->AddGenerator(evtGen);
 
  127   fRun->SetBeamMom(15);
 
  129   fRun->SetField(fField);
 
  134   fRun->AddTask(emcHitProd);
 
  140   rtdb->setOutput(output);
 
  152   printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
 
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
creates PndEmcHits from PndEmcPoints 
void SetMdtMFIron(bool opt=false)
void SetStorageOfData(Bool_t val)
FairParRootFileIo * output
FairPrimaryGenerator * primGen
void SetMdtMagnet(bool opt=false)
void SetStoreTrackPoints(Bool_t storeTrackPoints)
void SetStoreTree(Bool_t store=true)
void SetStoreCerenkovs(Bool_t storeCerenkovs)
virtual void SetGeometryVersion(const Int_t GeoNumber)
void SetBarrel(TString name)
FairParAsciiFileIo * parIo1
void SetEndcap(TString name)
void SetMuonFilter(TString name)
FairEvtGenGenerator * evtGen
void SetRunCherenkov(Bool_t ch)