diff --git a/src/external/TFitPofB-lib/classes/TPofTCalc.cpp b/src/external/TFitPofB-lib/classes/TPofTCalc.cpp index 8136ef98..35e7182d 100644 --- a/src/external/TFitPofB-lib/classes/TPofTCalc.cpp +++ b/src/external/TFitPofB-lib/classes/TPofTCalc.cpp @@ -246,18 +246,12 @@ void TPofTCalc::FakeData(const string &rootOutputFileName, const vector // calculate asymmetry CalcPol(param); -//#pragma omp parallel for default(shared) private(j,ttime,k) schedule(dynamic) - ofstream of7("asy.dat", ios::app); - +#pragma omp parallel for default(shared) private(j,ttime,k) schedule(dynamic) for(j=0; j(floor(ttime/fTBin)); asydata[j]=asy0[i]*(fPT[k]+(fPT[k+1]-fPT[k])/fTBin*(ttime-fT[k])); - if (i == 0) { - of7 << ttime << " " << fPT[k] << endl; - } } - of7.close(); // end omp // for(unsigned int k(0); k histoData.push_back(fakeHisto); // cleanup -// if (theoHisto) { -// delete theoHisto; -// theoHisto = 0; -// } + if (theoHisto) { + delete theoHisto; + theoHisto = 0; + } } cout << "TPofTCalc::FakeData: Write histograms and header information to the file ..." << endl;