13   gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
 
   17   gSystem->Load(
"libRho");
 
   18   gSystem->Load(
"libfastsim");
 
   27         double E=
sqrt(mp*mp+mom*mom)+
mp;
 
   33         double X = (M*M-2*mp*
mp)/(2*mp);
 
   38   sprintf(tmp,
"dpm%d_%6.4f_%dk.fast.root",
mode,M,nevts/1000);
 
   41   FairRunSim *
fRun = 
new FairRunSim();
 
   42   fRun->SetOutputFile(
outfile.Data());
 
   43   fRun->SetName(
"TGeant3");
 
   48   FairPrimaryGenerator* 
primGen = 
new FairPrimaryGenerator();
 
   49   fRun->SetGenerator(primGen);
 
   58   primGen->AddGenerator(dpmGen);
 
   60   primGen->DoTracking(kFALSE);
 
   70   fRun->AddTask(fastSim);
 
   78   printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
 
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
friend F32vec4 sqrt(const F32vec4 &a)
bool AddDetector(std::string name, std::string params="")
FairPrimaryGenerator * primGen
void simfast_dpm_cmp(double mom, int mode=0, int nevts=100, TString outfile="")
void SetVerbosity(int vb)
void EnablePropagation(bool propagate=true, bool tostartvtx=true, bool usecovmatrix=true, double tolerance=0.0)