Go to the source code of this file.
|
PndFileNameCreator | creator (MCFile.Data()) |
|
std::cout<< "MCFile : "
<< MCFile.Data()<< std::endl;std::cout
<< "InFile: "<< inFile.Data()
<< std::endl;std::cout
<< "OutFile: "<< outFile.Data()
<< std::endl;std::cout
<< "ParFile: "<< parFile.Data()
<< std::endl;TString sysFile=gSystem-> | Getenv ("VMCWORKDIR") |
|
timer | Start () |
|
fRun | SetInputFile (inFile) |
|
fRun | SetOutputFile (outFile) |
|
fRun | SetUseFairLinks (kTRUE) |
|
parInput1 | open (parFile.Data()) |
|
parIo1 | open (allDigiFile.Data(),"in") |
|
rtdb | setFirstInput (parInput1) |
|
rtdb | setSecondInput (parIo1) |
|
posCorr | SetCorrectionValue (0,-1.348e-3,-4.01e-3) |
|
posCorr | SetCorrectionValue (1,+4.97e-3, 4.978e-3) |
|
posCorr | SetCorrectionValue (2,-7.21e-3, 0.42e-3) |
|
posCorr | SetCorrectionValue (3,+3.556e-3,-7.569e-3) |
|
fRun | AddTask (posCorr) |
|
fRun | Init () |
|
fRun | Run (0, nEvents) |
|
rtdb | saveOutput () |
|
rtdb | print () |
|
timer | Stop () |
|
std::cout<< "MCFile : " << MCFile.Data()<< std::endl; std::cout << "InFile: " << inFile.Data()<< std::endl; std::cout << "OutFile: " << outFile.Data()<< std::endl; std::cout << "ParFile: " << parFile.Data()<< std::endl; TString sysFile = gSystem-> Getenv |
( |
"VMCWORKDIR" |
| ) |
|
Initialize the session
Definition at line 20 of file NHitsPerEvent.C.
22 TFile*
f =
new TFile(
"2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root",
"READ");
23 t = (TTree*)f->Get(
"pndsim");
29 t->SetBranchAddress(
"MVDHitsPixelPosCorrected", &
mvdHitArray);
TClonesArray * mvdHitArray
parIo1 open |
( |
allDigiFile. |
Data(), |
|
|
"in" |
|
|
) |
| |
posCorr SetCorrectionValue |
( |
0 |
, |
|
|
-1.348e- |
3, |
|
|
-4.01e- |
3 |
|
) |
| |
posCorr SetCorrectionValue |
( |
1 |
, |
|
|
+4.97e- |
3, |
|
|
4.978e- |
3 |
|
) |
| |
posCorr SetCorrectionValue |
( |
2 |
, |
|
|
-7.21e- |
3, |
|
|
0.42e- |
3 |
|
) |
| |
posCorr SetCorrectionValue |
( |
3 |
, |
|
|
+3.556e- |
3, |
|
|
-7.569e- |
3 |
|
) |
| |
fRun SetUseFairLinks |
( |
kTRUE |
| ) |
|
FairRunAna* fRun = new FairRunAna() |
FairGeane* Geane = new FairGeane() |
TString inFile = "2014-10-27-00-06-02_50_MHz_Filtered_TimeCorrectedSorted_Event.root" |
TString MCFile = "sim_complete.root" |
TString outFile = "2014-10-27-00-06-02_50_MHz_Filtered_PosCorrected_Event.root" |
FairParRootFileIo* parInput1 = new FairParRootFileIo() |
FairParAsciiFileIo* parIo1 = new FairParAsciiFileIo() |
FairRuntimeDb* rtdb = fRun->GetRuntimeDb() |