fDphiUnfolding (kTRUE),
fDphiDptUnfolding (kFALSE),
fExLJDpt (kTRUE),
+ fSetTreatCorrErrAsUncorrErr(kFALSE),
fTitleFontSize (-999.),
fRMSSpectrumIn (0x0),
fRMSSpectrumOut (0x0),
Double_t lowErr(0.), upErr(0.);
for(Int_t i(0); i < fBinsTrue->GetSize()-1; i++) {
// add the in and out of plane errors in quadrature
- lowErr = relativeErrorInLow->GetBinContent(i+1)*relativeErrorInLow->GetBinContent(i+1)+relativeErrorOutLow->GetBinContent(1+i)*relativeErrorOutLow->GetBinContent(i+1);
- upErr = relativeErrorInUp->GetBinContent(i+1)*relativeErrorInUp->GetBinContent(i+1)+relativeErrorOutUp->GetBinContent(i+1)*relativeErrorOutUp->GetBinContent(i+1);
+ if(fSetTreatCorrErrAsUncorrErr) {
+ lowErr = relativeErrorInLow->GetBinContent(i+1)*relativeErrorInLow->GetBinContent(i+1)+relativeErrorOutLow->GetBinContent(1+i)*relativeErrorOutLow->GetBinContent(i+1);
+ upErr = relativeErrorInUp->GetBinContent(i+1)*relativeErrorInUp->GetBinContent(i+1)+relativeErrorOutUp->GetBinContent(i+1)*relativeErrorOutUp->GetBinContent(i+1);
+ } else {
+ // the in and out of plane correlated errors will be fully correlated, so take the correlation coefficient equal to 1
+ lowErr = relativeErrorInLow->GetBinContent(i+1)*relativeErrorInLow->GetBinContent(i+1)+relativeErrorOutLow->GetBinContent(1+i)*relativeErrorOutLow->GetBinContent(i+1) - 2.*relativeErrorInLow->GetBinContent(i+1)*relativeErrorOutLow->GetBinContent(i+1);
+ upErr = relativeErrorInUp->GetBinContent(i+1)*relativeErrorInUp->GetBinContent(i+1)+relativeErrorOutUp->GetBinContent(i+1)*relativeErrorOutUp->GetBinContent(i+1) - 2.*relativeErrorInUp->GetBinContent(i+1)*relativeErrorOutUp->GetBinContent(i+1);
+ }
// set the errors
ayl[i] = TMath::Sqrt(lowErr)*nominal->GetBinContent(i+1);
ayh[i] = TMath::Sqrt(upErr)*nominal->GetBinContent(i+1);
void SetDphiDptUnfolding(Bool_t i) {fDphiDptUnfolding = i;}
void SetExLJDpt(Bool_t i) {fExLJDpt = i;}
void SetWeightFunction(TF1* w) {fResponseMaker->SetRMMergeWeightFunction(w);}
+ void SetTreatCorrErrAsUncorrErr(Bool_t b) {fSetTreatCorrErrAsUncorrErr = b;}
void Make();
void MakeAU(); // test function, use with caution (09012014)
void Finish() {
Bool_t fDphiUnfolding; // do the unfolding in in and out of plane orientation
Bool_t fDphiDptUnfolding; // do the unfolding in dphi and dpt bins (to fit v2)
Bool_t fExLJDpt; // exclude randon cones with leading jet
+ Bool_t fSetTreatCorrErrAsUncorrErr; // treat the correlated error as uncorrelated
Double_t fTitleFontSize; // title font size
// members, set internally
TProfile* fRMSSpectrumIn; // rms of in plane spectra of converged unfoldings