Go to the source code of this file.
int run_HypSimpleAna_Geo2 |
( |
TString |
base = "Hit_hypIdReco" , |
|
|
int |
nevts = 0 , |
|
|
TString |
outfile = "" |
|
) |
| |
Definition at line 10 of file run_HypSimpleAna_Geo2_Bg.C.
References ctime, Double_t, PndHypSimpleAna::Finish(), gDebug, infile(), nEvents, outfile, parFile, printf(), rootlogon(), rtime, timer, and TString.
17 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
20 gSystem->Load(
"librazhyp");
21 gSystem->Load(
"libHyp");
23 gSystem->Load(
"libRho");
32 TString simfile =
"../Alicia/Bup_hypFSG41TXm.root";
35 TString recofile =
"../Alicia/hypIdealrecoXm_Geo2.root";
45 FairRunAna *fRunA=
new FairRunAna();
48 fRunA->SetInputFile(simfile.Data());
49 fRunA->AddFriend(infile);
50 fRunA->AddFriend(recofile);
56 fRunA->SetOutputFile(
outfile.Data());
63 fRunA->AddTask(anaTask);
68 anaTask->
Finish(base.Data());
74 printf(
"RealTime=%f seconds, CpuTime=%f seconds\n",rtime,ctime);
printf("RealTime=%f seconds, CpuTime=%f seconds\n", rtime, ctime)
TFile infile("dedx_out.root","READ")