Commit 7610d054 authored by Vratislav Chudoba's avatar Vratislav Chudoba

Bug in application "ConvertRawToAnalyzed" solved.

parent 0cfd03a2
......@@ -52,6 +52,10 @@ int main(int argc, char* argv[])
}
TFile *f = new TFile(infiles.Data());
if (/*f == 0 || */f->IsZombie()) {
Error("convertRawToAnalyzed", "Input file was not opened. Program will be terminated");
return 2;
}
TTree *tr = (TTree*)f->Get("rtree");
TString bName;
......@@ -88,7 +92,7 @@ int main(int argc, char* argv[])
wevent[j]->ProcessEvent(); //here all the analysis is going on so far
}
if ( !(i%100) ) { printf("Found event #%d\n", i); }
if ( !(i%100) ) { printf("Found event #%lld\n", i); }
tw->Fill();
}
......@@ -98,5 +102,5 @@ int main(int argc, char* argv[])
tw->Write();
fw->Close();
return 1;
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment