- // common control histogram (for events with 2 and more particles)
- TString commonHists2ndOrderName = "AliFlowCommonHist2ndOrderQC";
- commonHists2ndOrderName += fAnalysisLabel->Data();
- fCommonHists2nd = new AliFlowCommonHist(commonHists2ndOrderName.Data());
- fHistList->Add(fCommonHists2nd);
- // common control histogram (for events with 4 and more particles)
- TString commonHists4thOrderName = "AliFlowCommonHist4thOrderQC";
- commonHists4thOrderName += fAnalysisLabel->Data();
- fCommonHists4th = new AliFlowCommonHist(commonHists4thOrderName.Data());
- fHistList->Add(fCommonHists4th);
- // common control histogram (for events with 6 and more particles)
- TString commonHists6thOrderName = "AliFlowCommonHist6thOrderQC";
- commonHists6thOrderName += fAnalysisLabel->Data();
- fCommonHists6th = new AliFlowCommonHist(commonHists6thOrderName.Data());
- fHistList->Add(fCommonHists6th);
- // common control histogram (for events with 8 and more particles)
- TString commonHists8thOrderName = "AliFlowCommonHist8thOrderQC";
- commonHists8thOrderName += fAnalysisLabel->Data();
- fCommonHists8th = new AliFlowCommonHist(commonHists8thOrderName.Data());
- fHistList->Add(fCommonHists8th);
- // common histograms for final results (calculated for events with 2 and more particles)
+ if(fFillMultipleControlHistograms)
+ {
+ // common control histogram (for events with 2 and more particles)
+ TString commonHists2ndOrderName = "AliFlowCommonHist2ndOrderQC";
+ commonHists2ndOrderName += fAnalysisLabel->Data();
+ fCommonHists2nd = new AliFlowCommonHist(commonHists2ndOrderName.Data());
+ fHistList->Add(fCommonHists2nd);
+ // common control histogram (for events with 4 and more particles)
+ TString commonHists4thOrderName = "AliFlowCommonHist4thOrderQC";
+ commonHists4thOrderName += fAnalysisLabel->Data();
+ fCommonHists4th = new AliFlowCommonHist(commonHists4thOrderName.Data());
+ fHistList->Add(fCommonHists4th);
+ // common control histogram (for events with 6 and more particles)
+ TString commonHists6thOrderName = "AliFlowCommonHist6thOrderQC";
+ commonHists6thOrderName += fAnalysisLabel->Data();
+ fCommonHists6th = new AliFlowCommonHist(commonHists6thOrderName.Data());
+ fHistList->Add(fCommonHists6th);
+ // common control histogram (for events with 8 and more particles)
+ TString commonHists8thOrderName = "AliFlowCommonHist8thOrderQC";
+ commonHists8thOrderName += fAnalysisLabel->Data();
+ fCommonHists8th = new AliFlowCommonHist(commonHists8thOrderName.Data());
+ fHistList->Add(fCommonHists8th);
+ } // end of if(fFillMultipleControlHistograms)
+
+ // common histograms for final results for QC{2}: