FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
gROOT | Macro ("$VMCWORKDIR/gconfig/rootlogon.C") |
gSystem | Load ("libriemann") |
inFile | ReplaceAll ("$SIMPATH", SIMPATH) |
if (gSystem->Exec(cmd)) | |
outFile | ReplaceAll (inDir, jobDir) |
outFile | ReplaceAll (".riemann.root",".combined.root") |
paramIn | ReplaceAll (".riemann.root",".param.root") |
paramOut | ReplaceAll (".combined.root",".param.root") |
std::cout<<"Input: "<< inFile << std::endl;std::cout <<"Output: "<< outFile << std::endl;std::cout <<"RecoMVDFile: " << recoMVDFile<< std::endl;std::cout <<"RecoTPCFile: " << recoTPCFile<< 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 | AddFriend (recoMVDFile) |
fRun | AddFriend (recoTPCFile) |
fRun | SetOutputFile (outFile) |
parInput1 | open (paramIn.Data(),"UPDATE") |
rtdb | setFirstInput (parInput1) |
mvdtpccorr | SetMaxDist (MaxDist) |
mvdtpccorr | SetMaxSZ (MaxSZ) |
mvdtpccorr | SetMaxSZChi2 (MaxSZChi2) |
mvdtpccorr | SetVerbose (iVerbose) |
fRun | AddTask (mvdtpccorr) |
output | open (paramOut.Data()) |
rtdb | setOutput (output) |
rtdb | print () |
fRun | Init () |
fRun | Run (0, nEvents) |
timer | Stop () |
Variables | |
Int_t | nEvents = 100 |
TString | inFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/riemannMVD/Combined.riemann.root" |
TString | jobname ="combinedMVDTPC" |
TString | mcFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/Combined.mc.root" |
TString | recoMVDFile = "$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/Combined.reco.root" |
TString | recoTPCFile = "$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiTPC/recoTPC/Combined.reco.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) |
double | MaxDist = 1 |
double | MaxSZ = 1 |
double | MaxSZChi2 = 1 |
PndMvdTpcRiemannCorrelatorTask * | mvdtpccorr = new PndMvdTpcRiemannCorrelatorTask() |
FairParRootFileIo * | output =new FairParRootFileIo(kTRUE) |
Double_t | rtime = timer.RealTime() |
Double_t | ctime = timer.CpuTime() |
fRun AddFriend | ( | recoMVDFile | ) |
fRun AddFriend | ( | recoTPCFile | ) |
fRun AddTask | ( | mvdtpccorr | ) |
if | ( | gSystem-> | Execcmd | ) |
Definition at line 40 of file runMvdTpcTrackCorr.C.
fRun Init | ( | ) |
gSystem Load | ( | "libriemann" | ) |
gROOT Macro | ( | "$VMCWORKDIR/gconfig/rootlogon.C" | ) |
parInput1 open | ( | paramIn. | Data(), |
"UPDATE" | |||
) |
output open | ( | paramOut. | Data() | ) |
outFile ReplaceAll | ( | ".riemann.root" | , |
".combined.root" | |||
) |
paramIn ReplaceAll | ( | ".riemann.root" | , |
".param.root" | |||
) |
paramOut ReplaceAll | ( | ".combined.root" | , |
".param.root" | |||
) |
std::cout<<"Input: "<<inFile<<std::endl; std::cout<<"Output: "<<outFile<<std::endl; std::cout<<"RecoMVDFile: "<<recoMVDFile<<std::endl; std::cout<<"RecoTPCFile: "<<recoTPCFile<<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 | ) |
mvdtpccorr SetMaxDist | ( | MaxDist | ) |
mvdtpccorr SetMaxSZ | ( | MaxSZ | ) |
mvdtpccorr SetMaxSZChi2 | ( | MaxSZChi2 | ) |
mvdtpccorr SetVerbose | ( | iVerbose | ) |
timer Stop | ( | ) |
cmd ="mkdir " |
Definition at line 38 of file runMvdTpcTrackCorr.C.
Double_t ctime = timer.CpuTime() |
Definition at line 161 of file runMvdTpcTrackCorr.C.
Definition at line 35 of file runMvdTpcTrackCorr.C.
TString inFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/riemannMVD/Combined.riemann.root" |
Definition at line 21 of file runMvdTpcTrackCorr.C.
jobDir =inDir |
Definition at line 37 of file runMvdTpcTrackCorr.C.
TString jobname ="combinedMVDTPC" |
Definition at line 22 of file runMvdTpcTrackCorr.C.
double MaxDist = 1 |
Definition at line 124 of file runMvdTpcTrackCorr.C.
double MaxSZ = 1 |
Definition at line 125 of file runMvdTpcTrackCorr.C.
double MaxSZChi2 = 1 |
Definition at line 126 of file runMvdTpcTrackCorr.C.
TString mcFile ="$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/Combined.mc.root" |
Definition at line 24 of file runMvdTpcTrackCorr.C.
PndMvdTpcRiemannCorrelatorTask* mvdtpccorr = new PndMvdTpcRiemannCorrelatorTask() |
Definition at line 128 of file runMvdTpcTrackCorr.C.
Int_t nEvents = 100 |
Definition at line 13 of file runMvdTpcTrackCorr.C.
Definition at line 46 of file runMvdTpcTrackCorr.C.
FairParRootFileIo* output =new FairParRootFileIo(kTRUE) |
Definition at line 135 of file runMvdTpcTrackCorr.C.
Definition at line 50 of file runMvdTpcTrackCorr.C.
Definition at line 52 of file runMvdTpcTrackCorr.C.
FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE) |
Definition at line 103 of file runMvdTpcTrackCorr.C.
TString recoMVDFile = "$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/recoMVD/Combined.reco.root" |
Definition at line 25 of file runMvdTpcTrackCorr.C.
TString recoTPCFile = "$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiTPC/recoTPC/Combined.reco.root" |
Definition at line 26 of file runMvdTpcTrackCorr.C.
FairRuntimeDb* rtdb = fRun->GetRuntimeDb() |
Definition at line 101 of file runMvdTpcTrackCorr.C.
Double_t rtime = timer.RealTime() |
Definition at line 160 of file runMvdTpcTrackCorr.C.
Definition at line 29 of file runMvdTpcTrackCorr.C.