Revert some previously submitted debugging changes
This commit is contained in:
parent
7795d77ad2
commit
b07d28f770
16
src/external/TFitPofB-lib/classes/TPofTCalc.cpp
vendored
16
src/external/TFitPofB-lib/classes/TPofTCalc.cpp
vendored
@ -246,18 +246,12 @@ void TPofTCalc::FakeData(const string &rootOutputFileName, const vector<double>
|
|||||||
// calculate asymmetry
|
// calculate asymmetry
|
||||||
CalcPol(param);
|
CalcPol(param);
|
||||||
|
|
||||||
//#pragma omp parallel for default(shared) private(j,ttime,k) schedule(dynamic)
|
#pragma omp parallel for default(shared) private(j,ttime,k) schedule(dynamic)
|
||||||
ofstream of7("asy.dat", ios::app);
|
|
||||||
|
|
||||||
for(j=0; j<nChannels; j++) {
|
for(j=0; j<nChannels; j++) {
|
||||||
ttime=j*par[2];
|
ttime=j*par[2];
|
||||||
k = static_cast<int>(floor(ttime/fTBin));
|
k = static_cast<int>(floor(ttime/fTBin));
|
||||||
asydata[j]=asy0[i]*(fPT[k]+(fPT[k+1]-fPT[k])/fTBin*(ttime-fT[k]));
|
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
|
// end omp
|
||||||
|
|
||||||
// for(unsigned int k(0); k<fT.size()-1; k++){
|
// for(unsigned int k(0); k<fT.size()-1; k++){
|
||||||
@ -324,10 +318,10 @@ void TPofTCalc::FakeData(const string &rootOutputFileName, const vector<double>
|
|||||||
histoData.push_back(fakeHisto);
|
histoData.push_back(fakeHisto);
|
||||||
|
|
||||||
// cleanup
|
// cleanup
|
||||||
// if (theoHisto) {
|
if (theoHisto) {
|
||||||
// delete theoHisto;
|
delete theoHisto;
|
||||||
// theoHisto = 0;
|
theoHisto = 0;
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "TPofTCalc::FakeData: Write histograms and header information to the file ..." << endl;
|
cout << "TPofTCalc::FakeData: Write histograms and header information to the file ..." << endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user