FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
gROOT | Macro ("$VMCWORKDIR/gconfig/rootlogon.C") |
inFile | ReplaceAll ("$SIMPATH", SIMPATH) |
if (gSystem->Exec(cmd)) | |
outFile | ReplaceAll (inDir, jobDir) |
outFile | ReplaceAll (".reco.root",".riemann.root") |
paramIn | ReplaceAll (".reco.root",".param.root") |
paramOut | ReplaceAll (".riemann.root",".param.root") |
std::cout<<"Input: "<< inFile << std::endl;std::cout <<"Output: "<< outFile << std::endl;std::cout <<"MCFile: "<< mcFile << std::endl;std::cout <<"ParamIn: "<< paramIn << std::endl;std::cout <<"ParamOut: "<< paramOut << std::endl;TStopwatch timer;timer.Start();FairRunAna *fRun=new FairRunAna();fRun-> | SetInputFile (inFile) |
fRun | SetOutputFile (outFile) |
parInput1 | open (paramIn.Data(),"UPDATE") |
rtdb | setFirstInput (parInput1) |
mvdTrackFinder | SetVerbose (iVerbose) |
mvdTrackFinder | SetMaxDist (0.7) |
mvdTrackFinder | SetMaxSZChi2 (1) |
mvdTrackFinder | SetMaxSZDist (1) |
fRun | AddTask (mvdTrackFinder) |
output | open (paramOut.Data()) |
rtdb | setOutput (parInput1) |
rtdb | print () |
fRun | Init () |
fRun | Run (0, nEvents) |
rtdb | saveOutput () |
timer | Stop () |
Variables | |
TString | parOutFile = "MvdParamsNewVersion.root" |
Int_t | nEvents = 100 |
TString | inFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/Combined.reco.root" |
TString | jobname ="riemannMVD" |
TString | mcFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/Combined.mc.root" |
TString | SIMPATH = gSystem->Getenv("SIMPATH") |
TString | inDir =inFile(0,inFile.Last('/')+1) |
TString | jobDir =inDir |
TString | cmd ="mkdir " |
TString | outFile = inFile |
TString | paramIn = inFile |
TString | paramOut = outFile |
FairRuntimeDb * | rtdb = fRun->GetRuntimeDb() |
FairParRootFileIo * | parInput1 = new FairParRootFileIo(kTRUE) |
Bool_t | kParameterMerged =kTRUE |
PndMvdRiemannTrackFinderTask * | mvdTrackFinder = new PndMvdRiemannTrackFinderTask() |
FairParRootFileIo * | output =new FairParRootFileIo(kTRUE) |
PndMvdGeoPar * | geoPar = (PndMvdGeoPar*)(rtdb->getContainer("PndMvdGeoPar")) |
Double_t | rtime = timer.RealTime() |
Double_t | ctime = timer.CpuTime() |
fRun AddTask | ( | mvdTrackFinder | ) |
if | ( | gSystem-> | Execcmd | ) |
Definition at line 37 of file runMvdTpcRiemannTrackFinder.C.
fRun Init | ( | ) |
gROOT Macro | ( | "$VMCWORKDIR/gconfig/rootlogon.C" | ) |
parInput1 open | ( | paramIn. | Data(), |
"UPDATE" | |||
) |
output open | ( | paramOut. | Data() | ) |
outFile ReplaceAll | ( | ".reco.root" | , |
".riemann.root" | |||
) |
paramIn ReplaceAll | ( | ".reco.root" | , |
".param.root" | |||
) |
paramOut ReplaceAll | ( | ".riemann.root" | , |
".param.root" | |||
) |
rtdb saveOutput | ( | ) |
std::cout<<"Input: "<<inFile<<std::endl; std::cout<<"Output: "<<outFile<<std::endl; std::cout<<"MCFile: "<<mcFile<<std::endl; std::cout<<"ParamIn: "<<paramIn<<std::endl; std::cout<<"ParamOut: "<<paramOut<<std::endl; TStopwatch timer; timer.Start(); FairRunAna *fRun= new FairRunAna(); fRun-> SetInputFile | ( | inFile | ) |
mvdTrackFinder SetMaxDist | ( | 0. | 7 | ) |
mvdTrackFinder SetMaxSZChi2 | ( | 1 | ) |
mvdTrackFinder SetMaxSZDist | ( | 1 | ) |
mvdTrackFinder SetVerbose | ( | iVerbose | ) |
timer Stop | ( | ) |
cmd ="mkdir " |
Definition at line 35 of file runMvdTpcRiemannTrackFinder.C.
Double_t ctime = timer.CpuTime() |
Definition at line 137 of file runMvdTpcRiemannTrackFinder.C.
PndMvdGeoPar* geoPar = (PndMvdGeoPar*)(rtdb->getContainer("PndMvdGeoPar")) |
Definition at line 123 of file runMvdTpcRiemannTrackFinder.C.
Definition at line 32 of file runMvdTpcRiemannTrackFinder.C.
TString inFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/Combined.reco.root" |
Definition at line 22 of file runMvdTpcRiemannTrackFinder.C.
jobDir =inDir |
Definition at line 34 of file runMvdTpcRiemannTrackFinder.C.
TString jobname ="riemannMVD" |
Definition at line 23 of file runMvdTpcRiemannTrackFinder.C.
Bool_t kParameterMerged =kTRUE |
Definition at line 97 of file runMvdTpcRiemannTrackFinder.C.
TString mcFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/Combined.mc.root" |
Definition at line 25 of file runMvdTpcRiemannTrackFinder.C.
PndMvdRiemannTrackFinderTask* mvdTrackFinder = new PndMvdRiemannTrackFinderTask() |
Definition at line 110 of file runMvdTpcRiemannTrackFinder.C.
Int_t nEvents = 100 |
Definition at line 12 of file runMvdTpcRiemannTrackFinder.C.
Definition at line 43 of file runMvdTpcRiemannTrackFinder.C.
FairParRootFileIo* output =new FairParRootFileIo(kTRUE) |
Definition at line 117 of file runMvdTpcRiemannTrackFinder.C.
Definition at line 47 of file runMvdTpcRiemannTrackFinder.C.
Definition at line 49 of file runMvdTpcRiemannTrackFinder.C.
FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE) |
Definition at line 91 of file runMvdTpcRiemannTrackFinder.C.
TString parOutFile = "MvdParamsNewVersion.root" |
Definition at line 10 of file runMvdTpcRiemannTrackFinder.C.
FairRuntimeDb* rtdb = fRun->GetRuntimeDb() |
Definition at line 89 of file runMvdTpcRiemannTrackFinder.C.
Double_t rtime = timer.RealTime() |
Definition at line 136 of file runMvdTpcRiemannTrackFinder.C.
Definition at line 27 of file runMvdTpcRiemannTrackFinder.C.