Go to the source code of this file.
void simfast_dpm_cmp |
( |
double |
mom, |
|
|
int |
mode = 0 , |
|
|
int |
nevts = 100 , |
|
|
TString |
outfile = "" |
|
) |
| |
Definition at line 5 of file simfast_dpm_cmp.C.
References PndFastSim::AddDetector(), ctime, Double_t, dpmGen, PndFastSim::EnablePropagation(), fRun, gDebug, mode, mom, mp, outfile, p, primGen, printf(), rootlogon(), rtime, PndFastSim::SetVerbosity(), sqrt(), timer, TString, and X.
13 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 gSystem->Load(
"libRho");
18 gSystem->Load(
"libfastsim");
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 SetVerbosity(int vb)
void EnablePropagation(bool propagate=true, bool tostartvtx=true, bool usecovmatrix=true, double tolerance=0.0)