13 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 gSystem->Load(
"libRho");
18 gSystem->Load(
"libfastsim");
22 FairRunSim *
fRun =
new FairRunSim();
23 fRun->SetOutputFile(
outfile.Data());
24 fRun->SetName(
"TGeant3");
29 FairPrimaryGenerator*
primGen =
new FairPrimaryGenerator();
30 fRun->SetGenerator(primGen);
32 FairEvtGenGenerator*
evtGen =
new FairEvtGenGenerator(
infile.Data());
33 primGen->AddGenerator(evtGen);
35 primGen->DoTracking(kFALSE);
45 fRun->AddTask(fastSim);
48 if (nevts==0) nevts=10;
54 printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
bool AddDetector(std::string name, std::string params="")
FairPrimaryGenerator * primGen
void SetVerbosity(int vb)
FairEvtGenGenerator * evtGen
void simfast_cmp(TString infile="dsdsj20k.evt", int nevts=0, TString outfile="")
TFile infile("dedx_out.root","READ")
void EnablePropagation(bool propagate=true, bool tostartvtx=true, bool usecovmatrix=true, double tolerance=0.0)