/************************************************************************* * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /********************************** * flow analysis with Q-cumulants * * * * author: Ante Bilandzic * * (abilandzic@gmail.com) * *********************************/ #define AliFlowAnalysisWithQCumulants_cxx #include "Riostream.h" #include "AliFlowCommonConstants.h" #include "AliFlowCommonHist.h" #include "AliFlowCommonHistResults.h" #include "TChain.h" #include "TFile.h" #include "TList.h" #include "TGraph.h" #include "TParticle.h" #include "TRandom3.h" #include "TStyle.h" #include "TProfile.h" #include "TProfile2D.h" #include "TMath.h" #include "TArrow.h" #include "TPaveLabel.h" #include "TCanvas.h" #include "AliFlowEventSimple.h" #include "AliFlowTrackSimple.h" #include "AliFlowAnalysisWithQCumulants.h" #include "TArrayD.h" #include "TRandom.h" #include "TF1.h" class TH1; class TH2; class TGraph; class TPave; class TLatex; class TMarker; class TRandom3; class TObjArray; class TList; class TCanvas; class TSystem; class TROOT; class AliFlowVector; class TVector; //================================================================================================================ using std::endl; using std::cout; using std::flush; ClassImp(AliFlowAnalysisWithQCumulants) AliFlowAnalysisWithQCumulants::AliFlowAnalysisWithQCumulants(): // 0.) base: fHistList(NULL), // 1.) common: fBookOnlyBasicCCH(kTRUE), fCommonHists(NULL), fCommonHists2nd(NULL), fCommonHists4th(NULL), fCommonHists6th(NULL), fCommonHists8th(NULL), fCommonHistsResults2nd(NULL), fCommonHistsResults4th(NULL), fCommonHistsResults6th(NULL), fCommonHistsResults8th(NULL), fnBinsPhi(0), fPhiMin(0), fPhiMax(0), fPhiBinWidth(0), fnBinsPt(0), fPtMin(0), fPtMax(0), fPtBinWidth(0), fnBinsEta(0), fEtaMin(0), fEtaMax(0), fEtaBinWidth(0), fCommonConstants(NULL), fFillMultipleControlHistograms(kFALSE), fHarmonic(2), fAnalysisLabel(NULL), // 2a.) particle weights: fWeightsList(NULL), fUsePhiWeights(kFALSE), fUsePtWeights(kFALSE), fUseEtaWeights(kFALSE), fUseTrackWeights(kFALSE), fUseParticleWeights(NULL), fPhiWeights(NULL), fPtWeights(NULL), fEtaWeights(NULL), // 2b.) event weights: fMultiplicityWeight(NULL), fMultiplicityIs(AliFlowCommonConstants::kRP), // 3.) integrated flow: fIntFlowList(NULL), fIntFlowProfiles(NULL), fIntFlowResults(NULL), fIntFlowAllCorrelationsVsM(NULL), fIntFlowFlags(NULL), fApplyCorrectionForNUA(kFALSE), fApplyCorrectionForNUAVsM(kFALSE), fnBinsMult(10000), fMinMult(0.), fMaxMult(10000.), fPropagateErrorAlsoFromNIT(kFALSE), fCalculateCumulantsVsM(kFALSE), fCalculateAllCorrelationsVsM(kFALSE), fMinimumBiasReferenceFlow(kTRUE), fForgetAboutCovariances(kFALSE), fStorePhiDistributionForOneEvent(kFALSE), fReQ(NULL), fImQ(NULL), fSpk(NULL), fIntFlowCorrelationsEBE(NULL), fIntFlowEventWeightsForCorrelationsEBE(NULL), fIntFlowCorrelationsAllEBE(NULL), fNumberOfRPsEBE(0.), fNumberOfPOIsEBE(0.), fReferenceMultiplicityEBE(0.), fAvMultiplicity(NULL), fIntFlowCorrelationsPro(NULL), fIntFlowSquaredCorrelationsPro(NULL), fIntFlowCorrelationsAllPro(NULL), fIntFlowExtraCorrelationsPro(NULL), fIntFlowProductOfCorrelationsPro(NULL), fIntFlowProductOfCorrectionTermsForNUAPro(NULL), fIntFlowCorrelationsHist(NULL), fIntFlowCorrelationsAllHist(NULL), fIntFlowCovariances(NULL), fIntFlowSumOfProductOfEventWeights(NULL), fIntFlowCovariancesNUA(NULL), fIntFlowSumOfProductOfEventWeightsNUA(NULL), fIntFlowQcumulants(NULL), fIntFlowQcumulantsRebinnedInM(NULL), fIntFlowQcumulantsErrorSquaredRatio(NULL), fIntFlow(NULL), fIntFlowRebinnedInM(NULL), fIntFlowDetectorBias(NULL), // 4.) differential flow: fDiffFlowList(NULL), fDiffFlowProfiles(NULL), fDiffFlowResults(NULL), fDiffFlow2D(NULL), fDiffFlowFlags(NULL), fCalculateDiffFlow(kTRUE), fCalculate2DDiffFlow(kFALSE), fCalculateDiffFlowVsEta(kTRUE), // 5.) other differential correlators: fOtherDiffCorrelatorsList(NULL), // 6.) distributions: fDistributionsList(NULL), fDistributionsFlags(NULL), fStoreDistributions(kFALSE), // 7.) various: fVariousList(NULL), fPhiDistributionForOneEvent(NULL), // 8.) debugging and cross-checking: fNestedLoopsList(NULL), fEvaluateIntFlowNestedLoops(kFALSE), fEvaluateDiffFlowNestedLoops(kFALSE), fMaxAllowedMultiplicity(10), fEvaluateNestedLoops(NULL), fIntFlowDirectCorrelations(NULL), fIntFlowExtraDirectCorrelations(NULL), fCrossCheckInPtBinNo(10), fCrossCheckInEtaBinNo(20), fNoOfParticlesInBin(NULL), fMixedHarmonicsNestedLoops(NULL), // 9.) mixed harmonics: fMixedHarmonicsList(NULL), fMixedHarmonicsProfiles(NULL), fMixedHarmonicsResults(NULL), fMixedHarmonicsErrorPropagation(NULL), fMixedHarmonicsFlags(NULL), fCalculateMixedHarmonics(kFALSE), fCalculateMixedHarmonicsVsM(kFALSE), f2pCorrelations(NULL), f3pCorrelations(NULL), f4pCorrelations(NULL), f5pCorrelations(NULL), f6pCorrelations(NULL), f7pCorrelations(NULL), f8pCorrelations(NULL), f2pCumulants(NULL), f3pCumulants(NULL), f4pCumulants(NULL), f5pCumulants(NULL), f6pCumulants(NULL), f7pCumulants(NULL), f8pCumulants(NULL), fMixedHarmonicProductOfEventWeights(NULL), fMixedHarmonicProductOfCorrelations(NULL), // 10.) Control histograms: fControlHistogramsList(NULL), fControlHistogramsFlags(NULL), fStoreControlHistograms(kFALSE), fCorrelationNoRPsVsRefMult(NULL), fCorrelationNoPOIsVsRefMult(NULL), fCorrelationNoRPsVsNoPOIs(NULL) { // constructor // base list to hold all output objects: fHistList = new TList(); fHistList->SetName("cobjQC"); fHistList->SetOwner(kTRUE); // list to hold histograms with phi, pt and eta weights: fWeightsList = new TList(); // multiplicity weight: fMultiplicityWeight = new TString("combinations"); // analysis label; fAnalysisLabel = new TString(); // initialize all arrays: this->InitializeArraysForIntFlow(); this->InitializeArraysForDiffFlow(); this->InitializeArraysForDistributions(); this->InitializeArraysForVarious(); this->InitializeArraysForNestedLoops(); this->InitializeArraysForMixedHarmonics(); } // end of constructor //================================================================================================================ AliFlowAnalysisWithQCumulants::~AliFlowAnalysisWithQCumulants() { // destructor delete fHistList; } // end of AliFlowAnalysisWithQCumulants::~AliFlowAnalysisWithQCumulants() //================================================================================================================ void AliFlowAnalysisWithQCumulants::Init() { // a) Cross check if the settings make sense before starting the QC adventure; // b) Access all common constants; // c) Book all objects; // d) Store flags for integrated and differential flow; // e) Store flags for distributions of corelations; // f) Store harmonic which will be estimated; // g) Store flags for mixed harmonics. //save old value and prevent histograms from being added to directory //to avoid name clashes in case multiple analaysis objects are used //in an analysis Bool_t oldHistAddStatus = TH1::AddDirectoryStatus(); TH1::AddDirectory(kFALSE); // a) Cross check if the settings make sense before starting the QC adventure; this->CrossCheckSettings(); // b) Access all common constants and book a profile to hold them: this->CommonConstants("Init"); // c) Book all objects: this->BookAndFillWeightsHistograms(); this->BookAndNestAllLists(); this->BookCommonHistograms(); this->BookEverythingForIntegratedFlow(); this->BookEverythingForDifferentialFlow(); this->BookEverythingFor2DDifferentialFlow(); this->BookEverythingForDistributions(); this->BookEverythingForVarious(); this->BookEverythingForNestedLoops(); this->BookEverythingForMixedHarmonics(); this->BookEverythingForControlHistograms(); // d) Store flags for integrated and differential flow: this->StoreIntFlowFlags(); this->StoreDiffFlowFlags(); // e) Store flags for distributions of corelations: this->StoreFlagsForDistributions(); // f) Store harmonic which will be estimated: this->StoreHarmonic(); // g) Store flags for mixed harmonics: this->StoreMixedHarmonicsFlags(); TH1::AddDirectory(oldHistAddStatus); } // end of void AliFlowAnalysisWithQCumulants::Init() //================================================================================================================ void AliFlowAnalysisWithQCumulants::Make(AliFlowEventSimple* anEvent) { // Running over data only in this method. // a) Check all pointers used in this method; // b) Define local variables; // c) Fill the common control histograms and call the method to fill fAvMultiplicity; // d) Loop over data and calculate e-b-e quantities Q_{n,k}, S_{p,k} and s_{p,k}; // e) Calculate the final expressions for S_{p,k} and s_{p,k} (important !!!!); // f) Call the methods which calculate correlations for reference flow; // g) Call the methods which calculate correlations for differential flow; // h) Call the methods which calculate correlations for 2D differential flow; // i) Call the methods which calculate other differential correlators; // j) Distributions of correlations; // k) Store phi distribution for one event to illustrate flow; // l) Cross-check with nested loops correlators for reference flow; // m) Cross-check with nested loops correlators for differential flow; // n) Reset all event-by-event quantities (very important !!!!). // a) Check all pointers used in this method: this->CheckPointersUsedInMake(); // b) Define local variables: Double_t dPhi = 0.; // azimuthal angle in the laboratory frame Double_t dPt = 0.; // transverse momentum Double_t dEta = 0.; // pseudorapidity Double_t wPhi = 1.; // phi weight Double_t wPt = 1.; // pt weight Double_t wEta = 1.; // eta weight Double_t wTrack = 1.; // track weight fNumberOfRPsEBE = anEvent->GetNumberOfRPs(); // number of RPs (i.e. number of reference particles) fNumberOfPOIsEBE = anEvent->GetNumberOfPOIs(); // number of POIs (i.e. number of particles of interest) fReferenceMultiplicityEBE = anEvent->GetReferenceMultiplicity(); // reference multiplicity for current event Double_t ptEta[2] = {0.,0.}; // 0 = dPt, 1 = dEta // c) Fill the common control histograms and call the method to fill fAvMultiplicity: this->FillCommonControlHistograms(anEvent); this->FillAverageMultiplicities(fNumberOfRPsEBE); if(fStoreControlHistograms){this->FillControlHistograms(anEvent);} // d) Loop over data and calculate e-b-e quantities Q_{n,k}, S_{p,k} and s_{p,k}: Int_t nPrim = anEvent->NumberOfTracks(); // nPrim = total number of primary tracks AliFlowTrackSimple *aftsTrack = NULL; Int_t n = fHarmonic; // shortcut for the harmonic for(Int_t i=0;iGetTrack(i); if(aftsTrack) { if(!(aftsTrack->InRPSelection() || aftsTrack->InPOISelection())){continue;} // safety measure: consider only tracks which are RPs or POIs if(aftsTrack->InRPSelection()) // RP condition: { dPhi = aftsTrack->Phi(); dPt = aftsTrack->Pt(); dEta = aftsTrack->Eta(); if(fUsePhiWeights && fPhiWeights && fnBinsPhi) // determine phi weight for this particle: { wPhi = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(dPhi*fnBinsPhi/TMath::TwoPi()))); } if(fUsePtWeights && fPtWeights && fnBinsPt) // determine pt weight for this particle: { wPt = fPtWeights->GetBinContent(1+(Int_t)(TMath::Floor((dPt-fPtMin)/fPtBinWidth))); } if(fUseEtaWeights && fEtaWeights && fEtaBinWidth) // determine eta weight for this particle: { wEta = fEtaWeights->GetBinContent(1+(Int_t)(TMath::Floor((dEta-fEtaMin)/fEtaBinWidth))); } // Access track weight: if(fUseTrackWeights) { wTrack = aftsTrack->Weight(); } // Calculate Re[Q_{m*n,k}] and Im[Q_{m*n,k}] for this event (m = 1,2,...,12, k = 0,1,...,8): for(Int_t m=0;m<12;m++) // to be improved - hardwired 6 { for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 { (*fReQ)(m,k)+=pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1)*n*dPhi); (*fImQ)(m,k)+=pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1)*n*dPhi); } } // Calculate S_{p,k} for this event (Remark: final calculation of S_{p,k} follows after the loop over data bellow): for(Int_t p=0;p<8;p++) { for(Int_t k=0;k<9;k++) { (*fSpk)(p,k)+=pow(wPhi*wPt*wEta*wTrack,k); } } // Differential flow: if(fCalculateDiffFlow || fCalculate2DDiffFlow) { ptEta[0] = dPt; ptEta[1] = dEta; // Calculate r_{m*n,k} and s_{p,k} (r_{m,k} is 'p-vector' for RPs): for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 { for(Int_t m=0;m<4;m++) // to be improved - hardwired 4 { if(fCalculateDiffFlow) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { fReRPQ1dEBE[0][pe][m][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1.)*n*dPhi),1.); fImRPQ1dEBE[0][pe][m][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1.)*n*dPhi),1.); if(m==0) // s_{p,k} does not depend on index m { fs1dEBE[0][pe][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k),1.); } // end of if(m==0) // s_{p,k} does not depend on index m } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of if(fCalculateDiffFlow) if(fCalculate2DDiffFlow) { fReRPQ2dEBE[0][m][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1.)*n*dPhi),1.); fImRPQ2dEBE[0][m][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1.)*n*dPhi),1.); if(m==0) // s_{p,k} does not depend on index m { fs2dEBE[0][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k),1.); } // end of if(m==0) // s_{p,k} does not depend on index m } // end of if(fCalculate2DDiffFlow) } // end of for(Int_t m=0;m<4;m++) // to be improved - hardwired 4 } // end of for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 // Checking if RP particle is also POI particle: if(aftsTrack->InPOISelection()) { // Calculate q_{m*n,k} and s_{p,k} ('q-vector' and 's' for RPs && POIs): for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 { for(Int_t m=0;m<4;m++) // to be improved - hardwired 4 { if(fCalculateDiffFlow) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { fReRPQ1dEBE[2][pe][m][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1.)*n*dPhi),1.); fImRPQ1dEBE[2][pe][m][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1.)*n*dPhi),1.); if(m==0) // s_{p,k} does not depend on index m { fs1dEBE[2][pe][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k),1.); } // end of if(m==0) // s_{p,k} does not depend on index m } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of if(fCalculateDiffFlow) if(fCalculate2DDiffFlow) { fReRPQ2dEBE[2][m][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1.)*n*dPhi),1.); fImRPQ2dEBE[2][m][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1.)*n*dPhi),1.); if(m==0) // s_{p,k} does not depend on index m { fs2dEBE[2][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k),1.); } // end of if(m==0) // s_{p,k} does not depend on index m } // end of if(fCalculate2DDiffFlow) } // end of for(Int_t m=0;m<4;m++) // to be improved - hardwired 4 } // end of for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 } // end of if(aftsTrack->InPOISelection()) } // end of if(fCalculateDiffFlow || fCalculate2DDiffFlow) } // end of if(pTrack->InRPSelection()) if(aftsTrack->InPOISelection()) { dPhi = aftsTrack->Phi(); dPt = aftsTrack->Pt(); dEta = aftsTrack->Eta(); wPhi = 1.; wPt = 1.; wEta = 1.; wTrack = 1.; if(fUsePhiWeights && fPhiWeights && fnBinsPhi && aftsTrack->InRPSelection()) // determine phi weight for POI && RP particle: { wPhi = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(dPhi*fnBinsPhi/TMath::TwoPi()))); } if(fUsePtWeights && fPtWeights && fnBinsPt && aftsTrack->InRPSelection()) // determine pt weight for POI && RP particle: { wPt = fPtWeights->GetBinContent(1+(Int_t)(TMath::Floor((dPt-fPtMin)/fPtBinWidth))); } if(fUseEtaWeights && fEtaWeights && fEtaBinWidth && aftsTrack->InRPSelection()) // determine eta weight for POI && RP particle: { wEta = fEtaWeights->GetBinContent(1+(Int_t)(TMath::Floor((dEta-fEtaMin)/fEtaBinWidth))); } // Access track weight for POI && RP particle: if(aftsTrack->InRPSelection() && fUseTrackWeights) { wTrack = aftsTrack->Weight(); } ptEta[0] = dPt; ptEta[1] = dEta; // Calculate p_{m*n,k} ('p-vector' for POIs): for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 { for(Int_t m=0;m<4;m++) // to be improved - hardwired 4 { if(fCalculateDiffFlow) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { fReRPQ1dEBE[1][pe][m][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1.)*n*dPhi),1.); fImRPQ1dEBE[1][pe][m][k]->Fill(ptEta[pe],pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1.)*n*dPhi),1.); } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of if(fCalculateDiffFlow) if(fCalculate2DDiffFlow) { fReRPQ2dEBE[1][m][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k)*TMath::Cos((m+1.)*n*dPhi),1.); fImRPQ2dEBE[1][m][k]->Fill(dPt,dEta,pow(wPhi*wPt*wEta*wTrack,k)*TMath::Sin((m+1.)*n*dPhi),1.); } // end of if(fCalculate2DDiffFlow) } // end of for(Int_t m=0;m<4;m++) // to be improved - hardwired 4 } // end of for(Int_t k=0;k<9;k++) // to be improved - hardwired 9 } // end of if(pTrack->InPOISelection()) } else // to if(aftsTrack) { printf("\n WARNING (QC): No particle (i.e. aftsTrack is a NULL pointer in AFAWQC::Make())!!!!\n\n"); } } // end of for(Int_t i=0;i1){this->CalculateIntFlowCorrelations();} // without using particle weights } else // to if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { if(fNumberOfRPsEBE>1){this->CalculateIntFlowCorrelationsUsingParticleWeights();} // with using particle weights } // Whether or not using particle weights the following is calculated in the same way: if(fNumberOfRPsEBE>3){this->CalculateIntFlowProductOfCorrelations();} if(fNumberOfRPsEBE>1){this->CalculateIntFlowSumOfEventWeights();} if(fNumberOfRPsEBE>1){this->CalculateIntFlowSumOfProductOfEventWeights();} // Non-isotropic terms: if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { if(fNumberOfRPsEBE>0){this->CalculateIntFlowCorrectionsForNUASinTerms();} if(fNumberOfRPsEBE>0){this->CalculateIntFlowCorrectionsForNUACosTerms();} } else // to if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { if(fNumberOfRPsEBE>0){this->CalculateIntFlowCorrectionsForNUASinTermsUsingParticleWeights();} if(fNumberOfRPsEBE>0){this->CalculateIntFlowCorrectionsForNUACosTermsUsingParticleWeights();} } // Whether or not using particle weights the following is calculated in the same way: if(fNumberOfRPsEBE>0){this->CalculateIntFlowProductOfCorrectionTermsForNUA();} if(fNumberOfRPsEBE>0){this->CalculateIntFlowSumOfEventWeightsNUA();} if(fNumberOfRPsEBE>0){this->CalculateIntFlowSumOfProductOfEventWeightsNUA();} // Mixed harmonics: if(fCalculateMixedHarmonics){this->CalculateMixedHarmonics();} } // end of if(!fEvaluateIntFlowNestedLoops) // g) Call the methods which calculate correlations for differential flow: if(!fEvaluateDiffFlowNestedLoops && fCalculateDiffFlow) { if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // Without using particle weights: this->CalculateDiffFlowCorrelations("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrelations("RP","Eta");} this->CalculateDiffFlowCorrelations("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrelations("POI","Eta");} // Non-isotropic terms: this->CalculateDiffFlowCorrectionsForNUASinTerms("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUASinTerms("RP","Eta");} this->CalculateDiffFlowCorrectionsForNUASinTerms("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUASinTerms("POI","Eta");} this->CalculateDiffFlowCorrectionsForNUACosTerms("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUACosTerms("RP","Eta");} this->CalculateDiffFlowCorrectionsForNUACosTerms("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUACosTerms("POI","Eta");} } else // to if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // With using particle weights: this->CalculateDiffFlowCorrelationsUsingParticleWeights("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrelationsUsingParticleWeights("RP","Eta");} this->CalculateDiffFlowCorrelationsUsingParticleWeights("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrelationsUsingParticleWeights("POI","Eta");} // Non-isotropic terms: this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("RP","Eta");} this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("POI","Eta");} this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("RP","Eta");} this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("POI","Eta");} } // Whether or not using particle weights the following is calculated in the same way: this->CalculateDiffFlowProductOfCorrelations("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowProductOfCorrelations("RP","Eta");} this->CalculateDiffFlowProductOfCorrelations("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowProductOfCorrelations("POI","Eta");} this->CalculateDiffFlowSumOfEventWeights("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowSumOfEventWeights("RP","Eta");} this->CalculateDiffFlowSumOfEventWeights("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowSumOfEventWeights("POI","Eta");} this->CalculateDiffFlowSumOfProductOfEventWeights("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowSumOfProductOfEventWeights("RP","Eta");} this->CalculateDiffFlowSumOfProductOfEventWeights("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowSumOfProductOfEventWeights("POI","Eta");} } // end of if(!fEvaluateDiffFlowNestedLoops && fCalculateDiffFlow) // h) Call the methods which calculate correlations for 2D differential flow: if(!fEvaluateDiffFlowNestedLoops && fCalculate2DDiffFlow) { if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // Without using particle weights: this->Calculate2DDiffFlowCorrelations("RP"); this->Calculate2DDiffFlowCorrelations("POI"); // Non-isotropic terms: // ... to be ctd ... } else // to if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // With using particle weights: // ... to be ctd ... // Non-isotropic terms: // ... to be ctd ... } // Whether or not using particle weights the following is calculated in the same way: // ... to be ctd ... } // end of if(!fEvaluateDiffFlowNestedLoops && fCalculate2DDiffFlow) // i) Call the methods which calculate other differential correlators: if(!fEvaluateDiffFlowNestedLoops && fCalculateDiffFlow) { if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // Without using particle weights: this->CalculateOtherDiffCorrelators("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateOtherDiffCorrelators("RP","Eta");} this->CalculateOtherDiffCorrelators("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateOtherDiffCorrelators("POI","Eta");} } else // to if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // With using particle weights: // ... to be ctd ... } // Whether or not using particle weights the following is calculated in the same way: // ... to be ctd ... } // end of if(!fEvaluateDiffFlowNestedLoops) // j) Distributions of correlations: if(fStoreDistributions){this->StoreDistributionsOfCorrelations();} // k) Store phi distribution for one event to illustrate flow: if(fStorePhiDistributionForOneEvent){this->StorePhiDistributionForOneEvent(anEvent);} // l) Cross-check with nested loops correlators for reference flow: if(fEvaluateIntFlowNestedLoops){this->EvaluateIntFlowNestedLoops(anEvent);} // m) Cross-check with nested loops correlators for differential flow: if(fEvaluateDiffFlowNestedLoops){this->EvaluateDiffFlowNestedLoops(anEvent);} // n) Reset all event-by-event quantities (very important !!!!): this->ResetEventByEventQuantities(); } // end of AliFlowAnalysisWithQCumulants::Make(AliFlowEventSimple* anEvent) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::Finish() { // Calculate the final results. // a) Check all pointers used in this method; // b) Access the constants; // c) Access the flags; // d) Calculate reference cumulants (not corrected for detector effects); // e) Correct reference cumulants for detector effects; // f) Calculate reference flow; // g) Store results for reference flow in AliFlowCommonHistResults and print them on the screen; // h) Calculate the final results for differential flow (without/with weights); // i) Correct the results for differential flow (without/with weights) for effects of non-uniform acceptance (NUA); // j) Calculate the final results for integrated flow (RP/POI) and store in AliFlowCommonHistResults; // k) Store results for differential flow in AliFlowCommonHistResults; // l) Print the final results for integrated flow (RP/POI) on the screen; // m) Cross-checking: Results from Q-vectors vs results from nested loops; // i) Calculate cumulants for mixed harmonics. // a) Check all pointers used in this method: this->CheckPointersUsedInFinish(); // b) Access the constants: this->CommonConstants("Finish"); if(fCommonHists && fCommonHists->GetHarmonic()) // to be improved (moved somewhere else) { fHarmonic = (Int_t)(fCommonHists->GetHarmonic())->GetBinContent(1); } // c) Access the flags: // to be improved (implement a method for this? should I store again the flags because they can get modified with redoFinish?) fUsePhiWeights = (Bool_t)fUseParticleWeights->GetBinContent(1); fUsePtWeights = (Bool_t)fUseParticleWeights->GetBinContent(2); fUseEtaWeights = (Bool_t)fUseParticleWeights->GetBinContent(3); fUseTrackWeights = (Bool_t)fUseParticleWeights->GetBinContent(4); fApplyCorrectionForNUA = (Bool_t)fIntFlowFlags->GetBinContent(3); fPrintFinalResults[0] = (Bool_t)fIntFlowFlags->GetBinContent(4); fPrintFinalResults[1] = (Bool_t)fIntFlowFlags->GetBinContent(5); fPrintFinalResults[2] = (Bool_t)fIntFlowFlags->GetBinContent(6); fPrintFinalResults[3] = (Bool_t)fIntFlowFlags->GetBinContent(7); fApplyCorrectionForNUAVsM = (Bool_t)fIntFlowFlags->GetBinContent(8); fPropagateErrorAlsoFromNIT = (Bool_t)fIntFlowFlags->GetBinContent(9); fCalculateCumulantsVsM = (Bool_t)fIntFlowFlags->GetBinContent(10); fMinimumBiasReferenceFlow = (Bool_t)fIntFlowFlags->GetBinContent(11); fForgetAboutCovariances = (Bool_t)fIntFlowFlags->GetBinContent(12); fStorePhiDistributionForOneEvent = (Bool_t)fIntFlowFlags->GetBinContent(13); fFillMultipleControlHistograms = (Bool_t)fIntFlowFlags->GetBinContent(14); fCalculateAllCorrelationsVsM = (Bool_t)fIntFlowFlags->GetBinContent(15); fEvaluateIntFlowNestedLoops = (Bool_t)fEvaluateNestedLoops->GetBinContent(1); fEvaluateDiffFlowNestedLoops = (Bool_t)fEvaluateNestedLoops->GetBinContent(2); fCrossCheckInPtBinNo = (Int_t)fEvaluateNestedLoops->GetBinContent(3); fCrossCheckInEtaBinNo = (Int_t)fEvaluateNestedLoops->GetBinContent(4); fCalculateMixedHarmonics = (Bool_t)fMixedHarmonicsFlags->GetBinContent(1); //fHarmonic = (Int_t)fMixedHarmonicsFlags->GetBinContent(2); // TBI should I add inpdependent generic harmonic here? fCalculateMixedHarmonicsVsM = (Bool_t)fMixedHarmonicsFlags->GetBinContent(3); // d) Calculate reference cumulants (not corrected for detector effects): this->FinalizeCorrelationsIntFlow(); this->CalculateCovariancesIntFlow(); this->CalculateCumulantsIntFlow(); // e) Correct reference cumulants for detector effects: this->FinalizeCorrectionTermsForNUAIntFlow(); this->CalculateCovariancesNUAIntFlow(); this->CalculateQcumulantsCorrectedForNUAIntFlow(); // f) Calculate reference flow: this->CalculateReferenceFlow(); // g) Store results for reference flow in AliFlowCommonHistResults and print them on the screen: this->FillCommonHistResultsIntFlow(); if(fPrintFinalResults[0]){this->PrintFinalResultsForIntegratedFlow("RF");} if(fPrintFinalResults[3] && fCalculateCumulantsVsM){this->PrintFinalResultsForIntegratedFlow("RF, rebinned in M");} // h) Calculate the final results for differential flow (without/with weights): if(fCalculateDiffFlow) { this->FinalizeReducedCorrelations("RP","Pt"); if(fCalculateDiffFlowVsEta){this->FinalizeReducedCorrelations("RP","Eta");} this->FinalizeReducedCorrelations("POI","Pt"); if(fCalculateDiffFlowVsEta){this->FinalizeReducedCorrelations("POI","Eta");} this->CalculateDiffFlowCovariances("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCovariances("RP","Eta");} this->CalculateDiffFlowCovariances("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCovariances("POI","Eta");} this->CalculateDiffFlowCumulants("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCumulants("RP","Eta");} this->CalculateDiffFlowCumulants("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCumulants("POI","Eta");} this->CalculateDiffFlow("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlow("RP","Eta");} this->CalculateDiffFlow("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlow("POI","Eta");} } // if(fCalculateDiffFlow) // i) Correct the results for differential flow (without/with weights) for effects of non-uniform acceptance (NUA): if(fCalculateDiffFlow) { this->FinalizeCorrectionTermsForNUADiffFlow("RP","Pt"); if(fCalculateDiffFlowVsEta){this->FinalizeCorrectionTermsForNUADiffFlow("RP","Eta");} this->FinalizeCorrectionTermsForNUADiffFlow("POI","Pt"); if(fCalculateDiffFlowVsEta){this->FinalizeCorrectionTermsForNUADiffFlow("POI","Eta");} this->CalculateDiffFlowCumulantsCorrectedForNUA("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCumulantsCorrectedForNUA("RP","Eta");} this->CalculateDiffFlowCumulantsCorrectedForNUA("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCumulantsCorrectedForNUA("POI","Eta");} if(fApplyCorrectionForNUA) { this->CalculateDiffFlowCorrectedForNUA("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectedForNUA("RP","Eta");} this->CalculateDiffFlowCorrectedForNUA("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CalculateDiffFlowCorrectedForNUA("POI","Eta");} } } // end of if(fCalculateDiffFlow && fApplyCorrectionForNUA) // i) Calcualate final results for 2D differential flow: if(fCalculate2DDiffFlow) { this->Calculate2DDiffFlowCumulants("RP"); this->Calculate2DDiffFlowCumulants("POI"); this->Calculate2DDiffFlow("RP"); this->Calculate2DDiffFlow("POI"); } // end of if(fCalculate2DDiffFlow) // j) Calculate the final results for integrated flow (RP/POI) and store in AliFlowCommonHistResults: if(fCalculateDiffFlow) { this->CalculateFinalResultsForRPandPOIIntegratedFlow("RP"); this->CalculateFinalResultsForRPandPOIIntegratedFlow("POI"); } // k) Store results for differential flow in AliFlowCommonHistResults: if(fCalculateDiffFlow) { this->FillCommonHistResultsDiffFlow("RP"); this->FillCommonHistResultsDiffFlow("POI"); } // l) Print the final results for integrated flow (RP/POI) on the screen: if(fPrintFinalResults[1] && fCalculateDiffFlow){this->PrintFinalResultsForIntegratedFlow("RP");} if(fPrintFinalResults[2] && fCalculateDiffFlow){this->PrintFinalResultsForIntegratedFlow("POI");} // m) Cross-checking: Results from Q-vectors vs results from nested loops: // m1) Reference flow: if(fEvaluateIntFlowNestedLoops) { this->CrossCheckIntFlowCorrelations(); this->CrossCheckIntFlowCorrectionTermsForNUA(); if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights){this->CrossCheckIntFlowExtraCorrelations();} if(fCalculateMixedHarmonics){this->CrossCheckIntFlowCorrelations();} } // end of if(fEvaluateIntFlowNestedLoops) // m2) Differential flow: if(fEvaluateDiffFlowNestedLoops && fCalculateDiffFlow) { // Correlations: this->PrintNumberOfParticlesInSelectedBin(); this->CrossCheckDiffFlowCorrelations("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CrossCheckDiffFlowCorrelations("RP","Eta");} this->CrossCheckDiffFlowCorrelations("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CrossCheckDiffFlowCorrelations("POI","Eta");} // Correction terms for non-uniform acceptance: this->CrossCheckDiffFlowCorrectionTermsForNUA("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CrossCheckDiffFlowCorrectionTermsForNUA("RP","Eta");} this->CrossCheckDiffFlowCorrectionTermsForNUA("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CrossCheckDiffFlowCorrectionTermsForNUA("POI","Eta");} // Other differential correlators: this->CrossCheckOtherDiffCorrelators("RP","Pt"); if(fCalculateDiffFlowVsEta){this->CrossCheckOtherDiffCorrelators("RP","Eta");} this->CrossCheckOtherDiffCorrelators("POI","Pt"); if(fCalculateDiffFlowVsEta){this->CrossCheckOtherDiffCorrelators("POI","Eta");} } // end of if(fEvaluateDiffFlowNestedLoops) // i) Calculate cumulants for mixed harmonics: if(fCalculateMixedHarmonics){this->CalculateCumulantsMixedHarmonics();} } // end of AliFlowAnalysisWithQCumulants::Finish() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::EvaluateIntFlowNestedLoops(AliFlowEventSimple* anEvent) { // Evaluate all correlators for reference flow with nested loops. Int_t nPrim = anEvent->NumberOfTracks(); // number of primaries if(nPrim>0 && nPrim<=fMaxAllowedMultiplicity) // by default fMaxAllowedMultiplicity = 10 { // Without using particle weights: if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // Correlations: this->CalculateIntFlowCorrelations(); // from Q-vectors this->EvaluateIntFlowCorrelationsWithNestedLoops(anEvent); // from nested loops (TBI: do I have to pass here anEvent or not?) // Correction for non-uniform acceptance: this->CalculateIntFlowCorrectionsForNUASinTerms(); // from Q-vectors (sin terms) this->CalculateIntFlowCorrectionsForNUACosTerms(); // from Q-vectors (cos terms) this->EvaluateIntFlowCorrectionsForNUAWithNestedLoops(anEvent); // from nested loops (both sin and cos terms) // Mixed harmonics: if(fCalculateMixedHarmonics) { this->CalculateMixedHarmonics(); // from Q-vectors this->EvaluateMixedHarmonicsWithNestedLoops(anEvent); // from nested loops (TBI: do I have to pass here anEvent or not?) } // end of if(fCalculateMixedHarmonics) } // Using particle weights: if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) { // Correlations this->CalculateIntFlowCorrelationsUsingParticleWeights(); // from Q-vectors this->EvaluateIntFlowCorrelationsWithNestedLoopsUsingParticleWeights(anEvent); // from nested loops (to be improved: do I have to pass here anEvent or not?) // Correction for non-uniform acceptance: this->CalculateIntFlowCorrectionsForNUASinTermsUsingParticleWeights(); // from Q-vectors (sin terms) this->CalculateIntFlowCorrectionsForNUACosTermsUsingParticleWeights(); // from Q-vectors (cos terms) this->EvaluateIntFlowCorrectionsForNUAWithNestedLoopsUsingParticleWeights(anEvent); // from nested loops (both sin and cos terms) } } else if(nPrim>fMaxAllowedMultiplicity) // to if(nPrim>0 && nPrim<=fMaxAllowedMultiplicity) { cout<NumberOfTracks(); // number of primaries if(nPrim>0 && nPrim<=fMaxAllowedMultiplicity) // by default fMaxAllowedMultiplicity = 10 { // Without using particle weights: if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { // 1.) Reduced correlations: // Q-vectors: this->CalculateDiffFlowCorrelations("RP","Pt"); this->CalculateDiffFlowCorrelations("RP","Eta"); this->CalculateDiffFlowCorrelations("POI","Pt"); this->CalculateDiffFlowCorrelations("POI","Eta"); // Nested loops: this->EvaluateDiffFlowCorrelationsWithNestedLoops(anEvent,"RP","Pt"); this->EvaluateDiffFlowCorrelationsWithNestedLoops(anEvent,"RP","Eta"); this->EvaluateDiffFlowCorrelationsWithNestedLoops(anEvent,"POI","Pt"); this->EvaluateDiffFlowCorrelationsWithNestedLoops(anEvent,"POI","Eta"); // 2.) Reduced corrections for non-uniform acceptance: // Q-vectors: this->CalculateDiffFlowCorrectionsForNUASinTerms("RP","Pt"); this->CalculateDiffFlowCorrectionsForNUASinTerms("RP","Eta"); this->CalculateDiffFlowCorrectionsForNUASinTerms("POI","Pt"); this->CalculateDiffFlowCorrectionsForNUASinTerms("POI","Eta"); this->CalculateDiffFlowCorrectionsForNUACosTerms("RP","Pt"); this->CalculateDiffFlowCorrectionsForNUACosTerms("RP","Eta"); this->CalculateDiffFlowCorrectionsForNUACosTerms("POI","Pt"); this->CalculateDiffFlowCorrectionsForNUACosTerms("POI","Eta"); // Nested loops: this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoops(anEvent,"RP","Pt"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoops(anEvent,"RP","Eta"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoops(anEvent,"POI","Pt"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoops(anEvent,"POI","Eta"); // 3.) Other differential correlators: // Q-vectors: this->CalculateOtherDiffCorrelators("RP","Pt"); this->CalculateOtherDiffCorrelators("RP","Eta"); this->CalculateOtherDiffCorrelators("POI","Pt"); this->CalculateOtherDiffCorrelators("POI","Eta"); // Nested loops: this->EvaluateOtherDiffCorrelatorsWithNestedLoops(anEvent,"RP","Pt"); this->EvaluateOtherDiffCorrelatorsWithNestedLoops(anEvent,"RP","Eta"); this->EvaluateOtherDiffCorrelatorsWithNestedLoops(anEvent,"POI","Pt"); this->EvaluateOtherDiffCorrelatorsWithNestedLoops(anEvent,"POI","Eta"); } // end of if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) // Using particle weights: if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) { this->CalculateDiffFlowCorrelationsUsingParticleWeights("RP","Pt"); this->CalculateDiffFlowCorrelationsUsingParticleWeights("RP","Eta"); this->CalculateDiffFlowCorrelationsUsingParticleWeights("POI","Pt"); this->CalculateDiffFlowCorrelationsUsingParticleWeights("POI","Eta"); this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("RP","Pt"); this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("RP","Eta"); this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("POI","Pt"); this->CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights("POI","Eta"); this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("RP","Pt"); this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("RP","Eta"); this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("POI","Pt"); this->CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights("POI","Eta"); this->EvaluateDiffFlowCorrelationsWithNestedLoopsUsingParticleWeights(anEvent,"RP","Pt"); this->EvaluateDiffFlowCorrelationsWithNestedLoopsUsingParticleWeights(anEvent,"RP","Eta"); this->EvaluateDiffFlowCorrelationsWithNestedLoopsUsingParticleWeights(anEvent,"POI","Pt"); this->EvaluateDiffFlowCorrelationsWithNestedLoopsUsingParticleWeights(anEvent,"POI","Eta"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoopsUsingParticleWeights(anEvent,"RP","Pt"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoopsUsingParticleWeights(anEvent,"RP","Eta"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoopsUsingParticleWeights(anEvent,"POI","Pt"); this->EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoopsUsingParticleWeights(anEvent,"POI","Eta"); } // end of if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) } // end of if(nPrim>0 && nPrim<=fMaxAllowedMultiplicity) // by default fMaxAllowedMultiplicity = 10 } // end of void AliFlowAnalysisWithQCumulants::EvaluateDiffFlowNestedLoops(AliFlowEventSimple* anEvent) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrectionsForNUACosTerms() { // Calculate correction terms for non-uniform acceptance of the detector for reference flow (cos terms). // multiplicity: Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); //Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); //Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); // Multiplicity bin of an event (relevant for all histos vs M): Double_t dMultiplicityBin = 0.; if(fMultiplicityIs==AliFlowCommonConstants::kRP) { dMultiplicityBin = fNumberOfRPsEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { dMultiplicityBin = fReferenceMultiplicityEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { dMultiplicityBin = fNumberOfPOIsEBE+0.5; } // ************************************************************* // **** corrections for non-uniform acceptance (cos terms): **** // ************************************************************* // // Remark 1: corrections for non-uniform acceptance (cos terms) calculated with non-weighted Q-vectors // are stored in 1D profile fQCorrectionsCos. // Remark 2: binning of fIntFlowCorrectionTermsForNUAPro[1] is organized as follows: // -------------------------------------------------------------------------------------------------------------------- // 1st bin: <> = cosP1n // 2nd bin: <> = cosP1nP1n // 3rd bin: <> = cosP1nM1nM1n // 4th bin: <> = cosP2nM1n // -------------------------------------------------------------------------------------------------------------------- // 1-particle: Double_t cosP1n = 0.; // <> if(dMult>0) { cosP1n = dReQ1n/dMult; // average non-weighted 1-particle correction (cos terms) for non-uniform acceptance for single event: fIntFlowCorrectionTermsForNUAEBE[1]->SetBinContent(1,cosP1n); // event weights for NUA terms: fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->SetBinContent(1,dMult); // final average non-weighted 1-particle correction (cos terms) for non-uniform acceptance for all events: fIntFlowCorrectionTermsForNUAPro[1]->Fill(0.5,cosP1n,dMult); if(fCalculateCumulantsVsM){fIntFlowCorrectionTermsForNUAVsMPro[1][0]->Fill(dMultiplicityBin,cosP1n,dMult);} } // 2-particle: Double_t cosP1nP1n = 0.; // <> Double_t cosP2nM1n = 0.; // <> if(dMult>1) { cosP1nP1n = (pow(dReQ1n,2)-pow(dImQ1n,2)-dReQ2n)/(dMult*(dMult-1)); cosP2nM1n = (dReQ2n*dReQ1n+dImQ2n*dImQ1n-dReQ1n)/(dMult*(dMult-1)); // average non-weighted 2-particle correction (cos terms) for non-uniform acceptance for single event: fIntFlowCorrectionTermsForNUAEBE[1]->SetBinContent(2,cosP1nP1n); fIntFlowCorrectionTermsForNUAEBE[1]->SetBinContent(4,cosP2nM1n); // event weights for NUA terms: fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->SetBinContent(2,dMult*(dMult-1)); fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->SetBinContent(4,dMult*(dMult-1)); // final average non-weighted 2-particle correction (cos terms) for non-uniform acceptance for all events: fIntFlowCorrectionTermsForNUAPro[1]->Fill(1.5,cosP1nP1n,dMult*(dMult-1)); fIntFlowCorrectionTermsForNUAPro[1]->Fill(3.5,cosP2nM1n,dMult*(dMult-1)); if(fCalculateCumulantsVsM) { fIntFlowCorrectionTermsForNUAVsMPro[1][1]->Fill(dMultiplicityBin,cosP1nP1n,dMult*(dMult-1)); fIntFlowCorrectionTermsForNUAVsMPro[1][3]->Fill(dMultiplicityBin,cosP2nM1n,dMult*(dMult-1)); } } // 3-particle: Double_t cosP1nM1nM1n = 0.; // <> if(dMult>2) { cosP1nM1nM1n = (dReQ1n*(pow(dReQ1n,2)+pow(dImQ1n,2))-dReQ1n*dReQ2n-dImQ1n*dImQ2n-2.*(dMult-1)*dReQ1n) / (dMult*(dMult-1)*(dMult-2)); // average non-weighted 3-particle correction (cos terms) for non-uniform acceptance for single event: fIntFlowCorrectionTermsForNUAEBE[1]->SetBinContent(3,cosP1nM1nM1n); // event weights for NUA terms: fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->SetBinContent(3,dMult*(dMult-1)*(dMult-2)); // final average non-weighted 3-particle correction (cos terms) for non-uniform acceptance for all events: fIntFlowCorrectionTermsForNUAPro[1]->Fill(2.5,cosP1nM1nM1n,dMult*(dMult-1)*(dMult-2)); if(fCalculateCumulantsVsM){fIntFlowCorrectionTermsForNUAVsMPro[1][2]->Fill(dMultiplicityBin,cosP1nM1nM1n,dMult*(dMult-1)*(dMult-2));} } } // end of AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrectionsForNUACosTerms() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrectionsForNUASinTerms() { // calculate corrections for non-uniform acceptance of the detector for no-name integrated flow (sin terms) // multiplicity: Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); //Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); //Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); // Multiplicity bin of an event (relevant for all histos vs M): Double_t dMultiplicityBin = 0.; if(fMultiplicityIs==AliFlowCommonConstants::kRP) { dMultiplicityBin = fNumberOfRPsEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { dMultiplicityBin = fReferenceMultiplicityEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { dMultiplicityBin = fNumberOfPOIsEBE+0.5; } // ************************************************************* // **** corrections for non-uniform acceptance (sin terms): **** // ************************************************************* // // Remark 1: corrections for non-uniform acceptance (sin terms) calculated with non-weighted Q-vectors // are stored in 1D profile fQCorrectionsSin. // Remark 2: binning of fIntFlowCorrectionTermsForNUAPro[0] is organized as follows: // -------------------------------------------------------------------------------------------------------------------- // 1st bin: <> = sinP1n // 2nd bin: <> = sinP1nP1n // 3rd bin: <> = sinP1nM1nM1n // 4th bin: <> = sinP2nM1n // -------------------------------------------------------------------------------------------------------------------- // 1-particle: Double_t sinP1n = 0.; // if(dMult>0) { sinP1n = dImQ1n/dMult; // average non-weighted 1-particle correction (sin terms) for non-uniform acceptance for single event: fIntFlowCorrectionTermsForNUAEBE[0]->SetBinContent(1,sinP1n); // event weights for NUA terms: fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->SetBinContent(1,dMult); // final average non-weighted 1-particle correction (sin terms) for non-uniform acceptance for all events: fIntFlowCorrectionTermsForNUAPro[0]->Fill(0.5,sinP1n,dMult); if(fCalculateCumulantsVsM){fIntFlowCorrectionTermsForNUAVsMPro[0][0]->Fill(dMultiplicityBin,sinP1n,dMult);} } // 2-particle: Double_t sinP1nP1n = 0.; // <> Double_t sinP2nM1n = 0.; // <> if(dMult>1) { sinP1nP1n = (2.*dReQ1n*dImQ1n-dImQ2n)/(dMult*(dMult-1)); sinP2nM1n = (dImQ2n*dReQ1n-dReQ2n*dImQ1n-dImQ1n)/(dMult*(dMult-1)); // average non-weighted 2-particle correction (sin terms) for non-uniform acceptance for single event: fIntFlowCorrectionTermsForNUAEBE[0]->SetBinContent(2,sinP1nP1n); fIntFlowCorrectionTermsForNUAEBE[0]->SetBinContent(4,sinP2nM1n); // event weights for NUA terms: fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->SetBinContent(2,dMult*(dMult-1)); fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->SetBinContent(4,dMult*(dMult-1)); // final average non-weighted 1-particle correction (sin terms) for non-uniform acceptance for all events: fIntFlowCorrectionTermsForNUAPro[0]->Fill(1.5,sinP1nP1n,dMult*(dMult-1)); fIntFlowCorrectionTermsForNUAPro[0]->Fill(3.5,sinP2nM1n,dMult*(dMult-1)); if(fCalculateCumulantsVsM) { fIntFlowCorrectionTermsForNUAVsMPro[0][1]->Fill(dMultiplicityBin,sinP1nP1n,dMult*(dMult-1)); fIntFlowCorrectionTermsForNUAVsMPro[0][3]->Fill(dMultiplicityBin,sinP2nM1n,dMult*(dMult-1)); } } // 3-particle: Double_t sinP1nM1nM1n = 0.; // <> if(dMult>2) { sinP1nM1nM1n = (-dImQ1n*(pow(dReQ1n,2)+pow(dImQ1n,2))+dReQ1n*dImQ2n-dImQ1n*dReQ2n+2.*(dMult-1)*dImQ1n) / (dMult*(dMult-1)*(dMult-2)); // average non-weighted 3-particle correction (sin terms) for non-uniform acceptance for single event: fIntFlowCorrectionTermsForNUAEBE[0]->SetBinContent(3,sinP1nM1nM1n); // event weights for NUA terms: fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->SetBinContent(3,dMult*(dMult-1)*(dMult-2)); // final average non-weighted 3-particle correction (sin terms) for non-uniform acceptance for all events: fIntFlowCorrectionTermsForNUAPro[0]->Fill(2.5,sinP1nM1nM1n,dMult*(dMult-1)*(dMult-2)); if(fCalculateCumulantsVsM){fIntFlowCorrectionTermsForNUAVsMPro[0][2]->Fill(dMultiplicityBin,sinP1nM1nM1n,dMult*(dMult-1)*(dMult-2));} } } // end of AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrectionsForNUASinTerms() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetOutputHistograms(TList *outputListHistos) { // a) Get pointers for common control and common result histograms; // b) Get pointers for histograms holding particle weights; // c) Get pointers for reference flow histograms; // d) Get pointers for differential flow histograms; // e) Get pointers for 2D differential flow histograms; // f) Get pointers for other differential correlators; // g) Get pointers for nested loops' histograms; // h) Get pointers for mixed harmonics histograms. if(outputListHistos) { this->SetHistList(outputListHistos); if(!fHistList) { printf("\n WARNING (QC): fHistList is NULL in AFAWQC::GOH() !!!!\n\n"); exit(0); } this->GetPointersForCommonHistograms(); this->GetPointersForParticleWeightsHistograms(); this->GetPointersForIntFlowHistograms(); this->GetPointersForDiffFlowHistograms(); this->GetPointersFor2DDiffFlowHistograms(); this->GetPointersForOtherDiffCorrelators(); this->GetPointersForMixedHarmonicsHistograms(); this->GetPointersForNestedLoopsHistograms(); } else { printf("\n WARNING (QC): outputListHistos is NULL in AFAWQC::GOH() !!!!\n\n"); exit(0); } } // end of void AliFlowAnalysisWithQCumulants::GetOutputHistograms(TList *outputListHistos) //======================================================================================================================= TProfile* AliFlowAnalysisWithQCumulants::MakePtProjection(TProfile2D *profilePtEta) const { // project 2D profile onto pt axis to get 1D profile Int_t nBinsPt = profilePtEta->GetNbinsX(); Double_t dPtMin = (profilePtEta->GetXaxis())->GetXmin(); Double_t dPtMax = (profilePtEta->GetXaxis())->GetXmax(); Int_t nBinsEta = profilePtEta->GetNbinsY(); TProfile *profilePt = new TProfile("","",nBinsPt,dPtMin,dPtMax); for(Int_t p=1;p<=nBinsPt;p++) { Double_t contentPt = 0.; Double_t entryPt = 0.; Double_t spreadPt = 0.; Double_t sum1 = 0.; Double_t sum2 = 0.; Double_t sum3 = 0.; for(Int_t e=1;e<=nBinsEta;e++) { contentPt += (profilePtEta->GetBinContent(profilePtEta->GetBin(p,e))) * (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))); entryPt += (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))); sum1 += (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))) * (pow(profilePtEta->GetBinError(profilePtEta->GetBin(p,e)),2.) + pow(profilePtEta->GetBinContent(profilePtEta->GetBin(p,e)),2.)); sum2 += (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))); sum3 += (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))) * (profilePtEta->GetBinContent(profilePtEta->GetBin(p,e))); } if(sum2>0. && sum1/sum2-pow(sum3/sum2,2.) > 0.) { spreadPt = pow(sum1/sum2-pow(sum3/sum2,2.),0.5); } profilePt->SetBinContent(p,contentPt); profilePt->SetBinEntries(p,entryPt); { profilePt->SetBinError(p,spreadPt); } } return profilePt; } // end of TProfile* AliFlowAnalysisWithQCumulants::MakePtProjection(TProfile2D *profilePtEta) //======================================================================================================================= TProfile* AliFlowAnalysisWithQCumulants::MakeEtaProjection(TProfile2D *profilePtEta) const { // project 2D profile onto eta axis to get 1D profile Int_t nBinsEta = profilePtEta->GetNbinsY(); Double_t dEtaMin = (profilePtEta->GetYaxis())->GetXmin(); Double_t dEtaMax = (profilePtEta->GetYaxis())->GetXmax(); Int_t nBinsPt = profilePtEta->GetNbinsX(); TProfile *profileEta = new TProfile("","",nBinsEta,dEtaMin,dEtaMax); for(Int_t e=1;e<=nBinsEta;e++) { Double_t contentEta = 0.; Double_t entryEta = 0.; for(Int_t p=1;p<=nBinsPt;p++) { contentEta += (profilePtEta->GetBinContent(profilePtEta->GetBin(p,e))) * (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))); entryEta += (profilePtEta->GetBinEntries(profilePtEta->GetBin(p,e))); } profileEta->SetBinContent(e,contentEta); profileEta->SetBinEntries(e,entryEta); } return profileEta; } // end of TProfile* AliFlowAnalysisWithQCumulants::MakeEtaProjection(TProfile2D *profilePtEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::PrintFinalResultsForIntegratedFlow(TString type) { // Printing on the screen the final results for integrated flow (RF, POI and RP). Int_t n = fHarmonic; Double_t dVn[4] = {0.}; // array to hold Vn{2}, Vn{4}, Vn{6} and Vn{8} Double_t dVnErr[4] = {0.}; // array to hold errors of Vn{2}, Vn{4}, Vn{6} and Vn{8} if(type == "RF") { for(Int_t b=0;b<4;b++) { dVn[0] = (fCommonHistsResults2nd->GetHistIntFlow())->GetBinContent(1); dVnErr[0] = (fCommonHistsResults2nd->GetHistIntFlow())->GetBinError(1); dVn[1] = (fCommonHistsResults4th->GetHistIntFlow())->GetBinContent(1); dVnErr[1] = (fCommonHistsResults4th->GetHistIntFlow())->GetBinError(1); dVn[2] = (fCommonHistsResults6th->GetHistIntFlow())->GetBinContent(1); dVnErr[2] = (fCommonHistsResults6th->GetHistIntFlow())->GetBinError(1); dVn[3] = (fCommonHistsResults8th->GetHistIntFlow())->GetBinContent(1); dVnErr[3] = (fCommonHistsResults8th->GetHistIntFlow())->GetBinError(1); } } else if(type == "RP") { dVn[0] = (fCommonHistsResults2nd->GetHistIntFlowRP())->GetBinContent(1); dVnErr[0] = (fCommonHistsResults2nd->GetHistIntFlowRP())->GetBinError(1); dVn[1] = (fCommonHistsResults4th->GetHistIntFlowRP())->GetBinContent(1); dVnErr[1] = (fCommonHistsResults4th->GetHistIntFlowRP())->GetBinError(1); dVn[2] = (fCommonHistsResults6th->GetHistIntFlowRP())->GetBinContent(1); dVnErr[2] = (fCommonHistsResults6th->GetHistIntFlowRP())->GetBinError(1); dVn[3] = (fCommonHistsResults8th->GetHistIntFlowRP())->GetBinContent(1); dVnErr[3] = (fCommonHistsResults8th->GetHistIntFlowRP())->GetBinError(1); } else if(type == "POI") { dVn[0] = (fCommonHistsResults2nd->GetHistIntFlowPOI())->GetBinContent(1); dVnErr[0] = (fCommonHistsResults2nd->GetHistIntFlowPOI())->GetBinError(1); dVn[1] = (fCommonHistsResults4th->GetHistIntFlowPOI())->GetBinContent(1); dVnErr[1] = (fCommonHistsResults4th->GetHistIntFlowPOI())->GetBinError(1); dVn[2] = (fCommonHistsResults6th->GetHistIntFlowPOI())->GetBinContent(1); dVnErr[2] = (fCommonHistsResults6th->GetHistIntFlowPOI())->GetBinError(1); dVn[3] = (fCommonHistsResults8th->GetHistIntFlowPOI())->GetBinContent(1); dVnErr[3] = (fCommonHistsResults8th->GetHistIntFlowPOI())->GetBinError(1); } else if(type == "RF, rebinned in M" && fCalculateCumulantsVsM) { for(Int_t b=0;b<4;b++) { dVn[b] = fIntFlowRebinnedInM->GetBinContent(b+1); dVnErr[b] = fIntFlowRebinnedInM->GetBinError(b+1); } } TString title = " flow estimates from Q-cumulants"; TString subtitle = " ("; TString subtitle2 = " (rebinned in M)"; if(type != "RF, rebinned in M") { if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { subtitle.Append(type); subtitle.Append(", without weights)"); } else { subtitle.Append(type); subtitle.Append(", with weights)"); } } else { if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) { subtitle.Append("RF"); subtitle.Append(", without weights)"); } else { subtitle.Append("RF"); subtitle.Append(", with weights)"); } } cout<GetBinContent(1)<<" +/- "<GetBinError(1)<GetBinContent(2)<<" +/- "<GetBinError(2)< = "<<(Double_t)fCommonHists->GetHistMultRP()->GetMean()< = "<<(Double_t)fCommonHists->GetHistMultRP()->GetMean()< = "<<(Double_t)fCommonHists->GetHistMultPOI()->GetMean()<WriteObject(fHistList, "cobjQC","SingleKey"); fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } //======================================================================================================================= void AliFlowAnalysisWithQCumulants::WriteHistograms(TDirectoryFile *outputFileName) { //store the final results in output .root file fHistList->SetName("cobjQC"); fHistList->SetOwner(kTRUE); outputFileName->Add(fHistList); outputFileName->Write(outputFileName->GetName(), TObject::kSingleKey); } //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookCommonHistograms() { // Book common control histograms and common histograms for final results. // a) Book common control histograms; // b) Book common result histograms. // a) Book common control histograms: // Common control histograms (all events): TString commonHistsName = "AliFlowCommonHistQC"; commonHistsName += fAnalysisLabel->Data(); fCommonHists = new AliFlowCommonHist(commonHistsName.Data(),commonHistsName.Data(),fBookOnlyBasicCCH); fHistList->Add(fCommonHists); // Common control histograms (selected events): if(fFillMultipleControlHistograms) { // Common control histogram filled for events with 2 and more reference particles: TString commonHists2ndOrderName = "AliFlowCommonHist2ndOrderQC"; commonHists2ndOrderName += fAnalysisLabel->Data(); fCommonHists2nd = new AliFlowCommonHist(commonHists2ndOrderName.Data(),commonHists2ndOrderName.Data(),fBookOnlyBasicCCH); fHistList->Add(fCommonHists2nd); // Common control histogram filled for events with 2 and more reference particles: TString commonHists4thOrderName = "AliFlowCommonHist4thOrderQC"; commonHists4thOrderName += fAnalysisLabel->Data(); fCommonHists4th = new AliFlowCommonHist(commonHists4thOrderName.Data(),commonHists4thOrderName.Data(),fBookOnlyBasicCCH); fHistList->Add(fCommonHists4th); // Common control histogram filled for events with 6 and more reference particles: TString commonHists6thOrderName = "AliFlowCommonHist6thOrderQC"; commonHists6thOrderName += fAnalysisLabel->Data(); fCommonHists6th = new AliFlowCommonHist(commonHists6thOrderName.Data(),commonHists6thOrderName.Data(),fBookOnlyBasicCCH); fHistList->Add(fCommonHists6th); // Common control histogram filled for events with 8 and more reference particles: TString commonHists8thOrderName = "AliFlowCommonHist8thOrderQC"; commonHists8thOrderName += fAnalysisLabel->Data(); fCommonHists8th = new AliFlowCommonHist(commonHists8thOrderName.Data(),commonHists8thOrderName.Data(),fBookOnlyBasicCCH); fHistList->Add(fCommonHists8th); } // end of if(fFillMultipleControlHistograms) // b) Book common result histograms: // Common result histograms for QC{2}: TString commonHistResults2ndOrderName = "AliFlowCommonHistResults2ndOrderQC"; commonHistResults2ndOrderName += fAnalysisLabel->Data(); fCommonHistsResults2nd = new AliFlowCommonHistResults(commonHistResults2ndOrderName.Data(),"",fHarmonic); fHistList->Add(fCommonHistsResults2nd); // Common result histograms for QC{4}: TString commonHistResults4thOrderName = "AliFlowCommonHistResults4thOrderQC"; commonHistResults4thOrderName += fAnalysisLabel->Data(); fCommonHistsResults4th = new AliFlowCommonHistResults(commonHistResults4thOrderName.Data(),"",fHarmonic); fHistList->Add(fCommonHistsResults4th); // Common result histograms for QC{6}: TString commonHistResults6thOrderName = "AliFlowCommonHistResults6thOrderQC"; commonHistResults6thOrderName += fAnalysisLabel->Data(); fCommonHistsResults6th = new AliFlowCommonHistResults(commonHistResults6thOrderName.Data(),"",fHarmonic); fHistList->Add(fCommonHistsResults6th); // Common result histograms for QC{8}: TString commonHistResults8thOrderName = "AliFlowCommonHistResults8thOrderQC"; commonHistResults8thOrderName += fAnalysisLabel->Data(); fCommonHistsResults8th = new AliFlowCommonHistResults(commonHistResults8thOrderName.Data(),"",fHarmonic); fHistList->Add(fCommonHistsResults8th); } // end of void AliFlowAnalysisWithQCumulants::BookCommonHistograms() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookAndFillWeightsHistograms() { // Book and fill histograms which hold phi, pt and eta weights. if(!fWeightsList) { printf("\n WARNING (QC): fWeightsList is NULL in AFAWQC::BAFWH() !!!! \n\n"); exit(0); } TString fUseParticleWeightsName = "fUseParticleWeightsQC"; fUseParticleWeightsName += fAnalysisLabel->Data(); fUseParticleWeights = new TProfile(fUseParticleWeightsName.Data(),"0 = particle weight not used, 1 = particle weight used ",4,0,4); fUseParticleWeights->SetLabelSize(0.06); fUseParticleWeights->SetStats(kFALSE); (fUseParticleWeights->GetXaxis())->SetBinLabel(1,"w_{#phi}"); (fUseParticleWeights->GetXaxis())->SetBinLabel(2,"w_{p_{T}}"); (fUseParticleWeights->GetXaxis())->SetBinLabel(3,"w_{#eta}"); (fUseParticleWeights->GetXaxis())->SetBinLabel(4,"w_{track}"); fUseParticleWeights->Fill(0.5,(Int_t)fUsePhiWeights); fUseParticleWeights->Fill(1.5,(Int_t)fUsePtWeights); fUseParticleWeights->Fill(2.5,(Int_t)fUseEtaWeights); fUseParticleWeights->Fill(3.5,(Int_t)fUseTrackWeights); fWeightsList->Add(fUseParticleWeights); if(fUsePhiWeights) { if(fWeightsList->FindObject("phi_weights")) { fPhiWeights = dynamic_cast(fWeightsList->FindObject("phi_weights")); if(!fPhiWeights) { printf("\n WARNING (QC): fPhiWeights is NULL in AFAWQC::BAFWH() !!!!\n\n"); exit(0); } if(TMath::Abs(fPhiWeights->GetBinWidth(1)-fPhiBinWidth)>pow(10.,-6.)) { cout<FindObject(\"phi_weights\") is NULL in AFAWQC::BAFWH() !!!!"<FindObject("pt_weights")) { fPtWeights = dynamic_cast(fWeightsList->FindObject("pt_weights")); if(!fPtWeights) { printf("\n WARNING (QC): fPtWeights is NULL in AFAWQC::BAFWH() !!!!\n\n"); exit(0); } if(TMath::Abs(fPtWeights->GetBinWidth(1)-fPtBinWidth)>pow(10.,-6.)) { cout<FindObject(\"pt_weights\") is NULL in AFAWQC::BAFWH() !!!!"<FindObject("eta_weights")) { fEtaWeights = dynamic_cast(fWeightsList->FindObject("eta_weights")); if(!fEtaWeights) { printf("\n WARNING (QC): fEtaWeights is NULL in AFAWQC::BAFWH() !!!!\n\n"); exit(0); } if(TMath::Abs(fEtaWeights->GetBinWidth(1)-fEtaBinWidth)>pow(10.,-6.)) { cout<FindObject(\"eta_weights\") is NULL in AFAWQC::BAFWH() !!!!"<Data(); fIntFlowFlags = new TProfile(intFlowFlagsName.Data(),"Flags for Integrated Flow",16,0.,16.); fIntFlowFlags->SetTickLength(-0.01,"Y"); fIntFlowFlags->SetMarkerStyle(25); fIntFlowFlags->SetLabelSize(0.04); fIntFlowFlags->SetLabelOffset(0.02,"Y"); fIntFlowFlags->SetStats(kFALSE); fIntFlowFlags->GetXaxis()->SetBinLabel(1,"Particle Weights"); fIntFlowFlags->GetXaxis()->SetBinLabel(2,"Event Weights"); fIntFlowFlags->GetXaxis()->SetBinLabel(3,"Corrected for NUA?"); fIntFlowFlags->GetXaxis()->SetBinLabel(4,"Print RF results"); fIntFlowFlags->GetXaxis()->SetBinLabel(5,"Print RP results"); fIntFlowFlags->GetXaxis()->SetBinLabel(6,"Print POI results"); fIntFlowFlags->GetXaxis()->SetBinLabel(7,"Print RF (rebinned in M) results"); fIntFlowFlags->GetXaxis()->SetBinLabel(8,"Corrected for NUA vs M?"); fIntFlowFlags->GetXaxis()->SetBinLabel(9,"Propagate errors to v_{n} from correlations?"); fIntFlowFlags->GetXaxis()->SetBinLabel(10,"Calculate cumulants vs M"); fIntFlowFlags->GetXaxis()->SetBinLabel(11,"fMinimumBiasReferenceFlow"); fIntFlowFlags->GetXaxis()->SetBinLabel(12,"fForgetAboutCovariances"); fIntFlowFlags->GetXaxis()->SetBinLabel(13,"fStorePhiDistributionForOneEvent"); fIntFlowFlags->GetXaxis()->SetBinLabel(14,"fFillMultipleControlHistograms"); fIntFlowFlags->GetXaxis()->SetBinLabel(15,"Calculate all correlations vs M"); fIntFlowFlags->GetXaxis()->SetBinLabel(16,"fMultiplicityIs"); fIntFlowList->Add(fIntFlowFlags); // b) Book event-by-event quantities: // Re[Q_{m*n,k}], Im[Q_{m*n,k}] and S_{p,k}^M: fReQ = new TMatrixD(12,9); fImQ = new TMatrixD(12,9); fSpk = new TMatrixD(8,9); // average correlations <2>, <4>, <6> and <8> for single event (bining is the same as in fIntFlowCorrelationsPro and fIntFlowCorrelationsHist): TString intFlowCorrelationsEBEName = "fIntFlowCorrelationsEBE"; intFlowCorrelationsEBEName += fAnalysisLabel->Data(); fIntFlowCorrelationsEBE = new TH1D(intFlowCorrelationsEBEName.Data(),intFlowCorrelationsEBEName.Data(),4,0,4); // weights for average correlations <2>, <4>, <6> and <8> for single event: TString intFlowEventWeightsForCorrelationsEBEName = "fIntFlowEventWeightsForCorrelationsEBE"; intFlowEventWeightsForCorrelationsEBEName += fAnalysisLabel->Data(); fIntFlowEventWeightsForCorrelationsEBE = new TH1D(intFlowEventWeightsForCorrelationsEBEName.Data(),intFlowEventWeightsForCorrelationsEBEName.Data(),4,0,4); // average all correlations for single event (bining is the same as in fIntFlowCorrelationsAllPro and fIntFlowCorrelationsAllHist): TString intFlowCorrelationsAllEBEName = "fIntFlowCorrelationsAllEBE"; intFlowCorrelationsAllEBEName += fAnalysisLabel->Data(); fIntFlowCorrelationsAllEBE = new TH1D(intFlowCorrelationsAllEBEName.Data(),intFlowCorrelationsAllEBEName.Data(),64,0,64); // average correction terms for non-uniform acceptance for single event // (binning is the same as in fIntFlowCorrectionTermsForNUAPro[2] and fIntFlowCorrectionTermsForNUAHist[2]): TString fIntFlowCorrectionTermsForNUAEBEName = "fIntFlowCorrectionTermsForNUAEBE"; fIntFlowCorrectionTermsForNUAEBEName += fAnalysisLabel->Data(); for(Int_t sc=0;sc<2;sc++) // sin or cos terms { fIntFlowCorrectionTermsForNUAEBE[sc] = new TH1D(Form("%s: %s terms",fIntFlowCorrectionTermsForNUAEBEName.Data(),sinCosFlag[sc].Data()),Form("Correction terms for non-uniform acceptance (%s terms)",sinCosFlag[sc].Data()),4,0,4); } // event weights for terms for non-uniform acceptance: TString fIntFlowEventWeightForCorrectionTermsForNUAEBEName = "fIntFlowEventWeightForCorrectionTermsForNUAEBE"; fIntFlowEventWeightForCorrectionTermsForNUAEBEName += fAnalysisLabel->Data(); for(Int_t sc=0;sc<2;sc++) // sin or cos terms { fIntFlowEventWeightForCorrectionTermsForNUAEBE[sc] = new TH1D(Form("%s: %s terms",fIntFlowEventWeightForCorrectionTermsForNUAEBEName.Data(),sinCosFlag[sc].Data()),Form("Event weights for terms for non-uniform acceptance (%s terms)",sinCosFlag[sc].Data()),4,0,4); // to be improved - 4 } // c) Book profiles: // to be improved (comment) // profile to hold average multiplicities and number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8: TString avMultiplicityName = "fAvMultiplicity"; avMultiplicityName += fAnalysisLabel->Data(); fAvMultiplicity = new TProfile(avMultiplicityName.Data(),"Average multiplicities of reference particles (RPs)",9,0,9); fAvMultiplicity->SetTickLength(-0.01,"Y"); fAvMultiplicity->SetMarkerStyle(25); fAvMultiplicity->SetLabelSize(0.05); fAvMultiplicity->SetLabelOffset(0.02,"Y"); fAvMultiplicity->SetYTitle("Average multiplicity"); (fAvMultiplicity->GetXaxis())->SetBinLabel(1,"all evts"); (fAvMultiplicity->GetXaxis())->SetBinLabel(2,"n_{RP} #geq 1"); (fAvMultiplicity->GetXaxis())->SetBinLabel(3,"n_{RP} #geq 2"); (fAvMultiplicity->GetXaxis())->SetBinLabel(4,"n_{RP} #geq 3"); (fAvMultiplicity->GetXaxis())->SetBinLabel(5,"n_{RP} #geq 4"); (fAvMultiplicity->GetXaxis())->SetBinLabel(6,"n_{RP} #geq 5"); (fAvMultiplicity->GetXaxis())->SetBinLabel(7,"n_{RP} #geq 6"); (fAvMultiplicity->GetXaxis())->SetBinLabel(8,"n_{RP} #geq 7"); (fAvMultiplicity->GetXaxis())->SetBinLabel(9,"n_{RP} #geq 8"); fIntFlowProfiles->Add(fAvMultiplicity); // Average correlations <<2>>, <<4>>, <<6>> and <<8>> for all events (with wrong errors!): TString correlationFlag[4] = {"#LT#LT2#GT#GT","#LT#LT4#GT#GT","#LT#LT6#GT#GT","#LT#LT8#GT#GT"}; TString intFlowCorrelationsProName = "fIntFlowCorrelationsPro"; intFlowCorrelationsProName += fAnalysisLabel->Data(); fIntFlowCorrelationsPro = new TProfile(intFlowCorrelationsProName.Data(),"Average correlations for all events",4,0,4,"s"); fIntFlowCorrelationsPro->Sumw2(); fIntFlowCorrelationsPro->SetTickLength(-0.01,"Y"); fIntFlowCorrelationsPro->SetMarkerStyle(25); fIntFlowCorrelationsPro->SetLabelSize(0.06); fIntFlowCorrelationsPro->SetLabelOffset(0.01,"Y"); for(Int_t b=0;b<4;b++) { (fIntFlowCorrelationsPro->GetXaxis())->SetBinLabel(b+1,correlationFlag[b].Data()); } fIntFlowProfiles->Add(fIntFlowCorrelationsPro); // Average correlations squared <<2>^2>, <<4>^2>, <<6>^2> and <<8>^2> for all events: TString squaredCorrelationFlag[4] = {"#LT#LT2#GT^{2}#GT","#LT#LT4#GT^{2}#GT","#LT#LT6#GT^{2}#GT","#LT#LT8#GT^{2}#GT"}; TString intFlowSquaredCorrelationsProName = "fIntFlowSquaredCorrelationsPro"; intFlowSquaredCorrelationsProName += fAnalysisLabel->Data(); fIntFlowSquaredCorrelationsPro = new TProfile(intFlowSquaredCorrelationsProName.Data(),"Average squared correlations for all events",4,0,4,"s"); fIntFlowSquaredCorrelationsPro->Sumw2(); fIntFlowSquaredCorrelationsPro->SetTickLength(-0.01,"Y"); fIntFlowSquaredCorrelationsPro->SetMarkerStyle(25); fIntFlowSquaredCorrelationsPro->SetLabelSize(0.06); fIntFlowSquaredCorrelationsPro->SetLabelOffset(0.01,"Y"); for(Int_t b=0;b<4;b++) { (fIntFlowSquaredCorrelationsPro->GetXaxis())->SetBinLabel(b+1,squaredCorrelationFlag[b].Data()); } fIntFlowProfiles->Add(fIntFlowSquaredCorrelationsPro); if(fCalculateCumulantsVsM) { for(Int_t ci=0;ci<4;ci++) // correlation index { // average correlations <<2>>, <<4>>, <<6>> and <<8>> versus multiplicity for all events (with wrong errors): TString intFlowCorrelationsVsMProName = "fIntFlowCorrelationsVsMPro"; intFlowCorrelationsVsMProName += fAnalysisLabel->Data(); fIntFlowCorrelationsVsMPro[ci] = new TProfile(Form("%s, %s",intFlowCorrelationsVsMProName.Data(),correlationFlag[ci].Data()), Form("%s vs multiplicity",correlationFlag[ci].Data()), fnBinsMult,fMinMult,fMaxMult,"s"); fIntFlowCorrelationsVsMPro[ci]->Sumw2(); fIntFlowCorrelationsVsMPro[ci]->GetYaxis()->SetTitle(correlationFlag[ci].Data()); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowCorrelationsVsMPro[ci]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowCorrelationsVsMPro[ci]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowCorrelationsVsMPro[ci]->GetXaxis()->SetTitle("# POIs"); } fIntFlowProfiles->Add(fIntFlowCorrelationsVsMPro[ci]); // average squared correlations <<2>^2>, <<4>^2>, <<6>^2> and <<8>^2> versus multiplicity for all events: TString intFlowSquaredCorrelationsVsMProName = "fIntFlowSquaredCorrelationsVsMPro"; intFlowSquaredCorrelationsVsMProName += fAnalysisLabel->Data(); fIntFlowSquaredCorrelationsVsMPro[ci] = new TProfile(Form("%s, %s",intFlowSquaredCorrelationsVsMProName.Data(),squaredCorrelationFlag[ci].Data()), Form("%s vs multiplicity",squaredCorrelationFlag[ci].Data()), fnBinsMult,fMinMult,fMaxMult,"s"); fIntFlowSquaredCorrelationsVsMPro[ci]->Sumw2(); fIntFlowSquaredCorrelationsVsMPro[ci]->GetYaxis()->SetTitle(squaredCorrelationFlag[ci].Data()); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowSquaredCorrelationsVsMPro[ci]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowSquaredCorrelationsVsMPro[ci]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowSquaredCorrelationsVsMPro[ci]->GetXaxis()->SetTitle("# POIs"); } fIntFlowProfiles->Add(fIntFlowSquaredCorrelationsVsMPro[ci]); } // end of for(Int_t ci=0;ci<4;ci++) // correlation index } // end of if(fCalculateCumulantsVsM) // averaged all correlations for all events (with wrong errors!): TString intFlowCorrelationsAllProName = "fIntFlowCorrelationsAllPro"; intFlowCorrelationsAllProName += fAnalysisLabel->Data(); fIntFlowCorrelationsAllPro = new TProfile(intFlowCorrelationsAllProName.Data(),"Average all correlations for all events",64,0,64); fIntFlowCorrelationsAllPro->Sumw2(); fIntFlowCorrelationsAllPro->SetTickLength(-0.01,"Y"); fIntFlowCorrelationsAllPro->SetMarkerStyle(25); fIntFlowCorrelationsAllPro->SetLabelSize(0.03); fIntFlowCorrelationsAllPro->SetLabelOffset(0.01,"Y"); // 2-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(1,"#LT#LT2#GT#GT_{n|n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(2,"#LT#LT2#GT#GT_{2n|2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(3,"#LT#LT2#GT#GT_{3n|3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(4,"#LT#LT2#GT#GT_{4n|4n}"); // 3-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(6,"#LT#LT3#GT#GT_{2n|n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(7,"#LT#LT3#GT#GT_{3n|2n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(8,"#LT#LT3#GT#GT_{4n|2n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(9,"#LT#LT3#GT#GT_{4n|3n,n}"); // 4-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(11,"#LT#LT4#GT#GT_{n,n|n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(12,"#LT#LT4#GT#GT_{2n,n|2n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(13,"#LT#LT4#GT#GT_{2n,2n|2n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(14,"#LT#LT4#GT#GT_{3n|n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(15,"#LT#LT4#GT#GT_{3n,n|3n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(16,"#LT#LT4#GT#GT_{3n,n|2n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(17,"#LT#LT4#GT#GT_{4n|2n,n,n}"); // 5-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(19,"#LT#LT5#GT#GT_{2n,n|n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(20,"#LT#LT5#GT#GT_{2n,2n|2n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(21,"#LT#LT5#GT#GT_{3n,n|2n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(22,"#LT#LT5#GT#GT_{4n|n,n,n,n}"); // 6-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(24,"#LT#LT6#GT#GT_{n,n,n|n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(25,"#LT#LT6#GT#GT_{2n,n,n|2n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(26,"#LT#LT6#GT#GT_{2n,2n|n,n,n,n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(27,"#LT#LT6#GT#GT_{3n,n|n,n,n,n}"); // 7-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(29,"#LT#LT7#GT#GT_{2n,n,n|n,n,n,n}"); // 8-p correlations: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(31,"#LT#LT8#GT#GT_{n,n,n,n|n,n,n,n}"); // EXTRA correlations for v3{5} study: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(33,"#LT#LT4#GT#GT_{4n,2n|3n,3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(34,"#LT#LT5#GT#GT_{3n,3n|2n,2n,2n}"); // EXTRA correlations for Teaney-Yan study: (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(35,"#LT#LT2#GT#GT_{5n|5n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(36,"#LT#LT2#GT#GT_{6n|6n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(37,"#LT#LT3#GT#GT_{5n|3n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(38,"#LT#LT3#GT#GT_{5n|4n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(39,"#LT#LT3#GT#GT_{6n|3n,3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(40,"#LT#LT3#GT#GT_{6n|4n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(41,"#LT#LT3#GT#GT_{6n|5n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(42,"#LT#LT4#GT#GT_{6n|3n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(43,"#LT#LT4#GT#GT_{3n,2n|3n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(44,"#LT#LT4#GT#GT_{4n,1n|3n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(45,"#LT#LT4#GT#GT_{3n,3n|3n,3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(46,"#LT#LT4#GT#GT_{4n,2n|3n,3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(47,"#LT#LT4#GT#GT_{5n,1n|3n,3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(48,"#LT#LT4#GT#GT_{4n,2n|4n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(49,"#LT#LT4#GT#GT_{5n,1n|4n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(50,"#LT#LT4#GT#GT_{5n|3n,1n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(51,"#LT#LT4#GT#GT_{5n|2n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(52,"#LT#LT4#GT#GT_{5n,1n|5n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(53,"#LT#LT5#GT#GT_{3n,3n|3n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(54,"#LT#LT5#GT#GT_{4n,2n|3n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(55,"#LT#LT5#GT#GT_{3n,2n|3n,1n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(56,"#LT#LT5#GT#GT_{3n,2n|2n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(57,"#LT#LT5#GT#GT_{5n,1n|3n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(58,"#LT#LT6#GT#GT_{3n,2n,1n|3n,2n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(59,"#LT#LT4#GT#GT_{6n|4n,1n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(60,"#LT#LT4#GT#GT_{6n|2n,2n,2n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(61,"#LT#LT5#GT#GT_{6n|2n,2n,1n,1n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(62,"#LT#LT5#GT#GT_{4n,1n,1n|3n,3n}"); (fIntFlowCorrelationsAllPro->GetXaxis())->SetBinLabel(63,"#LT#LT6#GT#GT_{3n,3n|2n,2n,1n,1n}"); fIntFlowProfiles->Add(fIntFlowCorrelationsAllPro); // average all correlations versus multiplicity (errors via Sumw2 - to be improved): if(fCalculateAllCorrelationsVsM) { // 2-p correlations vs M: fIntFlowCorrelationsAllVsMPro[0] = new TProfile("two1n1n","#LT#LT2#GT#GT_{n|n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[1] = new TProfile("two2n2n","#LT#LT2#GT#GT_{2n|2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[2] = new TProfile("two3n3n","#LT#LT2#GT#GT_{3n|3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[3] = new TProfile("two4n4n","#LT#LT2#GT#GT_{4n|4n}",fnBinsMult,fMinMult,fMaxMult); // 3-p correlations vs M: fIntFlowCorrelationsAllVsMPro[5] = new TProfile("three2n1n1n","#LT#LT3#GT#GT_{2n|n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[6] = new TProfile("three3n2n1n","#LT#LT3#GT#GT_{3n|2n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[7] = new TProfile("three4n2n2n","#LT#LT3#GT#GT_{4n|2n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[8] = new TProfile("three4n3n1n","#LT#LT3#GT#GT_{4n|3n,n}",fnBinsMult,fMinMult,fMaxMult); // 4-p correlations vs M: fIntFlowCorrelationsAllVsMPro[10] = new TProfile("four1n1n1n1n","#LT#LT4#GT#GT_{n,n|n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[11] = new TProfile("four2n1n2n1n","#LT#LT4#GT#GT_{2n,n|2n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[12] = new TProfile("four2n2n2n2n","#LT#LT4#GT#GT_{2n,2n|2n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[13] = new TProfile("four3n1n1n1n","#LT#LT4#GT#GT_{3n|n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[14] = new TProfile("four3n1n3n1n","#LT#LT4#GT#GT_{3n,n|3n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[15] = new TProfile("four3n1n2n2n","#LT#LT4#GT#GT_{3n,n|2n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[16] = new TProfile("four4n2n1n1n","#LT#LT4#GT#GT_{4n|2n,n,n}",fnBinsMult,fMinMult,fMaxMult); // 5-p correlations vs M: fIntFlowCorrelationsAllVsMPro[18] = new TProfile("five2n1n1n1n1n","#LT#LT5#GT#GT_{2n,n|n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[19] = new TProfile("five2n2n2n1n1n","#LT#LT5#GT#GT_{2n,2n|2n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[20] = new TProfile("five3n1n2n1n1n","#LT#LT5#GT#GT_{3n,n|2n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[21] = new TProfile("five4n1n1n1n1n","#LT#LT5#GT#GT_{4n|n,n,n,n}",fnBinsMult,fMinMult,fMaxMult); // 6-p correlations vs M: fIntFlowCorrelationsAllVsMPro[23] = new TProfile("six1n1n1n1n1n1n","#LT#LT6#GT#GT_{n,n,n|n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[24] = new TProfile("six2n1n1n2n1n1n","#LT#LT6#GT#GT_{2n,n,n|2n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[25] = new TProfile("six2n2n1n1n1n1n","#LT#LT6#GT#GT_{2n,2n|n,n,n,n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[26] = new TProfile("six3n1n1n1n1n1n","#LT#LT6#GT#GT_{3n,n|n,n,n,n}",fnBinsMult,fMinMult,fMaxMult); // 7-p correlations vs M: fIntFlowCorrelationsAllVsMPro[28] = new TProfile("seven2n1n1n1n1n1n1n","#LT#LT7#GT#GT_{2n,n,n|n,n,n,n}",fnBinsMult,fMinMult,fMaxMult); // 8-p correlations vs M: fIntFlowCorrelationsAllVsMPro[30] = new TProfile("eight1n1n1n1n1n1n1n1n","#LT#LT8#GT#GT_{n,n,n,n|n,n,n,n}",fnBinsMult,fMinMult,fMaxMult); // EXTRA correlations vs M for v3{5} study (to be improved - put them in a right order somewhere): fIntFlowCorrelationsAllVsMPro[32] = new TProfile("four4n2n3n3n","#LT#LT4#GT#GT_{4n,2n|3n,3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[33] = new TProfile("five3n3n2n2n2n","#LT#LT5#GT#GT_{3n,3n|2n,2n,2n}",fnBinsMult,fMinMult,fMaxMult); // EXTRA correlations vs M for Teaney-Yan study (to be improved - put them in a right order somewhere): fIntFlowCorrelationsAllVsMPro[34] = new TProfile("two5n5n","#LT#LT2#GT#GT_{5n|5n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[35] = new TProfile("two6n6n","#LT#LT2#GT#GT_{6n|6n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[36] = new TProfile("three5n3n2n","#LT#LT3#GT#GT_{5n|3n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[37] = new TProfile("three5n4n1n","#LT#LT3#GT#GT_{5n|4n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[38] = new TProfile("three6n3n3n","#LT#LT3#GT#GT_{6n|3n,3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[39] = new TProfile("three6n4n2n","#LT#LT3#GT#GT_{6n|4n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[40] = new TProfile("three6n5n1n","#LT#LT3#GT#GT_{6n|5n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[41] = new TProfile("four6n3n2n1n","#LT#LT4#GT#GT_{6n|3n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[42] = new TProfile("four3n2n3n2n","#LT#LT4#GT#GT_{3n,2n|3n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[43] = new TProfile("four4n1n3n2n","#LT#LT4#GT#GT_{4n,1n|3n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[44] = new TProfile("four3n3n3n3n","#LT#LT4#GT#GT_{3n,3n|3n,3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[45] = new TProfile("four4n2n3n3n","#LT#LT4#GT#GT_{4n,2n|3n,3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[46] = new TProfile("four5n1n3n3n","#LT#LT4#GT#GT_{5n,1n|3n,3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[47] = new TProfile("four4n2n4n2n","#LT#LT4#GT#GT_{4n,2n|4n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[48] = new TProfile("four5n1n4n2n","#LT#LT4#GT#GT_{5n,1n|4n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[49] = new TProfile("four5n3n1n1n","#LT#LT4#GT#GT_{5n|3n,1n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[50] = new TProfile("four5n2n2n1n","#LT#LT4#GT#GT_{5n|2n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[51] = new TProfile("four5n1n5n1n","#LT#LT4#GT#GT_{5n,1n|5n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[52] = new TProfile("five3n3n3n2n1n","#LT#LT5#GT#GT_{3n,3n|3n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[53] = new TProfile("five4n2n3n2n1n","#LT#LT5#GT#GT_{4n,2n|3n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[54] = new TProfile("five3n2n3n1n1n","#LT#LT5#GT#GT_{3n,2n|3n,1n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[55] = new TProfile("five3n2n2n2n1n","#LT#LT5#GT#GT_{3n,2n|2n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[56] = new TProfile("five5n1n3n2n1n","#LT#LT5#GT#GT_{5n,1n|3n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[57] = new TProfile("six3n2n1n3n2n1n","#LT#LT6#GT#GT_{3n,2n,1n|3n,2n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[58] = new TProfile("four6n4n1n1n","#LT#LT4#GT#GT_{6n|4n,1n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[59] = new TProfile("four6n2n2n2n","#LT#LT4#GT#GT_{6n|2n,2n,2n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[60] = new TProfile("five6n2n2n1n1n","#LT#LT5#GT#GT_{6n|2n,2n,1n,1n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[61] = new TProfile("five4n1n1n3n3n","#LT#LT5#GT#GT_{4n,1n,1n|3n,3n}",fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsAllVsMPro[62] = new TProfile("six3n3n2n2n1n1n","#LT#LT6#GT#GT_{3n,3n|2n,2n,1n,1n}",fnBinsMult,fMinMult,fMaxMult); for(Int_t n=0;n<63;n++) { if(fIntFlowCorrelationsAllVsMPro[n]) { fIntFlowCorrelationsAllVsMPro[n]->Sumw2(); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowCorrelationsAllVsMPro[n]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowCorrelationsAllVsMPro[n]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowCorrelationsAllVsMPro[n]->GetXaxis()->SetTitle("# POIs"); } fIntFlowAllCorrelationsVsM->Add(fIntFlowCorrelationsAllVsMPro[n]); } // end of if(fIntFlowCorrelationsAllVsMPro[n]) } // end of for(Int_t n=0;n<63;n++) } // end of if(fCalculateAllCorrelationsVsM) // when particle weights are used some extra correlations appear: if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) { TString intFlowExtraCorrelationsProName = "fIntFlowExtraCorrelationsPro"; intFlowExtraCorrelationsProName += fAnalysisLabel->Data(); fIntFlowExtraCorrelationsPro = new TProfile(intFlowExtraCorrelationsProName.Data(),"Average extra correlations for all events",100,0,100,"s"); fIntFlowExtraCorrelationsPro->SetTickLength(-0.01,"Y"); fIntFlowExtraCorrelationsPro->SetMarkerStyle(25); fIntFlowExtraCorrelationsPro->SetLabelSize(0.03); fIntFlowExtraCorrelationsPro->SetLabelOffset(0.01,"Y"); // extra 2-p correlations: (fIntFlowExtraCorrelationsPro->GetXaxis())->SetBinLabel(1,"<>"); (fIntFlowExtraCorrelationsPro->GetXaxis())->SetBinLabel(2,"<>"); fIntFlowProfiles->Add(fIntFlowExtraCorrelationsPro); } // end of if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) // average product of correlations <2>, <4>, <6> and <8>: TString productFlag[6] = {"#LT#LT2#GT#LT4#GT#GT","#LT#LT2#GT#LT6#GT#GT","#LT#LT2#GT#LT8#GT#GT", "#LT#LT4#GT#LT6#GT#GT","#LT#LT4#GT#LT8#GT#GT","#LT#LT6#GT#LT8#GT#GT"}; TString intFlowProductOfCorrelationsProName = "fIntFlowProductOfCorrelationsPro"; intFlowProductOfCorrelationsProName += fAnalysisLabel->Data(); fIntFlowProductOfCorrelationsPro = new TProfile(intFlowProductOfCorrelationsProName.Data(),"Average products of correlations",6,0,6); fIntFlowProductOfCorrelationsPro->SetTickLength(-0.01,"Y"); fIntFlowProductOfCorrelationsPro->SetMarkerStyle(25); fIntFlowProductOfCorrelationsPro->SetLabelSize(0.05); fIntFlowProductOfCorrelationsPro->SetLabelOffset(0.01,"Y"); for(Int_t b=0;b<6;b++) { (fIntFlowProductOfCorrelationsPro->GetXaxis())->SetBinLabel(b+1,productFlag[b].Data()); } fIntFlowProfiles->Add(fIntFlowProductOfCorrelationsPro); // average product of correlations <2>, <4>, <6> and <8> versus multiplicity // [0=<<2><4>>,1=<<2><6>>,2=<<2><8>>,3=<<4><6>>,4=<<4><8>>,5=<<6><8>>] if(fCalculateCumulantsVsM) { TString intFlowProductOfCorrelationsVsMProName = "fIntFlowProductOfCorrelationsVsMPro"; intFlowProductOfCorrelationsVsMProName += fAnalysisLabel->Data(); for(Int_t pi=0;pi<6;pi++) { fIntFlowProductOfCorrelationsVsMPro[pi] = new TProfile(Form("%s, %s",intFlowProductOfCorrelationsVsMProName.Data(),productFlag[pi].Data()), Form("%s versus multiplicity",productFlag[pi].Data()), fnBinsMult,fMinMult,fMaxMult); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowProductOfCorrelationsVsMPro[pi]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowProductOfCorrelationsVsMPro[pi]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowProductOfCorrelationsVsMPro[pi]->GetXaxis()->SetTitle("# POIs"); } fIntFlowProfiles->Add(fIntFlowProductOfCorrelationsVsMPro[pi]); } // end of for(Int_t pi=0;pi<6;pi++) } // end of if(fCalculateCumulantsVsM) // average product of correction terms for NUA: TString intFlowProductOfCorrectionTermsForNUAProName = "fIntFlowProductOfCorrectionTermsForNUAPro"; intFlowProductOfCorrectionTermsForNUAProName += fAnalysisLabel->Data(); fIntFlowProductOfCorrectionTermsForNUAPro = new TProfile(intFlowProductOfCorrectionTermsForNUAProName.Data(),"Average products of correction terms for NUA",27,0,27); fIntFlowProductOfCorrectionTermsForNUAPro->SetTickLength(-0.01,"Y"); fIntFlowProductOfCorrectionTermsForNUAPro->SetMarkerStyle(25); fIntFlowProductOfCorrectionTermsForNUAPro->SetLabelSize(0.03); fIntFlowProductOfCorrectionTermsForNUAPro->SetLabelOffset(0.01,"Y"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(1,"<<2>>"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(2,"<<2>>"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(3,"<>"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(4,"Cov(<2>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(5,"Cov(<2>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(6,"Cov(<2>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(7,"Cov(<2>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(8,"Cov(<4>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(9,"Cov(<4>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(10,"Cov(<4>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(11,"Cov(<4>,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(12,"Cov(<4>,>)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(13,"Cov(<4>,>)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(14,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(15,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(16,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(17,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(18,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(19,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(20,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(21,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(22,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(23,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(24,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(25,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(26,"Cov(,)"); (fIntFlowProductOfCorrectionTermsForNUAPro->GetXaxis())->SetBinLabel(27,"Cov(,)"); fIntFlowProfiles->Add(fIntFlowProductOfCorrectionTermsForNUAPro); // average correction terms for non-uniform acceptance (with wrong errors!): for(Int_t sc=0;sc<2;sc++) // sin or cos terms { TString intFlowCorrectionTermsForNUAProName = "fIntFlowCorrectionTermsForNUAPro"; intFlowCorrectionTermsForNUAProName += fAnalysisLabel->Data(); fIntFlowCorrectionTermsForNUAPro[sc] = new TProfile(Form("%s: %s terms",intFlowCorrectionTermsForNUAProName.Data(),sinCosFlag[sc].Data()),Form("Correction terms for non-uniform acceptance (%s terms)",sinCosFlag[sc].Data()),4,0,4,"s"); fIntFlowCorrectionTermsForNUAPro[sc]->SetTickLength(-0.01,"Y"); fIntFlowCorrectionTermsForNUAPro[sc]->SetMarkerStyle(25); fIntFlowCorrectionTermsForNUAPro[sc]->SetLabelSize(0.05); fIntFlowCorrectionTermsForNUAPro[sc]->SetLabelOffset(0.01,"Y"); (fIntFlowCorrectionTermsForNUAPro[sc]->GetXaxis())->SetBinLabel(1,Form("#LT#LT%s(n(#phi_{1}))#GT#GT",sinCosFlag[sc].Data())); (fIntFlowCorrectionTermsForNUAPro[sc]->GetXaxis())->SetBinLabel(2,Form("#LT#LT%s(n(#phi_{1}+#phi_{2}))#GT#GT",sinCosFlag[sc].Data())); (fIntFlowCorrectionTermsForNUAPro[sc]->GetXaxis())->SetBinLabel(3,Form("#LT#LT%s(n(#phi_{1}-#phi_{2}-#phi_{3}))#GT#GT",sinCosFlag[sc].Data())); (fIntFlowCorrectionTermsForNUAPro[sc]->GetXaxis())->SetBinLabel(4,Form("#LT#LT%s(n(2#phi_{1}-#phi_{2}))#GT#GT",sinCosFlag[sc].Data())); fIntFlowProfiles->Add(fIntFlowCorrectionTermsForNUAPro[sc]); // versus multiplicity: if(fCalculateCumulantsVsM) { TString correctionTermFlag[4] = {"(n(phi1))","(n(phi1+phi2))","(n(phi1-phi2-phi3))","(n(2phi1-phi2))"}; // to be improved - hardwired 4 for(Int_t ci=0;ci<4;ci++) // correction term index (to be improved - hardwired 4) { TString intFlowCorrectionTermsForNUAVsMProName = "fIntFlowCorrectionTermsForNUAVsMPro"; intFlowCorrectionTermsForNUAVsMProName += fAnalysisLabel->Data(); fIntFlowCorrectionTermsForNUAVsMPro[sc][ci] = new TProfile(Form("%s: #LT#LT%s%s#GT#GT",intFlowCorrectionTermsForNUAVsMProName.Data(),sinCosFlag[sc].Data(),correctionTermFlag[ci].Data()),Form("#LT#LT%s%s#GT#GT vs M",sinCosFlag[sc].Data(),correctionTermFlag[ci].Data()),fnBinsMult,fMinMult,fMaxMult,"s"); fIntFlowProfiles->Add(fIntFlowCorrectionTermsForNUAVsMPro[sc][ci]); } } // end of if(fCalculateCumulantsVsM) } // end of for(Int_t sc=0;sc<2;sc++) // d) Book histograms holding the final results: // average correlations <<2>>, <<4>>, <<6>> and <<8>> for all events (with correct errors!): TString intFlowCorrelationsHistName = "fIntFlowCorrelationsHist"; intFlowCorrelationsHistName += fAnalysisLabel->Data(); fIntFlowCorrelationsHist = new TH1D(intFlowCorrelationsHistName.Data(),"Average correlations for all events",4,0,4); fIntFlowCorrelationsHist->SetTickLength(-0.01,"Y"); fIntFlowCorrelationsHist->SetMarkerStyle(25); fIntFlowCorrelationsHist->SetLabelSize(0.06); fIntFlowCorrelationsHist->SetLabelOffset(0.01,"Y"); (fIntFlowCorrelationsHist->GetXaxis())->SetBinLabel(1,"#LT#LT2#GT#GT"); (fIntFlowCorrelationsHist->GetXaxis())->SetBinLabel(2,"#LT#LT4#GT#GT"); (fIntFlowCorrelationsHist->GetXaxis())->SetBinLabel(3,"#LT#LT6#GT#GT"); (fIntFlowCorrelationsHist->GetXaxis())->SetBinLabel(4,"#LT#LT8#GT#GT"); fIntFlowResults->Add(fIntFlowCorrelationsHist); // average correlations <<2>>, <<4>>, <<6>> and <<8>> for all events (with correct errors!) vs M: if(fCalculateCumulantsVsM) { for(Int_t ci=0;ci<4;ci++) // correlation index { TString intFlowCorrelationsVsMHistName = "fIntFlowCorrelationsVsMHist"; intFlowCorrelationsVsMHistName += fAnalysisLabel->Data(); fIntFlowCorrelationsVsMHist[ci] = new TH1D(Form("%s, %s",intFlowCorrelationsVsMHistName.Data(),correlationFlag[ci].Data()), Form("%s vs multiplicity",correlationFlag[ci].Data()), fnBinsMult,fMinMult,fMaxMult); fIntFlowCorrelationsVsMHist[ci]->GetYaxis()->SetTitle(correlationFlag[ci].Data()); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowCorrelationsVsMHist[ci]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowCorrelationsVsMHist[ci]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowCorrelationsVsMHist[ci]->GetXaxis()->SetTitle("# POIs"); } fIntFlowResults->Add(fIntFlowCorrelationsVsMHist[ci]); } // end of for(Int_t ci=0;ci<4;ci++) // correlation index } // end of if(fCalculateCumulantsVsM) // average all correlations for all events (with correct errors!): TString intFlowCorrelationsAllHistName = "fIntFlowCorrelationsAllHist"; intFlowCorrelationsAllHistName += fAnalysisLabel->Data(); fIntFlowCorrelationsAllHist = new TH1D(intFlowCorrelationsAllHistName.Data(),"Average correlations for all events",34,0,34); fIntFlowCorrelationsAllHist->SetTickLength(-0.01,"Y"); fIntFlowCorrelationsAllHist->SetMarkerStyle(25); fIntFlowCorrelationsAllHist->SetLabelSize(0.03); fIntFlowCorrelationsAllHist->SetLabelOffset(0.01,"Y"); // 2-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(1,"<<2>>_{n|n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(2,"<<2>>_{2n|2n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(3,"<<2>>_{3n|3n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(4,"<<2>>_{4n|4n}"); // 3-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(6,"<<3>>_{2n|n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(7,"<<3>>_{3n|2n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(8,"<<3>>_{4n|2n,2n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(9,"<<3>>_{4n|3n,n}"); // 4-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(11,"<<4>>_{n,n|n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(12,"<<4>>_{2n,n|2n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(13,"<<4>>_{2n,2n|2n,2n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(14,"<<4>>_{3n|n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(15,"<<4>>_{3n,n|3n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(16,"<<4>>_{3n,n|2n,2n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(17,"<<4>>_{4n|2n,n,n}"); // 5-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(19,"<<5>>_{2n|n,n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(20,"<<5>>_{2n,2n|2n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(21,"<<5>>_{3n,n|2n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(22,"<<5>>_{4n|n,n,n,n}"); // 6-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(24,"<<6>>_{n,n,n|n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(25,"<<6>>_{2n,n,n|2n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(26,"<<6>>_{2n,2n|n,n,n,n}"); (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(27,"<<6>>_{3n,n|n,n,n,n}"); // 7-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(29,"<<7>>_{2n,n,n|n,n,n,n}"); // 8-p correlations: (fIntFlowCorrelationsAllHist->GetXaxis())->SetBinLabel(31,"<<8>>_{n,n,n,n|n,n,n,n}"); fIntFlowResults->Add(fIntFlowCorrelationsAllHist); // average correction terms for non-uniform acceptance (with correct errors!): for(Int_t sc=0;sc<2;sc++) // sin or cos terms { TString intFlowCorrectionTermsForNUAHistName = "fIntFlowCorrectionTermsForNUAHist"; intFlowCorrectionTermsForNUAHistName += fAnalysisLabel->Data(); fIntFlowCorrectionTermsForNUAHist[sc] = new TH1D(Form("%s: %s terms",intFlowCorrectionTermsForNUAHistName.Data(),sinCosFlag[sc].Data()),Form("Correction terms for non-uniform acceptance (%s terms)",sinCosFlag[sc].Data()),4,0,4); fIntFlowCorrectionTermsForNUAHist[sc]->SetTickLength(-0.01,"Y"); fIntFlowCorrectionTermsForNUAHist[sc]->SetMarkerStyle(25); fIntFlowCorrectionTermsForNUAHist[sc]->SetLabelSize(0.05); fIntFlowCorrectionTermsForNUAHist[sc]->SetLabelOffset(0.01,"Y"); (fIntFlowCorrectionTermsForNUAHist[sc]->GetXaxis())->SetBinLabel(1,Form("#LT#LT%s(n(#phi_{1}))#GT#GT",sinCosFlag[sc].Data())); (fIntFlowCorrectionTermsForNUAHist[sc]->GetXaxis())->SetBinLabel(2,Form("#LT#LT%s(n(#phi_{1}+#phi_{2}))#GT#GT",sinCosFlag[sc].Data())); (fIntFlowCorrectionTermsForNUAHist[sc]->GetXaxis())->SetBinLabel(3,Form("#LT#LT%s(n(#phi_{1}-#phi_{2}-#phi_{3}))#GT#GT",sinCosFlag[sc].Data())); (fIntFlowCorrectionTermsForNUAHist[sc]->GetXaxis())->SetBinLabel(4,Form("#LT#LT%s(n(2#phi_{1}-#phi_{2}))#GT#GT",sinCosFlag[sc].Data())); fIntFlowResults->Add(fIntFlowCorrectionTermsForNUAHist[sc]); } // end of for(Int_t sc=0;sc<2;sc++) // covariances (multiplied with weight dependent prefactor): TString intFlowCovariancesName = "fIntFlowCovariances"; intFlowCovariancesName += fAnalysisLabel->Data(); fIntFlowCovariances = new TH1D(intFlowCovariancesName.Data(),"Covariances (multiplied with weight dependent prefactor)",6,0,6); fIntFlowCovariances->SetLabelSize(0.04); fIntFlowCovariances->SetMarkerStyle(25); (fIntFlowCovariances->GetXaxis())->SetBinLabel(1,"Cov(#LT2#GT,#LT4#GT)"); (fIntFlowCovariances->GetXaxis())->SetBinLabel(2,"Cov(#LT2#GT,#LT6#GT)"); (fIntFlowCovariances->GetXaxis())->SetBinLabel(3,"Cov(#LT2#GT,#LT8#GT)"); (fIntFlowCovariances->GetXaxis())->SetBinLabel(4,"Cov(#LT4#GT,#LT6#GT)"); (fIntFlowCovariances->GetXaxis())->SetBinLabel(5,"Cov(#LT4#GT,#LT8#GT)"); (fIntFlowCovariances->GetXaxis())->SetBinLabel(6,"Cov(#LT6#GT,#LT8#GT)"); fIntFlowResults->Add(fIntFlowCovariances); // sum of linear and quadratic event weights for <2>, <4>, <6> and <8>: TString intFlowSumOfEventWeightsName = "fIntFlowSumOfEventWeights"; intFlowSumOfEventWeightsName += fAnalysisLabel->Data(); for(Int_t power=0;power<2;power++) { fIntFlowSumOfEventWeights[power] = new TH1D(Form("%s: %s",intFlowSumOfEventWeightsName.Data(),powerFlag[power].Data()),Form("Sum of %s event weights for correlations",powerFlag[power].Data()),4,0,4); fIntFlowSumOfEventWeights[power]->SetLabelSize(0.04); fIntFlowSumOfEventWeights[power]->SetMarkerStyle(25); if(power == 0) { (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(1,"#sum_{i=1}^{N} w_{#LT2#GT}"); (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(2,"#sum_{i=1}^{N} w_{#LT4#GT}"); (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(3,"#sum_{i=1}^{N} w_{#LT6#GT}"); (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(4,"#sum_{i=1}^{N} w_{#LT8#GT}"); } else if (power == 1) { (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(1,"#sum_{i=1}^{N} w_{#LT2#GT}^{2}"); (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(2,"#sum_{i=1}^{N} w_{#LT4#GT}^{2}"); (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(3,"#sum_{i=1}^{N} w_{#LT6#GT}^{2}"); (fIntFlowSumOfEventWeights[power]->GetXaxis())->SetBinLabel(4,"#sum_{i=1}^{N} w_{#LT8#GT}^{2}"); } fIntFlowResults->Add(fIntFlowSumOfEventWeights[power]); } // sum of products of event weights for correlations <2>, <4>, <6> and <8>: TString intFlowSumOfProductOfEventWeightsName = "fIntFlowSumOfProductOfEventWeights"; intFlowSumOfProductOfEventWeightsName += fAnalysisLabel->Data(); fIntFlowSumOfProductOfEventWeights = new TH1D(intFlowSumOfProductOfEventWeightsName.Data(),"Sum of product of event weights for correlations",6,0,6); fIntFlowSumOfProductOfEventWeights->SetLabelSize(0.04); fIntFlowSumOfProductOfEventWeights->SetMarkerStyle(25); (fIntFlowSumOfProductOfEventWeights->GetXaxis())->SetBinLabel(1,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LT4#GT}"); (fIntFlowSumOfProductOfEventWeights->GetXaxis())->SetBinLabel(2,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LT6#GT}"); (fIntFlowSumOfProductOfEventWeights->GetXaxis())->SetBinLabel(3,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LT8#GT}"); (fIntFlowSumOfProductOfEventWeights->GetXaxis())->SetBinLabel(4,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LT6#GT}"); (fIntFlowSumOfProductOfEventWeights->GetXaxis())->SetBinLabel(5,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LT8#GT}"); (fIntFlowSumOfProductOfEventWeights->GetXaxis())->SetBinLabel(6,"#sum_{i=1}^{N} w_{#LT6#GT} w_{#LT8#GT}"); fIntFlowResults->Add(fIntFlowSumOfProductOfEventWeights); // final result for covariances of correlations (multiplied with weight dependent prefactor) versus M // [0=Cov(2,4),1=Cov(2,6),2=Cov(2,8),3=Cov(4,6),4=Cov(4,8),5=Cov(6,8)]: if(fCalculateCumulantsVsM) { TString intFlowCovariancesVsMName = "fIntFlowCovariancesVsM"; intFlowCovariancesVsMName += fAnalysisLabel->Data(); TString covarianceFlag[6] = {"Cov(<2>,<4>)","Cov(<2>,<6>)","Cov(<2>,<8>)","Cov(<4>,<6>)","Cov(<4>,<8>)","Cov(<6>,<8>)"}; for(Int_t ci=0;ci<6;ci++) { fIntFlowCovariancesVsM[ci] = new TH1D(Form("%s, %s",intFlowCovariancesVsMName.Data(),covarianceFlag[ci].Data()), Form("%s vs multiplicity",covarianceFlag[ci].Data()), fnBinsMult,fMinMult,fMaxMult); fIntFlowCovariancesVsM[ci]->GetYaxis()->SetTitle(covarianceFlag[ci].Data()); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowCovariancesVsM[ci]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowCovariancesVsM[ci]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowCovariancesVsM[ci]->GetXaxis()->SetTitle("# POIs"); } fIntFlowResults->Add(fIntFlowCovariancesVsM[ci]); } } // end of if(fCalculateCumulantsVsM) // sum of linear and quadratic event weights for <2>, <4>, <6> and <8> versus multiplicity // [0=sum{w_{<2>}},1=sum{w_{<4>}},2=sum{w_{<6>}},3=sum{w_{<8>}}][0=linear 1,1=quadratic]: if(fCalculateCumulantsVsM) { TString intFlowSumOfEventWeightsVsMName = "fIntFlowSumOfEventWeightsVsM"; intFlowSumOfEventWeightsVsMName += fAnalysisLabel->Data(); TString sumFlag[2][4] = {{"#sum_{i=1}^{N} w_{<2>}","#sum_{i=1}^{N} w_{<4>}","#sum_{i=1}^{N} w_{<6>}","#sum_{i=1}^{N} w_{<8>}"}, {"#sum_{i=1}^{N} w_{<2>}^{2}","#sum_{i=1}^{N} w_{<4>}^{2}","#sum_{i=1}^{N} w_{<6>}^{2}","#sum_{i=1}^{N} w_{<8>}^{2}"}}; for(Int_t si=0;si<4;si++) { for(Int_t power=0;power<2;power++) { fIntFlowSumOfEventWeightsVsM[si][power] = new TH1D(Form("%s, %s",intFlowSumOfEventWeightsVsMName.Data(),sumFlag[power][si].Data()), Form("%s vs multiplicity",sumFlag[power][si].Data()), fnBinsMult,fMinMult,fMaxMult); fIntFlowSumOfEventWeightsVsM[si][power]->GetYaxis()->SetTitle(sumFlag[power][si].Data()); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowSumOfEventWeightsVsM[si][power]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowSumOfEventWeightsVsM[si][power]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowSumOfEventWeightsVsM[si][power]->GetXaxis()->SetTitle("# POIs"); } fIntFlowResults->Add(fIntFlowSumOfEventWeightsVsM[si][power]); } // end of for(Int_t power=0;power<2;power++) } // end of for(Int_t si=0;si<4;si++) } // end of if(fCalculateCumulantsVsM) // sum of products of event weights for correlations <2>, <4>, <6> and <8> vs M // [0=sum{w_{<2>}w_{<4>}},1=sum{w_{<2>}w_{<6>}},2=sum{w_{<2>}w_{<8>}}, // 3=sum{w_{<4>}w_{<6>}},4=sum{w_{<4>}w_{<8>}},5=sum{w_{<6>}w_{<8>}}]: if(fCalculateCumulantsVsM) { TString intFlowSumOfProductOfEventWeightsVsMName = "fIntFlowSumOfProductOfEventWeightsVsM"; intFlowSumOfProductOfEventWeightsVsMName += fAnalysisLabel->Data(); TString sopowFlag[6] = {"#sum_{i=1}^{N} w_{<2>} w_{<4>}","#sum_{i=1}^{N} w_{<2>} w_{<6>}","#sum_{i=1}^{N} w_{<2>} w_{<8>}", "#sum_{i=1}^{N} w_{<4>} w_{<6>}","#sum_{i=1}^{N} w_{<4>} w_{<8>}","#sum_{i=1}^{N} w_{<6>} w_{<8>}"}; for(Int_t pi=0;pi<6;pi++) { fIntFlowSumOfProductOfEventWeightsVsM[pi] = new TH1D(Form("%s, %s",intFlowSumOfProductOfEventWeightsVsMName.Data(),sopowFlag[pi].Data()), Form("%s versus multiplicity",sopowFlag[pi].Data()), fnBinsMult,fMinMult,fMaxMult); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowSumOfProductOfEventWeightsVsM[pi]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowSumOfProductOfEventWeightsVsM[pi]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowSumOfProductOfEventWeightsVsM[pi]->GetXaxis()->SetTitle("# POIs"); } fIntFlowSumOfProductOfEventWeightsVsM[pi]->GetYaxis()->SetTitle(sopowFlag[pi].Data()); fIntFlowResults->Add(fIntFlowSumOfProductOfEventWeightsVsM[pi]); } // end of for(Int_t pi=0;pi<6;pi++) } // end of if(fCalculateCumulantsVsM) // covariances of NUA terms (multiplied with weight dependent prefactor): TString intFlowCovariancesNUAName = "fIntFlowCovariancesNUA"; intFlowCovariancesNUAName += fAnalysisLabel->Data(); fIntFlowCovariancesNUA = new TH1D(intFlowCovariancesNUAName.Data(),"Covariances for NUA (multiplied with weight dependent prefactor)",27,0,27); fIntFlowCovariancesNUA->SetLabelSize(0.04); fIntFlowCovariancesNUA->SetMarkerStyle(25); fIntFlowCovariancesNUA->GetXaxis()->SetLabelSize(0.02); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(1,"Cov(<2>,"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(2,"Cov(<2>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(3,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(4,"Cov(<2>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(5,"Cov(<2>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(6,"Cov(<2>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(7,"Cov(<2>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(8,"Cov(<4>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(9,"Cov(<4>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(10,"Cov(<4>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(11,"Cov(<4>,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(12,"Cov(<4>,>)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(13,"Cov(<4>,>)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(14,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(15,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(16,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(17,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(18,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(19,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(20,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(21,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(22,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(23,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(24,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(25,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(26,"Cov(,)"); (fIntFlowCovariancesNUA->GetXaxis())->SetBinLabel(27,"Cov(,)"); fIntFlowResults->Add(fIntFlowCovariancesNUA); // sum of linear and quadratic event weights for NUA terms: TString intFlowSumOfEventWeightsNUAName = "fIntFlowSumOfEventWeightsNUA"; intFlowSumOfEventWeightsNUAName += fAnalysisLabel->Data(); for(Int_t sc=0;sc<2;sc++) { for(Int_t power=0;power<2;power++) { fIntFlowSumOfEventWeightsNUA[sc][power] = new TH1D(Form("%s: %s, %s",intFlowSumOfEventWeightsNUAName.Data(),powerFlag[power].Data(),sinCosFlag[sc].Data()),Form("Sum of %s event weights for NUA %s terms",powerFlag[power].Data(),sinCosFlag[sc].Data()),4,0,4); // to be improved - 4 fIntFlowSumOfEventWeightsNUA[sc][power]->SetLabelSize(0.05); fIntFlowSumOfEventWeightsNUA[sc][power]->SetMarkerStyle(25); if(power == 0) { (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(1,Form("#sum_{i=1}^{N} w_{<%s(#phi)>}",sinCosFlag[sc].Data())); (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(2,Form("#sum_{i=1}^{N} w_{<%s(#phi_{1}+#phi_{2})>}",sinCosFlag[sc].Data())); (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(3,Form("#sum_{i=1}^{N} w_{<%s(#phi_{1}-#phi_{2}-#phi_{3})>}",sinCosFlag[sc].Data())); (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(4,Form("#sum_{i=1}^{N} w_{<%s(2#phi_{1}-#phi_{2})>}",sinCosFlag[sc].Data())); } else if(power == 1) { (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(1,Form("#sum_{i=1}^{N} w_{<%s(#phi)>}^{2}",sinCosFlag[sc].Data())); (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(2,Form("#sum_{i=1}^{N} w_{<%s(#phi_{1}+#phi_{2})>}^{2}",sinCosFlag[sc].Data())); (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(3,Form("#sum_{i=1}^{N} w_{<%s(#phi_{1}-#phi_{2}-#phi_{3})>}^{2}",sinCosFlag[sc].Data())); (fIntFlowSumOfEventWeightsNUA[sc][power]->GetXaxis())->SetBinLabel(4,Form("#sum_{i=1}^{N} w_{<%s(2#phi_{1}-#phi_{2})>}^{2}",sinCosFlag[sc].Data())); } fIntFlowResults->Add(fIntFlowSumOfEventWeightsNUA[sc][power]); } } // sum of products of event weights for NUA terms: TString intFlowSumOfProductOfEventWeightsNUAName = "fIntFlowSumOfProductOfEventWeightsNUA"; intFlowSumOfProductOfEventWeightsNUAName += fAnalysisLabel->Data(); fIntFlowSumOfProductOfEventWeightsNUA = new TH1D(intFlowSumOfProductOfEventWeightsNUAName.Data(),"Sum of product of event weights for NUA terms",27,0,27); fIntFlowSumOfProductOfEventWeightsNUA->SetLabelSize(0.02); fIntFlowSumOfProductOfEventWeightsNUA->SetMarkerStyle(25); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(1,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LTcos(#phi)#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(2,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LTsin(#phi)#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(3,"#sum_{i=1}^{N} w_{#LTcos(#phi)#GT} w_{#LTsin(#phi)#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(4,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LTcos(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(5,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LTsin(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(6,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(7,"#sum_{i=1}^{N} w_{#LT2#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(8,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LTcos(#phi)#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(9,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LTsin(#phi)#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(10,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LTcos(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(11,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LTsin(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(12,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(13,"#sum_{i=1}^{N} w_{#LT4#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(14,"#sum_{i=1}^{N} w_{#LTcos(#phi)#GT} w_{#LTcos(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(15,"#sum_{i=1}^{N} w_{#LTcos(#phi)#GT} w_{#LTsin(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(16,"#sum_{i=1}^{N} w_{#LTcos(#phi)#GT} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(17,"#sum_{i=1}^{N} w_{#LTcos(#phi)#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(18,"#sum_{i=1}^{N} w_{#LTsin(#phi)#GT} w_{#LTcos(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(19,"#sum_{i=1}^{N} w_{#LTsin(#phi)#GT} w_{#LTsin(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(20,"#sum_{i=1}^{N} w_{#LTsin(#phi)#GT} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(21,"#sum_{i=1}^{N} w_{#LTsin(#phi)#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(22,"#sum_{i=1}^{N} w_{#LTcos(#phi_{1}+#phi_{2})#GT} w_{#LTsin(#phi_{1}+#phi_{2})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(23,"#sum_{i=1}^{N} w_{#LTcos(#phi_{1}+#phi_{2})#GT} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(24,"#sum_{i=1}^{N} w_{#LTcos(#phi_{1}+#phi_{2})#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(25,"#sum_{i=1}^{N} w_{#LTsin(#phi_{1}+#phi_{2})#GT} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(26,"#sum_{i=1}^{N} w_{#LTsin(#phi_{1}+#phi_{2})#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); (fIntFlowSumOfProductOfEventWeightsNUA->GetXaxis())->SetBinLabel(27,"#sum_{i=1}^{N} w_{#LTcos(#phi_{1}-#phi_{2}-#phi_{3})#GT} w_{#LTsin(#phi_{1}-#phi_{2}-#phi_{3})#GT}"); fIntFlowResults->Add(fIntFlowSumOfProductOfEventWeightsNUA); // Final results for reference Q-cumulants: TString cumulantFlag[4] = {"QC{2}","QC{4}","QC{6}","QC{8}"}; TString intFlowQcumulantsName = "fIntFlowQcumulants"; intFlowQcumulantsName += fAnalysisLabel->Data(); fIntFlowQcumulants = new TH1D(intFlowQcumulantsName.Data(),"Reference Q-cumulants",4,0,4); if(fPropagateErrorAlsoFromNIT) { fIntFlowQcumulants->SetTitle("Reference Q-cumulants (error from non-isotropic terms also propagated)"); } fIntFlowQcumulants->SetLabelSize(0.05); fIntFlowQcumulants->SetMarkerStyle(25); for(Int_t b=0;b<4;b++) { (fIntFlowQcumulants->GetXaxis())->SetBinLabel(b+1,cumulantFlag[b].Data()); } fIntFlowResults->Add(fIntFlowQcumulants); // Final results for reference Q-cumulants rebinned in M: if(fCalculateCumulantsVsM) { TString intFlowQcumulantsRebinnedInMName = "fIntFlowQcumulantsRebinnedInM"; intFlowQcumulantsRebinnedInMName += fAnalysisLabel->Data(); fIntFlowQcumulantsRebinnedInM = new TH1D(intFlowQcumulantsRebinnedInMName.Data(),"Reference Q-cumulants rebinned in M",4,0,4); fIntFlowQcumulantsRebinnedInM->SetLabelSize(0.05); fIntFlowQcumulantsRebinnedInM->SetMarkerStyle(25); for(Int_t b=0;b<4;b++) { (fIntFlowQcumulantsRebinnedInM->GetXaxis())->SetBinLabel(b+1,cumulantFlag[b].Data()); } fIntFlowResults->Add(fIntFlowQcumulantsRebinnedInM); } // end of if(fCalculateCumulantsVsM) // Ratio between error squared: with/without non-isotropic terms: TString intFlowQcumulantsErrorSquaredRatioName = "fIntFlowQcumulantsErrorSquaredRatio"; intFlowQcumulantsErrorSquaredRatioName += fAnalysisLabel->Data(); fIntFlowQcumulantsErrorSquaredRatio = new TH1D(intFlowQcumulantsErrorSquaredRatioName.Data(),"Error squared of reference Q-cumulants: #frac{with NUA terms}{without NUA terms}",4,0,4); fIntFlowQcumulantsErrorSquaredRatio->SetLabelSize(0.05); fIntFlowQcumulantsErrorSquaredRatio->SetMarkerStyle(25); for(Int_t b=0;b<4;b++) { (fIntFlowQcumulantsErrorSquaredRatio->GetXaxis())->SetBinLabel(b+1,cumulantFlag[b].Data()); } fIntFlowResults->Add(fIntFlowQcumulantsErrorSquaredRatio); // final results for integrated Q-cumulants versus multiplicity: if(fCalculateCumulantsVsM) { TString intFlowQcumulantsVsMName = "fIntFlowQcumulantsVsM"; intFlowQcumulantsVsMName += fAnalysisLabel->Data(); for(Int_t co=0;co<4;co++) // cumulant order { fIntFlowQcumulantsVsM[co] = new TH1D(Form("%s, %s",intFlowQcumulantsVsMName.Data(),cumulantFlag[co].Data()), Form("%s vs multiplicity",cumulantFlag[co].Data()), fnBinsMult,fMinMult,fMaxMult); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowQcumulantsVsM[co]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowQcumulantsVsM[co]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowQcumulantsVsM[co]->GetXaxis()->SetTitle("# POIs"); } fIntFlowQcumulantsVsM[co]->GetYaxis()->SetTitle(cumulantFlag[co].Data()); fIntFlowResults->Add(fIntFlowQcumulantsVsM[co]); } // end of for(Int_t co=0;co<4;co++) // cumulant order } // end of if(fCalculateCumulantsVsM) // final integrated flow estimates from Q-cumulants: TString flowFlag[4] = {Form("v_{%d}{2,QC}",fHarmonic),Form("v_{%d}{4,QC}",fHarmonic),Form("v_{%d}{6,QC}",fHarmonic),Form("v_{%d}{8,QC}",fHarmonic)}; TString intFlowName = "fIntFlow"; intFlowName += fAnalysisLabel->Data(); // integrated flow from Q-cumulants: fIntFlow = new TH1D(intFlowName.Data(),"Reference flow estimates from Q-cumulants",4,0,4); fIntFlow->SetLabelSize(0.05); fIntFlow->SetMarkerStyle(25); for(Int_t b=0;b<4;b++) { (fIntFlow->GetXaxis())->SetBinLabel(b+1,flowFlag[b].Data()); } fIntFlowResults->Add(fIntFlow); // Reference flow vs M rebinned in one huge bin: if(fCalculateCumulantsVsM) { TString intFlowRebinnedInMName = "fIntFlowRebinnedInM"; intFlowRebinnedInMName += fAnalysisLabel->Data(); fIntFlowRebinnedInM = new TH1D(intFlowRebinnedInMName.Data(),"Reference flow estimates from Q-cumulants (rebinned in M)",4,0,4); fIntFlowRebinnedInM->SetLabelSize(0.05); fIntFlowRebinnedInM->SetMarkerStyle(25); for(Int_t b=0;b<4;b++) { (fIntFlowRebinnedInM->GetXaxis())->SetBinLabel(b+1,flowFlag[b].Data()); } fIntFlowResults->Add(fIntFlowRebinnedInM); } // integrated flow from Q-cumulants: versus multiplicity: if(fCalculateCumulantsVsM) { TString intFlowVsMName = "fIntFlowVsM"; intFlowVsMName += fAnalysisLabel->Data(); for(Int_t co=0;co<4;co++) // cumulant order { fIntFlowVsM[co] = new TH1D(Form("%s, %s",intFlowVsMName.Data(),flowFlag[co].Data()), Form("%s vs multiplicity",flowFlag[co].Data()), fnBinsMult,fMinMult,fMaxMult); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowVsM[co]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowVsM[co]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowVsM[co]->GetXaxis()->SetTitle("# POIs"); } fIntFlowVsM[co]->GetYaxis()->SetTitle(flowFlag[co].Data()); fIntFlowResults->Add(fIntFlowVsM[co]); } // end of for(Int_t co=0;co<4;co++) // cumulant order } // end of if(fCalculateCumulantsVsM) // quantifying detector effects effects to correlations: TString intFlowDetectorBiasName = "fIntFlowDetectorBias"; intFlowDetectorBiasName += fAnalysisLabel->Data(); fIntFlowDetectorBias = new TH1D(intFlowDetectorBiasName.Data(),"Quantifying detector bias",4,0,4); fIntFlowDetectorBias->SetLabelSize(0.05); fIntFlowDetectorBias->SetMarkerStyle(25); for(Int_t ci=0;ci<4;ci++) { (fIntFlowDetectorBias->GetXaxis())->SetBinLabel(ci+1,Form("#frac{corrected}{measured} %s",cumulantFlag[ci].Data())); } fIntFlowResults->Add(fIntFlowDetectorBias); // quantifying detector effects to correlations versus multiplicity: if(fCalculateCumulantsVsM) { TString intFlowDetectorBiasVsMName = "fIntFlowDetectorBiasVsM"; intFlowDetectorBiasVsMName += fAnalysisLabel->Data(); for(Int_t ci=0;ci<4;ci++) // correlation index { fIntFlowDetectorBiasVsM[ci] = new TH1D(Form("%s for %s",intFlowDetectorBiasVsMName.Data(),cumulantFlag[ci].Data()), Form("Quantifying detector bias for %s vs multiplicity",cumulantFlag[ci].Data()), fnBinsMult,fMinMult,fMaxMult); if(fMultiplicityIs==AliFlowCommonConstants::kRP) { fIntFlowDetectorBiasVsM[ci]->GetXaxis()->SetTitle("# RPs"); } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowDetectorBiasVsM[ci]->GetXaxis()->SetTitle("Reference multiplicity (from ESD)"); } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowDetectorBiasVsM[ci]->GetXaxis()->SetTitle("# POIs"); } fIntFlowDetectorBiasVsM[ci]->GetYaxis()->SetTitle("#frac{corrected}{measured}"); fIntFlowResults->Add(fIntFlowDetectorBiasVsM[ci]); } // end of for(Int_t co=0;co<4;co++) // cumulant order } // end of if(fCalculateCumulantsVsM) } // end of AliFlowAnalysisWithQCumulants::BookEverythingForIntegratedFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookEverythingForControlHistograms() { // Book all objects for control histograms. // a) Book profile to hold all flags for control histograms; // b) Book all control histograms. // a) Book profile to hold all flags for control histograms: TString controlHistogramsFlagsName = "fControlHistogramsFlags"; controlHistogramsFlagsName += fAnalysisLabel->Data(); fControlHistogramsFlags = new TProfile(controlHistogramsFlagsName.Data(),"Flags for Control Histograms",3,0,3); fControlHistogramsFlags->SetTickLength(-0.01,"Y"); fControlHistogramsFlags->SetMarkerStyle(25); fControlHistogramsFlags->SetLabelSize(0.04); fControlHistogramsFlags->SetLabelOffset(0.02,"Y"); fControlHistogramsFlags->SetStats(kFALSE); fControlHistogramsFlags->GetXaxis()->SetBinLabel(1,"fCorrelationNoRPsVsRefMult"); fControlHistogramsFlags->GetXaxis()->SetBinLabel(2,"fCorrelationNoPOIsVsRefMult"); fControlHistogramsFlags->GetXaxis()->SetBinLabel(3,"fCorrelationNoRPsVsNoPOIs"); fControlHistogramsList->Add(fControlHistogramsFlags); if(!fStoreControlHistograms){return;} // b) Book all control histograms: // b1) Correlation between # RPs and ref. mult. determined centrally: TString sCorrelationNoRPsVsRefMultName = "fCorrelationNoRPsVsRefMult"; sCorrelationNoRPsVsRefMultName += fAnalysisLabel->Data(); fCorrelationNoRPsVsRefMult = new TH2D(sCorrelationNoRPsVsRefMultName.Data(),"# RPs vs. Reference Multiplicity",fnBinsMult,fMinMult,fMaxMult,fnBinsMult,fMinMult,fMaxMult); fCorrelationNoRPsVsRefMult->SetTickLength(-0.01,"Y"); fCorrelationNoRPsVsRefMult->SetLabelSize(0.04); fCorrelationNoRPsVsRefMult->SetLabelOffset(0.02,"Y"); fCorrelationNoRPsVsRefMult->SetStats(kTRUE); fCorrelationNoRPsVsRefMult->GetXaxis()->SetTitle("# RPs"); fCorrelationNoRPsVsRefMult->GetYaxis()->SetTitle("Reference Multiplicity"); fControlHistogramsList->Add(fCorrelationNoRPsVsRefMult); // b2) Correlation between # POIs and ref. mult. determined centrally: TString sCorrelationNoPOIsVsRefMultName = "fCorrelationNoPOIsVsRefMult"; sCorrelationNoPOIsVsRefMultName += fAnalysisLabel->Data(); fCorrelationNoPOIsVsRefMult = new TH2D(sCorrelationNoPOIsVsRefMultName.Data(),"# POIs vs. Reference Multiplicity",fnBinsMult,fMinMult,fMaxMult,fnBinsMult,fMinMult,fMaxMult); fCorrelationNoPOIsVsRefMult->SetTickLength(-0.01,"Y"); fCorrelationNoPOIsVsRefMult->SetLabelSize(0.04); fCorrelationNoPOIsVsRefMult->SetLabelOffset(0.02,"Y"); fCorrelationNoPOIsVsRefMult->SetStats(kTRUE); fCorrelationNoPOIsVsRefMult->GetXaxis()->SetTitle("# POIs"); fCorrelationNoPOIsVsRefMult->GetYaxis()->SetTitle("Reference Multiplicity"); fControlHistogramsList->Add(fCorrelationNoPOIsVsRefMult); // b3) Correlation between # RPs and # POIs: TString sCorrelationNoRPsVsNoPOIsName = "fCorrelationNoRPsVsNoPOIs"; sCorrelationNoRPsVsNoPOIsName += fAnalysisLabel->Data(); fCorrelationNoRPsVsNoPOIs = new TH2D(sCorrelationNoRPsVsNoPOIsName.Data(),"# RPs vs. # POIs",fnBinsMult,fMinMult,fMaxMult,fnBinsMult,fMinMult,fMaxMult); fCorrelationNoRPsVsNoPOIs->SetTickLength(-0.01,"Y"); fCorrelationNoRPsVsNoPOIs->SetLabelSize(0.04); fCorrelationNoRPsVsNoPOIs->SetLabelOffset(0.02,"Y"); fCorrelationNoRPsVsNoPOIs->SetStats(kTRUE); fCorrelationNoRPsVsNoPOIs->GetXaxis()->SetTitle("# RPs"); fCorrelationNoRPsVsNoPOIs->GetYaxis()->SetTitle("# POIs"); fControlHistogramsList->Add(fCorrelationNoRPsVsNoPOIs); } // end of void AliFlowAnalysisWithQCumulants::BookEverythingForControlHistograms() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookEverythingForMixedHarmonics() { // Book all objects for mixed harmonics. // a) Book profile to hold all flags for mixed harmonics; // b) Book all objects in TList fMixedHarmonicsProfiles; // c) Book all objects in TList fMixedHarmonicsResults; // d) Book all objects in TList fMixedHarmonicsErrorPropagation. // a) Book profile to hold all flags for mixed harmonics: TString mixedHarmonicsFlagsName = "fMixedHarmonicsFlags"; mixedHarmonicsFlagsName += fAnalysisLabel->Data(); fMixedHarmonicsFlags = new TProfile(mixedHarmonicsFlagsName.Data(),"Flags for Mixed Harmonics",4,0,4); fMixedHarmonicsFlags->SetTickLength(-0.01,"Y"); fMixedHarmonicsFlags->SetMarkerStyle(25); fMixedHarmonicsFlags->SetLabelSize(0.04); fMixedHarmonicsFlags->SetLabelOffset(0.02,"Y"); fMixedHarmonicsFlags->SetStats(kFALSE); fMixedHarmonicsFlags->GetXaxis()->SetBinLabel(1,"Calculate Mixed Harmonics"); fMixedHarmonicsFlags->GetXaxis()->SetBinLabel(2,"Generic Harmonic"); fMixedHarmonicsFlags->GetXaxis()->SetBinLabel(3,"Calculate vs Multiplicity"); fMixedHarmonicsFlags->GetXaxis()->SetBinLabel(4,"Multiplicity Weight"); fMixedHarmonicsList->Add(fMixedHarmonicsFlags); if(!fCalculateMixedHarmonics){return;} // b) Book all objects in TList fMixedHarmonicsProfiles: // b1) 2-p correlations: TString s2pCorrelationsName = "f2pCorrelations"; s2pCorrelationsName += fAnalysisLabel->Data(); f2pCorrelations = new TProfile(s2pCorrelationsName.Data(),Form("2-particle correlations (n = %d)",fHarmonic),6,0,6,"s"); f2pCorrelations->SetTickLength(-0.01,"Y"); f2pCorrelations->SetMarkerStyle(25); f2pCorrelations->SetLabelSize(0.04); f2pCorrelations->SetLabelOffset(0.02,"Y"); f2pCorrelations->SetStats(kFALSE); f2pCorrelations->Sumw2(); f2pCorrelations->GetXaxis()->SetBinLabel(1,Form("#LT#LT2#GT#GT_{%dn|%dn}",1*fHarmonic,1*fHarmonic)); f2pCorrelations->GetXaxis()->SetBinLabel(2,Form("#LT#LT2#GT#GT_{%dn|%dn}",2*fHarmonic,2*fHarmonic)); f2pCorrelations->GetXaxis()->SetBinLabel(3,Form("#LT#LT2#GT#GT_{%dn|%dn}",3*fHarmonic,3*fHarmonic)); f2pCorrelations->GetXaxis()->SetBinLabel(4,Form("#LT#LT2#GT#GT_{%dn|%dn}",4*fHarmonic,4*fHarmonic)); f2pCorrelations->GetXaxis()->SetBinLabel(5,Form("#LT#LT2#GT#GT_{%dn|%dn}",5*fHarmonic,5*fHarmonic)); f2pCorrelations->GetXaxis()->SetBinLabel(6,Form("#LT#LT2#GT#GT_{%dn|%dn}",6*fHarmonic,6*fHarmonic)); fMixedHarmonicsProfiles->Add(f2pCorrelations); // b2) 3-p correlations (3+6): TString s3pCorrelationsName = "f3pCorrelations"; s3pCorrelationsName += fAnalysisLabel->Data(); f3pCorrelations = new TProfile(s3pCorrelationsName.Data(),Form("3-particle correlations (n = %d)",fHarmonic),10,0,10,"s"); f3pCorrelations->SetTickLength(-0.01,"Y"); f3pCorrelations->SetMarkerStyle(25); f3pCorrelations->SetLabelSize(0.04); f3pCorrelations->SetLabelOffset(0.02,"Y"); f3pCorrelations->SetStats(kFALSE); f3pCorrelations->Sumw2(); // 3-p correlations sensitive to two distinct harmonics (3): f3pCorrelations->GetXaxis()->SetBinLabel(1,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",2*fHarmonic,1*fHarmonic,1*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(2,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,2*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(3,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,3*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(4,""); // empty // 3-p correlations sensitive to three distinct harmonics (6): f3pCorrelations->GetXaxis()->SetBinLabel(5,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",3*fHarmonic,2*fHarmonic,1*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(6,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",4*fHarmonic,3*fHarmonic,1*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(7,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,2*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(8,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",5*fHarmonic,4*fHarmonic,1*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(9,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,2*fHarmonic)); f3pCorrelations->GetXaxis()->SetBinLabel(10,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicsProfiles->Add(f3pCorrelations); // b3) 4-p correlations (6+15+2+10+8): TString s4pCorrelationsName = "f4pCorrelations"; s4pCorrelationsName += fAnalysisLabel->Data(); f4pCorrelations = new TProfile(s4pCorrelationsName.Data(),Form("4-particle correlations (n = %d)",fHarmonic),45,0,45,"s"); f4pCorrelations->SetTickLength(-0.01,"Y"); f4pCorrelations->SetMarkerStyle(25); f4pCorrelations->SetLabelSize(0.03); f4pCorrelations->SetLabelOffset(0.02,"Y"); f4pCorrelations->SetStats(kFALSE); f4pCorrelations->Sumw2(); // "same harmonic" (6): f4pCorrelations->GetXaxis()->SetBinLabel(1,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(2,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",2*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(3,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(4,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(5,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,5*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(6,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,6*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(7,""); // empty // "standard candles" (15): f4pCorrelations->GetXaxis()->SetBinLabel(8,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",2*fHarmonic,1*fHarmonic,2*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(9,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,1*fHarmonic,3*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(10,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(11,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,4*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(12,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(13,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(14,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,5*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(15,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,5*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(16,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,5*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(17,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,4*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(18,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,6*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(19,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,6*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(20,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,6*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(21,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,4*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(22,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,5*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(23,""); // empty // 4-p correlations sensitive to two distinct harmonics (2): f4pCorrelations->GetXaxis()->SetBinLabel(24,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",3*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(25,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(26,""); // empty // 4-p correlations sensitive to three distinct harmonics (10): f4pCorrelations->GetXaxis()->SetBinLabel(27,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(28,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(29,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(30,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(31,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(32,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(33,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,4*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(34,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(35,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,4*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(36,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,5*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(37,""); // empty // 4-p correlations sensitive to four distinct harmonics (8): f4pCorrelations->GetXaxis()->SetBinLabel(38,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(39,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,4*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(40,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,4*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(41,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,4*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(42,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,5*fHarmonic,2*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(43,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(44,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,5*fHarmonic,3*fHarmonic)); f4pCorrelations->GetXaxis()->SetBinLabel(45,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicsProfiles->Add(f4pCorrelations); // b3) 5-p correlations (30+9+30+11+3): TString s5pCorrelationsName = "f5pCorrelations"; s5pCorrelationsName += fAnalysisLabel->Data(); f5pCorrelations = new TProfile(s5pCorrelationsName.Data(),Form("5-particle correlations (n = %d)",fHarmonic),87,0,87,"s"); f5pCorrelations->SetTickLength(-0.01,"Y"); f5pCorrelations->SetMarkerStyle(25); f5pCorrelations->SetLabelSize(0.02); f5pCorrelations->SetLabelOffset(0.02,"Y"); f5pCorrelations->SetStats(kFALSE); f5pCorrelations->Sumw2(); // "standard candles" (30): f5pCorrelations->GetXaxis()->SetBinLabel(1,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,2*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(2,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(3,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(4,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(5,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(6,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(7,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(8,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,5*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(9,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(10,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(11,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(12,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,5*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(13,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(14,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(15,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(16,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(17,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(18,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(19,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(20,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,5*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(21,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(22,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,4*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(23,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(24,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,6*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(25,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,6*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(26,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(27,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(28,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,4*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(29,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(30,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,4*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(31,""); // empty // 5-p correlations sensitive to two distinct harmonics (9): f5pCorrelations->GetXaxis()->SetBinLabel(32,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",2*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(33,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",2*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(34,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(35,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(36,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(37,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(38,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(39,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(40,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(41,""); // empty // 5-p correlations sensitive to three distinct harmonics (30): f5pCorrelations->GetXaxis()->SetBinLabel(42,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,1*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(43,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(44,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(45,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(46,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(47,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(48,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(49,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(50,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(51,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(52,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(53,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(54,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(55,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(56,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(57,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(58,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(59,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,3*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(60,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,4*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(61,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(62,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(63,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,1*fHarmonic,4*fHarmonic,4*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(64,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,5*fHarmonic,1*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(65,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(66,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(67,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,5*fHarmonic,5*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(68,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,5*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(69,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,5*fHarmonic,5*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(70,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,4*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(71,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,5*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(72,""); // empty // 5-p correlations sensitive to four distinct harmonics (11): f5pCorrelations->GetXaxis()->SetBinLabel(73,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(74,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,1*fHarmonic,4*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(75,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(76,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,1*fHarmonic,4*fHarmonic,4*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(77,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(78,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,4*fHarmonic,4*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(79,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,1*fHarmonic,5*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(80,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,2*fHarmonic,2*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(81,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(82,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,1*fHarmonic,5*fHarmonic,5*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(83,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,5*fHarmonic,4*fHarmonic,3*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(84,""); // empty // 5-p correlations sensitive to five distinct harmonics (3): f5pCorrelations->GetXaxis()->SetBinLabel(85,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(86,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,1*fHarmonic,5*fHarmonic,4*fHarmonic)); f5pCorrelations->GetXaxis()->SetBinLabel(87,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicsProfiles->Add(f5pCorrelations); // b4) 6-p correlations (??+??+??+??+??): TString s6pCorrelationsName = "f6pCorrelations"; s6pCorrelationsName += fAnalysisLabel->Data(); f6pCorrelations = new TProfile(s6pCorrelationsName.Data(),Form("6-particle correlations (n = %d)",fHarmonic),1,0.,1.); f6pCorrelations->SetTickLength(-0.01,"Y"); f6pCorrelations->SetMarkerStyle(25); f6pCorrelations->SetLabelSize(0.02); f6pCorrelations->SetLabelOffset(0.02,"Y"); f6pCorrelations->SetStats(kFALSE); f6pCorrelations->Sumw2(); //fMixedHarmonicsProfiles->Add(f6pCorrelations); // TBI // b5) 7-p correlations (??+??+??+??+??): TString s7pCorrelationsName = "f7pCorrelations"; s7pCorrelationsName += fAnalysisLabel->Data(); f7pCorrelations = new TProfile(s7pCorrelationsName.Data(),Form("7-particle correlations (n = %d)",fHarmonic),1,0.,1.); f7pCorrelations->SetTickLength(-0.01,"Y"); f7pCorrelations->SetMarkerStyle(25); f7pCorrelations->SetLabelSize(0.02); f7pCorrelations->SetLabelOffset(0.02,"Y"); f7pCorrelations->SetStats(kFALSE); f7pCorrelations->Sumw2(); //fMixedHarmonicsProfiles->Add(f7pCorrelations); // TBI // b6) 8-p correlations (??+??+??+??+??): TString s8pCorrelationsName = "f8pCorrelations"; s8pCorrelationsName += fAnalysisLabel->Data(); f8pCorrelations = new TProfile(s8pCorrelationsName.Data(),Form("8-particle correlations (n = %d)",fHarmonic),1,0.,1.); f8pCorrelations->SetTickLength(-0.01,"Y"); f8pCorrelations->SetMarkerStyle(25); f8pCorrelations->SetLabelSize(0.02); f8pCorrelations->SetLabelOffset(0.02,"Y"); f8pCorrelations->SetStats(kFALSE); f8pCorrelations->Sumw2(); //fMixedHarmonicsProfiles->Add(f8pCorrelations); // TBI // c) Book all objects in TList fMixedHarmonicsResults: // QC{2}: f2pCumulants = f2pCorrelations->ProjectionX("f2pCumulants"); f2pCumulants->SetTitle(Form("2-particle cumulants (n = %d)",fHarmonic)); f2pCumulants->SetStats(kFALSE); f2pCumulants->SetMarkerStyle(kFullSquare); f2pCumulants->SetMarkerColor(kBlack); f2pCumulants->SetLineColor(kBlack); fMixedHarmonicsResults->Add(f2pCumulants); // QC{3}: f3pCumulants = f3pCorrelations->ProjectionX("f3pCumulants"); f3pCumulants->SetTitle(Form("3-particle cumulants (n = %d)",fHarmonic)); f3pCumulants->SetStats(kFALSE); f3pCumulants->SetMarkerStyle(kFullSquare); f3pCumulants->SetMarkerColor(kGreen+2); f3pCumulants->SetLineColor(kGreen+2); fMixedHarmonicsResults->Add(f3pCumulants); // QC{4}: f4pCumulants = f4pCorrelations->ProjectionX("f4pCumulants"); f4pCumulants->SetTitle(Form("4-particle cumulants (n = %d)",fHarmonic)); f4pCumulants->SetStats(kFALSE); f4pCumulants->SetMarkerStyle(kFullSquare); f4pCumulants->SetMarkerColor(kRed); f4pCumulants->SetLineColor(kRed); fMixedHarmonicsResults->Add(f4pCumulants); // QC{5}: f5pCumulants = f5pCorrelations->ProjectionX("f5pCumulants"); f5pCumulants->SetTitle(Form("5-particle cumulants (n = %d)",fHarmonic)); f5pCumulants->SetStats(kFALSE); f5pCumulants->SetMarkerStyle(kFullSquare); f5pCumulants->SetMarkerColor(kBlue); f5pCumulants->SetLineColor(kBlue); fMixedHarmonicsResults->Add(f5pCumulants); // d) Book all objects in TList fMixedHarmonicsErrorPropagation: // Sum of linear and quadratic event weights for mixed harmonics => [0=linear 1,1=quadratic]: TString mixedHarmonicEventWeightsName = "fMixedHarmonicEventWeights"; mixedHarmonicEventWeightsName += fAnalysisLabel->Data(); TString powerFlag[2] = {"linear","quadratic"}; for(Int_t power=0;power<2;power++) { fMixedHarmonicEventWeights[power] = new TH1D(Form("%s: %s",mixedHarmonicEventWeightsName.Data(),powerFlag[power].Data()),Form("Sum of %s event weights for correlations",powerFlag[power].Data()),8,0.,8.); fMixedHarmonicEventWeights[power]->SetLabelSize(0.04); fMixedHarmonicEventWeights[power]->SetMarkerStyle(25); fMixedHarmonicEventWeights[power]->SetStats(kFALSE); if(power == 0) { (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(1,"#sum w_{#LT1#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(2,"#sum w_{#LT2#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(3,"#sum w_{#LT3#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(4,"#sum w_{#LT4#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(5,"#sum w_{#LT5#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(6,"#sum w_{#LT6#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(7,"#sum w_{#LT7#GT}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(8,"#sum w_{#LT8#GT}"); } else if (power == 1) { (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(1,"#sum w_{#LT1#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(2,"#sum w_{#LT2#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(3,"#sum w_{#LT3#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(4,"#sum w_{#LT4#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(5,"#sum w_{#LT5#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(6,"#sum w_{#LT6#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(7,"#sum w_{#LT7#GT}^{2}"); (fMixedHarmonicEventWeights[power]->GetXaxis())->SetBinLabel(8,"#sum w_{#LT8#GT}^{2}"); } fMixedHarmonicsErrorPropagation->Add(fMixedHarmonicEventWeights[power]); } // end of for(Int_t power=0;power<2;power++) // Sums of products of event weights for mixed harmonics: TString mixedHarmonicProductOfEventWeightsName = "fMixedHarmonicProductOfEventWeights"; mixedHarmonicProductOfEventWeightsName += fAnalysisLabel->Data(); fMixedHarmonicProductOfEventWeights = new TH2D(mixedHarmonicProductOfEventWeightsName.Data(),"Sums of products of event weights",8,0.,8.,8,0.,8.); fMixedHarmonicProductOfEventWeights->SetStats(kFALSE); fMixedHarmonicProductOfEventWeights->GetXaxis()->SetLabelSize(0.05); fMixedHarmonicProductOfEventWeights->GetYaxis()->SetLabelSize(0.05); for(Int_t b=1;b<=8;b++) { fMixedHarmonicProductOfEventWeights->GetXaxis()->SetBinLabel(b,Form("w_{#LT%i#GT}",b)); fMixedHarmonicProductOfEventWeights->GetYaxis()->SetBinLabel(b,Form("w_{#LT%i#GT}",b)); } fMixedHarmonicsErrorPropagation->Add(fMixedHarmonicProductOfEventWeights); // Averages of products of mixed harmonics correlations: TString mixedHarmonicProductOfCorrelationsName = "fMixedHarmonicProductOfCorrelations"; mixedHarmonicProductOfCorrelationsName += fAnalysisLabel->Data(); fMixedHarmonicProductOfCorrelations = new TProfile2D(mixedHarmonicProductOfCorrelationsName.Data(),"Averages of products of mixed correlators",139,0.,139.,139,0.,139.); fMixedHarmonicProductOfCorrelations->Sumw2(); fMixedHarmonicProductOfCorrelations->SetStats(kFALSE); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetLabelSize(0.015); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetLabelSize(0.015); // x-axis: fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(1,Form("#LT#LT2#GT#GT_{%dn|%dn}",1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(2,Form("#LT#LT2#GT#GT_{%dn|%dn}",2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(3,Form("#LT#LT2#GT#GT_{%dn|%dn}",3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(4,Form("#LT#LT2#GT#GT_{%dn|%dn}",4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(5,Form("#LT#LT2#GT#GT_{%dn|%dn}",5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(6,Form("#LT#LT2#GT#GT_{%dn|%dn}",6*fHarmonic,6*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(7,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(8,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(9,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(10,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(11,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(12,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(13,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",5*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(14,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(15,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(16,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(17,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",2*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(18,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(19,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(20,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(21,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,6*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(22,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",2*fHarmonic,1*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(23,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,1*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(24,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(25,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(26,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(27,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(28,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(29,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,5*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(30,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,5*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(31,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(32,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,6*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(33,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,6*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(34,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,6*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(35,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(36,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(37,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",3*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(38,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(39,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(40,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(41,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(42,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(43,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(44,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(45,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(46,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(47,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(48,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(49,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(50,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(51,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(52,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(53,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,5*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(54,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(55,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,5*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(56,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(57,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,2*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(58,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(59,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(60,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(61,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(62,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(63,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(64,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,5*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(65,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(66,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(67,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(68,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,5*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(69,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(70,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(71,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(72,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(73,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(74,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(75,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(76,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,5*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(77,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(78,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(79,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(80,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,6*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(81,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,6*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(82,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(83,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(84,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(85,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(86,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(87,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",2*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(88,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",2*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(89,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(90,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(91,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(92,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(93,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(94,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(95,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(96,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,1*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(97,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(98,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(99,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(100,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(101,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(102,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(103,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(104,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(105,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(106,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(107,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(108,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(109,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(110,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(111,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(112,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(113,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(114,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(115,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(116,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(117,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,1*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(118,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,5*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(119,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(120,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(121,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(122,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(123,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,5*fHarmonic,5*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(124,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(125,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(126,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(127,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,1*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(128,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(129,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,1*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(130,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(131,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,4*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(132,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,1*fHarmonic,5*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(133,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(134,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(135,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,1*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(136,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,5*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(137,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(138,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,1*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetXaxis()->SetBinLabel(139,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,3*fHarmonic,2*fHarmonic)); // y-axis: fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(1,Form("#LT#LT2#GT#GT_{%dn|%dn}",1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(2,Form("#LT#LT2#GT#GT_{%dn|%dn}",2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(3,Form("#LT#LT2#GT#GT_{%dn|%dn}",3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(4,Form("#LT#LT2#GT#GT_{%dn|%dn}",4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(5,Form("#LT#LT2#GT#GT_{%dn|%dn}",5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(6,Form("#LT#LT2#GT#GT_{%dn|%dn}",6*fHarmonic,6*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(7,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(8,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(9,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(10,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(11,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(12,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(13,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",5*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(14,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(15,Form("#LT#LT3#GT#GT_{%dn|%dn,%dn}",6*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(16,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(17,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",2*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(18,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(19,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(20,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(21,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,6*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(22,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",2*fHarmonic,1*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(23,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,1*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(24,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(25,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(26,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(27,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(28,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(29,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,5*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(30,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,5*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(31,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(32,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,6*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(33,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,6*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(34,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,6*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(35,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(36,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(37,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",3*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(38,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(39,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",3*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(40,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(41,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(42,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(43,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(44,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(45,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(46,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(47,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(48,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(49,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(50,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(51,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(52,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(53,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,5*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(54,Form("#LT#LT4#GT#GT_{%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(55,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,5*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(56,Form("#LT#LT4#GT#GT_{%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(57,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,2*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(58,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(59,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(60,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(61,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(62,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(63,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(64,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,5*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(65,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(66,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(67,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(68,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,5*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(69,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(70,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,5*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(71,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(72,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(73,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,4*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(74,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,4*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(75,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(76,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,5*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(77,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(78,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(79,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(80,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,6*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(81,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,6*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(82,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(83,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,6*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(84,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(85,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(86,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,6*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(87,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",2*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(88,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",2*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(89,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(90,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(91,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(92,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(93,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(94,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(95,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(96,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,1*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(97,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(98,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",3*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(99,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,1*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(100,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",4*fHarmonic,1*fHarmonic,1*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(101,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(102,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(103,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",4*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(104,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(105,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,2*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(106,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(107,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(108,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,1*fHarmonic,4*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(109,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(110,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(111,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,4*fHarmonic,3*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(112,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(113,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(114,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,5*fHarmonic,5*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(115,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(116,Form("#LT#LT5#GT#GT_{%dn|%dn,%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,1*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(117,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,1*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(118,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,5*fHarmonic,1*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(119,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(120,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,4*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(121,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,2*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(122,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,5*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(123,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,5*fHarmonic,5*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(124,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,4*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(125,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,6*fHarmonic,5*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(126,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,2*fHarmonic,3*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(127,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",5*fHarmonic,1*fHarmonic,1*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(128,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",5*fHarmonic,3*fHarmonic,4*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(129,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",5*fHarmonic,2*fHarmonic,1*fHarmonic,4*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(130,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,1*fHarmonic,3*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(131,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,4*fHarmonic,4*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(132,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,1*fHarmonic,1*fHarmonic,5*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(133,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,3*fHarmonic,5*fHarmonic,2*fHarmonic,2*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(134,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,5*fHarmonic,4*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(135,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,3*fHarmonic,1*fHarmonic,5*fHarmonic,5*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(136,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,6*fHarmonic,5*fHarmonic,4*fHarmonic,3*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(137,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,2*fHarmonic,4*fHarmonic,3*fHarmonic,1*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(138,Form("#LT#LT5#GT#GT_{%dn,%dn,%dn|%dn,%dn}",6*fHarmonic,2*fHarmonic,1*fHarmonic,5*fHarmonic,4*fHarmonic)); fMixedHarmonicProductOfCorrelations->GetYaxis()->SetBinLabel(139,Form("#LT#LT5#GT#GT_{%dn,%dn|%dn,%dn,%dn}",6*fHarmonic,4*fHarmonic,5*fHarmonic,3*fHarmonic,2*fHarmonic)); fMixedHarmonicsErrorPropagation->Add(fMixedHarmonicProductOfCorrelations); } // end of void AliFlowAnalysisWithQCumulants::BookEverythingForMixedHarmonics() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::InitializeArraysForNestedLoops() { // Initialize arrays of all objects relevant for calculations with nested loops. // integrated flow: for(Int_t sc=0;sc<2;sc++) // sin or cos terms { fIntFlowDirectCorrectionTermsForNUA[sc] = NULL; } // differential flow: // correlations: for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t ci=0;ci<4;ci++) // correlation index { fDiffFlowDirectCorrelations[t][pe][ci] = NULL; } // end of for(Int_t ci=0;ci<4;ci++) // correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // correction terms for non-uniform acceptance: for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti] = NULL; } } } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // other differential correlators: for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t ci=0;ci<1;ci++) // correlator index { fOtherDirectDiffCorrelators[t][pe][sc][ci] = NULL; } } } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI } // end of void AliFlowAnalysisWithQCumulants::InitializeArraysForNestedLoops() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::InitializeArraysForMixedHarmonics() { // Initialize arrays of all objects relevant for mixed harmonics. for(Int_t power=0;power<2;power++) // linear or quadratic { fMixedHarmonicEventWeights[power] = NULL; } } // end of void AliFlowAnalysisWithQCumulants::InitializeArraysForMixedHarmonics() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookEverythingForNestedLoops() { // Book all objects relevant for calculations with nested loops. TString sinCosFlag[2] = {"sin","cos"}; // to be improved (should I promote this to data members?) TString typeFlag[2] = {"RP","POI"}; // to be improved (should I promote this to data members?) TString ptEtaFlag[2] = {"p_{T}","#eta"}; // to be improved (should I promote this to data members?) TString reducedCorrelationIndex[4] = {"<2'>","<4'>","<6'>","<8'>"}; // to be improved (should I promote this to data members?) Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; TString evaluateNestedLoopsName = "fEvaluateNestedLoops"; evaluateNestedLoopsName += fAnalysisLabel->Data(); fEvaluateNestedLoops = new TProfile(evaluateNestedLoopsName.Data(),"Flags for nested loops",4,0,4); fEvaluateNestedLoops->SetLabelSize(0.03); fEvaluateNestedLoops->SetStats(kFALSE); (fEvaluateNestedLoops->GetXaxis())->SetBinLabel(1,"fEvaluateIntFlowNestedLoops"); (fEvaluateNestedLoops->GetXaxis())->SetBinLabel(2,"fEvaluateDiffFlowNestedLoops"); (fEvaluateNestedLoops->GetXaxis())->SetBinLabel(3,"fCrossCheckInPtBinNo"); (fEvaluateNestedLoops->GetXaxis())->SetBinLabel(4,"fCrossCheckInEtaBinNo"); fEvaluateNestedLoops->Fill(0.5,(Int_t)fEvaluateIntFlowNestedLoops); fEvaluateNestedLoops->Fill(1.5,(Int_t)fEvaluateDiffFlowNestedLoops); fEvaluateNestedLoops->Fill(2.5,fCrossCheckInPtBinNo); fEvaluateNestedLoops->Fill(3.5,fCrossCheckInEtaBinNo); fNestedLoopsList->Add(fEvaluateNestedLoops); // nested loops for integrated flow: if(fEvaluateIntFlowNestedLoops) { // correlations: TString intFlowDirectCorrelationsName = "fIntFlowDirectCorrelations"; intFlowDirectCorrelationsName += fAnalysisLabel->Data(); fIntFlowDirectCorrelations = new TProfile(intFlowDirectCorrelationsName.Data(),"Multiparticle correlations calculated with nested loops (for int. flow)",64,0,64,"s"); fNestedLoopsList->Add(fIntFlowDirectCorrelations); if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) { TString intFlowExtraDirectCorrelationsName = "fIntFlowExtraDirectCorrelations"; intFlowExtraDirectCorrelationsName += fAnalysisLabel->Data(); fIntFlowExtraDirectCorrelations = new TProfile(intFlowExtraDirectCorrelationsName.Data(),"Extra multiparticle correlations calculated with nested loops (for int. flow)",100,0,100,"s"); fNestedLoopsList->Add(fIntFlowExtraDirectCorrelations); } // end of if(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights) // correction terms for non-uniform acceptance: for(Int_t sc=0;sc<2;sc++) // sin or cos terms { TString intFlowDirectCorrectionTermsForNUAName = "fIntFlowDirectCorrectionTermsForNUA"; intFlowDirectCorrectionTermsForNUAName += fAnalysisLabel->Data(); fIntFlowDirectCorrectionTermsForNUA[sc] = new TProfile(Form("%s: %s terms",intFlowDirectCorrectionTermsForNUAName.Data(),sinCosFlag[sc].Data()),Form("Correction terms for non-uniform acceptance (%s terms)",sinCosFlag[sc].Data()),10,0,10,"s"); fNestedLoopsList->Add(fIntFlowDirectCorrectionTermsForNUA[sc]); } // end of for(Int_t sc=0;sc<2;sc++) // Mixed harmonics: if(fCalculateMixedHarmonics) { TString mixedHarmonicsNestedLoopsName = "fMixedHarmonicsNestedLoops"; mixedHarmonicsNestedLoopsName += fAnalysisLabel->Data(); fMixedHarmonicsNestedLoops = new TProfile(mixedHarmonicsNestedLoopsName.Data(),"Mixed harmonics calculated with nested loops",200,0,200); // TBI hardwired 200 fNestedLoopsList->Add(fMixedHarmonicsNestedLoops); } // end of if(fCalculateMixedHarmonics) } // end of if(fEvaluateIntFlowNestedLoops) // nested loops for differential flow: if(fEvaluateDiffFlowNestedLoops) { // reduced correlations: TString diffFlowDirectCorrelationsName = "fDiffFlowDirectCorrelations"; diffFlowDirectCorrelationsName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { // reduced correlations: fDiffFlowDirectCorrelations[t][pe][rci] = new TProfile(Form("%s, %s, %s, %s",diffFlowDirectCorrelationsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),Form("%s, %s, %s, %s",diffFlowDirectCorrelationsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),1,lowerPtEtaEdge[pe],upperPtEtaEdge[pe],"s"); fDiffFlowDirectCorrelations[t][pe][rci]->SetXTitle(ptEtaFlag[pe].Data()); fNestedLoopsList->Add(fDiffFlowDirectCorrelations[t][pe][rci]); // to be improved (add dedicated list to hold reduced correlations) } // end of for(Int_t rci=0;rci<4;rci++) // correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // correction terms for non-uniform acceptance: TString diffFlowDirectCorrectionTermsForNUAName = "fDiffFlowDirectCorrectionTermsForNUA"; diffFlowDirectCorrectionTermsForNUAName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti] = new TProfile(Form("%s, %s, %s, %s, cti = %d",diffFlowDirectCorrectionTermsForNUAName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1),Form("%s, %s, %s, %s, cti = %d",diffFlowDirectCorrectionTermsForNUAName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1),1,lowerPtEtaEdge[pe],upperPtEtaEdge[pe],"s"); fNestedLoopsList->Add(fDiffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti]); } } } } // other differential correlators: TString otherDirectDiffCorrelatorsName = "fOtherDirectDiffCorrelators"; otherDirectDiffCorrelatorsName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t ci=0;ci<1;ci++) // correlator index { fOtherDirectDiffCorrelators[t][pe][sc][ci] = new TProfile(Form("%s, %s, %s, %s, ci = %d",otherDirectDiffCorrelatorsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),ci+1),Form("%s, %s, %s, %s, ci = %d",otherDirectDiffCorrelatorsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),ci+1),1,lowerPtEtaEdge[pe],upperPtEtaEdge[pe]); fNestedLoopsList->Add(fOtherDirectDiffCorrelators[t][pe][sc][ci]); } } } } // number of RPs and POIs in selected pt and eta bins for cross-checkings: TString noOfParticlesInBinName = "fNoOfParticlesInBin"; fNoOfParticlesInBin = new TH1D(noOfParticlesInBinName.Data(),"Number of RPs and POIs in selected p_{T} and #eta bin",4,0,4); fNoOfParticlesInBin->GetXaxis()->SetBinLabel(1,"# of RPs in p_{T} bin"); fNoOfParticlesInBin->GetXaxis()->SetBinLabel(2,"# of RPs in #eta bin"); fNoOfParticlesInBin->GetXaxis()->SetBinLabel(3,"# of POIs in p_{T} bin"); fNoOfParticlesInBin->GetXaxis()->SetBinLabel(4,"# of POIs in #eta bin"); fNestedLoopsList->Add(fNoOfParticlesInBin); } // end of if(fEvaluateDiffFlowNestedLoops) } // end of AliFlowAnalysisWithQCumulants::BookEverythingForNestedLoops() //========================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrelations() { // Calculate in this method all multiparticle azimuthal correlations. // // Remark 1: All multiparticle correlations are stored in TProfile fIntFlowCorrelationsAllPro; // Remark 2: There is a special TProfile fIntFlowCorrelationsPro holding results // only for same harmonic's correlations <<2>>, <<4>>, <<6>> and <<8>>; // Remark 3: Binning of fIntFlowCorrelationsAllPro is organized as follows: // -------------------------------------------------------------------------------------------------------------------- // 1st bin: <2>_{1n|1n} = two1n1n = cos(1n(phi1-phi2))> // 2nd bin: <2>_{2n|2n} = two2n2n = cos(2n(phi1-phi2))> // 3rd bin: <2>_{3n|3n} = two3n3n = cos(3n(phi1-phi2))> // 4th bin: <2>_{4n|4n} = two4n4n = cos(4n(phi1-phi2))> // 5th bin: ---- EMPTY ---- // 6th bin: <3>_{2n|1n,1n} = three2n1n1n = // 7th bin: <3>_{3n|2n,1n} = three3n2n1n = // 8th bin: <3>_{4n|2n,2n} = three4n2n2n = // 9th bin: <3>_{4n|3n,1n} = three4n3n1n = // 10th bin: ---- EMPTY ---- // 11th bin: <4>_{1n,1n|1n,1n} = four1n1n1n1n = // 12th bin: <4>_{2n,1n|2n,1n} = four2n1n2n1n = // 13th bin: <4>_{2n,2n|2n,2n} = four2n2n2n2n = // 14th bin: <4>_{3n|1n,1n,1n} = four3n1n1n1n = // 15th bin: <4>_{3n,1n|3n,1n} = four3n1n3n1n = // 16th bin: <4>_{3n,1n|2n,2n} = four3n1n2n2n = // 17th bin: <4>_{4n|2n,1n,1n} = four4n2n1n1n = // 18th bin: ---- EMPTY ---- // 19th bin: <5>_{2n,1n|1n,1n,1n} = five2n1n1n1n1n = // 20th bin: <5>_{2n,2n|2n,1n,1n} = five2n2n2n1n1n = // 21st bin: <5>_{3n,1n|2n,1n,1n} = five3n1n2n1n1n = // 22nd bin: <5>_{4n|1n,1n,1n,1n} = five4n1n1n1n1n = // 23rd bin: ---- EMPTY ---- // 24th bin: <6>_{1n,1n,1n|1n,1n,1n} = six1n1n1n1n1n1n = // 25th bin: <6>_{2n,1n,1n|2n,1n,1n} = six2n1n1n2n1n1n = // 26th bin: <6>_{2n,2n|1n,1n,1n,1n} = six2n2n1n1n1n1n = // 27th bin: <6>_{3n,1n|1n,1n,1n,1n} = six3n1n1n1n1n1n = // 28th bin: ---- EMPTY ---- // 29th bin: <7>_{2n,1n,1n|1n,1n,1n,1n} = seven2n1n1n1n1n1n1n = // 30th bin: ---- EMPTY ---- // 31st bin: <8>_{1n,1n,1n,1n|1n,1n,1n,1n} = eight1n1n1n1n1n1n1n1n = // 32nd bin: ---- EMPTY ---- // Extra correlations for v3{5} study: // 33rd bin: <4>_{4n,2n|3n,3n} = four4n2n3n3n = // 34th bin: <5>_{3n,3n|2n,2n,2n} = five3n3n2n2n2n = // Extra correlations for Teaney-Yan study: // 35th bin: <2>_{5n|5n} = two5n5n = // 36th bin: <2>_{6n|6n} = two6n6n = // 37th bin: <3>_{5n|3n,2n} = three5n3n2n = // 38th bin: <3>_{5n|4n,1n} = three5n4n1n = // 39th bin: <3>_{6n|3n,3n} = three6n3n3n = // 40th bin: <3>_{6n|4n,2n} = three6n4n2n = // 41st bin: <3>_{6n|5n,1n} = three6n5n1n = // 42nd bin: <4>_{6n|3n,2n,1n} = four6n3n2n1n = // 43rd bin: <4>_{3n,2n|3n,2n} = four3n2n3n2n = // 44th bin: <4>_{4n,1n|3n,2n} = four4n1n3n2n = // 45th bin: <4>_{3n,3n|3n,3n} = four3n3n3n3n = // 46th bin: <4>_{4n,2n|3n,3n} = four4n2n3n3n = // 47th bin: <4>_{5n,1n|3n,3n} = four5n1n3n3n = // 48th bin: <4>_{4n,2n|4n,2n} = four4n2n4n2n = // 49th bin: <4>_{5n,1n|4n,2n} = four5n1n4n2n = // 50th bin: <4>_{5n|3n,1n,1n} = four5n3n1n1n = // 51st bin: <4>_{5n|2n,2n,1n} = four5n2n2n1n = // 52nd bin: <4>_{5n,1n|5n,1n} = four5n1n5n1n = // 53rd bin: <5>_{3n,3n|3n,2n,1n} = five3n3n3n2n1n = // 54th bin: <5>_{4n,2n|3n,2n,1n} = five4n2n3n2n1n = // 55th bin: <5>_{3n,2n|3n,1n,1n} = five3n2n3n1n1n = // 56th bin: <5>_{3n,2n|2n,2n,1n} = five3n2n2n2n1n = // 57th bin: <5>_{5n,1n|3n,2n,1n} = five5n1n3n2n1n = // 58th bin: <6>_{3n,2n,1n|3n,2n,1n} = six3n2n1n3n2n1n = // Extra correlations for Teaney-Yan study (B): // 59th bin: <4>_{6n|4n,1n,1n} = four6n4n1n1n = // 60th bin: <4>_{6n|2n,2n,2n} = four6n2n2n2n = // 61st bin: <5>_{6n|2n,2n,1n,1n} = five6n2n2n1n1n = // 62nd bin: <5>_{4n,1n,1n|3n,3n} = five4n1n1n3n3n = // 63rd bin: <6>_{3n,3n|2n,2n,1n,1n} = six3n3n2n2n1n1n = // -------------------------------------------------------------------------------------------------------------------- // Multiplicity of an event: Double_t dMult = (*fSpk)(0,0); // Real parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n, 4n, 5n and 6n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); Double_t dReQ3n = (*fReQ)(2,0); Double_t dReQ4n = (*fReQ)(3,0); Double_t dReQ5n = (*fReQ)(4,0); Double_t dReQ6n = (*fReQ)(5,0); // Imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n, 4n, 5n and 6n: Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); Double_t dImQ3n = (*fImQ)(2,0); Double_t dImQ4n = (*fImQ)(3,0); Double_t dImQ5n = (*fImQ)(4,0); Double_t dImQ6n = (*fImQ)(5,0); // Multiplicity bin of an event (relevant for all histos vs M): Double_t dMultiplicityBin = 0.; if(fMultiplicityIs==AliFlowCommonConstants::kRP) { dMultiplicityBin = fNumberOfRPsEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { dMultiplicityBin = fReferenceMultiplicityEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { dMultiplicityBin = fNumberOfPOIsEBE+0.5; } // Real parts of expressions involving various combinations of Q-vectors which appears // simultaneously in several equations for multiparticle correlations bellow: // Re[Q_{2n}Q_{n}^*Q_{n}^*] Double_t reQ2nQ1nstarQ1nstar = pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n; // Re[Q_{6n}Q_{3n}^*Q_{3n}^*] Double_t reQ6nQ3nstarQ3nstar = pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n; // Re[Q_{4n}Q_{2n}^*Q_{2n}^*] Double_t reQ4nQ2nstarQ2nstar = pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n; // Re[Q_{4n}Q_{3n}^*Q_{n}^*] Double_t reQ4nQ3nstarQ1nstar = dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n); // Re[Q_{3n}Q_{2n}^*Q_{n}^*] Double_t reQ3nQ2nstarQ1nstar = dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n + dImQ3n*dImQ2n*dReQ1n; // Re[Q_{5n}Q_{3n}^*Q_{2n}^*] Double_t reQ5nQ3nstarQ2nstar = dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n + dImQ5n*dImQ2n*dReQ3n; // Re[Q_{5n}Q_{4n}^*Q_{1n}^*] Double_t reQ5nQ4nstarQ1nstar = dReQ5n*dReQ4n*dReQ1n-dReQ5n*dImQ4n*dImQ1n+dImQ5n*dReQ4n*dImQ1n + dImQ5n*dImQ4n*dReQ1n; // Re[Q_{6n}Q_{5n}^*Q_{1n}^*] Double_t reQ6nQ5nstarQ1nstar = dReQ6n*dReQ5n*dReQ1n-dReQ6n*dImQ5n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.*dReQ3n*pow(dImQ1n,2.)*dImQ3n*dImQ4n + 2.*dReQ1n*dImQ1n*pow(dImQ3n,2.)*dImQ4n; // Re[Q_{3n}Q_{3n}Q_{2n}^*Q_{2n}^*Q_{1n}^*Q_{1n}^*] Double_t reQ3nQ3nQ2nstarQ2nstarQ1nstarQ1nstar = (dReQ1n*dReQ2n*dReQ3n-dReQ2n*dReQ3n*dImQ1n-dReQ1n*dReQ3n*dImQ2n - dReQ3n*dImQ1n*dImQ2n+dReQ1n*dReQ2n*dImQ3n+dReQ2n*dImQ1n*dImQ3n + dReQ1n*dImQ2n*dImQ3n-dImQ1n*dImQ2n*dImQ3n)*(dReQ1n*dReQ2n*dReQ3n + dReQ2n*dReQ3n*dImQ1n+dReQ1n*dReQ3n*dImQ2n-dReQ3n*dImQ1n*dImQ2n - dReQ1n*dReQ2n*dImQ3n+dReQ2n*dImQ1n*dImQ3n+dReQ1n*dImQ2n*dImQ3n + dImQ1n*dImQ2n*dImQ3n); // Results for multiparticle azimuthal correlations: // 2-particle: Double_t two1n1n = 0.; // Double_t two2n2n = 0.; // Double_t two3n3n = 0.; // Double_t two4n4n = 0.; // if(dMult>1) { two1n1n = (pow(dReQ1n,2.)+pow(dImQ1n,2.)-dMult)/(dMult*(dMult-1.)); two2n2n = (pow(dReQ2n,2.)+pow(dImQ2n,2.)-dMult)/(dMult*(dMult-1.)); two3n3n = (pow(dReQ3n,2.)+pow(dImQ3n,2.)-dMult)/(dMult*(dMult-1.)); two4n4n = (pow(dReQ4n,2.)+pow(dImQ4n,2.)-dMult)/(dMult*(dMult-1.)); // Average 2-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(1,two1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(2,two2n2n); fIntFlowCorrelationsAllEBE->SetBinContent(3,two3n3n); fIntFlowCorrelationsAllEBE->SetBinContent(4,two4n4n); // Average 2-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(0.5,two1n1n,dMult*(dMult-1.)); fIntFlowCorrelationsAllPro->Fill(1.5,two2n2n,dMult*(dMult-1.)); fIntFlowCorrelationsAllPro->Fill(2.5,two3n3n,dMult*(dMult-1.)); fIntFlowCorrelationsAllPro->Fill(3.5,two4n4n,dMult*(dMult-1.)); // Store separetately <2>: fIntFlowCorrelationsEBE->SetBinContent(1,two1n1n); // <2> // Testing other multiplicity weights: Double_t mWeight2p = 0.; if(fMultiplicityWeight->Contains("combinations")) { mWeight2p = dMult*(dMult-1.); } else if(fMultiplicityWeight->Contains("unit")) { mWeight2p = 1.; } else if(fMultiplicityWeight->Contains("multiplicity")) { mWeight2p = dMult; } fIntFlowEventWeightsForCorrelationsEBE->SetBinContent(1,mWeight2p); // eW_<2> fIntFlowCorrelationsPro->Fill(0.5,two1n1n,mWeight2p); fIntFlowSquaredCorrelationsPro->Fill(0.5,two1n1n*two1n1n,mWeight2p); if(fCalculateCumulantsVsM) { fIntFlowCorrelationsVsMPro[0]->Fill(dMultiplicityBin,two1n1n,mWeight2p); fIntFlowSquaredCorrelationsVsMPro[0]->Fill(dMultiplicityBin,two1n1n*two1n1n,mWeight2p); } if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[0]->Fill(dMultiplicityBin,two1n1n,mWeight2p); fIntFlowCorrelationsAllVsMPro[1]->Fill(dMultiplicityBin,two2n2n,mWeight2p); fIntFlowCorrelationsAllVsMPro[2]->Fill(dMultiplicityBin,two3n3n,mWeight2p); fIntFlowCorrelationsAllVsMPro[3]->Fill(dMultiplicityBin,two4n4n,mWeight2p); } } // end of if(dMult>1) // 3-particle: Double_t three2n1n1n = 0.; // Double_t three3n2n1n = 0.; // Double_t three4n2n2n = 0.; // Double_t three4n3n1n = 0.; // if(dMult>2) { three2n1n1n = (reQ2nQ1nstarQ1nstar-2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three3n2n1n = (reQ3nQ2nstarQ1nstar-(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three4n2n2n = (reQ4nQ2nstarQ2nstar-2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three4n3n1n = (reQ4nQ3nstarQ1nstar-(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); // Average 3-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(6,three2n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(7,three3n2n1n); fIntFlowCorrelationsAllEBE->SetBinContent(8,three4n2n2n); fIntFlowCorrelationsAllEBE->SetBinContent(9,three4n3n1n); // Average 3-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(5.5,three2n1n1n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllPro->Fill(6.5,three3n2n1n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllPro->Fill(7.5,three4n2n2n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllPro->Fill(8.5,three4n3n1n,dMult*(dMult-1.)*(dMult-2.)); // Average 3-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[5]->Fill(dMultiplicityBin,three2n1n1n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[6]->Fill(dMultiplicityBin,three3n2n1n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[7]->Fill(dMultiplicityBin,three4n2n2n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[8]->Fill(dMultiplicityBin,three4n3n1n,dMult*(dMult-1.)*(dMult-2.)); } } // end of if(dMult>2) // 4-particle: Double_t four1n1n1n1n = 0.; // Double_t four2n2n2n2n = 0.; // Double_t four2n1n2n1n = 0.; // Double_t four3n1n1n1n = 0.; // Double_t four4n2n1n1n = 0.; // Double_t four3n1n2n2n = 0.; // Double_t four3n1n3n1n = 0.; // if(dMult>3) { four1n1n1n1n = (2.*dMult*(dMult-3.)+pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ1n,2.) + pow(dImQ1n,2.))-2.*reQ2nQ1nstarQ1nstar+(pow(dReQ2n,2.)+pow(dImQ2n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four2n2n2n2n = (2.*dMult*(dMult-3.)+pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ2n,2.) + pow(dImQ2n,2.))-2.*reQ4nQ2nstarQ2nstar+(pow(dReQ4n,2.)+pow(dImQ4n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four2n1n2n1n = (dQ2nQ1nQ2nstarQ1nstar-2.*reQ3nQ2nstarQ1nstar-2.*reQ2nQ1nstarQ1nstar) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - ((dMult-5.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-4.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-(pow(dReQ3n,2.)+pow(dImQ3n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) + (dMult-6.)/((dMult-1.)*(dMult-2.)*(dMult-3.)); four3n1n1n1n = (reQ3nQ1nstarQ1nstarQ1nstar-3.*reQ3nQ2nstarQ1nstar-3.*reQ2nQ1nstarQ1nstar + 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+3.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 6.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four4n2n1n1n = (reQ4nQ2nstarQ1nstarQ1nstar-2.*reQ4nQ3nstarQ1nstar-reQ4nQ2nstarQ2nstar-2.*reQ3nQ2nstarQ1nstar) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - (reQ2nQ1nstarQ1nstar-2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 3.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - 6./((dMult-1.)*(dMult-2.)*(dMult-3.)); four3n1n2n2n = (reQ3nQ1nQ2nstarQ2nstar-reQ4nQ2nstarQ2nstar-reQ4nQ3nstarQ1nstar-2.*reQ3nQ2nstarQ1nstar) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - (2.*reQ2nQ1nstarQ1nstar-(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 4.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - 6./((dMult-1.)*(dMult-2.)*(dMult-3.)); four3n1n3n1n = ((pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*reQ4nQ3nstarQ1nstar-2.*reQ3nQ2nstarQ1nstar + pow(dReQ4n,2.)+pow(dImQ4n,2.)-(dMult-4.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + pow(dReQ2n,2.)+pow(dImQ2n,2.)-(dMult-4.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // Average 4-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(11,four1n1n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(12,four2n1n2n1n); fIntFlowCorrelationsAllEBE->SetBinContent(13,four2n2n2n2n); fIntFlowCorrelationsAllEBE->SetBinContent(14,four3n1n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(15,four3n1n3n1n); fIntFlowCorrelationsAllEBE->SetBinContent(16,four3n1n2n2n); fIntFlowCorrelationsAllEBE->SetBinContent(17,four4n2n1n1n); // Average 4-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(10.5,four1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(11.5,four2n1n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(12.5,four2n2n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(13.5,four3n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(14.5,four3n1n3n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(15.5,four3n1n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(16.5,four4n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // Average 4-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[10]->Fill(dMultiplicityBin,four1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[11]->Fill(dMultiplicityBin,four2n1n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[12]->Fill(dMultiplicityBin,four2n2n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[13]->Fill(dMultiplicityBin,four3n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[14]->Fill(dMultiplicityBin,four3n1n3n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[15]->Fill(dMultiplicityBin,four3n1n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[16]->Fill(dMultiplicityBin,four4n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); } // Store separetately <4>: fIntFlowCorrelationsEBE->SetBinContent(2,four1n1n1n1n); // <4> // Testing other multiplicity weights: Double_t mWeight4p = 0.; if(fMultiplicityWeight->Contains("combinations")) { mWeight4p = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.); } else if(fMultiplicityWeight->Contains("unit")) { mWeight4p = 1.; } else if(fMultiplicityWeight->Contains("multiplicity")) { mWeight4p = dMult; } fIntFlowEventWeightsForCorrelationsEBE->SetBinContent(2,mWeight4p); // eW_<4> fIntFlowCorrelationsPro->Fill(1.5,four1n1n1n1n,mWeight4p); fIntFlowSquaredCorrelationsPro->Fill(1.5,four1n1n1n1n*four1n1n1n1n,mWeight4p); if(fCalculateCumulantsVsM) { fIntFlowCorrelationsVsMPro[1]->Fill(dMultiplicityBin,four1n1n1n1n,mWeight4p); fIntFlowSquaredCorrelationsVsMPro[1]->Fill(dMultiplicityBin,four1n1n1n1n*four1n1n1n1n,mWeight4p); } } // end of if(dMult>3) // 5-particle: Double_t five2n1n1n1n1n = 0.; // Double_t five2n2n2n1n1n = 0.; // Double_t five3n1n2n1n1n = 0.; // Double_t five4n1n1n1n1n = 0.; // if(dMult>4) { five2n1n1n1n1n = (reQ2nQ1nQ1nstarQ1nstarQ1nstar-reQ3nQ1nstarQ1nstarQ1nstar+5.*reQ3nQ2nstarQ1nstar - 3.*(dMult-5.)*reQ2nQ1nstarQ1nstar-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 3.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 3.*(dMult-4.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 3.*pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.) + 6.*(2.*dMult-5.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult*(dMult-4.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five2n2n2n1n1n = (reQ2nQ2nQ2nstarQ1nstarQ1nstar-reQ4nQ2nstarQ1nstarQ1nstar-2.*reQ3nQ1nQ2nstarQ2nstar + 3.*reQ4nQ2nstarQ2nstar+8.*reQ3nQ2nstarQ1nstar+2.*reQ4nQ3nstarQ1nstar - 2.*(dMult-6.)*reQ2nQ1nstarQ1nstar - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-4.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.) + 2.*(3.*dMult-10.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 4.*(dMult-5.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five4n1n1n1n1n = (reQ4nQ1nstarQ1nstarQ1nstarQ1nstar-6.*reQ4nQ2nstarQ1nstarQ1nstar-4.*reQ3nQ1nstarQ1nstarQ1nstar + 8.*reQ4nQ3nstarQ1nstar+3.*reQ4nQ2nstarQ2nstar+12.*reQ3nQ2nstarQ1nstar+12.*reQ2nQ1nstarQ1nstar - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-8.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 12.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-24.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))+24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five3n1n2n1n1n = (reQ3nQ1nQ2nstarQ1nstarQ1nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ3nQ1nstarQ1nstarQ1nstar - reQ3nQ1nQ2nstarQ2nstar+4.*reQ4nQ3nstarQ1nstar+reQ4nQ2nstarQ2nstar - (2.*dMult-13.)*reQ3nQ2nstarQ1nstar+7.*reQ2nQ1nstarQ1nstar - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-5.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.) + 2.*(3.*dMult-11.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Average 5-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(19,five2n1n1n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(20,five2n2n2n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(21,five3n1n2n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(22,five4n1n1n1n1n); // Average 5-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(18.5,five2n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(19.5,five2n2n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(20.5,five3n1n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(21.5,five4n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Average 5-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[18]->Fill(dMultiplicityBin,five2n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[19]->Fill(dMultiplicityBin,five2n2n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[20]->Fill(dMultiplicityBin,five3n1n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[21]->Fill(dMultiplicityBin,five4n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); } } // end of if(dMult>4) // 6-particle: Double_t six1n1n1n1n1n1n = 0.; // Double_t six2n2n1n1n1n1n = 0.; // Double_t six3n1n1n1n1n1n = 0.; // Double_t six2n1n1n2n1n1n = 0.; // if(dMult>5) { six1n1n1n1n1n1n = (pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),3.)-6.*reQ2nQ1nQ1nstarQ1nstarQ1nstar + 4.*reQ3nQ1nstarQ1nstarQ1nstar-12.*reQ3nQ2nstarQ1nstar+18.*(dMult-4.)*reQ2nQ1nstarQ1nstar + 9.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 4.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-9.*(dMult-4.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 9.*(dMult-4.)*pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.) + 18.*(dMult*dMult-7.*dMult+10.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*dMult*(dMult*dMult-9.*dMult+20.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); six2n1n1n2n1n1n = (dQ2nQ1nQ1nQ2nstarQ1nstarQ1nstar-4.*reQ3nQ1nQ2nstarQ1nstarQ1nstar - 4.*reQ2nQ1nQ1nstarQ1nstarQ1nstar-2.*reQ2nQ2nQ2nstarQ1nstarQ1nstar + 4.*reQ4nQ2nstarQ1nstarQ1nstar+4.*reQ3nQ1nQ2nstarQ2nstar+4.*reQ3nQ1nstarQ1nstarQ1nstar - 8.*reQ4nQ3nstarQ1nstar-4.*reQ4nQ2nstarQ2nstar+4.*(2.*dMult-13.)*reQ3nQ2nstarQ1nstar + 2.*(7.*dMult-34.)*reQ2nQ1nstarQ1nstar+4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 4.*(dMult-7.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 4.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-4.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.)+(2.*dMult*dMult-27.*dMult+76.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (dMult-12.)*pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.) + 4.*(dMult*dMult-15.*dMult+34.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*dMult*(dMult*dMult-17.*dMult+60.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); six2n2n1n1n1n1n = (reQ2nQ2nQ1nstarQ1nstarQ1nstarQ1nstar-6.*reQ2nQ2nQ2nstarQ1nstarQ1nstar-reQ4nQ1nstarQ1nstarQ1nstarQ1nstar - 8.*reQ2nQ1nQ1nstarQ1nstarQ1nstar+8.*reQ3nQ1nstarQ1nstarQ1nstar+6.*reQ4nQ2nstarQ1nstarQ1nstar + 8.*reQ3nQ1nQ2nstarQ2nstar-40.*reQ3nQ2nstarQ1nstar-8.*reQ4nQ3nstarQ1nstar-9.*reQ4nQ2nstarQ2nstar + 24.*(dMult-4.)*reQ2nQ1nstarQ1nstar+24.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+16.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 3.*pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.)-12.*(2.*dMult-7.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 12.*pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.)-48.*(dMult-3.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult*(dMult-5.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); six3n1n1n1n1n1n = (reQ3nQ1nQ1nstarQ1nstarQ1nstarQ1nstar-6.*reQ3nQ1nQ2nstarQ1nstarQ1nstar+6.*reQ4nQ2nstarQ1nstarQ1nstar - reQ4nQ1nstarQ1nstarQ1nstarQ1nstar-4.*reQ2nQ1nQ1nstarQ1nstarQ1nstar+3.*reQ3nQ1nQ2nstarQ2nstar - 4.*(dMult-5.)*reQ3nQ1nstarQ1nstarQ1nstar-14.*reQ4nQ3nstarQ1nstar - 3.*reQ4nQ2nstarQ2nstar+4.*(3.*dMult-17.)*reQ3nQ2nstarQ1nstar+12.*(dMult-6.)*reQ2nQ1nstarQ1nstar + 12.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 8.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-8.*(dMult-5.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 12.*(dMult-5.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-48.*(dMult-3.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 12.*pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.)+24.*dMult*(dMult-5.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); // Average 6-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(24,six1n1n1n1n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(25,six2n1n1n2n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(26,six2n2n1n1n1n1n); fIntFlowCorrelationsAllEBE->SetBinContent(27,six3n1n1n1n1n1n); // Average 6-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(23.5,six1n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllPro->Fill(24.5,six2n1n1n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllPro->Fill(25.5,six2n2n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllPro->Fill(26.5,six3n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); // Average 6-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[23]->Fill(dMultiplicityBin,six1n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllVsMPro[24]->Fill(dMultiplicityBin,six2n1n1n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllVsMPro[25]->Fill(dMultiplicityBin,six2n2n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllVsMPro[26]->Fill(dMultiplicityBin,six3n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); } // Store separetately <6>: fIntFlowCorrelationsEBE->SetBinContent(3,six1n1n1n1n1n1n); // <6> // Testing other multiplicity weights: Double_t mWeight6p = 0.; if(fMultiplicityWeight->Contains("combinations")) { mWeight6p = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.); } else if(fMultiplicityWeight->Contains("unit")) { mWeight6p = 1.; } else if(fMultiplicityWeight->Contains("multiplicity")) { mWeight6p = dMult; } fIntFlowEventWeightsForCorrelationsEBE->SetBinContent(3,mWeight6p); // eW_<6> fIntFlowCorrelationsPro->Fill(2.5,six1n1n1n1n1n1n,mWeight6p); fIntFlowSquaredCorrelationsPro->Fill(2.5,six1n1n1n1n1n1n*six1n1n1n1n1n1n,mWeight6p); if(fCalculateCumulantsVsM) { fIntFlowCorrelationsVsMPro[2]->Fill(dMultiplicityBin,six1n1n1n1n1n1n,mWeight6p); fIntFlowSquaredCorrelationsVsMPro[2]->Fill(dMultiplicityBin,six1n1n1n1n1n1n*six1n1n1n1n1n1n,mWeight6p); } } // end of if(dMult>5) // 7-particle: Double_t seven2n1n1n1n1n1n1n = 0.; // if(dMult>6) { seven2n1n1n1n1n1n1n = (reQ2nQ1nQ1nQ1nstarQ1nstarQ1nstarQ1nstar-4.*pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),3.) - reQ2nQ2nQ1nstarQ1nstarQ1nstarQ1nstar-2.*reQ3nQ1nQ1nstarQ1nstarQ1nstarQ1nstar + 9.*reQ2nQ2nQ2nstarQ1nstarQ1nstar+20.*reQ3nQ1nQ2nstarQ1nstarQ1nstar + 2.*reQ4nQ1nstarQ1nstarQ1nstarQ1nstar-8.*(dMult-8.)*reQ2nQ1nQ1nstarQ1nstarQ1nstar - 18.*reQ4nQ2nstarQ1nstarQ1nstar-14.*reQ3nQ1nQ2nstarQ2nstar + 8.*(dMult-7.)*reQ3nQ1nstarQ1nstarQ1nstar+28.*reQ4nQ3nstarQ1nstar + 12.*reQ4nQ2nstarQ2nstar-8.*(5.*dMult-31.)*reQ3nQ2nstarQ1nstar + 12.*(dMult*dMult-15.*dMult+46.)*reQ2nQ1nstarQ1nstar - 16.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 6.*pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),2.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 3.*pow(pow(dReQ2n,2.)+pow(dImQ2n,2.),2.) + 12.*(2.*dMult-13.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 12.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+16.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 12.*(dMult-8.)*(dMult-4.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 12.*(3.*dMult-14.)*pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),2.) - 24.*(3.*dMult-7.)*(dMult-6.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult*(dMult-5.)*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)*(dMult-6.)); // Average 7-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(29,seven2n1n1n1n1n1n1n); // Average 7-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(28.5,seven2n1n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.) *(dMult-4.)*(dMult-5.)*(dMult-6.)); // Average 7-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[28]->Fill(dMultiplicityBin,seven2n1n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.) *(dMult-4.)*(dMult-5.)*(dMult-6.)); } } // end of if(dMult>6) // 8-particle: Double_t eight1n1n1n1n1n1n1n1n = 0.; // if(dMult>7) { eight1n1n1n1n1n1n1n1n = (pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),4.)-12.*reQ2nQ1nQ1nQ1nstarQ1nstarQ1nstarQ1nstar + 16.*reQ3nQ1nQ1nstarQ1nstarQ1nstarQ1nstar+6.*reQ2nQ2nQ1nstarQ1nstarQ1nstarQ1nstar - 12.*reQ4nQ1nstarQ1nstarQ1nstarQ1nstar-36.*reQ2nQ2nQ2nstarQ1nstarQ1nstar - 96.*reQ3nQ1nQ2nstarQ1nstarQ1nstar + 72.*reQ4nQ2nstarQ1nstarQ1nstar+48.*reQ3nQ1nQ2nstarQ2nstar - 64.*(dMult-6.)*reQ3nQ1nstarQ1nstarQ1nstar + 96.*(dMult-6.)*reQ2nQ1nQ1nstarQ1nstarQ1nstar - 96.*reQ4nQ3nstarQ1nstar-36.*reQ4nQ2nstarQ2nstar + 192.*(dMult-6.)*reQ3nQ2nstarQ1nstar - 144.*(dMult-7.)*(dMult-4.)*reQ2nQ1nstarQ1nstar + 64.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 144.*(dMult-6.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 72.*(dMult-7.)*(dMult-4.)*(pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 96.*(dMult-7.)*(dMult-6.)*(dMult-2.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 36.*pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),2.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 9.*pow(pow(dReQ2n,2.)+pow(dImQ2n,2.),2.) - 64.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 36.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 16.*(dMult-6.)*pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),3.) + 24.*dMult*(dMult-7.)*(dMult-6.)*(dMult-5.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)*(dMult-6.)*(dMult-7.)); // Average 8-particle correlations for single event: fIntFlowCorrelationsAllEBE->SetBinContent(31,eight1n1n1n1n1n1n1n1n); // Average 8-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(30.5,eight1n1n1n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.) *(dMult-4.)*(dMult-5.)*(dMult-6.)*(dMult-7.)); // Average 8-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[30]->Fill(dMultiplicityBin,eight1n1n1n1n1n1n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.) *(dMult-4.)*(dMult-5.)*(dMult-6.)*(dMult-7.)); } // Store separetately <8>: fIntFlowCorrelationsEBE->SetBinContent(4,eight1n1n1n1n1n1n1n1n); // <8> // Testing other multiplicity weights: Double_t mWeight8p = 0.; if(fMultiplicityWeight->Contains("combinations")) { mWeight8p = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)*(dMult-6.)*(dMult-7.); } else if(fMultiplicityWeight->Contains("unit")) { mWeight8p = 1.; } else if(fMultiplicityWeight->Contains("multiplicity")) { mWeight8p = dMult; } fIntFlowEventWeightsForCorrelationsEBE->SetBinContent(4,mWeight8p); // eW_<8> fIntFlowCorrelationsPro->Fill(3.5,eight1n1n1n1n1n1n1n1n,mWeight8p); fIntFlowSquaredCorrelationsPro->Fill(3.5,eight1n1n1n1n1n1n1n1n*eight1n1n1n1n1n1n1n1n,mWeight8p); if(fCalculateCumulantsVsM) { fIntFlowCorrelationsVsMPro[3]->Fill(dMultiplicityBin,eight1n1n1n1n1n1n1n1n,mWeight8p); fIntFlowSquaredCorrelationsVsMPro[3]->Fill(dMultiplicityBin,eight1n1n1n1n1n1n1n1n*eight1n1n1n1n1n1n1n1n,mWeight8p); } } // end of if(dMult>7) // EXTRA correlations for v3{5} study: // 4-particle: Double_t four4n2n3n3n = 0.; // if(dMult>3.) { four4n2n3n3n = (reQ4nQ2nQ3nstarQ3nstar-reQ6nQ4nstarQ2nstar-reQ6nQ3nstarQ3nstar - 2.*reQ4nQ3nstarQ1nstar-2.*reQ3nQ2nstarQ1nstar + (pow(dReQ6n,2.)+pow(dImQ6n,2.))+2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (pow(dReQ1n,2.)+pow(dImQ1n,2.))-3.*dMult)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(32.5,four4n2n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // Average 4-particle correlations vs M for all events: if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[32]->Fill(dMultiplicityBin,four4n2n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); } } // end of if(dMult>3.) // 5-particle: Double_t five3n3n2n2n2n = 0.; // if(dMult>4.) { five3n3n2n2n2n = (reQ3nQ3nQ2nstarQ2nstarQ2nstar-reQ6nQ2nstarQ2nstarQ2nstar-3.*reQ4nQ2nQ3nstarQ3nstar - 6.*reQ3nQ1nQ2nstarQ2nstar+2.*reQ6nQ3nstarQ3nstar+3.*reQ6nQ4nstarQ2nstar + 6.*reQ4nQ3nstarQ1nstar+6.*reQ4nQ2nstarQ2nstar + 12.*reQ3nQ2nstarQ1nstar+6.*reQ2nQ1nstarQ1nstar - 2.*((pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 3.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 9.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 6.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-12.*dMult)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(33.5,five3n3n2n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[33]->Fill(dMultiplicityBin,five3n3n2n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); } } // end of if(dMult>4.) // EXTRA correlations for Teaney-Yan study: // 2-particle: Double_t two5n5n = 0.; // Double_t two6n6n = 0.; // if(dMult>1) { two5n5n = (pow(dReQ5n,2.)+pow(dImQ5n,2.)-dMult)/(dMult*(dMult-1.)); two6n6n = (pow(dReQ6n,2.)+pow(dImQ6n,2.)-dMult)/(dMult*(dMult-1.)); // Average 2-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(34.5,two5n5n,dMult*(dMult-1.)); fIntFlowCorrelationsAllPro->Fill(35.5,two6n6n,dMult*(dMult-1.)); if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[34]->Fill(dMultiplicityBin,two5n5n,dMult*(dMult-1.)); fIntFlowCorrelationsAllVsMPro[35]->Fill(dMultiplicityBin,two6n6n,dMult*(dMult-1.)); } } // end of if(dMult>1) // 3-particle: Double_t three5n3n2n = 0.; // Double_t three5n4n1n = 0.; // Double_t three6n3n3n = 0.; // Double_t three6n4n2n = 0.; // Double_t three6n5n1n = 0.; // if(dMult>2) { three5n3n2n = (reQ5nQ3nstarQ2nstar-(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three5n4n1n = (reQ5nQ4nstarQ1nstar-(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three6n3n3n = (reQ6nQ3nstarQ3nstar-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three6n4n2n = (reQ6nQ4nstarQ2nstar-(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three6n5n1n = (reQ6nQ5nstarQ1nstar-(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); // Average 3-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(36.5,three5n3n2n,dMult*(dMult-1.)*(dMult-2.)); // <> fIntFlowCorrelationsAllPro->Fill(37.5,three5n4n1n,dMult*(dMult-1.)*(dMult-2.)); // <> fIntFlowCorrelationsAllPro->Fill(38.5,three6n3n3n,dMult*(dMult-1.)*(dMult-2.)); // <> fIntFlowCorrelationsAllPro->Fill(39.5,three6n4n2n,dMult*(dMult-1.)*(dMult-2.)); // <> fIntFlowCorrelationsAllPro->Fill(40.5,three6n5n1n,dMult*(dMult-1.)*(dMult-2.)); // <> if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[36]->Fill(dMultiplicityBin,three5n3n2n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[37]->Fill(dMultiplicityBin,three5n4n1n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[38]->Fill(dMultiplicityBin,three6n3n3n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[39]->Fill(dMultiplicityBin,three6n4n2n,dMult*(dMult-1.)*(dMult-2.)); fIntFlowCorrelationsAllVsMPro[40]->Fill(dMultiplicityBin,three6n5n1n,dMult*(dMult-1.)*(dMult-2.)); } } // end of if(dMult>2) // 4-particle: Double_t four6n3n2n1n = 0.; // Double_t four3n2n3n2n = 0.; // Double_t four4n1n3n2n = 0.; // Double_t four3n3n3n3n = 0.; // //Double_t four4n2n3n3n = 0.; // // I already have this one above Double_t four5n1n3n3n = 0.; // Double_t four4n2n4n2n = 0.; // Double_t four5n1n4n2n = 0.; // Double_t four5n3n1n1n = 0.; // Double_t four5n2n2n1n = 0.; // Double_t four5n1n5n1n = 0.; // Double_t four6n4n1n1n = 0.; // Double_t four6n2n2n2n = 0.; // if(dMult>3) { four6n3n2n1n = (reQ6nQ3nstarQ2nstarQ1nstar-reQ6nQ4nstarQ2nstar-reQ6nQ3nstarQ3nstar-reQ6nQ5nstarQ1nstar - reQ5nQ3nstarQ2nstar-reQ4nQ3nstarQ1nstar-reQ3nQ2nstarQ1nstar + 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))+pow(dReQ5n,2.)+pow(dImQ5n,2.) + pow(dReQ4n,2.)+pow(dImQ4n,2.)+3.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four3n2n3n2n = (dQ3nQ2nQ3nstarQ2nstar-2.*reQ5nQ3nstarQ2nstar-2.*reQ3nQ2nstarQ1nstar + pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.) -(dMult-4.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four4n1n3n2n = (reQ4nQ1nQ3nstarQ2nstar-reQ5nQ3nstarQ2nstar-reQ5nQ4nstarQ1nstar-reQ4nQ3nstarQ1nstar - reQ4nQ2nstarQ2nstar-reQ3nQ2nstarQ1nstar-reQ2nQ1nstarQ1nstar + pow(dReQ5n,2.)+pow(dImQ5n,2.)+2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+3.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 3.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four3n3n3n3n = (2.*dMult*(dMult-3.)+pow((pow(dReQ3n,2.)+pow(dImQ3n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ3n,2.) + pow(dImQ3n,2.))-2.*reQ6nQ3nstarQ3nstar+(pow(dReQ6n,2.)+pow(dImQ6n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); //four4n2n3n3n = ; // I already have this one above four5n1n3n3n = (reQ5nQ1nQ3nstarQ3nstar-reQ6nQ5nstarQ1nstar-reQ6nQ3nstarQ3nstar-2.*reQ5nQ3nstarQ2nstar - 2.*reQ3nQ2nstarQ1nstar+pow(dReQ6n,2.)+pow(dImQ6n,2.)+2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + 4.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four4n2n4n2n = (dQ4nQ2nQ4nstarQ2nstar-2.*reQ6nQ4nstarQ2nstar-2.*reQ4nQ2nstarQ2nstar) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - ((dMult-5.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-4.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-(pow(dReQ6n,2.)+pow(dImQ6n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) + (dMult-6.)/((dMult-1.)*(dMult-2.)*(dMult-3.)); four5n1n4n2n = (reQ5nQ1nQ4nstarQ2nstar-reQ6nQ5nstarQ1nstar-reQ6nQ4nstarQ2nstar-reQ5nQ4nstarQ1nstar - reQ5nQ3nstarQ2nstar-reQ4nQ3nstarQ1nstar-reQ2nQ1nstarQ1nstar+pow(dReQ6n,2.)+pow(dImQ6n,2.) + 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.))+2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + pow(dReQ3n,2.)+pow(dImQ3n,2.)+2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 3.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four5n3n1n1n = (reQ5nQ3nstarQ1nstarQ1nstar-2.*reQ5nQ4nstarQ1nstar-reQ5nQ3nstarQ2nstar-2.*reQ4nQ3nstarQ1nstar - reQ2nQ1nstarQ1nstar+2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.))+2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+pow(dReQ2n,2.)+pow(dImQ2n,2.) + 4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four5n2n2n1n = (reQ5nQ2nstarQ2nstarQ1nstar-reQ5nQ4nstarQ1nstar-2.*reQ5nQ3nstarQ2nstar-reQ4nQ2nstarQ2nstar - 2.*reQ3nQ2nstarQ1nstar+2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.))+pow(dReQ4n,2.)+pow(dImQ4n,2.) + 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+4.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four5n1n5n1n = (dQ5nQ1nQ5nstarQ1nstar-2.*reQ6nQ5nstarQ1nstar-2.*reQ5nQ4nstarQ1nstar + pow(dReQ6n,2.)+pow(dImQ6n,2.)-(dMult-4.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + pow(dReQ4n,2.)+pow(dImQ4n,2.)-(dMult-4.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))+dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // TBI: Recursive formula needed: four6n4n1n1n = (reQ6nQ4nstarQ1nstarQ1nstar - dMult*(dMult-1.)*(dMult-2.)*(three2n1n1n+2.*three5n4n1n+2.*three6n5n1n+three6n4n2n) - dMult*(dMult-1.)*(2.*two1n1n+1.*two4n4n+1.*two6n6n+1.*two2n2n+2.*two5n5n) - 1.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four6n2n2n2n = (reQ6nQ2nstarQ2nstarQ2nstar-3.*reQ6nQ4nstarQ2nstar-3.*reQ4nQ2nstarQ2nstar + 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))+3.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 6.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // Average 4-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(41.5,four6n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(42.5,four3n2n3n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(43.5,four4n1n3n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(44.5,four3n3n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); //fIntFlowCorrelationsAllPro->Fill(45.5,four4n2n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // I already have this one above fIntFlowCorrelationsAllPro->Fill(46.5,four5n1n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(47.5,four4n2n4n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(48.5,four5n1n4n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(49.5,four5n3n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(50.5,four5n2n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(51.5,four5n1n5n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(58.5,four6n4n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllPro->Fill(59.5,four6n2n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[41]->Fill(dMultiplicityBin,four6n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[42]->Fill(dMultiplicityBin,four3n2n3n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[43]->Fill(dMultiplicityBin,four4n1n3n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[44]->Fill(dMultiplicityBin,four3n3n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); //fIntFlowCorrelationsAllVsMPro[45]->Fill(dMultiplicityBin,four4n2n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[46]->Fill(dMultiplicityBin,four5n1n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[47]->Fill(dMultiplicityBin,four4n2n4n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[48]->Fill(dMultiplicityBin,four5n1n4n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[49]->Fill(dMultiplicityBin,four5n3n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[50]->Fill(dMultiplicityBin,four5n2n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[51]->Fill(dMultiplicityBin,four5n1n5n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[58]->Fill(dMultiplicityBin,four6n4n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); fIntFlowCorrelationsAllVsMPro[59]->Fill(dMultiplicityBin,four6n2n2n2n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); } } // end of if(dMult>3) // 5-particle: Double_t five3n3n3n2n1n = 0.; // Double_t five4n2n3n2n1n = 0.; // Double_t five3n2n3n1n1n = 0.; // Double_t five3n2n2n2n1n = 0.; // Double_t five5n1n3n2n1n = 0.; // Double_t five6n2n2n1n1n = 0.; // Double_t five4n1n1n3n3n = 0.; // if(dMult>4) { five3n3n3n2n1n = (reQ3nQ3nQ3nstarQ2nstarQ1nstar-reQ6nQ3nstarQ2nstarQ1nstar-reQ5nQ1nQ3nstarQ3nstar-reQ4nQ2nQ3nstarQ3nstar + reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+3.*reQ6nQ3nstarQ3nstar+4.*reQ5nQ3nstarQ2nstar+4.*reQ4nQ3nstarQ1nstar - 2.*(dMult-6.)*reQ3nQ2nstarQ1nstar-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+2.*(3.*dMult-10.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - pow((pow(dReQ3n,2.)+pow(dImQ3n,2.)),2.)+2.*(dMult-5.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-5.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five4n2n3n2n1n = (reQ4nQ2nQ3nstarQ2nstarQ1nstar-reQ6nQ3nstarQ2nstarQ1nstar-reQ5nQ1nQ4nstarQ2nstar - reQ4nQ2nQ3nstarQ3nstar-reQ4nQ1nQ3nstarQ2nstar-reQ4nQ2nstarQ1nstarQ1nstar - reQ3nQ1nQ2nstarQ2nstar-(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 3.*reQ6nQ4nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ6nQ3nstarQ3nstar+reQ5nQ4nstarQ1nstar + 3.*reQ5nQ3nstarQ2nstar-(dMult-7.)*reQ4nQ3nstarQ1nstar+3.*reQ4nQ2nstarQ2nstar+7.*reQ3nQ2nstarQ1nstar + 4.*reQ2nQ1nstarQ1nstar-(pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+(dMult-10.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 2.*(dMult-7.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))+(dMult-12.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five3n2n3n1n1n = (reQ3nQ2nQ3nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar-2.*reQ4nQ1nQ3nstarQ2nstar-reQ3nQ1nstarQ1nstarQ1nstar - 2.*reQ3nQ1nQ2nstarQ2nstar+2.*reQ5nQ4nstarQ1nstar+3.*reQ5nQ3nstarQ2nstar+6.*reQ4nQ3nstarQ1nstar + 2.*reQ4nQ2nstarQ2nstar+9.*reQ3nQ2nstarQ1nstar-(dMult-8.)*reQ2nQ1nstarQ1nstar - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-4.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+(dMult-12.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-9.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five3n2n2n2n1n = (reQ3nQ2nQ2nstarQ2nstarQ1nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ4nQ1nQ3nstarQ2nstar-reQ3nQ1nQ2nstarQ2nstar - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.))+reQ5nQ4nstarQ1nstar + 4.*reQ5nQ3nstarQ2nstar+reQ4nQ3nstarQ1nstar+3.*reQ4nQ2nstarQ2nstar-2.*(dMult-6.)*reQ3nQ2nstarQ1nstar + 4.*reQ2nQ1nstarQ1nstar-2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+2.*(dMult-5.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.)+2.*(3.*dMult-10.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five5n1n3n2n1n = (reQ5nQ1nQ3nstarQ2nstarQ1nstar-reQ6nQ3nstarQ2nstarQ1nstar-reQ5nQ1nQ4nstarQ2nstar-reQ5nQ1nQ3nstarQ3nstar - reQ4nQ1nQ3nstarQ2nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ2nstarQ2nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ6nQ3nstarQ3nstar+4.*reQ5nQ4nstarQ1nstar - (dMult-7.)*reQ5nQ3nstarQ2nstar+4.*reQ4nQ3nstarQ1nstar+reQ4nQ2nstarQ2nstar+6.*reQ3nQ2nstarQ1nstar + 3.*reQ2nQ1nstarQ1nstar-(pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))+(dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 4.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+(dMult-10.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-10.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*(dMult-7.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Peter Jochumzsen: five6n2n2n1n1n = (reQ6nQ2nstarQ2nstarQ1nstarQ1nstar - 12.*pow(dReQ1n,2.)-12.*pow(dImQ1n,2.) - 14.*pow(dReQ2n,2.)-14.*pow(dImQ2n,2.) - 8.*pow(dReQ3n,2.)-8.*pow(dImQ3n,2.) - 6.*pow(dReQ4n,2.)-6.*pow(dImQ4n,2.) - 4.*pow(dReQ5n,2.)-4.*pow(dImQ5n,2.) - 6.*pow(dReQ6n,2.)-6.*pow(dImQ6n,2.) + 2.*reQ2nQ1nstarQ1nstar + 8.*reQ3nQ2nstarQ1nstar + 5.*reQ6nQ4nstarQ2nstar - reQ6nQ4nstarQ1nstarQ1nstar + 2.*reQ6nQ3nstarQ3nstar - reQ6nQ2nstarQ2nstarQ2nstar + 4.*reQ4nQ2nstarQ2nstar - 2.*reQ4nQ2nstarQ1nstarQ1nstar + 2.*reQ5nQ4nstarQ1nstar - 2.*reQ5nQ2nstarQ2nstarQ1nstar + 4.*reQ4nQ3nstarQ1nstar + 4.*reQ5nQ3nstarQ2nstar + 4.*reQ6nQ5nstarQ1nstar - 4.*reQ6nQ3nstarQ2nstarQ1nstar + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Peter Jochumzsen: five4n1n1n3n3n = (reQ4nQ1nQ1nQ3nstarQ3nstar-16.*pow(dReQ1n,2.)-16.*pow(dImQ1n,2.) - 10.*pow(dReQ2n,2.)-10.*pow(dImQ2n,2.)-12.*pow(dReQ3n,2.)-12.*pow(dImQ3n,2.) - 6.*pow(dReQ4n,2.)-6.*pow(dImQ4n,2.)-4.*pow(dReQ5n,2.)-4.*pow(dImQ5n,2.) - 2.*pow(dReQ6n,2.)-2.*pow(dImQ6n,2.)+6.*reQ2nQ1nstarQ1nstar - 1.*reQ6nQ4nstarQ1nstarQ1nstar-1.*reQ4nQ2nQ3nstarQ3nstar + 1.*reQ6nQ4nstarQ2nstar-2.*reQ5nQ1nQ3nstarQ3nstar + 2.*reQ4nQ2nstarQ2nstar+4.*reQ4nQ3nstarQ1nstar - 2.*reQ3nQ1nstarQ1nstarQ1nstar+10.*reQ3nQ2nstarQ1nstar + 2.*reQ6nQ5nstarQ1nstar+2.*reQ6nQ3nstarQ3nstar - 4.*reQ4nQ1nQ3nstarQ2nstar+4.*reQ5nQ4nstarQ1nstar + 4.*reQ5nQ3nstarQ2nstar + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Average 5-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(52.5,five3n3n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(53.5,five4n2n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(54.5,five3n2n3n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(55.5,five3n2n2n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(56.5,five5n1n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(60.5,five6n2n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllPro->Fill(61.5,five4n1n1n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[52]->Fill(dMultiplicityBin,five3n3n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[53]->Fill(dMultiplicityBin,five4n2n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[54]->Fill(dMultiplicityBin,five3n2n3n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[55]->Fill(dMultiplicityBin,five3n2n2n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[56]->Fill(dMultiplicityBin,five5n1n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[60]->Fill(dMultiplicityBin,five6n2n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); fIntFlowCorrelationsAllVsMPro[61]->Fill(dMultiplicityBin,five4n1n1n3n3n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); } } // end of if(dMult>4) // 6-particle: Double_t six3n2n1n3n2n1n = 0.; // Double_t six3n3n2n2n1n1n = 0.; // if(dMult>5.) { six3n2n1n3n2n1n = (dQ3nQ2nQ1nQ3nstarQ2nstarQ1nstar-2.*reQ3nQ3nQ3nstarQ2nstarQ1nstar - 2.*reQ3nQ2nQ2nstarQ2nstarQ1nstar-2.*reQ3nQ1nQ2nstarQ1nstarQ1nstar - 2.*reQ3nQ2nQ3nstarQ1nstarQ1nstar-2.*reQ4nQ2nQ3nstarQ2nstarQ1nstar - 2.*reQ5nQ1nQ3nstarQ2nstarQ1nstar+4.*reQ6nQ3nstarQ2nstarQ1nstar + 2.*reQ5nQ1nQ4nstarQ2nstar+2.*reQ5nQ1nQ3nstarQ3nstar + 2.*reQ4nQ2nQ3nstarQ3nstar+6.*reQ4nQ1nQ3nstarQ2nstar + 2.*reQ5nQ3nstarQ1nstarQ1nstar+2.*reQ5nQ2nstarQ2nstarQ1nstar + 6.*reQ3nQ1nQ2nstarQ2nstar+2.*reQ4nQ2nstarQ1nstarQ1nstar - 4.*reQ6nQ5nstarQ1nstar-4.*reQ6nQ4nstarQ2nstar-6.*reQ5nQ4nstarQ1nstar - 4.*reQ6nQ3nstarQ3nstar+2.*(dMult-11.)*reQ5nQ3nstarQ2nstar + 2.*(dMult-13.)*reQ4nQ3nstarQ1nstar-8.*reQ4nQ2nstarQ2nstar + 2.*(5.*dMult-32.)*reQ3nQ2nstarQ1nstar+2.*reQ3nQ1nstarQ1nstarQ1nstar + 2.*(dMult-13.)*reQ2nQ1nstarQ1nstar - (dMult-10.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (dMult-11.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-10.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 4.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-(dMult-12.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (dMult-16.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+pow((pow(dReQ3n,2.)+pow(dImQ3n,2.)),2.) + (dMult*dMult-19.*dMult+68.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult*dMult-19.*dMult+72.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.)+pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.) + (dMult*dMult-20.*dMult+80.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - dMult*(dMult-12.)*(dMult-10.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); // Peter Jochumzsen: six3n3n2n2n1n1n = (reQ3nQ3nQ2nstarQ2nstarQ1nstarQ1nstar + (80.-16.*dMult)*pow(dReQ1n,2.)+(80.-16.*dMult)*pow(dImQ1n,2.) + (78.-16.*dMult)*pow(dReQ2n,2.)+(78.-16.*dMult)*pow(dImQ2n,2.) + (72.-16.*dMult)*pow(dReQ3n,2.)+(72.-16.*dMult)*pow(dImQ3n,2.) + 14.*pow(dReQ4n,2.)+14.*pow(dImQ4n,2.) + 8.*pow(dReQ5n,2.)+8.*pow(dImQ5n,2.) + 6.*pow(dReQ6n,2.)+6.*pow(dImQ6n,2.) + 1.*reQ6nQ2nstarQ2nstarQ2nstar - 1.*reQ6nQ2nstarQ2nstarQ1nstarQ1nstar - 76.*reQ3nQ2nstarQ1nstar + 4.*reQ3nQ1nstarQ1nstarQ1nstar - 8.*reQ3nQ2nstarQ1nstar + 8.*dQ2nQ1nQ2nstarQ1nstar + 4.*reQ5nQ2nstarQ2nstarQ1nstar - 2.*reQ6nQ3nstarQ3nstar + 4.*reQ6nQ3nstarQ2nstarQ1nstar - 4.*reQ5nQ4nstarQ1nstar + 16.*dMult*reQ3nQ2nstarQ1nstar - 2.*reQ4nQ2nstarQ2nstar - 4.*reQ3nQ3nQ3nstarQ2nstarQ1nstar -8.*reQ4nQ3nstarQ1nstar - 10.*reQ4nQ2nstarQ2nstar + 4.*reQ4nQ2nstarQ1nstarQ1nstar - 12.*reQ4nQ3nstarQ1nstar + 8.*dQ3nQ1nQ3nstarQ1nstar + 8.*reQ3nQ1nQ2nstarQ2nstar - 4.*reQ3nQ1nQ2nstarQ1nstarQ1nstar + 5.*reQ4nQ2nQ3nstarQ3nstar+2.*pow(pow(dReQ2n,2.)+pow(dImQ2n,2.),2.) + 4.*reQ5nQ1nQ3nstarQ3nstar+2.*pow(pow(dReQ3n,2.)+pow(dImQ3n,2.),2.) - 6.*reQ6nQ3nstarQ3nstar - 14.*reQ2nQ1nstarQ1nstar - 1.*reQ3nQ3nQ2nstarQ2nstarQ2nstar-4.*reQ3nQ2nQ2nstarQ2nstarQ1nstar - 1.*reQ4nQ1nQ1nQ3nstarQ3nstar-8.*reQ5nQ3nstarQ2nstar + 2.*pow(pow(dReQ1n,2.)+pow(dImQ1n,2.),2.) - 10.*reQ2nQ1nstarQ1nstar - 4.*reQ6nQ5nstarQ1nstar-5.*reQ6nQ4nstarQ2nstar + 1.*reQ6nQ4nstarQ1nstarQ1nstar-8.*reQ5nQ3nstarQ2nstar + 4.*reQ4nQ1nQ3nstarQ2nstar+8.*dQ3nQ2nQ3nstarQ2nstar - 120.*dMult + 16.*dMult*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); // Average 6-particle correlations for all events: fIntFlowCorrelationsAllPro->Fill(57.5,six3n2n1n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllPro->Fill(62.5,six3n3n2n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); if(fCalculateAllCorrelationsVsM) { fIntFlowCorrelationsAllVsMPro[57]->Fill(dMultiplicityBin,six3n2n1n3n2n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); fIntFlowCorrelationsAllVsMPro[62]->Fill(dMultiplicityBin,six3n3n2n2n1n1n,dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)); } } // end of if(dMult>5.) } // end of AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrelations() //===================================================================================================== void AliFlowAnalysisWithQCumulants::CalculateMixedHarmonics() { // Calculate in this method all multi-particle azimuthal correlations in mixed harmonics. // (Remark: For completeness sake, we also calculate here again correlations in the same harmonic.) // a) Access Q-vectors and multiplicity of current event; // b) Determine multiplicity weights and fill some histos; // c) Calculate 2-p correlations; // d) Calculate 3-p correlations; // e) Calculate 4-p correlations; // f) Calculate 5-p correlations; // g) Calculate 6-p correlations; // h) Calculate 7-p correlations; // i) Calculate 8-p correlations. // a) Access Q-vectors and multiplicity of current event: // Multiplicity of an event: Double_t dMult = (*fSpk)(0,0); // Real parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n, 4n, 5n and 6n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); Double_t dReQ3n = (*fReQ)(2,0); Double_t dReQ4n = (*fReQ)(3,0); Double_t dReQ5n = (*fReQ)(4,0); Double_t dReQ6n = (*fReQ)(5,0); Double_t dReQ7n = (*fReQ)(6,0); Double_t dReQ8n = (*fReQ)(7,0); Double_t dReQ9n = (*fReQ)(8,0); Double_t dReQ10n = (*fReQ)(9,0); Double_t dReQ11n = (*fReQ)(10,0); Double_t dReQ12n = (*fReQ)(11,0); // Imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n, 4n, 5n and 6n: Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); Double_t dImQ3n = (*fImQ)(2,0); Double_t dImQ4n = (*fImQ)(3,0); Double_t dImQ5n = (*fImQ)(4,0); Double_t dImQ6n = (*fImQ)(5,0); Double_t dImQ7n = (*fImQ)(6,0); Double_t dImQ8n = (*fImQ)(7,0); Double_t dImQ9n = (*fImQ)(8,0); Double_t dImQ10n = (*fImQ)(9,0); Double_t dImQ11n = (*fImQ)(10,0); Double_t dImQ12n = (*fImQ)(11,0); // All mixed correlators: Double_t allMixedCorrelators[139] = {0.}; // Real parts of expressions involving various combinations of Q-vectors which appears // simultaneously in several equations for multiparticle correlations bellow: // Re[Q_{2n}Q_{n}^*Q_{n}^*] Double_t reQ2nQ1nstarQ1nstar = pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n; // Re[Q_{6n}Q_{3n}^*Q_{3n}^*] Double_t reQ6nQ3nstarQ3nstar = pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n; // Re[Q_{4n}Q_{2n}^*Q_{2n}^*] Double_t reQ4nQ2nstarQ2nstar = pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n; // Re[Q_{4n}Q_{3n}^*Q_{n}^*] Double_t reQ4nQ3nstarQ1nstar = dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n); // Re[Q_{3n}Q_{2n}^*Q_{n}^*] Double_t reQ3nQ2nstarQ1nstar = dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n + dImQ3n*dImQ2n*dReQ1n; // Re[Q_{5n}Q_{3n}^*Q_{2n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Q2n*dImQ6n - 2.*dReQ2n*pow(dImQ1n,2.)*dImQ2n*dImQ6n - 2.*dReQ1n*dImQ1n*pow(dImQ2n,2.)*dImQ6n; */ // Re[Q_{4n}Q_{1n}Q_{1n}Q_{3n}^*Q_{3n}^*] /* Double_t reQ4nQ1nQ1nQ3nstarQ3nstar = pow(dReQ1n*dReQ3n,2.)*dReQ4n-pow(dReQ3n*dImQ1n,2.)*dReQ4n + 4.*dReQ1n*dReQ3n*dReQ4n*dImQ1n*dImQ3n - pow(dReQ1n*dImQ3n,2.)*dReQ4n+pow(dImQ1n*dImQ3n,2.)*dReQ4n - 2.*dReQ1n*pow(dReQ3n,2.)*dImQ1n*dImQ4n + 2.*pow(dReQ1n,2.)*dReQ3n*dImQ3n*dImQ4n - 2.*dReQ3n*pow(dImQ1n,2.)*dImQ3n*dImQ4n + 2.*dReQ1n*dImQ1n*pow(dImQ3n,2.)*dImQ4n;*/ /* // Re[Q_{3n}Q_{3n}Q_{2n}^*Q_{2n}^*Q_{1n}^*Q_{1n}^*] Double_t reQ3nQ3nQ2nstarQ2nstarQ1nstarQ1nstar = (dReQ1n*dReQ2n*dReQ3n-dReQ2n*dReQ3n*dImQ1n-dReQ1n*dReQ3n*dImQ2n - dReQ3n*dImQ1n*dImQ2n+dReQ1n*dReQ2n*dImQ3n+dReQ2n*dImQ1n*dImQ3n + dReQ1n*dImQ2n*dImQ3n-dImQ1n*dImQ2n*dImQ3n)*(dReQ1n*dReQ2n*dReQ3n + dReQ2n*dReQ3n*dImQ1n+dReQ1n*dReQ3n*dImQ2n-dReQ3n*dImQ1n*dImQ2n - dReQ1n*dReQ2n*dImQ3n+dReQ2n*dImQ1n*dImQ3n+dReQ1n*dImQ2n*dImQ3n + dImQ1n*dImQ2n*dImQ3n); */ // b) Determine multiplicity weights and fill some histos: Double_t d2pMultiplicityWeight = 0.; // weight for <2>_{...} to get <<2>>_{...} Double_t d3pMultiplicityWeight = 0.; // weight for <3>_{...} to get <<3>>_{...} Double_t d4pMultiplicityWeight = 0.; // weight for <4>_{...} to get <<4>>_{...} Double_t d5pMultiplicityWeight = 0.; // weight for <5>_{...} to get <<5>>_{...} Double_t d6pMultiplicityWeight = 0.; // weight for <6>_{...} to get <<6>>_{...} Double_t d7pMultiplicityWeight = 0.; // weight for <7>_{...} to get <<7>>_{...} Double_t d8pMultiplicityWeight = 0.; // weight for <8>_{...} to get <<8>>_{...} if(fMultiplicityWeight->Contains("combinations")) // default multiplicity weight { d2pMultiplicityWeight = dMult*(dMult-1.); d3pMultiplicityWeight = dMult*(dMult-1.)*(dMult-2.); d4pMultiplicityWeight = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.); d5pMultiplicityWeight = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.); d6pMultiplicityWeight = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.); d7pMultiplicityWeight = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)*(dMult-6.); d8pMultiplicityWeight = dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)*(dMult-5.)*(dMult-6.)*(dMult-7.); } else if(fMultiplicityWeight->Contains("unit")) { d2pMultiplicityWeight = 1.; d3pMultiplicityWeight = 1.; d4pMultiplicityWeight = 1.; d5pMultiplicityWeight = 1.; d6pMultiplicityWeight = 1.; d7pMultiplicityWeight = 1.; d8pMultiplicityWeight = 1.; } else if(fMultiplicityWeight->Contains("multiplicity")) { d2pMultiplicityWeight = dMult; d3pMultiplicityWeight = dMult; d4pMultiplicityWeight = dMult; d5pMultiplicityWeight = dMult; d6pMultiplicityWeight = dMult; d7pMultiplicityWeight = dMult; d8pMultiplicityWeight = dMult; } for(Int_t p=0;p<=1;p++) // power (0=linear,1=quadratic) { fMixedHarmonicEventWeights[p]->Fill(0.5,pow(dMult,p+1)); fMixedHarmonicEventWeights[p]->Fill(1.5,pow(d2pMultiplicityWeight,p+1)); fMixedHarmonicEventWeights[p]->Fill(2.5,pow(d3pMultiplicityWeight,p+1)); fMixedHarmonicEventWeights[p]->Fill(3.5,pow(d4pMultiplicityWeight,p+1)); fMixedHarmonicEventWeights[p]->Fill(4.5,pow(d5pMultiplicityWeight,p+1)); fMixedHarmonicEventWeights[p]->Fill(5.5,pow(d6pMultiplicityWeight,p+1)); fMixedHarmonicEventWeights[p]->Fill(6.5,pow(d7pMultiplicityWeight,p+1)); fMixedHarmonicEventWeights[p]->Fill(7.5,pow(d8pMultiplicityWeight,p+1)); } // end of for(Int_t p=0;p<=1;p++) // power (0=linear,1=quadratic) fMixedHarmonicProductOfEventWeights->Fill(0.5,0.5,dMult*dMult); fMixedHarmonicProductOfEventWeights->Fill(0.5,1.5,dMult*d2pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(0.5,2.5,dMult*d3pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(0.5,3.5,dMult*d4pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(0.5,4.5,dMult*d5pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(0.5,5.5,dMult*d6pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(0.5,6.5,dMult*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(0.5,7.5,dMult*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,1.5,d2pMultiplicityWeight*d2pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,2.5,d2pMultiplicityWeight*d3pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,3.5,d2pMultiplicityWeight*d4pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,4.5,d2pMultiplicityWeight*d5pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,5.5,d2pMultiplicityWeight*d6pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,6.5,d2pMultiplicityWeight*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(1.5,7.5,d2pMultiplicityWeight*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(2.5,2.5,d3pMultiplicityWeight*d3pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(2.5,3.5,d3pMultiplicityWeight*d4pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(2.5,4.5,d3pMultiplicityWeight*d5pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(2.5,5.5,d3pMultiplicityWeight*d6pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(2.5,6.5,d3pMultiplicityWeight*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(2.5,7.5,d3pMultiplicityWeight*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(3.5,3.5,d4pMultiplicityWeight*d4pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(3.5,4.5,d4pMultiplicityWeight*d5pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(3.5,5.5,d4pMultiplicityWeight*d6pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(3.5,6.5,d4pMultiplicityWeight*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(3.5,7.5,d4pMultiplicityWeight*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(4.5,4.5,d5pMultiplicityWeight*d5pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(4.5,5.5,d5pMultiplicityWeight*d6pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(4.5,6.5,d5pMultiplicityWeight*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(4.5,7.5,d5pMultiplicityWeight*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(5.5,5.5,d6pMultiplicityWeight*d6pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(5.5,6.5,d6pMultiplicityWeight*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(5.5,7.5,d6pMultiplicityWeight*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(6.5,6.5,d7pMultiplicityWeight*d7pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(6.5,7.5,d7pMultiplicityWeight*d8pMultiplicityWeight); fMixedHarmonicProductOfEventWeights->Fill(7.5,7.5,d8pMultiplicityWeight*d8pMultiplicityWeight); // c) Calculate 2-p correlations: Double_t two1n1n = 0.; // <2>_{1n|1n} = Double_t two2n2n = 0.; // <2>_{2n|2n} = Double_t two3n3n = 0.; // <2>_{3n|3n} = Double_t two4n4n = 0.; // <2>_{4n|4n} = Double_t two5n5n = 0.; // <2>_{5n|5n} = Double_t two6n6n = 0.; // <2>_{6n|6n} = if(dMult>1.) { two1n1n = (pow(dReQ1n,2.)+pow(dImQ1n,2.)-dMult)/(dMult*(dMult-1.)); two2n2n = (pow(dReQ2n,2.)+pow(dImQ2n,2.)-dMult)/(dMult*(dMult-1.)); two3n3n = (pow(dReQ3n,2.)+pow(dImQ3n,2.)-dMult)/(dMult*(dMult-1.)); two4n4n = (pow(dReQ4n,2.)+pow(dImQ4n,2.)-dMult)/(dMult*(dMult-1.)); two5n5n = (pow(dReQ5n,2.)+pow(dImQ5n,2.)-dMult)/(dMult*(dMult-1.)); two6n6n = (pow(dReQ6n,2.)+pow(dImQ6n,2.)-dMult)/(dMult*(dMult-1.)); f2pCorrelations->Fill(0.5,two1n1n,d2pMultiplicityWeight); f2pCorrelations->Fill(1.5,two2n2n,d2pMultiplicityWeight); f2pCorrelations->Fill(2.5,two3n3n,d2pMultiplicityWeight); f2pCorrelations->Fill(3.5,two4n4n,d2pMultiplicityWeight); f2pCorrelations->Fill(4.5,two5n5n,d2pMultiplicityWeight); f2pCorrelations->Fill(5.5,two6n6n,d2pMultiplicityWeight); allMixedCorrelators[0]=two1n1n; allMixedCorrelators[1]=two2n2n; allMixedCorrelators[2]=two3n3n; allMixedCorrelators[3]=two4n4n; allMixedCorrelators[4]=two5n5n; allMixedCorrelators[5]=two6n6n; } // end of if(dMult>1.) // d) Calculate 3-p correlations: // d1) Two distinct harmonics (3): Double_t three2n1n1n = 0.; // <3>_{2n|1n,1n} = Double_t three4n2n2n = 0.; // <3>_{4n|2n,2n} = Double_t three6n3n3n = 0.; // <3>_{6n|3n,3n} = // d2) Three distinct harmonics (6): Double_t three3n2n1n = 0.; // <3>_{3n|2n,1n} = Double_t three4n3n1n = 0.; // <3>_{4n|3n,1n} = Double_t three5n3n2n = 0.; // <3>_{5n|3n,2n} = Double_t three5n4n1n = 0.; // <3>_{5n|4n,1n} = Double_t three6n4n2n = 0.; // <3>_{6n|4n,2n} = Double_t three6n5n1n = 0.; // <3>_{6n|5n,1n} = if(dMult>2.) { three2n1n1n = (pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-(pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three4n2n2n = (pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-(pow(dReQ4n,2.)+pow(dImQ4n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three6n3n3n = (reQ6nQ3nstarQ3nstar - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three3n2n1n = (dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n + dImQ3n*dImQ2n*dReQ1n-(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))-(pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three4n3n1n = (dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))-(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three5n3n2n = (dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n + dImQ5n*dImQ2n*dReQ3n-(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three5n4n1n = (dReQ5n*dReQ4n*dReQ1n-dReQ5n*dImQ4n*dImQ1n+dImQ5n*dReQ4n*dImQ1n + dImQ5n*dImQ4n*dReQ1n-(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three6n4n2n = (dReQ6n*dReQ4n*dReQ2n-dReQ6n*dImQ4n*dImQ2n+dImQ6n*dReQ4n*dImQ2n + dImQ6n*dImQ4n*dReQ2n-(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))-(pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); three6n5n1n = (dReQ6n*dReQ5n*dReQ1n-dReQ6n*dImQ5n*dImQ1n+dImQ6n*dReQ5n*dImQ1n + dImQ6n*dImQ5n*dReQ1n-(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))+2.*dMult) / (dMult*(dMult-1.)*(dMult-2.)); f3pCorrelations->Fill(0.5,three2n1n1n,d3pMultiplicityWeight); f3pCorrelations->Fill(1.5,three4n2n2n,d3pMultiplicityWeight); f3pCorrelations->Fill(2.5,three6n3n3n,d3pMultiplicityWeight); //f3pCorrelations->Fill(3.5,0.,d3pMultiplicityWeight); // empty TBI f3pCorrelations->Fill(4.5,three3n2n1n,d3pMultiplicityWeight); f3pCorrelations->Fill(5.5,three4n3n1n,d3pMultiplicityWeight); f3pCorrelations->Fill(6.5,three5n3n2n,d3pMultiplicityWeight); f3pCorrelations->Fill(7.5,three5n4n1n,d3pMultiplicityWeight); f3pCorrelations->Fill(8.5,three6n4n2n,d3pMultiplicityWeight); f3pCorrelations->Fill(9.5,three6n5n1n,d3pMultiplicityWeight); allMixedCorrelators[6]=three2n1n1n; allMixedCorrelators[7]=three4n2n2n; allMixedCorrelators[8]=three6n3n3n; allMixedCorrelators[9]=three3n2n1n; allMixedCorrelators[10]=three4n3n1n; allMixedCorrelators[11]=three5n3n2n; allMixedCorrelators[12]=three5n4n1n; allMixedCorrelators[13]=three6n4n2n; allMixedCorrelators[14]=three6n5n1n; } // end of if(dMult>2.) // e) Calculate 4-p correlations: // e1) Single harmonic (6): Double_t four1n1n1n1n = 0.; // <4>_{1n,1n|1n,1n} = Double_t four2n2n2n2n = 0.; // <4>_{2n,2n|2n,2n} = Double_t four3n3n3n3n = 0.; // <4>_{3n,3n|3n,3n} = Double_t four4n4n4n4n = 0.; // <4>_{4n,4n|4n,4n} = Double_t four5n5n5n5n = 0.; // <4>_{5n,5n|5n,5n} = Double_t four6n6n6n6n = 0.; // <4>_{6n,6n|6n,6n} = // e2) "Standard candles" (15): Double_t four2n1n2n1n = 0.; // <4>_{2n,1n|2n,1n} = Double_t four3n1n3n1n = 0.; // <4>_{3n,1n|3n,1n} = Double_t four3n2n3n2n = 0.; // <4>_{3n,2n|3n,2n} = Double_t four4n1n4n1n = 0.; // <4>_{4n,1n|4n,1n} = Double_t four4n2n4n2n = 0.; // <4>_{4n,2n|4n,2n} = Double_t four4n3n4n3n = 0.; // <4>_{4n,3n|4n,3n} = Double_t four5n1n5n1n = 0.; // <4>_{5n,1n|5n,1n} = Double_t four5n2n5n2n = 0.; // <4>_{5n,2n|5n,2n} = Double_t four5n3n5n3n = 0.; // <4>_{5n,3n|5n,3n} = Double_t four5n4n5n4n = 0.; // <4>_{5n,4n|5n,4n} = Double_t four6n1n6n1n = 0.; // <4>_{6n,1n|6n,1n} = Double_t four6n2n6n2n = 0.; // <4>_{6n,2n|6n,2n} = Double_t four6n3n6n3n = 0.; // <4>_{6n,3n|6n,3n} = Double_t four6n4n6n4n = 0.; // <4>_{6n,4n|6n,4n} = Double_t four6n5n6n5n = 0.; // <4>_{6n,5n|6n,5n} = // e3) Two distinct harmonics (2): Double_t four3n1n1n1n = 0.; // <4>_{3n|1n,1n,1n} = Double_t four6n2n2n2n = 0.; // <4>_{6n|2n,2n,2n} = // e4) Three distinct harmonics (10): Double_t four3n1n2n2n = 0.; // <4>_{3n,1n|2n,2n} = Double_t four4n2n1n1n = 0.; // <4>_{4n|2n,1n,1n} = Double_t four4n2n3n3n = 0.; // <4>_{4n,2n|3n,3n} = Double_t four5n2n2n1n = 0.; // <4>_{5n|2n,2n,1n} = Double_t four5n3n1n1n = 0.; // <4>_{5n|3n,1n,1n} = Double_t four5n1n3n3n = 0.; // <4>_{5n,1n|3n,3n} = Double_t four5n3n4n4n = 0.; // <4>_{5n,3n|4n,4n} = Double_t four6n4n1n1n = 0.; // <4>_{6n|4n,1n,1n} = Double_t four6n2n4n4n = 0.; // <4>_{6n,2n|4n,4n} = Double_t four6n4n5n5n = 0.; // <4>_{6n,4n|5n,5n} = // e5) Four distinct harmonics (8): Double_t four4n1n3n2n = 0.; // <4>_{4n,1n|3n,2n} = Double_t four5n1n4n2n = 0.; // <4>_{5n,1n|4n,2n} = Double_t four5n2n4n3n = 0.; // <4>_{5n,2n|4n,3n} = Double_t four6n1n4n3n = 0.; // <4>_{6n,1n|4n,3n} = Double_t four6n1n5n2n = 0.; // <4>_{6n,1n|5n,2n} = Double_t four6n3n2n1n = 0.; // <4>_{6n|3n,2n,1n} = Double_t four6n2n5n3n = 0.; // <4>_{6n,2n|5n,3n} = Double_t four6n3n5n4n = 0.; // <4>_{6n,3n|5n,4n} = if(dMult>3.) { // Single harmonic (6): four1n1n1n1n = (2.*dMult*(dMult-3.)+pow((pow(dReQ1n,2.)+pow(dImQ1n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ1n,2.) + pow(dImQ1n,2.))-2.*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) + (pow(dReQ2n,2.)+pow(dImQ2n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four2n2n2n2n = (2.*dMult*(dMult-3.)+pow((pow(dReQ2n,2.)+pow(dImQ2n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ2n,2.) + pow(dImQ2n,2.))-2.*(pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n) + (pow(dReQ4n,2.)+pow(dImQ4n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four3n3n3n3n = (2.*dMult*(dMult-3.)+pow((pow(dReQ3n,2.)+pow(dImQ3n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ3n,2.) + pow(dImQ3n,2.))-2.*(pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n) + (pow(dReQ6n,2.)+pow(dImQ6n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four4n4n4n4n = (2.*dMult*(dMult-3.)+pow((pow(dReQ4n,2.)+pow(dImQ4n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ4n,2.) + pow(dImQ4n,2.))-2.*(pow(dReQ4n,2.)*dReQ8n+2.*dReQ4n*dImQ4n*dImQ8n-pow(dImQ4n,2.)*dReQ8n) + (pow(dReQ8n,2.)+pow(dImQ8n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four5n5n5n5n = (2.*dMult*(dMult-3.)+pow((pow(dReQ5n,2.)+pow(dImQ5n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ5n,2.) + pow(dImQ5n,2.))-2.*(pow(dReQ5n,2.)*dReQ10n+2.*dReQ5n*dImQ5n*dImQ10n-pow(dImQ5n,2.)*dReQ10n) + (pow(dReQ10n,2.)+pow(dImQ10n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); four6n6n6n6n = (2.*dMult*(dMult-3.)+pow((pow(dReQ6n,2.)+pow(dImQ6n,2.)),2.)-4.*(dMult-2.)*(pow(dReQ6n,2.) + pow(dImQ6n,2.))-2.*(pow(dReQ6n,2.)*dReQ12n+2.*dReQ6n*dImQ6n*dImQ12n-pow(dImQ6n,2.)*dReQ12n) + (pow(dReQ12n,2.)+pow(dImQ12n,2.))) / (dMult*(dMult-1)*(dMult-2.)*(dMult-3.)); // "Standard candles" (15): four2n1n2n1n = ((pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n + dImQ3n*dImQ2n*dReQ1n)-2.*(pow(dReQ1n,2.)*dReQ2n + 2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - ((dMult-5.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-4.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-(pow(dReQ3n,2.)+pow(dImQ3n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) + (dMult-6.)/((dMult-1.)*(dMult-2.)*(dMult-3.)); four3n1n3n1n = ((pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n)) - 2.*(dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n+dImQ3n*dImQ2n*dReQ1n) + pow(dReQ4n,2.)+pow(dImQ4n,2.)-(dMult-4.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + pow(dReQ2n,2.)+pow(dImQ2n,2.)-(dMult-4.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four3n2n3n2n = ((pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) - 2.*(dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n+dImQ3n*dImQ2n*dReQ1n) + pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.) - (dMult-4.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four4n1n4n1n = ((pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(dReQ5n*dReQ4n*dReQ1n-dReQ5n*dImQ4n*dImQ1n+dImQ5n*dReQ1n*dImQ4n+dImQ5n*dImQ1n*dReQ4n) - 2.*(dReQ3n*dReQ4n*dReQ1n+dImQ3n*dImQ4n*dReQ1n+dReQ3n*dImQ4n*dImQ1n-dImQ3n*dImQ1n*dReQ4n) + pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.) - (dMult-4.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four4n2n4n2n = ((pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(dReQ6n*dReQ4n*dReQ2n-dReQ6n*dImQ4n*dImQ2n+dImQ6n*dReQ4n*dImQ2n + dImQ6n*dImQ4n*dReQ2n)-2.*(pow(dReQ2n,2.)*dReQ4n + 2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - ((dMult-5.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-4.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-(pow(dReQ6n,2.)+pow(dImQ6n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) + (dMult-6.)/((dMult-1.)*(dMult-2.)*(dMult-3.)); four4n3n4n3n = ((pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(dReQ7n*dReQ4n*dReQ3n-dReQ7n*dImQ4n*dImQ3n+dImQ7n*dReQ3n*dImQ4n+dImQ7n*dImQ3n*dReQ4n) - 2.*(dReQ1n*dReQ4n*dReQ3n+dImQ1n*dImQ4n*dReQ3n+dReQ1n*dImQ4n*dImQ3n-dImQ1n*dImQ3n*dReQ4n) + pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.) - (dMult-4.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four5n1n5n1n = (((pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.))) - 2.*(dReQ6n*dReQ5n*dReQ1n-dReQ6n*dImQ5n*dImQ1n+dImQ6n*dReQ5n*dImQ1n+dImQ6n*dImQ5n*dReQ1n) - 2.*(dReQ5n*dReQ4n*dReQ1n-dReQ5n*dImQ4n*dImQ1n+dImQ5n*dReQ4n*dImQ1n+dImQ5n*dImQ4n*dReQ1n) + pow(dReQ6n,2.)+pow(dImQ6n,2.)-(dMult-4.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + pow(dReQ4n,2.)+pow(dImQ4n,2.)-(dMult-4.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))+dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four5n2n5n2n = ((pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(dReQ7n*dReQ5n*dReQ2n-dReQ7n*dImQ5n*dImQ2n+dImQ7n*dReQ2n*dImQ5n+dImQ7n*dImQ2n*dReQ5n) - 2.*(dReQ3n*dReQ5n*dReQ2n+dImQ3n*dImQ5n*dReQ2n+dReQ3n*dImQ5n*dImQ2n-dImQ3n*dImQ2n*dReQ5n) + pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.) - (dMult-4.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four5n3n5n3n = ((pow(dReQ5n,2.)+pow(dImQ5n,2.))*(p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dImQ5n*dImQ1n*dReQ6n) + pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.) - (dMult-4.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four6n2n6n2n = ((pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(dReQ8n*(dReQ6n*dReQ2n-dImQ6n*dImQ2n)+dImQ8n*(dReQ6n*dImQ2n+dImQ6n*dReQ2n)) - 2.*(dReQ6n*dReQ4n*dReQ2n-dReQ6n*dImQ4n*dImQ2n+dImQ6n*dReQ4n*dImQ2n+dImQ6n*dImQ4n*dReQ2n) + pow(dReQ8n,2.)+pow(dImQ8n,2.)-(dMult-4.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + pow(dReQ4n,2.)+pow(dImQ4n,2.)-(dMult-4.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four6n3n6n3n = ((pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(dReQ9n*dReQ6n*dReQ3n-dReQ9n*dImQ6n*dImQ3n+dImQ9n*dReQ6n*dImQ3n + dImQ9n*dImQ6n*dReQ3n)-2.*(pow(dReQ3n,2.)*dReQ6n + 2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - ((dMult-5.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-4.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-(pow(dReQ9n,2.)+pow(dImQ9n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) + (dMult-6.)/((dMult-1.)*(dMult-2.)*(dMult-3.)); four6n4n6n4n = ((pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(dReQ10n*dReQ4n*dReQ6n-dReQ10n*dImQ4n*dImQ6n+dImQ10n*dReQ4n*dImQ6n+dImQ10n*dImQ4n*dReQ6n) - 2.*(dReQ6n*dReQ4n*dReQ2n-dReQ6n*dImQ4n*dImQ2n+dImQ6n*dReQ4n*dImQ2n+dImQ6n*dImQ4n*dReQ2n) + pow(dReQ10n,2.)+pow(dImQ10n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.) - (dMult-4.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); four6n5n6n5n = ((pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(dReQ11n*dReQ6n*dReQ5n-dReQ11n*dImQ6n*dImQ5n+dImQ11n*dReQ5n*dImQ6n+dImQ11n*dImQ5n*dReQ6n) - 2.*(dReQ1n*dReQ6n*dReQ5n+dImQ1n*dImQ6n*dReQ5n+dReQ1n*dImQ6n*dImQ5n-dImQ1n*dImQ5n*dReQ6n) + pow(dReQ11n,2.)+pow(dImQ11n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.) - (dMult-4.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)) + dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); // Two distinct harmonics (2): four3n1n1n1n = (dReQ3n*pow(dReQ1n,3)-3.*dReQ1n*dReQ3n*pow(dImQ1n,2) + 3.*dImQ1n*dImQ3n*pow(dReQ1n,2)-dImQ3n*pow(dImQ1n,3) - 3.*(dReQ3n*dReQ2n*dReQ1n-dReQ3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n+dImQ3n*dImQ2n*dReQ1n)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - (2.*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 4.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - 6./((dMult-1.)*(dMult-2.)*(dMult-3.)); four4n2n1n1n = ((dReQ4n*dReQ2n+dImQ4n*dImQ2n)*(pow(dReQ1n,2)-pow(dImQ1n,2)) + 2.*dReQ1n*dImQ1n*(dImQ4n*dReQ2n-dReQ4n*dImQ2n) - 2.*(dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n)) - (pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n) - 2.*(dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n+dImQ3n*dImQ2n*dReQ1n)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - ((pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 3.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)) - 6./((dMult-1.)*(dMult-2.)*(dMult-3.)); four4n2n3n3n = ((dReQ4n*dReQ2n-dImQ4n*dImQ2n)*(dReQ3n*d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n*dReQ5n*dReQ6n - (dReQ9n*dReQ6n*dReQ3n-dReQ9n*dImQ6n*dImQ3n+dImQ9n*dReQ6n*dImQ3n+dImQ9n*dImQ6n*dReQ3n) - (dReQ9n*dReQ5n*dReQ4n-dReQ9n*dImQ5n*dImQ4n+dImQ9n*dReQ5n*dImQ4n+dImQ9n*dImQ5n*dReQ4n) - (dReQ6n*dReQ5n*dReQ1n-dReQ6n*dImQ5n*dImQ1n+dImQ6n*dReQ5n*dImQ1n+dImQ6n*dImQ5n*dReQ1n) - (dReQ6n*dReQ4n*dReQ2n-dReQ6n*dImQ4n*dImQ2n+dImQ6n*dReQ4n*dImQ2n+dImQ6n*dImQ4n*dReQ2n) - (dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) - (dReQ4n*dReQ3n*dReQ1n-dReQ4n*dImQ3n*dImQ1n+dImQ4n*dReQ3n*dImQ1n+dImQ4n*dImQ3n*dReQ1n) + pow(dReQ9n,2.)+pow(dImQ9n,2.)+2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.))+2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))+pow(dReQ2n,2.)+pow(dImQ2n,2.) + pow(dReQ1n,2.)+pow(dImQ1n,2.)-6.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)); f4pCorrelations->Fill(0.5,four1n1n1n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(1.5,four2n2n2n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(2.5,four3n3n3n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(3.5,four4n4n4n4n,d4pMultiplicityWeight); f4pCorrelations->Fill(4.5,four5n5n5n5n,d4pMultiplicityWeight); f4pCorrelations->Fill(5.5,four6n6n6n6n,d4pMultiplicityWeight); //f4pCorrelations->Fill(6.5,0.,d4pMultiplicityWeight); // empty f4pCorrelations->Fill(7.5,four2n1n2n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(8.5,four3n1n3n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(9.5,four3n2n3n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(10.5,four4n1n4n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(11.5,four4n2n4n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(12.5,four4n3n4n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(13.5,four5n1n5n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(14.5,four5n2n5n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(15.5,four5n3n5n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(16.5,four5n4n5n4n,d4pMultiplicityWeight); f4pCorrelations->Fill(17.5,four6n1n6n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(18.5,four6n2n6n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(19.5,four6n3n6n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(20.5,four6n4n6n4n,d4pMultiplicityWeight); f4pCorrelations->Fill(21.5,four6n5n6n5n,d4pMultiplicityWeight); //f4pCorrelations->Fill(22.5,0.,d4pMultiplicityWeight); // empty f4pCorrelations->Fill(23.5,four3n1n1n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(24.5,four6n2n2n2n,d4pMultiplicityWeight); //f4pCorrelations->Fill(25.5,0.,d4pMultiplicityWeight); // empty f4pCorrelations->Fill(26.5,four3n1n2n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(27.5,four4n2n1n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(28.5,four4n2n3n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(29.5,four5n2n2n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(30.5,four5n3n1n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(31.5,four5n1n3n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(32.5,four5n3n4n4n,d4pMultiplicityWeight); f4pCorrelations->Fill(33.5,four6n4n1n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(34.5,four6n2n4n4n,d4pMultiplicityWeight); f4pCorrelations->Fill(35.5,four6n4n5n5n,d4pMultiplicityWeight); //f4pCorrelations->Fill(36.5,0.,d4pMultiplicityWeight); // empty f4pCorrelations->Fill(37.5,four4n1n3n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(38.5,four5n1n4n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(39.5,four5n2n4n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(40.5,four6n1n4n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(41.5,four6n1n5n2n,d4pMultiplicityWeight); f4pCorrelations->Fill(42.5,four6n3n2n1n,d4pMultiplicityWeight); f4pCorrelations->Fill(43.5,four6n2n5n3n,d4pMultiplicityWeight); f4pCorrelations->Fill(44.5,four6n3n5n4n,d4pMultiplicityWeight); allMixedCorrelators[15]=four1n1n1n1n; allMixedCorrelators[16]=four2n2n2n2n; allMixedCorrelators[17]=four3n3n3n3n; allMixedCorrelators[18]=four4n4n4n4n; allMixedCorrelators[19]=four5n5n5n5n; allMixedCorrelators[20]=four6n6n6n6n; allMixedCorrelators[21]=four2n1n2n1n; allMixedCorrelators[22]=four3n1n3n1n; allMixedCorrelators[23]=four3n2n3n2n; allMixedCorrelators[24]=four4n1n4n1n; allMixedCorrelators[25]=four4n2n4n2n; allMixedCorrelators[26]=four4n3n4n3n; allMixedCorrelators[27]=four5n1n5n1n; allMixedCorrelators[28]=four5n2n5n2n; allMixedCorrelators[29]=four5n3n5n3n; allMixedCorrelators[30]=four5n4n5n4n; allMixedCorrelators[31]=four6n1n6n1n; allMixedCorrelators[32]=four6n2n6n2n; allMixedCorrelators[33]=four6n3n6n3n; allMixedCorrelators[34]=four6n4n6n4n; allMixedCorrelators[35]=four6n5n6n5n; allMixedCorrelators[36]=four3n1n1n1n; allMixedCorrelators[37]=four6n2n2n2n; allMixedCorrelators[38]=four3n1n2n2n; allMixedCorrelators[39]=four4n2n1n1n; allMixedCorrelators[40]=four4n2n3n3n; allMixedCorrelators[41]=four5n2n2n1n; allMixedCorrelators[42]=four5n3n1n1n; allMixedCorrelators[43]=four5n1n3n3n; allMixedCorrelators[44]=four5n3n4n4n; allMixedCorrelators[45]=four6n4n1n1n; allMixedCorrelators[46]=four6n2n4n4n; allMixedCorrelators[47]=four6n4n5n5n; allMixedCorrelators[48]=four4n1n3n2n; allMixedCorrelators[49]=four5n1n4n2n; allMixedCorrelators[50]=four5n2n4n3n; allMixedCorrelators[51]=four6n1n4n3n; allMixedCorrelators[52]=four6n1n5n2n; allMixedCorrelators[53]=four6n3n2n1n; allMixedCorrelators[54]=four6n2n5n3n; allMixedCorrelators[55]=four6n3n5n4n; } // end of if(dMult>3.) // f) Calculate 5-p correlations: // f1) "Standard candles" (30): Double_t five3n2n3n1n1n = 0.; // <5>_{3n,2n|3n,1n,1n} = Double_t five4n1n2n2n1n = 0.; // <5>_{4n,1n|2n,2n,1n} = Double_t five4n2n3n2n1n = 0.; // <5>_{4n,2n|3n,2n,1n} = Double_t five4n3n3n2n2n = 0.; // <5>_{4n,3n|3n,2n,2n} = Double_t five4n2n4n1n1n = 0.; // <5>_{4n,2n|4n,1n,1n} = Double_t five4n3n4n2n1n = 0.; // <5>_{4n,3n|4n,2n,1n} = Double_t five5n1n3n2n1n = 0.; // <5>_{5n,1n|3n,2n,1n} = Double_t five5n2n5n1n1n = 0.; // <5>_{5n,2n|5n,1n,1n} = Double_t five5n2n4n2n1n = 0.; // <5>_{5n,2n|4n,2n,1n} = Double_t five5n3n4n3n1n = 0.; // <5>_{5n,3n|4n,3n,1n} = Double_t five5n4n4n3n2n = 0.; // <5>_{5n,4n|4n,3n,2n} = Double_t five5n3n5n2n1n = 0.; // <5>_{5n,3n|5n,2n,1n} = Double_t five5n4n5n2n2n = 0.; // <5>_{5n,4n|5n,2n,2n} = Double_t five5n4n5n3n1n = 0.; // <5>_{5n,4n|5n,3n,1n} = Double_t five6n1n3n3n1n = 0.; // <5>_{6n,1n|3n,3n,1n} = Double_t five6n2n3n3n2n = 0.; // <5>_{6n,2n|3n,3n,2n} = Double_t five6n1n4n2n1n = 0.; // <5>_{6n,1n|4n,2n,1n} = Double_t five6n3n4n3n2n = 0.; // <5>_{6n,3n|4n,3n,2n} = Double_t five6n4n4n3n3n = 0.; // <5>_{6n,4n|4n,3n,3n} = Double_t five6n2n5n2n1n = 0.; // <5>_{6n,2n|5n,2n,1n} = Double_t five6n3n5n3n1n = 0.; // <5>_{6n,3n|5n,3n,1n} = Double_t five6n4n5n4n1n = 0.; // <5>_{6n,4n|5n,4n,1n} = Double_t five6n5n5n3n3n = 0.; // <5>_{6n,5n|5n,3n,3n} = Double_t five6n2n6n1n1n = 0.; // <5>_{6n,2n|6n,1n,1n} = Double_t five6n3n6n2n1n = 0.; // <5>_{6n,3n|6n,2n,1n} = Double_t five6n4n6n2n2n = 0.; // <5>_{6n,4n|6n,2n,2n} = Double_t five6n4n6n3n1n = 0.; // <5>_{6n,4n|6n,3n,1n} = Double_t five6n5n5n4n2n = 0.; // <5>_{6n,5n|5n,4n,2n} = Double_t five6n5n6n3n2n = 0.; // <5>_{6n,5n|6n,3n,2n} = // TBI swap with previous Double_t five6n5n6n4n1n = 0.; // <5>_{6n,5n|6n,4n,1n} = // f2) Two distinct harmonics (9): Double_t five2n1n1n1n1n = 0.; // <5>_{2n,1n|1n,1n,1n} = Double_t five2n2n2n1n1n = 0.; // <5>_{2n,2n|2n,1n,1n} = Double_t five3n3n2n2n2n = 0.; // <5>_{3n,3n|2n,2n,2n} = Double_t five4n1n1n1n1n = 0.; // <5>_{4n|1n,1n,1n,1n} = Double_t five4n2n2n2n2n = 0.; // <5>_{4n,2n|2n,2n,2n} = Double_t five4n4n4n2n2n = 0.; // <5>_{4n,4n|4n,2n,2n} = Double_t five6n3n3n3n3n = 0.; // <5>_{6n,3n|3n,3n,3n} = Double_t five6n6n4n4n4n = 0.; // <5>_{6n,6n|4n,4n,4n} = Double_t five6n6n6n3n3n = 0.; // <5>_{6n,6n|6n,3n,3n} = // f3) Three distinct harmonics (30): Double_t five3n1n2n1n1n = 0.; // <5>_{3n,1n|2n,1n,1n} = Double_t five3n2n2n2n1n = 0.; // <5>_{3n,2n|2n,2n,1n} = Double_t five3n3n3n2n1n = 0.; // <5>_{3n,3n|3n,2n,1n} = Double_t five4n1n3n1n1n = 0.; // <5>_{4n,1n|3n,1n,1n} = Double_t five4n1n1n3n3n = 0.; // <5>_{4n,1n,1n|3n,3n} = Double_t five4n3n3n3n1n = 0.; // <5>_{4n,3n|3n,3n,1n} = Double_t five4n4n3n3n2n = 0.; // <5>_{4n,4n|3n,3n,2n} = Double_t five4n4n4n3n1n = 0.; // <5>_{4n,4n|4n,3n,1n} = Double_t five5n2n1n1n1n = 0.; // <5>_{5n|2n,1n,1n,1n} = Double_t five5n1n2n2n2n = 0.; // <5>_{5n,1n|2n,2n,2n} = Double_t five5n2n3n2n2n = 0.; // <5>_{5n,2n|3n,2n,2n} = Double_t five5n3n3n3n2n = 0.; // <5>_{5n,3n|3n,3n,2n} = Double_t five5n1n4n1n1n = 0.; // <5>_{5n,1n|4n,1n,1n} = Double_t five5n4n3n3n3n = 0.; // <5>_{5n,4n|3n,3n,3n} = Double_t five5n4n4n4n1n = 0.; // <5>_{5n,4n|4n,4n,1n} = Double_t five5n5n4n3n3n = 0.; // <5>_{5n,5n|4n,3n,3n} = Double_t five5n5n4n4n2n = 0.; // <5>_{5n,5n|4n,4n,2n} = Double_t five5n5n5n3n2n = 0.; // <5>_{5n,5n|5n,3n,2n} = Double_t five5n5n5n4n1n = 0.; // <5>_{5n,5n|5n,4n,1n} = Double_t five6n2n2n1n1n = 0.; // <5>_{6n|2n,2n,1n,1n} = Double_t five6n3n1n1n1n = 0.; // <5>_{6n|3n,1n,1n,1n} = Double_t five6n1n1n4n4n = 0.; // <5>_{6n,1n,1n|4n,4n} = Double_t five6n1n5n1n1n = 0.; // <5>_{6n,1n|5n,1n,1n} = Double_t five6n2n4n2n2n = 0.; // <5>_{6n,2n|4n,2n,2n} = Double_t five6n4n4n4n2n = 0.; // <5>_{6n,4n|4n,4n,2n} = Double_t five6n2n2n5n5n = 0.; // <5>_{6n,2n,2n|5n,5n} = Double_t five6n5n5n5n1n = 0.; // <5>_{6n,5n|5n,5n,1n} = Double_t five6n6n5n5n2n = 0.; // <5>_{6n,6n|5n,5n,2n} = Double_t five6n6n6n4n2n = 0.; // <5>_{6n,6n|6n,4n,2n} = Double_t five6n6n6n5n1n = 0.; // <5>_{6n,6n|6n,5n,1n} = // TBI swap with the one above // Four distinct harmonics (11): Double_t five5n2n3n3n1n = 0.; // <5>_{5n,2n|3n,3n,1n} = Double_t five5n1n1n4n3n = 0.; // <5>_{5n,1n,1n|4n,3n} = Double_t five5n3n4n2n2n = 0.; // <5>_{5n,3n|4n,2n,2n} = Double_t five5n2n1n4n4n = 0.; // <5>_{5n,2n,1n|4n,4n} = Double_t five6n1n3n2n2n = 0.; // <5>_{6n,1n|3n,2n,2n} = Double_t five6n3n4n4n1n = 0.; // <5>_{6n,3n|4n,4n,1n} = Double_t five6n1n1n5n3n = 0.; // <5>_{6n,1n,1n|5n,3n} = Double_t five6n3n5n2n2n = 0.; // <5>_{6n,3n|5n,2n,2n} = Double_t five6n5n4n4n3n = 0.; // <5>_{6n,5n|4n,4n,3n} = Double_t five6n3n1n5n5n = 0.; // <5>_{6n,3n,1n|5n,5n} = Double_t five6n6n5n4n3n = 0.; // <5>_{6n,6n|5n,4n,3n} = // Five distinct harmonics (3): Double_t five6n2n4n3n1n = 0.; // <5>_{6n,2n|4n,3n,1n} = Double_t five6n2n1n5n4n = 0.; // <5>_{6n,2n,1n|5n,4n} = Double_t five6n4n5n3n2n = 0.; // <5>_{6n,4n|5n,3n,2n} = if(dMult>4.) { five3n2n3n1n1n = (-(pow(dImQ3n,2.)+pow(dRe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Q3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) - (dMult-7.)*(dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n)) + 3.*(pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n) + 7.*(dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n+dImQ3n*dImQ2n*dReQ1n) + 4.*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+(dMult-10.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 2.*(dMult-7.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))+(dMult-12.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // ********************************************************************* Double_t reQ7nQ3nstarQ2nstarQ2nstar = (dReQ7n*dReQ3n+dImQ7n*dImQ3n)*(pow(dReQ2n,2)-pow(dImQ2n,2)) + 2.*dReQ2n*dImQ2n*(dImQ7n*dReQ3n-dReQ7n*dImQ3n); Double_t reQ5nQ2nQ4nstarQ3nstar = dImQ2n*dImQ3n*dImQ4n*dImQ5n+dImQ4n*dImQ5n*dReQ2n*dReQ3n + dImQ3n*dImQ5n*dReQ2n*dReQ4n-dImQ2n*dImQ5n*dReQ3n*dReQ4n - dImQ3n*dImQ4n*dReQ2n*dReQ5n+dImQ2n*dImQ4n*dReQ3n*dReQ5n + dImQ2n*dImQ3n*dReQ4n*dReQ5n+dReQ2n*dReQ3n*dReQ4n*dReQ5n; Double_t reQ7nQ4nstarQ3nstar = dReQ7n*dReQ4n*dReQ3n-dReQ7n*dImQ4n*dImQ3n+dImQ7n*dReQ4n*dImQ3n + dImQ7n*dImQ4n*dReQ3n; Double_t reQ7nQ5nstarQ2nstar = dReQ7n*dReQ5n*dReQ2n-dReQ7n*dImQ5n*dImQ2n+dImQ7n*dReQ5n*dImQ2n + dImQ7n*dImQ5n*dReQ2n; // <5>_{6n,4n|4n,3n,3n}: Double_t reQ10nQ4nstarQ3nstarQ3nstar = (dReQ10n*dReQ4n+dImQ10n*dImQ4n)*(pow(dReQ3n,2)-pow(dImQ3n,2)) + 2.*dReQ3n*dImQ3n*(dImQ10n*dReQ4n-dReQ10n*dImQ4n); Double_t reQ7nQ3nQ6nstarQ4nstar = dImQ3n*dImQ4n*dImQ6n*dImQ7n+dImQ6n*dImQ7n*dReQ3n*dReQ4n + dImQ4n*dImQ7n*dReQ3n*dReQ6n-dImQ3n*dImQ7n*dReQ4n*dReQ6n - dImQ4n*dImQ6n*dReQ3n*dReQ7n+dImQ3n*dImQ6n*dReQ4n*dReQ7n + dImQ3n*dImQ4n*dReQ6n*dReQ7n+dReQ3n*dReQ4n*dReQ6n*dReQ7n; Double_t reQ10nQ7nstarQ3nstar = dReQ10n*dReQ7n*dReQ3n-dReQ10n*dImQ7n*dImQ3n+dImQ10n*dReQ7n*dImQ3n + dImQ10n*dImQ7n*dReQ3n; Double_t reQ10nQ6nstarQ4nstar = dReQ10n*dReQ6n*dReQ4n-dReQ10n*dImQ6n*dImQ4n+dImQ10n*dReQ6n*dImQ4n + dImQ10n*dImQ6n*dReQ4n; Double_t reQ6nQ1nQ4nstarQ3nstar = dImQ1n*dImQ3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11n*dImQ6n*dImQ5n+dImQ11n*dReQ6n*dImQ5n + dImQ11n*dImQ6n*dReQ5n; Double_t reQ8nQ6nstarQ2nstar = dReQ8n*dReQ6n*dReQ2n-dReQ8n*dImQ6n*dImQ2n+dImQ8n*dReQ6n*dImQ2n + dImQ8n*dImQ6n*dReQ2n; Double_t reQ11nQ8nstarQ3nstar = dReQ11n*dReQ8n*dReQ3n-dReQ11n*dImQ8n*dImQ3n+dImQ11n*dReQ8n*dImQ3n + dImQ11n*dImQ8n*dReQ3n; Double_t reQ8nQ5nstarQ3nstar = dReQ8n*dReQ5n*dReQ3n-dReQ8n*dImQ5n*dImQ3n+dImQ8n*dReQ5n*dImQ3n + dImQ8n*dImQ5n*dReQ3n; // <5>_{5n,2n|5n,1n,1n} Double_t reQ7nQ5nstarQ1nstarQ1nstar = (dReQ7n*dReQ5n+dImQ7n*dImQ5n)*(pow(dReQ1n,2)-pow(dImQ1n,2)) + 2.*dReQ1n*dImQ1n*(dImQ7n*dReQ5n-dReQ7n*dImQ5n); Double_t reQ6nQ1nQ5nstarQ2nstar = dImQ1n*dImQ2n*dImQ5n*dImQ6n+dImQ5n*dImQ6n*dReQ1n*dReQ2n + dImQ2n*dImQ6n*dReQ1n*dReQ5n-dImQ1n*dImQ6n*dReQ2n*dReQ5n - dImQ2n*dImQ5n*dReQ1n*dReQ6n+dImQ1n*dImQ5n*dReQ2n*dReQ6n + dImQ1n*dImQ2n*dReQ5n*dReQ6n+dReQ1n*dReQ2n*dReQ5n*dReQ6n; // <5>_{5n,4n|5n,2n,2n} Double_t reQ9nQ5nstarQ2nstarQ2nstar = (dReQ9n*dReQ5n+dImQ9n*dImQ5n)*(pow(dReQ2n,2)-pow(dImQ2n,2)) + 2.*dReQ2n*dImQ2n*(dImQ9n*dReQ5n-dReQ9n*dImQ5n); Double_t reQ7nQ2nQ5nstarQ4nstar = dImQ2n*dImQ4n*dImQ5n*dImQ7n+dImQ5n*dImQ7n*dReQ2n*dReQ4n + dImQ4n*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6n + 2.*dReQ4n*dReQ5n*dImQ5n*dImQ6n+dImQ4n*pow(dImQ5n,2.)*dImQ6n; Double_t reQ9nQ1nQ6nstarQ4nstar = dImQ4n*dImQ1n*dImQ9n*dImQ6n+dImQ9n*dImQ6n*dReQ4n*dReQ1n + dImQ1n*dImQ6n*dReQ4n*dReQ9n-dImQ4n*dImQ6n*dReQ1n*dReQ9n - dImQ1n*dImQ9n*dReQ4n*dReQ6n+dImQ4n*dImQ9n*dReQ1n*dReQ6n + dImQ4n*dImQ1n*dReQ9n*dReQ6n+dReQ4n*dReQ1n*dReQ9n*dReQ6n; Double_t reQ10nQ5nstarQ4nstarQ1nstar = dReQ1n*dReQ4n*dReQ5n*dReQ10n-dReQ5n*dReQ10n*dImQ1n*dImQ4n - dReQ4n*dReQ10n*dImQ1n*dImQ5n-dReQ1n*dReQ10n*dImQ4n*dImQ5n + dReQ4n*dReQ5n*dImQ1n*dImQ10n+dReQ1n*dReQ5n*dImQ4n*dImQ10n + dReQ1n*dReQ4n*dImQ5n*dImQ10n-dImQ1n*dImQ4n*dImQ5n*dImQ10n; Double_t reQ10nQ9nstarQ1nstar = dReQ10n*dReQ9n*dReQ1n-dReQ10n*dImQ9n*dImQ1n+dImQ10n*dReQ9n*dImQ1n + dImQ10n*dImQ9n*dReQ1n; Double_t reQ10nQ5nstarQ5nstar = pow(dReQ5n,2.)*dReQ10n-dReQ10n*pow(dImQ5n,2.)+2.*dReQ5n*dImQ5n*dImQ10n; // <5>_{6n,3n|6n,2n,1n}: Double_t reQ6nQ3nQ6nstarQ2nstarQ1nstar = (dReQ1n*dReQ2n*dReQ3n-dReQ3n*dImQ1n*dImQ2n + dReQ2n*dImQ1n*dImQ3n+dReQ1n*dImQ2n*dImQ3n) * (pow(dReQ6n,2.)+pow(dImQ6n,2.)); Double_t reQ9nQ6nstarQ2nstarQ1nstar = dReQ1n*dReQ2n*dReQ6n*dReQ9n-dReQ6n*dReQ9n*dImQ1n*dImQ2n - dReQ2n*dReQ9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Q5n*dImQ2n*dImQ9n*dImQ6n+dImQ9n*dImQ6n*dReQ5n*dReQ2n + dImQ2n*dImQ6n*dReQ5n*dReQ9n-dImQ5n*dImQ6n*dReQ2n*dReQ9n - dImQ2n*dImQ9n*dReQ5n*dReQ6n+dImQ5n*dImQ9n*dReQ2n*dReQ6n + dImQ5n*dImQ2n*dReQ9n*dReQ6n+dReQ5n*dReQ2n*dReQ9n*dReQ6n; Double_t reQ11nQ5nstarQ4nstarQ2nstar = dReQ2n*dReQ4n*dReQ5n*dReQ11n-dReQ5n*dReQ11n*dImQ2n*dImQ4n - dReQ4n*dReQ11n*dImQ2n*dImQ5n-dReQ2n*dReQ11n*dImQ4n*dImQ5n + dReQ4n*dReQ5n*dImQ2n*dImQ11n+dReQ2n*dReQ5n*dImQ4n*dImQ11n + dReQ2n*dReQ4n*dImQ5n*dImQ11n-dImQ2n*dImQ4n*dImQ5n*dImQ11n; Double_t reQ11nQ9nstarQ2nstar = dReQ11n*dReQ9n*dReQ2n-dReQ11n*dImQ9n*dImQ2n+dImQ11n*dReQ9n*dImQ2n + dImQ11n*dImQ9n*dReQ2n; Double_t reQ11nQ7nstarQ4nstar = dReQ11n*dReQ7n*dReQ4n-dReQ11n*dImQ7n*dImQ4n+dImQ11n*dReQ7n*dImQ4n + dImQ11n*dImQ7n*dReQ4n; // <5>_{6n,5n|6n,3n,2n}: Double_t reQ6nQ5nQ6nstarQ3nstarQ2nstar = (dReQ2n*dReQ3n*dReQ5n-dReQ5n*dImQ2n*dImQ3n + dReQ3n*dImQ2n*dImQ5n+dReQ2n*dImQ3n*dImQ5n) * (pow(dReQ6n,2.)+pow(dImQ6n,2.)); Double_t reQ11nQ6nstarQ3nstarQ2nstar = dReQ2n*dReQ3n*dReQ6n*dReQ11n-dReQ6n*dReQ11n*dImQ2n*dImQ3n - dReQ3n*dReQ11n*dImQ2n*dImQ6n-dReQ2n*dReQ11n*dImQ3n*dImQ6n + dReQ3n*dReQ6n*dImQ2n*dImQ11n+dReQ2n*dReQ6n*dImQ3n*dImQ11n + dReQ2n*dReQ3n*dImQ6n*dImQ11n-dImQ2n*dImQ3n*dImQ6n*dImQ11n; // <5>_{6n,5n|6n,4n,1n}: Double_t reQ6nQ5nQ6nstarQ4nstarQ1nstar = (dReQ1n*dReQ4n*dReQ5n-dReQ5n*dImQ1n*dImQ4n + dReQ4n*dImQ1n*dImQ5n+dReQ1n*dImQ4n*dImQ5n) * (pow(dReQ6n,2.)+pow(dImQ6n,2.)); Double_t reQ10nQ1nQ6nstarQ5nstar = dImQ5n*dImQ1n*dImQ10n*dImQ6n+dImQ10n*dImQ6n*dReQ5n*dReQ1n + dImQ1n*dImQ6n*dReQ5n*dReQ10n-dImQ5n*dImQ6n*dReQ1n*dReQ10n - dImQ1n*dImQ10n*dReQ5n*dReQ6n+dImQ5n*dImQ10n*dReQ1n*dReQ6n + dImQ5n*dImQ1n*dReQ10n*dReQ6n+dReQ5n*dReQ1n*dReQ10n*dReQ6n; Double_t reQ11nQ10nstarQ1nstar = dReQ11n*dReQ10n*dReQ1n-dReQ11n*dImQ10n*dImQ1n+dImQ11n*dReQ10n*dImQ1n + dImQ11n*dImQ10n*dReQ1n; Double_t reQ11nQ6nstarQ4nstarQ1nstar = dReQ1n*dReQ4n*dReQ6n*dReQ11n-dReQ6n*dReQ11n*dImQ1n*dImQ4n - dReQ4n*dReQ11n*dImQ1n*dImQ6n-dReQ1n*dReQ11n*dImQ4n*dImQ6n + dReQ4n*dReQ6n*dImQ1n*dImQ11n+dReQ1n*dReQ6n*dImQ4n*dImQ11n + dReQ1n*dReQ4n*dImQ6n*dImQ11n-dImQ1n*dImQ4n*dImQ6n*dImQ11n; // <5>_{4n,1n|3n,1n,1n}: Double_t reQ4nQ1nQ3nstarQ1nstarQ1nstar = (pow(dReQ1n,2.)+pow(dImQ1n,2.)) * (dReQ1n*dReQ3n*dReQ4n-dReQ4n*dImQ1n*dImQ3n + dReQ3n*dImQ1n*dImQ4n+dReQ1n*dImQ3n*dImQ4n); Double_t reQ4nQ1nQ4nstarQ1nstar = (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)); Double_t reQ3nQ1nQ3nstarQ1nstar = (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)); // <5>_{4n,3n|3n,3n,1n}: Double_t reQ4nQ3nQ3nstarQ3nstarQ1nstar = (pow(dReQ3n,2.)+pow(dImQ3n,2.)) * (dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n)); Double_t reQ7nQ3nstarQ3nstarQ1nstar = (dReQ7n*dReQ1n+dImQ7n*dImQ1n)*(pow(dReQ3n,2)-pow(dImQ3n,2)) + 2.*dReQ3n*dImQ3n*(dImQ7n*dReQ1n-dReQ7n*dImQ1n); // <5>_{4n,4n|4n,3n,1n}: Double_t reQ4nQ4nQ4nstarQ3nstarQ1nstar = (pow(dReQ4n,2.)+pow(dImQ4n,2.)) * reQ4nQ3nstarQ1nstar; Double_t reQ7nQ1nQ4nstarQ4nstar = dReQ1n*pow(dReQ4n,2.)*dReQ7n+2.*dReQ4n*dReQ7n*dImQ1n*dImQ4n - dReQ1n*dReQ7n*pow(dImQ4n,2.)-pow(dReQ4n,2.)*dImQ1n*dImQ7n + 2.*dReQ1n*dReQ4n*dImQ4n*dImQ7n+dImQ1n*pow(dImQ4n,2.)*dImQ7n; // <5>_{5n,2n|3n,2n,2n}: Double_t reQ5nQ2nQ3nstarQ2nstarQ2nstar = (pow(dReQ2n,2.)+pow(dImQ2n,2.)) * reQ5nQ3nstarQ2nstar; // <5>_{5n,3n|3n,3n,2n}: Double_t reQ5nQ3nQ3nstarQ3nstarQ2nstar = (pow(dImQ3n,2.)+pow(dReQ3n,2.)) * (dImQ3n*dImQ5n*dReQ2n+dImQ2n*dImQ5n*dReQ3n - dImQ2n*dImQ3n*dReQ5n+dReQ2n*dReQ3n*dReQ5n); Double_t reQ8nQ3nstarQ3nstarQ2nstar = (dReQ8n*dReQ2n+dImQ8n*dImQ2n)*(pow(dReQ3n,2)-pow(dImQ3n,2)) + 2.*dReQ3n*dImQ3n*(dImQ8n*dReQ2n-dReQ8n*dImQ2n); /* Double_t reQ5nQ1nQ3nstarQ2nstar = dImQ2n*dImQ1n*dImQ5n*dImQ3n+dImQ5n*dImQ3n*dReQ2n*dReQ1n + dImQ1n*dImQ3n*dReQ2n*dReQ5n-dImQ2n*dImQ3n*dReQ1n*dReQ5n - dImQ1n*dImQ5n*dReQ2n*dReQ3n+dImQ2n*dImQ5n*dReQ1n*dReQ3n + dImQ2n*dImQ1n*dReQ5n*dReQ3n+dReQ2n*dReQ1n*dReQ5n*dReQ3n; */ // <5>_{5n,1n|4n,1n,1n}: Double_t reQ5nQ1nQ4nstarQ1nstarQ1nstar = (pow(dImQ1n,2.)+pow(dReQ1n,2.)) * (dImQ1n*dImQ5n*dReQ4n+dImQ4n*dImQ5n*dReQ1n - dImQ4n*dImQ1n*dReQ5n+dReQ4n*dReQ1n*dReQ5n); // <5>_{5n,4n|4n,4n,1n}: Double_t reQ5nQ4nQ4nstarQ4nstarQ1nstar = (pow(dImQ4n,2.)+pow(dReQ4n,2.)) * (dImQ4n*dImQ5n*dReQ1n+dImQ1n*dImQ5n*dReQ4n - dImQ1n*dImQ4n*dReQ5n+dReQ1n*dReQ4n*dReQ5n); Double_t reQ9nQ4nstarQ4nstarQ1nstar = (dReQ9n*dReQ1n+dImQ9n*dImQ1n)*(pow(dReQ4n,2)-pow(dImQ4n,2)) + 2.*dReQ4n*dImQ4n*(dImQ9n*dReQ1n-dReQ9n*dImQ1n); // <5>_{5n,5n|5n,3n,2n}: Double_t reQ5nQ5nQ5nstarQ3nstarQ2nstar = (pow(dImQ5n,2.)+pow(dReQ5n,2.)) * (dImQ3n*dImQ5n*dReQ2n+dImQ2n*dImQ5n*dReQ3n - dImQ2n*dImQ3n*dReQ5n+dReQ2n*dReQ3n*dReQ5n); Double_t reQ7nQ3nQ5nstarQ5nstar = dReQ3n*pow(dReQ5n,2.)*dReQ7n+2.*dReQ5n*dReQ7n*dImQ3n*dImQ5n - dReQ3n*dReQ7n*pow(dImQ5n,2.)-pow(dReQ5n,2.)*dImQ3n*dImQ7n + 2.*dReQ3n*dReQ5n*dImQ5n*dImQ7n+dImQ3n*pow(dImQ5n,2.)*dImQ7n; Double_t reQ8nQ2nQ5nstarQ5nstar = dReQ2n*pow(dReQ5n,2.)*dReQ8n+2.*dReQ5n*dReQ8n*dImQ2n*dImQ5n - dReQ2n*dReQ8n*pow(dImQ5n,2.)-pow(dReQ5n,2.)*dImQ2n*dImQ8n + 2.*dReQ2n*dReQ5n*dImQ5n*dImQ8n+dImQ2n*pow(dImQ5n,2.)*dImQ8n; Double_t reQ10nQ5nstarQ3nstarQ2nstar = dReQ2n*dReQ3n*dReQ5n*dReQ10n-dReQ5n*dReQ10n*dImQ2n*dImQ3n - dReQ3n*dReQ10n*dImQ2n*dImQ5n-dReQ2n*dReQ10n*dImQ3n*dImQ5n + dReQ3n*dReQ5n*dImQ2n*dImQ10n+dReQ2n*dReQ5n*dImQ3n*dImQ10n + dReQ2n*dReQ3n*dImQ5n*dImQ10n-dImQ2n*dImQ3n*dImQ5n*dImQ10n; Double_t reQ10nQ8nstarQ2nstar = dReQ10n*dReQ8n*dReQ2n-dReQ10n*dImQ8n*dImQ2n+dImQ10n*dReQ8n*dImQ2n + dImQ10n*dImQ8n*dReQ2n; // <5>_{5n,5n|5n,4n,1n}: Double_t reQ5nQ5nQ5nstarQ4nstarQ1nstar = (pow(dImQ5n,2.)+pow(dReQ5n,2.)) * (dImQ4n*dImQ5n*dReQ1n+dImQ1n*dImQ5n*dReQ4n - dImQ1n*dImQ4n*dReQ5n+dReQ1n*dReQ4n*dReQ5n); Double_t reQ9nQ1nQ5nstarQ5nstar = dReQ1n*pow(dReQ5n,2.)*dReQ9n+2.*dReQ5n*dReQ9n*dImQ1n*dImQ5n - dReQ1n*dReQ9n*pow(dImQ5n,2.)-pow(dReQ5n,2.)*dImQ1n*dImQ9n + 2.*dReQ1n*dReQ5n*dImQ5n*dImQ9n+dImQ1n*pow(dImQ5n,2.)*dImQ9n; // <5>_{6n,1n|5n,1n,1n}: Double_t reQ6nQ1nQ5nstarQ1nstarQ1nstar = (pow(dReQ1n,2.)+pow(dImQ1n,2.)) * (dReQ1n*dReQ5n*dReQ6n-dReQ6n*dImQ1n*dImQ5n + dReQ5n*dImQ1n*dImQ6n+dReQ1n*dImQ5n*dImQ6n); // <5>_{6n,5n|5n,5n,1n}: Double_t reQ6nQ5nQ5nstarQ5nstarQ1nstar = (pow(dImQ5n,2.)+pow(dReQ5n,2.)) * (dImQ5n*dImQ6n*dReQ1n+dImQ1n*dImQ6n*dReQ5n - dImQ1n*dImQ5n*dReQ6n+dReQ1n*dReQ5n*dReQ6n); Double_t reQ11nQ5nstarQ5nstarQ1nstar = (dReQ11n*dReQ1n+dImQ11n*dImQ1n)*(pow(dReQ5n,2)-pow(dImQ5n,2)) + 2.*dReQ5n*dImQ5n*(dImQ11n*dReQ1n-dReQ11n*dImQ1n); // <5>_{6n,6n|6n,5n,1n}: Double_t reQ6nQ6nQ6nstarQ5nstarQ1nstar = (pow(dReQ6n,2.)+pow(dImQ6n,2.)) * reQ6nQ5nstarQ1nstar; Double_t reQ7nQ5nQ6nstarQ6nstar = dReQ5n*pow(dReQ6n,2.)*dReQ7n+2.*dReQ6n*dReQ7n*dImQ5n*dImQ6n - dReQ5n*dReQ7n*pow(dImQ6n,2.)-pow(dReQ6n,2.)*dImQ5n*dImQ7n + 2.*dReQ5n*dReQ6n*dImQ6n*dImQ7n+dImQ5n*pow(dImQ6n,2.)*dImQ7n; Double_t reQ11nQ1nQ6nstarQ6nstar = dReQ1n*pow(dReQ6n,2.)*dReQ11n+2.*dReQ6n*dReQ11n*dImQ1n*dImQ6n - dReQ1n*dReQ11n*pow(dImQ6n,2.)-pow(dReQ6n,2.)*dImQ1n*dImQ11n + 2.*dReQ1n*dReQ6n*dImQ6n*dImQ11n+dImQ1n*pow(dImQ6n,2.)*dImQ11n; Double_t reQ12nQ6nstarQ6nstar = pow(dReQ6n,2.)*dReQ12n-dReQ12n*pow(dImQ6n,2.)+2.*dReQ6n*dImQ6n*dImQ12n; Double_t reQ12nQ11nstarQ1nstar = dReQ12n*dReQ11n*dReQ1n-dReQ12n*dImQ11n*dImQ1n+dImQ12n*dReQ11n*dImQ1n + dImQ12n*dImQ11n*dReQ1n; Double_t reQ12nQ6nstarQ5nstarQ1nstar = dReQ1n*dReQ5n*dReQ6n*dReQ12n-dReQ6n*dReQ12n*dImQ1n*dImQ5n - dReQ5n*dReQ12n*dImQ1n*dImQ6n-dReQ1n*dReQ12n*dImQ5n*dImQ6n + dReQ5n*dReQ6n*dImQ1n*dImQ12n+dReQ1n*dReQ6n*dImQ5n*dImQ12n + dReQ1n*dReQ5n*dImQ6n*dImQ12n-dImQ1n*dImQ5n*dImQ6n*dImQ12n; Double_t reQ12nQ7nstarQ5nstar = dReQ12n*dReQ7n*dReQ5n-dReQ12n*dImQ7n*dImQ5n+dImQ12n*dReQ7n*dImQ5n + dImQ12n*dImQ7n*dReQ5n; // <5>_{6n,2n|4n,3n,1n}: Double_t reQ6nQ2nQ4nstarQ3nstarQ1nstar = dReQ1n*dReQ2n*dReQ3n*dReQ4n*dReQ6n+dReQ3n*dReQ4n*dReQ6n*dImQ1n*dImQ2n - dReQ2n*dReQ4n*dReQ6n*dImQ1n*dImQ3n+dReQ1n*dReQ4n*dReQ6n*dImQ2n*dImQ3n - dReQ2n*dReQ3n*dReQ6n*dImQ1n*dImQ4n+dReQ1n*dReQ3n*dReQ6n*dImQ2n*dImQ4n - dReQ1n*dReQ2n*dReQ6n*dImQ3n*dImQ4n-dReQ6n*dImQ1n*dImQ2n*dImQ3n*dImQ4n + dReQ2n*dReQ3n*dReQ4n*dImQ1n*dImQ6n-dReQ1n*dReQ3n*dReQ4n*dImQ2n*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n*pow(dImQ5n,2.) + dReQ2n*pow(dImQ4n,2.)*pow(dImQ5n,2.); Double_t reQ10nQ4nstarQ4nstarQ2nstar = (dReQ10n*dReQ2n+dImQ10n*dImQ2n)*(pow(dReQ4n,2)-pow(dImQ4n,2)) + 2.*dReQ4n*dImQ4n*(dImQ10n*dReQ2n-dReQ10n*dImQ2n); // <5>_{6n|3n,1n,1n,1n}: Double_t reQ6nQ3nstarQ1nstarQ1nstarQ1nstar = pow(dReQ1n,3.)*dReQ3n*dReQ6n-3.*dReQ1n*dReQ3n*dReQ6n*pow(dImQ1n,2.) - 3.*pow(dReQ1n,2.)*dReQ6n*dImQ1n*dImQ3n+dReQ6n*pow(dImQ1n,3.)*dImQ3n + 3.*pow(dReQ1n,2.)*dReQ3n*dImQ1n*dImQ6n-dReQ3n*pow(dImQ1n,3.)*dImQ6n + pow(dReQ1n,3.)*dImQ3n*dImQ6n-3.*dReQ1n*pow(dImQ1n,2.)*dImQ3n*dImQ6n; // <5>_{6n,1n,1n|4n,4n}: Double_t reQ6nQ1nQ1nQ4nstarQ4nstar = pow(dReQ1n,2.)*pow(dReQ4n,2.)*dReQ6n - pow(dReQ4n,2.)*dReQ6n*pow(dImQ1n,2.) + 4.*dReQ1n*dReQ4n*dReQ6n*dImQ1n*dImQ4n - pow(dReQ1n,2.)*dReQ6n*pow(dImQ4n,2.) + dReQ6n*pow(dImQ1n,2.)*pow(dImQ4n,2.) - 2.*dReQ1n*pow(dReQ4n,2.)*dImQ1n*dImQ6n + 2.*pow(dReQ1n,2.)*dReQ4n*dImQ4n*dImQ6n - 2.*dReQ4n*pow(dImQ1n,2.)*dImQ4n*dImQ6n + 2.*dReQ1n*dImQ1n*pow(dImQ4n,2.)*dImQ6n; // <5>_{6n,2n,2n|5n,5n}: Double_t reQ6nQ2nQ2nQ5nstarQ5nstar = pow(dReQ2n,2.)*pow(dReQ5n,2.)*dReQ6n - pow(dReQ5n,2.)*dReQ6n*pow(dImQ2n,2.) + 4.*dReQ2n*dReQ5n*dReQ6n*dImQ2n*dImQ5n - pow(dReQ2n,2.)*dReQ6n*pow(dImQ5n,2.) + dReQ6n*pow(dImQ2n,2.)*pow(dImQ5n,2.) - 2.*dReQ2n*pow(dReQ5n,2.)*dImQ2n*dImQ6n + 2.*pow(dReQ2n,2.)*dReQ5n*dImQ5n*dImQ6n - 2.*dReQ5n*pow(dImQ2n,2.)*dImQ5n*dImQ6n + 2.*dReQ2n*dImQ2n*pow(dImQ5n,2.)*dImQ6n; Double_t reQ10nQ6nstarQ2nstarQ2nstar = (dReQ10n*dReQ6n+dImQ10n*dImQ6n)*(pow(dReQ2n,2)-pow(dImQ2n,2)) + 2.*dReQ2n*dImQ2n*(dImQ10n*dReQ6n-dReQ10n*dImQ6n); // <5>_{6n,6n|5n,5n,2n}: Double_t reQ6nQ6nQ5nstarQ5nstarQ2nstar = dReQ2n*pow(dReQ5n,2.)*pow(dReQ6n,2.) - 2.*dReQ5n*pow(dReQ6n,2.)*dImQ2n*dImQ5n - dReQ2n*pow(dReQ6n,2.)*pow(dImQ5n,2.) + 2.*pow(dReQ5n,2.)*dReQ6n*dImQ2n*dImQ6n + 4.*dReQ2n*dReQ5n*dReQ6n*dImQ5n*dImQ6n - 2.*dReQ6n*dImQ2n*pow(dImQ5n,2.)*dImQ6n - dReQ2n*pow(dReQ5n,2.)*pow(dImQ6n,2.) + 2.*dReQ5n*dImQ2n*dImQ5n*pow(dImQ6n,2.) + dReQ2n*pow(dImQ5n,2.)*pow(dImQ6n,2.); Double_t reQ10nQ2nQ6nstarQ6nstar = dImQ2n*pow(dImQ6n,2.)*dImQ10n+2.*dImQ6n*dImQ10n*dReQ2n*dReQ6n - dImQ2n*dImQ10n*pow(dReQ6n,2.)-pow(dImQ6n,2.)*dReQ2n*dReQ10n + 2.*dImQ2n*dImQ6n*dReQ6n*dReQ10n+dReQ2n*pow(dReQ6n,2.)*dReQ10n; Double_t reQ12nQ5nstarQ5nstarQ2nstar = (dReQ12n*dReQ2n+dImQ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2n*dReQ3n) - (dMult-6.)*(pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 4.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five4n2n4n1n1n = ((pow(dReQ4n,2.)+pow(dImQ4n,2.)) * (pow(dReQ1n,2.)*dReQ2n-pow(dImQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n) - reQ6nQ4nstarQ1nstarQ1nstar - reQ4nQ2nstarQ1nstarQ1nstar - 2.*reQ4nQ1nQ3nstarQ2nstar - 2.*reQ5nQ1nQ4nstarQ2nstar + 2.*reQ3nQ2nstarQ1nstar + reQ6nQ4nstarQ2nstar + 3.*reQ4nQ2nstarQ2nstar + 2.*reQ5nQ3nstarQ2nstar + 2.*reQ6nQ5nstarQ1nstar + 2.*reQ6nQ4nstarQ2nstar + 6.*reQ4nQ3nstarQ1nstar + 6.*reQ5nQ4nstarQ1nstar - (dMult-6.)*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-4.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five4n3n4n2n1n = (reQ4nQ3nQ4nstarQ2nstarQ1nstar - reQ5nQ2nQ4nstarQ3nstar - reQ6nQ1nQ4nstarQ3nstar - reQ4nQ1nQ3nstarQ2nstar - reQ7nQ4nstarQ2nstarQ1nstar - reQ4nQ2nstarQ1nstarQ1nstar - reQ4nQ2nQ3nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ7nQ4nstarQ3nstar + 3.*reQ4nQ3nstarQ1nstar + 2.*reQ7nQ4nstarQ3nstar + reQ5nQ3nstarQ2nstar + reQ7nQ5nstarQ2nstar + reQ6nQ3nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ7nQ6nstarQ1nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ3nQ2nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + reQ4nQ3nstarQ1nstar + 2.*reQ4nQ2nstarQ2nstar + 3.*reQ6nQ4nstarQ2nstar + reQ3nQ2nstarQ1nstar + reQ4nQ2nstarQ2nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+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Q6n-pow(dImQ3n,2.)*dReQ6n + 4.*(dReQ5n*dReQ4n*dReQ1n-dReQ5n*dImQ4n*dImQ1n+dImQ5n*dReQ4n*dImQ1n+dImQ5n*dImQ4n*dReQ1n) - (dMult-7.)*(dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) + 4.*(dReQ4n*(dReQ3n*dReQ1n-dImQ3n*dImQ1n)+dImQ4n*(dReQ3n*dImQ1n+dImQ3n*dReQ1n)) + pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n + 6.*(dReQ3n*dReQ2n*dReQ1n-dReQ3n*dImQ2n*dImQ1n+dImQ3n*dReQ2n*dImQ1n+dImQ3n*dImQ2n*dReQ1n) + 3.*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))+(dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 4.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+(dMult-10.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-10.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))+2.*(dMult-7.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n2n5n1n1n = ((pow(dReQ5n,2.)+pow(dImQ5n,2.)) * (pow(dReQ1n,2.)*dReQ2n-pow(dImQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n) - reQ7nQ5nstarQ1nstarQ1nstar - reQ5nQ3nstarQ1nstarQ1nstar - 2.*reQ5nQ1nQ4nstarQ2nstar - 2.*reQ6nQ1nQ5nstarQ2nstar + 2.*reQ4nQ3nstarQ1nstar + reQ7nQ5nstarQ2nstar + 3.*reQ5nQ3nstarQ2nstar + 2.*reQ6nQ4nstarQ2nstar + 2.*reQ7nQ6nstarQ1nstar + 2.*reQ7nQ5nstarQ2nstar + 6.*reQ5nQ4nstarQ1nstar + 6.*reQ6nQ5nstarQ1nstar - (dMult-6.)*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.))-4.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-4.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n2n4n2n1n = (reQ5nQ2nQ4nstarQ2nstarQ1nstar - reQ5nQ2nQ4nstarQ3nstar - reQ6nQ1nQ5nstarQ2nstar - reQ5nQ2nstarQ2nstarQ1nstar - reQ7nQ4nstarQ2nstarQ1nstar - reQ4nQ1nQ3nstarQ2nstar - reQ5nQ1nQ4nstarQ2nstar + reQ2nQ1nstarQ1nstar + reQ7nQ5nstarQ2nstar + 3.*reQ5nQ3nstarQ2nstar + 2.*reQ7nQ5nstarQ2nstar + reQ5nQ3nstarQ2nstar + reQ7nQ4nstarQ3nstar + reQ6nQ5nstarQ1nstar + reQ2nQ1nstarQ1nstar + reQ7nQ6nstarQ1nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ5nQ4nstarQ1nstar + 3.*reQ3nQ2nstarQ1nstar + reQ2nQ1nstarQ1nstar + 2.*reQ4nQ2nstarQ2nstar + 3.*reQ6nQ4nstarQ2nstar + reQ4nQ3nstarQ1nstar + reQ4nQ2nstarQ2nstar - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n3n4n3n1n = (reQ5nQ3nQ4nstarQ3nstarQ1nstar - reQ5nQ3nQ4nstarQ4nstar - reQ7nQ1nQ5nstarQ3nstar - reQ5nQ3nstarQ1nstarQ1nstar - reQ8nQ4nstarQ3nstarQ1nstar - reQ4nQ1nQ3nstarQ2nstar - reQ5nQ2nQ4nstarQ3nstar + reQ3nQ2nstarQ1nstar + reQ8nQ5nstarQ3nstar + 3.*reQ5nQ3nstarQ2nstar + 2.*reQ8nQ5nstarQ3nstar + reQ5nQ4nstarQ1nstar + reQ8nQ4nstarQ4nstar + reQ7nQ5nstarQ2nstar + reQ3nQ2nstarQ1nstar + reQ8nQ7nstarQ1nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ5nQ4nstarQ1nstar + 3.*reQ4nQ3nstarQ1nstar + reQ3nQ2nstarQ1nstar + 2.*reQ4nQ3nstarQ1nstar + 3.*reQ7nQ4nstarQ3nstar + reQ4nQ2nstarQ2nstar + reQ4nQ3nstarQ1nstar - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n4n4n3n2n = (reQ5nQ4nQ4nstarQ3nstarQ2nstar - reQ6nQ3nQ5nstarQ4nstar - reQ7nQ2nQ5nstarQ4nstar - reQ5nQ1nQ4nstarQ2nstar - reQ9nQ4nstarQ3nstarQ2nstar - reQ4nQ1nQ3nstarQ2nstar - reQ5nQ2nQ4nstarQ3nstar + reQ4nQ2nstarQ2nstar + reQ9nQ5nstarQ4nstar + 3.*reQ5nQ4nstarQ1nstar + 2.*reQ9nQ5nstarQ4nstar + reQ6nQ5nstarQ1nstar + reQ9nQ6nstarQ3nstar + reQ7nQ5nstarQ2nstar + reQ4nQ2nstarQ2nstar + reQ9nQ7nstarQ2nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ5nQ3nstarQ2nstar + 3.*reQ6nQ4nstarQ2nstar + reQ4nQ2nstarQ2nstar + 2.*reQ4nQ3nstarQ1nstar + 3.*reQ7nQ4nstarQ3nstar + reQ3nQ2nstarQ1nstar + reQ4nQ3nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n3n5n2n1n = (reQ5nQ3nQ5nstarQ2nstarQ1nstar - reQ6nQ2nQ5nstarQ3nstar - reQ7nQ1nQ5nstarQ3nstar - reQ5nQ1nQ3nstarQ3nstar - reQ8nQ5nstarQ2nstarQ1nstar - reQ5nQ2nstarQ2nstarQ1nstar - reQ5nQ2nQ4nstarQ3nstar + reQ5nQ4nstarQ1nstar + reQ8nQ5nstarQ3nstar + 3.*reQ5nQ3nstarQ2nstar + 2.*reQ8nQ5nstarQ3nstar + reQ6nQ3nstarQ3nstar + reQ8nQ6nstarQ2nstar + reQ7nQ4nstarQ3nstar + reQ5nQ4nstarQ1nstar + reQ8nQ7nstarQ1nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ3nQ2nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + reQ5nQ4nstarQ1nstar + 2.*reQ5nQ3nstarQ2nstar + 3.*reQ7nQ5nstarQ2nstar + reQ4nQ2nstarQ2nstar + reQ5nQ3nstarQ2nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n4n5n2n2n = ((pow(dReQ5n,2.)+pow(dImQ5n,2.)) * (pow(dReQ2n,2.)*dReQ4n-pow(dImQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n) - reQ9nQ5nstarQ2nstarQ2nstar - reQ5nQ2nstarQ2nstarQ1nstar - 2.*reQ5nQ2nQ4nstarQ3nstar - 2.*reQ7nQ2nQ5nstarQ4nstar + 2.*reQ3nQ2nstarQ1nstar + reQ9nQ5nstarQ4nstar + 3.*reQ5nQ4nstarQ1nstar + 2.*reQ7nQ4nstarQ3nstar + 2.*reQ9nQ7nstarQ2nstar + 2.*reQ9nQ5nstarQ4nstar + 6.*reQ5nQ3nstarQ2nstar + 6.*reQ7nQ5nstarQ2nstar - (dMult-6.)*(pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.))-4.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-4.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n4n5n3n1n = (reQ5nQ4nQ5nstarQ3nstarQ1nstar - reQ6nQ3nQ5nstarQ4nstar - reQ8nQ1nQ5nstarQ4nstar - reQ5nQ1nQ4nstarQ2nstar - reQ9nQ5nstarQ3nstarQ1nstar - reQ5nQ3nstarQ1nstarQ1nstar - reQ5nQ3nQ4nstarQ4nstar + reQ5nQ4nstarQ1nstar + reQ9nQ5nstarQ4nstar + 3.*reQ5nQ4nstarQ1nstar + 2.*reQ9nQ5nstarQ4nstar + reQ6nQ4nstarQ2nstar + reQ9nQ6nstarQ3nstar + reQ8nQ4nstarQ4nstar + reQ5nQ4nstarQ1nstar + reQ9nQ8nstarQ1nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ4nQ3nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + reQ5nQ4nstarQ1nstar + 2.*reQ5nQ3nstarQ2nstar + 3.*reQ8nQ5nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ5nQ3nstarQ2nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*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.)+pow(dImQ8n,2.)) - 4.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))+(dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 2.*(dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n1n4n2n1n = (reQ6nQ1nQ4nstarQ2nstarQ1nstar - reQ6nQ1nQ4nstarQ3nstar - reQ6nQ1nQ5nstarQ2nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ7nQ4nstarQ2nstarQ1nstar - reQ5nQ1nQ4nstarQ2nstar - reQ6nQ4nstarQ1nstarQ1nstar + reQ2nQ1nstarQ1nstar + reQ7nQ6nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + 2.*reQ7nQ6nstarQ1nstar + reQ6nQ3nstarQ3nstar + reQ7nQ4nstarQ3nstar + reQ6nQ5nstarQ1nstar + reQ2nQ1nstarQ1nstar + reQ7nQ5nstarQ2nstar + reQ5nQ3nstarQ2nstar - (dMult-6.)*reQ6nQ4nstarQ2nstar + 3.*reQ3nQ2nstarQ1nstar + reQ2nQ1nstarQ1nstar + 2.*reQ4nQ3nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + reQ5nQ4nstarQ1nstar + reQ4nQ3nstarQ1nstar - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n3n4n3n2n = (reQ6nQ3nQ4nstarQ3nstarQ2nstar - reQ6nQ3nQ5nstarQ4nstar - reQ7nQ2nQ6nstarQ3nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ9nQ4nstarQ3nstarQ2nstar - reQ4nQ2nQ3nstarQ3nstar - reQ6nQ1nQ4nstarQ3nstar + reQ3nQ2nstarQ1nstar + reQ9nQ6nstarQ3nstar + 3.*reQ6nQ3nstarQ3nstar + 2.*reQ9nQ6nstarQ3nstar + reQ6nQ5nstarQ1nstar + reQ9nQ5nstarQ4nstar + reQ7nQ6nstarQ1nstar + reQ3nQ2nstarQ1nstar + reQ9nQ7nstarQ2nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ6nQ4nstarQ2nstar + 3.*reQ5nQ3nstarQ2nstar + reQ3nQ2nstarQ1nstar + 2.*reQ4nQ3nstarQ1nstar + 3.*reQ7nQ4nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ4nQ3nstarQ1nstar - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n4n4n3n3n = ((pow(dReQ4n,2.)+pow(dImQ4n,2.)) * (pow(dReQ3n,2.)*dReQ6n-pow(dImQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n) - ((dReQ10n*dReQ4n+dImQ10n*dImQ4n)*(pow(dReQ3n,2)-pow(dImQ3n,2)) + 2.*dReQ3n*dImQ3n*(dImQ10n*dReQ4n-dReQ10n*dImQ4n)) - ((dReQ4n*dReQ2n-dImQ4n*dImQ2n)*(dReQ3n*dReQ3n-dImQ3n*dImQ3n) + 2.*(dReQ4n*dImQ2n+dImQ4n*dReQ2n)*dReQ3n*dImQ3n) - 2.*(dImQ1n*dImQ3n*dImQ4n*dImQ6n+dImQ4n*dImQ6n*dReQ1n*dReQ3n + dImQ3n*dImQ6n*dReQ1n*dReQ4n-dImQ1n*dImQ6n*dReQ3n*dReQ4n - dImQ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3n+dImQ7n*dImQ4n*dReQ3n) - (dMult-6.)*(pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.))-4.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 2.*(dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 2.*(dMult-6.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n2n5n2n1n = (reQ6nQ2nQ5nstarQ2nstarQ1nstar - reQ6nQ2nQ5nstarQ3nstar - reQ7nQ1nQ6nstarQ2nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ8nQ5nstarQ2nstarQ1nstar - reQ5nQ1nQ4nstarQ2nstar - reQ6nQ1nQ5nstarQ2nstar + reQ2nQ1nstarQ1nstar + reQ8nQ6nstarQ2nstar + 3.*reQ6nQ4nstarQ2nstar + 2.*reQ8nQ6nstarQ2nstar + reQ6nQ3nstarQ3nstar + reQ8nQ5nstarQ3nstar + reQ7nQ6nstarQ1nstar + reQ2nQ1nstarQ1nstar + reQ8nQ7nstarQ1nstar + reQ4nQ3nstarQ1nstar - (dMult-6.)*reQ6nQ5nstarQ1nstar + 3.*reQ3nQ2nstarQ1nstar + reQ2nQ1nstarQ1nstar + 2.*reQ5nQ3nstarQ2nstar + 3.*reQ7nQ5nstarQ2nstar + reQ5nQ4nstarQ1nstar + reQ5nQ3nstarQ2nstar - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n3n5n3n1n = (reQ6nQ3nQ5nstarQ3nstarQ1nstar - reQ6nQ3nQ5nstarQ4nstar - reQ8nQ1nQ6nstarQ3nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ9nQ5nstarQ3nstarQ1nstar - reQ5nQ1nQ3nstarQ3nstar - reQ6nQ2nQ5nstarQ3nstar + reQ3nQ2nstarQ1nstar + reQ9nQ6nstarQ3nstar + 3.*reQ6nQ3nstarQ3nstar + 2.*reQ9nQ6nstarQ3nstar + reQ6nQ4nstarQ2nstar + reQ9nQ5nstarQ4nstar + reQ8nQ6nstarQ2nstar + reQ3nQ2nstarQ1nstar + reQ9nQ8nstarQ1nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ6nQ5nstarQ1nstar + 3.*reQ4nQ3nstarQ1nstar + reQ3nQ2nstarQ1nstar + 2.*reQ5nQ3nstarQ2nstar + 3.*reQ8nQ5nstarQ3nstar + reQ5nQ3nstarQ2nstar + reQ5nQ3nstarQ2nstar - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n4n5n4n1n = (reQ6nQ4nQ5nstarQ4nstarQ1nstar - reQ6nQ4nQ5nstarQ5nstar - reQ9nQ1nQ6nstarQ4nstar - reQ6nQ4nstarQ1nstarQ1nstar - reQ10nQ5nstarQ4nstarQ1nstar - reQ5nQ1nQ4nstarQ2nstar - reQ6nQ3nQ5nstarQ4nstar + reQ4nQ3nstarQ1nstar + reQ10nQ6nstarQ4nstar + 3.*reQ6nQ4nstarQ2nstar + 2.*reQ10nQ6nstarQ4nstar + reQ6nQ5nstarQ1nstar + reQ10nQ5nstarQ5nstar + reQ9nQ6nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ10nQ9nstarQ1nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ6nQ5nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + reQ4nQ3nstarQ1nstar + 2.*reQ5nQ4nstarQ1nstar + 3.*reQ9nQ5nstarQ4nstar + reQ5nQ3nstarQ2nstar + reQ5nQ4nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n5n5n3n3n = ((pow(dReQ5n,2.)+pow(dImQ5n,2.)) * (pow(dReQ3n,2.)*dReQ6n-pow(dImQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n) - ((dReQ11n*dReQ5n+dImQ11n*dImQ5n)*(pow(dReQ3n,2)-pow(dImQ3n,2)) + 2.*dReQ3n*dImQ3n*(dImQ11n*dReQ5n-dReQ11n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n*dReQ3n-dReQ11n*dImQ8n*dImQ3n+dImQ11n*dReQ8n*dImQ3n+dImQ11n*dImQ8n*dReQ3n) + 2.*(dReQ11n*dReQ6n*dReQ5n-dReQ11n*dImQ6n*dImQ5n+dImQ11n*dReQ6n*dImQ5n+dImQ11n*dImQ6n*dReQ5n) + 6.*(dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) + 6.*(dReQ8n*dReQ5n*dReQ3n-dReQ8n*dImQ5n*dImQ3n+dImQ8n*dReQ5n*dImQ3n+dImQ8n*dImQ5n*dReQ3n) - (dMult-6.)*(pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.))-4.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-4.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 2.*(dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n2n6n1n1n = ((pow(dReQ6n,2.)+pow(dImQ6n,2.)) * (pow(dReQ1n,2.)*dReQ2n-pow(dImQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n) - reQ8nQ6nstarQ1nstarQ1nstar - reQ6nQ4nstarQ1nstarQ1nstar - 2.*reQ6nQ1nQ5nstarQ2nstar - 2.*reQ7nQ1nQ6nstarQ2nstar + 2.*reQ5nQ4nstarQ1nstar + reQ8nQ6nstarQ2nstar + 3.*reQ6nQ4nstarQ2nstar + 2.*reQ7nQ5nstarQ2nstar + 2.*reQ8nQ7nstarQ1nstar + 2.*reQ8nQ6nstarQ2nstar + 6.*reQ6nQ5nstarQ1nstar + 6.*reQ7nQ6nstarQ1nstar - (dMult-6.)*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.))-4.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-4.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n3n6n2n1n = (reQ6nQ3nQ6nstarQ2nstarQ1nstar - reQ7nQ2nQ6nstarQ3nstar - reQ8nQ1nQ6nstarQ3nstar - reQ6nQ1nQ4nstarQ3nstar - reQ9nQ6nstarQ2nstarQ1nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ6nQ2nQ5nstarQ3nstar + reQ6nQ5nstarQ1nstar + reQ9nQ6nstarQ3nstar + 3.*reQ6nQ3nstarQ3nstar + 2.*reQ9nQ6nstarQ3nstar + reQ7nQ4nstarQ3nstar + reQ9nQ7nstarQ2nstar + reQ8nQ5nstarQ3nstar + reQ6nQ5nstarQ1nstar + reQ9nQ8nstarQ1nstar + reQ4nQ3nstarQ1nstar - (dMult-6.)*reQ3nQ2nstarQ1nstar + 3.*reQ7nQ6nstarQ1nstar + reQ6nQ5nstarQ1nstar + 2.*reQ6nQ4nstarQ2nstar + 3.*reQ8nQ6nstarQ2nstar + reQ5nQ3nstarQ2nstar + reQ6nQ4nstarQ2nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n4n6n2n2n = (-(pow(dImQ6n,2.)+pow(dReQ6n,2.)) * (-2.*dImQ2n*dImQ4n*dReQ2n+pow(dImQ2n,2.)*dReQ4n-pow(dReQ2n,2.)*dReQ4n) - (-pow(dImQ2n,2.)*dImQ6n*dImQ10n+dImQ6n*dImQ10n*pow(dReQ2n,2.) + 2.*dImQ2n*dImQ10n*dReQ2n*dReQ6n-2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.)*dReQ4n) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.))-4.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))+(dMult-12.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-9.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n4n6n3n1n = (reQ6nQ4nQ6nstarQ3nstarQ1nstar - reQ7nQ3nQ6nstarQ4nstar - reQ9nQ1nQ6nstarQ4nstar - reQ6nQ1nQ4nstarQ3nstar - reQ10nQ6nstarQ3nstarQ1nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ6nQ3nQ5nstarQ4nstar + reQ6nQ5nstarQ1nstar + reQ10nQ6nstarQ4nstar + 3.*reQ6nQ4nstarQ2nstar + 2.*reQ10nQ6nstarQ4nstar + reQ7nQ4nstarQ3nstar + reQ10nQ7nstarQ3nstar + reQ9nQ5nstarQ4nstar + reQ6nQ5nstarQ1nstar + reQ10nQ9nstarQ1nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ4nQ3nstarQ1nstar + 3.*reQ7nQ6nstarQ1nstar + reQ6nQ5nstarQ1nstar + 2.*reQ6nQ3nstarQ3nstar + 3.*reQ9nQ6nstarQ3nstar + reQ5nQ3nstarQ2nstar + reQ6nQ3nstarQ3nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n5n5n4n2n = (reQ6nQ5nQ5nstarQ4nstarQ2nstar - reQ7nQ4nQ6nstarQ5nstar - reQ9nQ2nQ6nstarQ5nstar - reQ6nQ1nQ5nstarQ2nstar - reQ11nQ5nstarQ4nstarQ2nstar - reQ5nQ1nQ4nstarQ2nstar - reQ6nQ3nQ5nstarQ4nstar + reQ5nQ3nstarQ2nstar + reQ11nQ6nstarQ5nstar + 3.*reQ6nQ5nstarQ1nstar + 2.*reQ11nQ6nstarQ5nstar + reQ7nQ6nstarQ1nstar + reQ11nQ7nstarQ4nstar + reQ9nQ6nstarQ3nstar + reQ5nQ3nstarQ2nstar + reQ11nQ9nstarQ2nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ6nQ4nstarQ2nstar + 3.*reQ7nQ5nstarQ2nstar + reQ5nQ3nstarQ2nstar + 2.*reQ5nQ4nstarQ1nstar + 3.*reQ9nQ5nstarQ4nstar + reQ4nQ3nstarQ1nstar + reQ5nQ4nstarQ1nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n5n6n3n2n = (reQ6nQ5nQ6nstarQ3nstarQ2nstar - reQ8nQ3nQ6nstarQ5nstar - reQ9nQ2nQ6nstarQ5nstar - reQ6nQ2nQ5nstarQ3nstar - reQ11nQ6nstarQ3nstarQ2nstar - reQ6nQ3nstarQ2nstarQ1nstar - reQ6nQ3nQ5nstarQ4nstar + reQ6nQ4nstarQ2nstar + reQ11nQ6nstarQ5nstar + 3.*reQ6nQ5nstarQ1nstar + 2.*reQ11nQ6nstarQ5nstar + reQ8nQ5nstarQ3nstar + reQ11nQ8nstarQ3nstar + reQ9nQ5nstarQ4nstar + reQ6nQ4nstarQ2nstar + reQ11nQ9nstarQ2nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ5nQ3nstarQ2nstar + 3.*reQ8nQ6nstarQ2nstar + reQ6nQ4nstarQ2nstar + 2.*reQ6nQ3nstarQ3nstar + 3.*reQ9nQ6nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ6nQ3nstarQ3nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n5n6n4n1n = (reQ6nQ5nQ6nstarQ4nstarQ1nstar - reQ7nQ4nQ6nstarQ5nstar - reQ10nQ1nQ6nstarQ5nstar - reQ6nQ1nQ5nstarQ2nstar - reQ11nQ6nstarQ4nstarQ1nstar - reQ6nQ4nstarQ1nstarQ1nstar - reQ6nQ4nQ5nstarQ5nstar + reQ6nQ5nstarQ1nstar + reQ11nQ6nstarQ5nstar + 3.*reQ6nQ5nstarQ1nstar + 2.*reQ11nQ6nstarQ5nstar + reQ7nQ5nstarQ2nstar + reQ11nQ7nstarQ4nstar + reQ10nQ5nstarQ5nstar + reQ6nQ5nstarQ1nstar + reQ11nQ10nstarQ1nstar + reQ2nQ1nstarQ1nstar - (dMult-6.)*reQ5nQ4nstarQ1nstar + 3.*reQ7nQ6nstarQ1nstar + reQ6nQ5nstarQ1nstar + 2.*reQ6nQ4nstarQ2nstar + 3.*reQ10nQ6nstarQ4nstar + reQ5nQ4nstarQ1nstar + reQ6nQ4nstarQ2nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // f2) Two distinct harmonics (9): five2n1n1n1n1n = ((dReQ2n*dReQ1n-dImQ2n*dImQ1n)*(pow(dReQ1n,3)-3.*dReQ1n*pow(dImQ1n,2)) + (dReQ2n*dImQ1n+dReQ1n*dImQ2n)*(3.*dImQ1n*pow(dReQ1n,2)-pow(dImQ1n,3)) - (dReQ3n*pow(dReQ1n,3)-3.*dReQ1n*dReQ3n*pow(dImQ1n,2) + 3.*dImQ1n*dImQ3n*pow(dReQ1n,2)-dImQ3n*pow(dImQ1n,3)) + 5.*(dReQ3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) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n3n3n3n3n = ((dReQ6n*dReQ3n-dImQ6n*dImQ3n)*(pow(dReQ3n,3)-3.*dReQ3n*pow(dImQ3n,2)) + (dReQ6n*dImQ3n+dReQ3n*dImQ6n)*(3.*dImQ3n*pow(dReQ3n,2)-pow(dImQ3n,3)) - (dReQ9n*pow(dReQ3n,3)-3.*dReQ3n*dReQ9n*pow(dImQ3n,2) + 3.*dImQ3n*dImQ9n*pow(dReQ3n,2)-dImQ9n*pow(dImQ3n,3)) + 5.*(dReQ9n*dReQ6n*dReQ3n-dReQ9n*dImQ6n*dImQ3n+dImQ9n*dReQ6n*dImQ3n+dImQ9n*dImQ6n*dReQ3n) - 3.*(dMult-5.)*(pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 3.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 3.*(dMult-4.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 3.*pow((pow(dReQ3n,2.)+pow(dImQ3n,2.)),2.) + 6.*(2.*dMult-5.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-6.*dMult*(dMult-4.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n6n4n4n4n = (pow(dReQ4n,3.)*pow(dReQ6n,2.)-3.*dReQ4n*pow(dReQ6n,2.)*pow(dImQ4n,2.) + 6.*pow(dReQ4n,2.)*dReQ6n*dImQ4n*dImQ6n-2.*dReQ6n*pow(dImQ4n,3.)*dImQ6n - pow(dReQ4n,3.)*pow(dImQ6n,2.)+3.*dReQ4n*pow(dImQ4n,2.)*pow(dImQ6n,2.) - (dReQ12n*pow(dReQ4n,3)-3.*dReQ4n*dReQ12n*pow(dImQ4n,2) + 3.*dImQ4n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ow(dImQ3n,2.))+2.*dImQ6n*dReQ3n*dImQ3n) - ((dReQ12n*dReQ6n+dImQ12n*dImQ6n)*(pow(dReQ3n,2)-pow(dImQ3n,2)) + 2.*dReQ3n*dImQ3n*(dImQ12n*dReQ6n-dReQ12n*dImQ6n)) - 2.*((pow(dReQ6n,2.)-pow(dImQ6n,2.))*(dReQ9n*dReQ3n-dImQ9n*dImQ3n) + 2.*dReQ6n*dImQ6n*(dReQ9n*dImQ3n+dImQ9n*dReQ3n)) + 3.*(pow(dReQ6n,2.)*dReQ12n+2.*dReQ6n*dImQ6n*dImQ12n-pow(dImQ6n,2.)*dReQ12n) + 8.*(dReQ9n*dReQ6n*dReQ3n-dReQ9n*dImQ6n*dImQ3n+dImQ9n*dReQ6n*dImQ3n+dImQ9n*dImQ6n*dReQ3n) + 2.*(dReQ12n*(dReQ9n*dReQ3n-dImQ9n*dImQ3n)+dImQ12n*(dReQ9n*dImQ3n+dImQ9n*dReQ3n)) - 2.*(dMult-6.)*(pow(dReQ3n,2.)*dReQ6n+2.*dReQ3n*dImQ3n*dImQ6n-pow(dImQ3n,2.)*dReQ6n) - 2.*(pow(dReQ12n,2.)+pow(dImQ12n,2.))-4.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - pow((pow(dReQ6n,2.)+pow(dImQ6n,2.)),2.) + 2.*(3.*dMult-10.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 4.*(pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 4.*(dMult-5.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // f3) Three distinct harmonics (30): five3n1n2n1n1n = ((pow(dReQ1n,2.)+pow(dImQ1n,2.))*(dReQ1n*dReQ2n*dReQ3n-dReQ3n*dImQ1n*dImQ2n + dReQ2n*dImQ1n*dImQ3n+dReQ1n*dImQ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Q1n,2.)+pow(dImQ1n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five4n1n3n1n1n = (reQ4nQ1nQ3nstarQ1nstarQ1nstar - reQ4nQ1nQ3nstarQ2nstar - reQ4nQ1nQ4nstarQ1nstar - reQ4nQ2nstarQ1nstarQ1nstar - reQ5nQ3nstarQ1nstarQ1nstar - reQ3nQ1nQ3nstarQ1nstar - dMult*reQ4nQ3nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + reQ5nQ4nstarQ1nstar + 3.*reQ4nQ3nstarQ1nstar + 2.*reQ5nQ4nstarQ1nstar + reQ4nQ2nstarQ2nstar + reQ5nQ3nstarQ2nstar + dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + reQ5nQ4nstarQ1nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ4nQ3nstarQ1nstar + 3.*reQ2nQ1nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*reQ3nQ2nstarQ1nstar + 3.*reQ4nQ3nstarQ1nstar + dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + reQ3nQ2nstarQ1nstar - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ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n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) - 16.*pow(dReQ1n,2.)-16.*pow(dImQ1n,2.) - 10.*pow(dReQ2n,2.)-10.*pow(dImQ2n,2.)-12.*pow(dReQ3n,2.)-12.*pow(dImQ3n,2.) - 6.*pow(dReQ4n,2.)-6.*pow(dImQ4n,2.)-4.*pow(dReQ5n,2.)-4.*pow(dImQ5n,2.) - 2.*pow(dReQ6n,2.)-2.*pow(dImQ6n,2.)+24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five4n3n3n3n1n = (reQ4nQ3nQ3nstarQ3nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - reQ6nQ1nQ4nstarQ3nstar - dMult*reQ4nQ3nstarQ1nstar - reQ7nQ3nstarQ3nstarQ1nstar - reQ3nQ1nQ3nstarQ1nstar - reQ4nQ2nQ3nstarQ3nstar + reQ3nQ2nstarQ1nstar + reQ7nQ4nstarQ3nstar + 3.*reQ4nQ3nstarQ1nstar + 2.*reQ7nQ4nstarQ3nstar + dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + reQ7nQ4nstarQ3nstar + reQ6nQ4nstarQ2nstar + reQ3nQ2nstarQ1nstar + reQ7nQ6nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-6.)*reQ4nQ3nstarQ1nstar + 3.*reQ4nQ3nstarQ1nstar + reQ3nQ2nstarQ1nstar + 2.*dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 3.*reQ6nQ3nstarQ3nstar + reQ3nQ2nstarQ1nstar + dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*dMult*dMult + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five4n4n3n3n2n = (reQ4nQ4nQ3nstarQ3nstarQ2nstar - reQ5nQ3nQ4nstarQ4nstar-reQ5nQ3nQ4nstarQ4nstar-reQ6nQ2nQ4nstarQ4nstar - reQ4nQ1nQ3nstarQ2nstar-reQ4nQ1nQ3nstarQ2nstar-reQ4nQ2nQ3nstarQ3nstar - reQ8nQ3nstarQ3nstarQ2nstar-reQ4nQ2nQ3nstarQ3nstar-reQ4nQ1nQ3nstarQ2nstar-reQ4nQ1nQ3nstarQ2nstar + 2.*(reQ4nQ3nstarQ1nstar+reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ8nQ4nstarQ4nstar) + reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ6nQ4nstarQ2nstar + reQ8nQ6nstarQ2nstar+reQ8nQ5nstarQ3nstar+reQ8nQ5nstarQ3nstar + reQ5nQ4nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ5nQ4nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ6nQ4nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + 2.*(reQ6nQ3nstarQ3nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar) + 2.*(reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ2nstarQ2nstar) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); /* // correct recursive formula, not needed for the time being. five4n4n3n3n2n = (reQ4nQ4nQ3nstarQ3nstarQ2nstar - dMult*(dMult-1.)*(dMult-2.)*(dMult-3.) * (2.*four4n2n3n3n+4.*four4n1n3n2n+1.*four8n3n3n2n+1.*four6n2n4n4n+2.*four5n3n4n4n) - dMult*(dMult-1.)*(dMult-2.) * (4.*three4n3n1n+2.*three4n2n2n+2.*three5n3n2n+1.*three6n3n3n+1.*three8n4n4n + 4.*three3n2n1n+2.*three2n1n1n+1.*three8n6n2n+2.*three8n5n3n+2.*three6n4n2n+4.*three5n4n1n) - dMult*(dMult-1.) * (1.*two2n2n+2.*two3n3n+2.*two4n4n+2.*two5n5n+1.*two6n6n+4.*two1n1n+2.*two2n2n+1.*two8n8n) - dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); */ // to be polished: five4n4n4n3n1n = (reQ4nQ4nQ4nstarQ3nstarQ1nstar - reQ5nQ3nQ4nstarQ4nstar - reQ7nQ1nQ4nstarQ4nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ8nQ4nstarQ3nstarQ1nstar - dMult*reQ4nQ3nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + reQ4nQ3nstarQ1nstar + reQ8nQ4nstarQ4nstar + 3.*dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*reQ8nQ4nstarQ4nstar + reQ5nQ4nstarQ1nstar + reQ8nQ5nstarQ3nstar + reQ7nQ4nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ8nQ7nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-6.)*reQ4nQ3nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + reQ4nQ3nstarQ1nstar + 2.*reQ4nQ3nstarQ1nstar + 3.*reQ7nQ4nstarQ3nstar + dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + reQ4nQ3nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n2n1n1n1n = (reQ5nQ2nstarQ1nstarQ1nstarQ1nstar - reQ5nQ2nstarQ2nstarQ1nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ5nQ2nstarQ2nstarQ1nstar - reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar - reQ3nQ1nstarQ1nstarQ1nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ4nQ2nstarQ1nstarQ1nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar) + reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar + reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar + 2.*(reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar) + 2.*(reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 6.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n1n2n2n2n = (reQ5nQ1nQ2nstarQ2nstarQ2nstar - reQ5nQ1nQ4nstarQ2nstar-reQ5nQ1nQ4nstarQ2nstar-reQ5nQ1nQ4nstarQ2nstar - reQ5nQ2nstarQ2nstarQ1nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ5nQ2nstarQ2nstarQ1nstar - reQ6nQ2nstarQ2nstarQ2nstar-reQ3nQ1nQ2nstarQ2nstar-reQ3nQ1nQ2nstarQ2nstar-reQ3nQ1nQ2nstarQ2nstar + 2.*(reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ6nQ5nstarQ1nstar) + reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar + reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar + reQ4nQ3nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ4nQ3nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ4nQ3nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + 2.*(reQ4nQ2nstarQ2nstar+reQ4nQ2nstarQ2nstar+reQ4nQ2nstarQ2nstar) + 2.*(reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n2n3n2n2n = (reQ5nQ2nQ3nstarQ2nstarQ2nstar - reQ5nQ2nQ4nstarQ3nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - reQ5nQ2nstarQ2nstarQ1nstar - reQ7nQ3nstarQ2nstarQ2nstar - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - dMult*reQ5nQ3nstarQ2nstar + dMult*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + reQ7nQ5nstarQ2nstar + 3.*reQ5nQ3nstarQ2nstar + 2.*reQ7nQ5nstarQ2nstar + reQ5nQ4nstarQ1nstar + reQ7nQ4nstarQ3nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + dMult*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + reQ7nQ5nstarQ2nstar + reQ3nQ2nstarQ1nstar - (dMult-6.)*reQ5nQ3nstarQ2nstar + 3.*reQ4nQ2nstarQ2nstar + dMult*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*reQ3nQ2nstarQ1nstar + 3.*reQ5nQ3nstarQ2nstar + dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + reQ3nQ2nstarQ1nstar - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ2n,2.)+pow(dImQ2n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n3n3n3n2n = (reQ5nQ3nQ3nstarQ3nstarQ2nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - reQ6nQ2nQ5nstarQ3nstar - dMult*reQ5nQ3nstarQ2nstar - reQ8nQ3nstarQ3nstarQ2nstar - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - reQ5nQ1nQ3nstarQ3nstar + reQ3nQ2nstarQ1nstar + reQ8nQ5nstarQ3nstar + 3.*reQ5nQ3nstarQ2nstar + 2.*reQ8nQ5nstarQ3nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + reQ8nQ5nstarQ3nstar + reQ6nQ5nstarQ1nstar + reQ3nQ2nstarQ1nstar + reQ8nQ6nstarQ2nstar + dMult*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (dMult-6.)*reQ5nQ3nstarQ2nstar + 3.*reQ5nQ3nstarQ2nstar + reQ3nQ2nstarQ1nstar + 2.*dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 3.*reQ6nQ3nstarQ3nstar + reQ3nQ2nstarQ1nstar + dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ3n,2.)+pow(dImQ3n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*dMult*dMult + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n1n4n1n1n = (reQ5nQ1nQ4nstarQ1nstarQ1nstar - reQ5nQ1nQ4nstarQ2nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ5nQ3nstarQ1nstarQ1nstar - reQ6nQ4nstarQ1nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - dMult*reQ5nQ4nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + reQ6nQ5nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + 2.*reQ6nQ5nstarQ1nstar + reQ5nQ3nstarQ2nstar + reQ6nQ4nstarQ2nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + reQ6nQ5nstarQ1nstar + reQ4nQ3nstarQ1nstar - (dMult-6.)*reQ5nQ4nstarQ1nstar + 3.*reQ2nQ1nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*reQ4nQ3nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + reQ4nQ3nstarQ1nstar - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n4n3n3n3n = (reQ5nQ4nQ3nstarQ3nstarQ3nstar - reQ6nQ3nQ5nstarQ4nstar-reQ6nQ3nQ5nstarQ4nstar-reQ6nQ3nQ5nstarQ4nstar - reQ5nQ1nQ3nstarQ3nstar-reQ5nQ1nQ3nstarQ3nstar-reQ5nQ1nQ3nstarQ3nstar - reQ9nQ3nstarQ3nstarQ3nstar-reQ4nQ2nQ3nstarQ3nstar-reQ4nQ2nQ3nstarQ3nstar-reQ4nQ2nQ3nstarQ3nstar + 2.*(reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ9nQ5nstarQ4nstar) + reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar + reQ9nQ6nstarQ3nstar+reQ9nQ6nstarQ3nstar+reQ9nQ6nstarQ3nstar + reQ6nQ4nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ6nQ4nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ6nQ4nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + 2.*(reQ6nQ3nstarQ3nstar+reQ6nQ3nstarQ3nstar+reQ6nQ3nstarQ3nstar) + 2.*(reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n4n4n4n1n = (reQ5nQ4nQ4nstarQ4nstarQ1nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - reQ8nQ1nQ5nstarQ4nstar - dMult*reQ5nQ4nstarQ1nstar - reQ9nQ4nstarQ4nstarQ1nstar - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ5nQ3nQ4nstarQ4nstar + reQ4nQ3nstarQ1nstar + reQ9nQ5nstarQ4nstar + 3.*reQ5nQ4nstarQ1nstar + 2.*reQ9nQ5nstarQ4nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + reQ9nQ5nstarQ4nstar + reQ8nQ5nstarQ3nstar + reQ4nQ3nstarQ1nstar + reQ9nQ8nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-6.)*reQ5nQ4nstarQ1nstar + 3.*reQ5nQ4nstarQ1nstar + reQ4nQ3nstarQ1nstar + 2.*dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 3.*reQ8nQ4nstarQ4nstar + reQ4nQ3nstarQ1nstar + dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*dMult*dMult + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n5n4n3n3n = (reQ5nQ5nQ4nstarQ3nstarQ3nstar - reQ6nQ4nQ5nstarQ5nstar-reQ7nQ3nQ5nstarQ5nstar-reQ7nQ3nQ5nstarQ5nstar - reQ5nQ2nQ4nstarQ3nstar-reQ5nQ1nQ3nstarQ3nstar-reQ5nQ2nQ4nstarQ3nstar - reQ10nQ4nstarQ3nstarQ3nstar-reQ5nQ2nQ4nstarQ3nstar-reQ5nQ1nQ3nstarQ3nstar-reQ5nQ2nQ4nstarQ3nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ10nQ5nstarQ5nstar) + reQ6nQ5nstarQ1nstar+reQ7nQ5nstarQ2nstar+reQ7nQ5nstarQ2nstar + reQ10nQ7nstarQ3nstar+reQ10nQ6nstarQ4nstar+reQ10nQ7nstarQ3nstar + reQ6nQ5nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ7nQ5nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ4nQ2nstarQ2nstar + reQ7nQ5nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ4nQ2nstarQ2nstar + 2.*(reQ7nQ4nstarQ3nstar+reQ7nQ4nstarQ3nstar+reQ6nQ3nstarQ3nstar) + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n5n4n4n2n = (reQ5nQ5nQ4nstarQ4nstarQ2nstar - reQ6nQ4nQ5nstarQ5nstar-reQ6nQ4nQ5nstarQ5nstar-reQ8nQ2nQ5nstarQ5nstar - reQ5nQ1nQ4nstarQ2nstar-reQ5nQ1nQ4nstarQ2nstar-reQ5nQ3nQ4nstarQ4nstar - reQ10nQ4nstarQ4nstarQ2nstar-reQ5nQ3nQ4nstarQ4nstar-reQ5nQ1nQ4nstarQ2nstar-reQ5nQ1nQ4nstarQ2nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar+reQ10nQ5nstarQ5nstar) + reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar+reQ8nQ5nstarQ3nstar + reQ10nQ8nstarQ2nstar+reQ10nQ6nstarQ4nstar+reQ10nQ6nstarQ4nstar + reQ6nQ5nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ6nQ5nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ8nQ5nstarQ3nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar + 2.*(reQ8nQ4nstarQ4nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar) + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n5n5n3n2n = (reQ5nQ5nQ5nstarQ3nstarQ2nstar - reQ7nQ3nQ5nstarQ5nstar - reQ8nQ2nQ5nstarQ5nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - reQ10nQ5nstarQ3nstarQ2nstar - dMult*reQ5nQ3nstarQ2nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + reQ5nQ3nstarQ2nstar + reQ10nQ5nstarQ5nstar + 3.*dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + 2.*reQ10nQ5nstarQ5nstar + reQ7nQ5nstarQ2nstar + reQ10nQ7nstarQ3nstar + reQ8nQ5nstarQ3nstar + reQ5nQ3nstarQ2nstar + reQ10nQ8nstarQ2nstar + dMult*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (dMult-6.)*reQ5nQ3nstarQ2nstar + 3.*reQ7nQ5nstarQ2nstar + reQ5nQ3nstarQ2nstar + 2.*reQ5nQ3nstarQ2nstar + 3.*reQ8nQ5nstarQ3nstar + dMult*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + reQ5nQ3nstarQ2nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ3n,2.)+pow(dImQ3n,2.)) + (dMult-8.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n5n5n4n1n = (reQ5nQ5nQ5nstarQ4nstarQ1nstar - reQ6nQ4nQ5nstarQ5nstar - reQ9nQ1nQ5nstarQ5nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ10nQ5nstarQ4nstarQ1nstar - dMult*reQ5nQ4nstarQ1nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + reQ5nQ4nstarQ1nstar + reQ10nQ5nstarQ5nstar + 3.*dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + 2.*reQ10nQ5nstarQ5nstar + reQ6nQ5nstarQ1nstar + reQ10nQ6nstarQ4nstar + reQ9nQ5nstarQ4nstar + reQ5nQ4nstarQ1nstar + reQ10nQ9nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-6.)*reQ5nQ4nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + reQ5nQ4nstarQ1nstar + 2.*reQ5nQ4nstarQ1nstar + 3.*reQ9nQ5nstarQ4nstar + dMult*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + reQ5nQ4nstarQ1nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); five6n2n2n1n1n = // calculated by Peter Jochumzsen (pow(dReQ1n*dReQ2n,2.)*dReQ6n-pow(dReQ2n*dImQ1n,2.)*dReQ6n - 4.*dReQ1n*dReQ2n*dReQ6n*dImQ1n*dImQ2n - pow(dReQ1n*dImQ2n,2.)*dReQ6n+pow(dImQ1n*dImQ2n,2.)*dReQ6n + 2.*dReQ1n*pow(dReQ2n,2.)*dImQ1n*dImQ6n+2.*pow(dReQ1n,2.)*dReQ2n*dImQ2n*dImQ6n - 2.*dReQ2n*pow(dImQ1n,2.)*dImQ2n*dImQ6n-2.*dReQ1n*dImQ1n*pow(dImQ2n,2.)*dImQ6n + 2.*(pow(dReQ1n,2.)*dReQ2n+2.*dReQ1n*dImQ1n*dImQ2n-pow(dImQ1n,2.)*dReQ2n) + 8.*(dReQ3n*dReQ2n*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(dReQ3n*dImQ1n+dImQ3n*dReQ1n)) + 4.*(dReQ5n*dReQ2n*dReQ3n-dReQ5n*dImQ2n*dImQ3n+dImQ5n*dReQ2n*dImQ3n+dImQ5n*dImQ2n*dReQ3n) + 4.*(dReQ6n*dReQ5n*dReQ1n-dReQ6n*dImQ5n*dImQ1n+dImQ6n*dReQ5n*dImQ1n+dImQ6n*dImQ5n*dReQ1n) - 4.*(dReQ1n*dReQ2n*dReQ3n*dReQ6n-dReQ3n*dReQ6n*dImQ1n*dImQ2n - dReQ2n*dReQ6n*dImQ1n*dImQ3n-dReQ1n*dReQ6n*dImQ2n*dImQ3n + dReQ2n*dReQ3n*dImQ1n*dImQ6n+dReQ1n*dReQ3n*dImQ2n*dImQ6n + dReQ1n*dReQ2n*dImQ3n*dImQ6n-dImQ1n*dImQ2n*dImQ3n*dImQ6n) - 12.*pow(dReQ1n,2.)-12.*pow(dImQ1n,2.)-14.*pow(dReQ2n,2.)-14.*pow(dImQ2n,2.) - 8.*pow(dReQ3n,2.)-8.*pow(dImQ3n,2.)-6.*pow(dReQ4n,2.)-6.*pow(dImQ4n,2.) - 4.*pow(dReQ5n,2.)-4.*pow(dImQ5n,2.)-6.*pow(dReQ6n,2.)-6.*pow(dImQ6n,2.)+24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n3n1n1n1n = (reQ6nQ3nstarQ1nstarQ1nstarQ1nstar - reQ6nQ3nstarQ2nstarQ1nstar-reQ6nQ3nstarQ2nstarQ1nstar-reQ6nQ3nstarQ2nstarQ1nstar - reQ6nQ4nstarQ1nstarQ1nstar-reQ6nQ4nstarQ1nstarQ1nstar-reQ6nQ4nstarQ1nstarQ1nstar - reQ3nQ1nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar+reQ6nQ3nstarQ3nstar) + reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar + reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar + reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar + reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar + 2.*(reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar) + 2.*(reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n1n1n4n4n = (reQ6nQ1nQ1nQ4nstarQ4nstar - reQ6nQ2nQ4nstarQ4nstar-reQ7nQ1nQ4nstarQ4nstar-reQ7nQ1nQ4nstarQ4nstar - reQ6nQ1nQ4nstarQ3nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar - reQ8nQ6nstarQ1nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar + 2.*(reQ6nQ4nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ8nQ4nstarQ4nstar) + reQ4nQ2nstarQ2nstar+reQ7nQ4nstarQ3nstar+reQ7nQ4nstarQ3nstar // ?? 1st term + reQ8nQ7nstarQ1nstar+reQ8nQ6nstarQ2nstar+reQ8nQ7nstarQ1nstar + reQ4nQ2nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ7nQ4nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ6nQ3nstarQ3nstar + reQ7nQ4nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ6nQ3nstarQ3nstar + 2.*(reQ7nQ6nstarQ1nstar+reQ7nQ6nstarQ1nstar+reQ2nQ1nstarQ1nstar) + 2.*(reQ6nQ4nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n1n5n1n1n = (reQ6nQ1nQ5nstarQ1nstarQ1nstar - reQ6nQ1nQ5nstarQ2nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ6nQ4nstarQ1nstarQ1nstar - reQ7nQ5nstarQ1nstarQ1nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - dMult*reQ6nQ5nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + reQ7nQ6nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + 2.*reQ7nQ6nstarQ1nstar + reQ6nQ4nstarQ2nstar + reQ7nQ5nstarQ2nstar + dMult*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + reQ7nQ6nstarQ1nstar + reQ5nQ4nstarQ1nstar - (dMult-6.)*reQ6nQ5nstarQ1nstar + 3.*reQ2nQ1nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*reQ5nQ4nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + reQ5nQ4nstarQ1nstar - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ1n,2.)+pow(dImQ1n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ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-pow(dImQ4n,2.))*(dReQ6n*dReQ2n-dImQ6n*dImQ2n) + 2.*dReQ4n*dImQ4n*(dReQ6n*dImQ2n+dImQ6n*dReQ2n)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + (dReQ10n*dReQ8n*dReQ2n-dReQ10n*dImQ8n*dImQ2n+dImQ10n*dReQ8n*dImQ2n+dImQ10n*dImQ8n*dReQ2n) + 4.*(dReQ10n*dReQ4n*dReQ6n-dReQ10n*dImQ4n*dImQ6n+dImQ10n*dReQ4n*dImQ6n+dImQ10n*dImQ4n*dReQ6n) + dReQ8n*(dReQ6n*dReQ2n-dImQ6n*dImQ2n)+dImQ8n*(dReQ6n*dImQ2n+dImQ6n*dReQ2n) + 3.*(pow(dReQ4n,2.)*dReQ8n+2.*dReQ4n*dImQ4n*dImQ8n-pow(dImQ4n,2.)*dReQ8n) - 2.*(dMult-6.)*(dReQ6n*dReQ4n*dReQ2n-dReQ6n*dImQ4n*dImQ2n+dImQ6n*dReQ4n*dImQ2n+dImQ6n*dImQ4n*dReQ2n) + 4.*(pow(dReQ2n,2.)*dReQ4n+2.*dReQ2n*dImQ2n*dImQ4n-pow(dImQ2n,2.)*dReQ4n) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.))+2.*(dMult-5.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.))*(pow(dReQ2n,2.)+pow(dImQ2n,2.)) - pow((pow(dReQ4n,2.)+pow(dImQ4n,2.)),2.)+2.*(3.*dMult-10.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-6.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n2n2n5n5n = (reQ6nQ2nQ2nQ5nstarQ5nstar - reQ6nQ4nQ5nstarQ5nstar-reQ8nQ2nQ5nstarQ5nstar-reQ8nQ2nQ5nstarQ5nstar - reQ6nQ2nQ5nstarQ3nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ6nQ2nQ5nstarQ3nstar - reQ10nQ6nstarQ2nstarQ2nstar-reQ6nQ2nQ5nstarQ3nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ6nQ2nQ5nstarQ3nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ10nQ5nstarQ5nstar) + reQ5nQ4nstarQ1nstar+reQ8nQ5nstarQ3nstar+reQ8nQ5nstarQ3nstar + reQ10nQ8nstarQ2nstar+reQ10nQ6nstarQ4nstar+reQ10nQ8nstarQ2nstar + reQ5nQ4nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ8nQ5nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ6nQ3nstarQ3nstar + reQ8nQ5nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ6nQ3nstarQ3nstar + 2.*(reQ8nQ6nstarQ2nstar+reQ8nQ6nstarQ2nstar+reQ4nQ2nstarQ2nstar) + 2.*(reQ6nQ5nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n5n5n5n1n = (reQ6nQ5nQ5nstarQ5nstarQ1nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - reQ10nQ1nQ6nstarQ5nstar - dMult*reQ6nQ5nstarQ1nstar - reQ11nQ5nstarQ5nstarQ1nstar - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ6nQ4nQ5nstarQ5nstar + reQ5nQ4nstarQ1nstar + reQ11nQ6nstarQ5nstar + 3.*reQ6nQ5nstarQ1nstar + 2.*reQ11nQ6nstarQ5nstar + dMult*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + reQ11nQ6nstarQ5nstar + reQ10nQ6nstarQ4nstar + reQ5nQ4nstarQ1nstar + reQ11nQ10nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-6.)*reQ6nQ5nstarQ1nstar + 3.*reQ6nQ5nstarQ1nstar + reQ5nQ4nstarQ1nstar + 2.*dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + 3.*reQ10nQ5nstarQ5nstar + reQ5nQ4nstarQ1nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ5n,2.)+pow(dImQ5n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)) - 2.*dMult*dMult + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n6n5n5n2n = (reQ6nQ6nQ5nstarQ5nstarQ2nstar - reQ7nQ5nQ6nstarQ6nstar-reQ7nQ5nQ6nstarQ6nstar-reQ10nQ2nQ6nstarQ6nstar - reQ6nQ1nQ5nstarQ2nstar-reQ6nQ1nQ5nstarQ2nstar-reQ6nQ4nQ5nstarQ5nstar - reQ12nQ5nstarQ5nstarQ2nstar-reQ6nQ4nQ5nstarQ5nstar-reQ6nQ1nQ5nstarQ2nstar-reQ6nQ1nQ5nstarQ2nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ12nQ6nstarQ6nstar) + reQ7nQ6nstarQ1nstar+reQ7nQ6nstarQ1nstar+reQ10nQ6nstarQ4nstar + reQ12nQ10nstarQ2nstar+reQ12nQ7nstarQ5nstar+reQ12nQ7nstarQ5nstar + reQ7nQ6nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ5nQ4nstarQ1nstar + reQ7nQ6nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ5nQ4nstarQ1nstar + reQ10nQ6nstarQ4nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar + 2.*(reQ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+pow(dImQ6n,2.)),2.)+2.*(dMult-5.)*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 2.*(dMult-5.)*(pow(dReQ2n,2.)+pow(dImQ2n,2.))-4.*dMult*(dMult-6.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished (and TBI swap with the one above): five6n6n6n5n1n = (reQ6nQ6nQ6nstarQ5nstarQ1nstar - reQ7nQ5nQ6nstarQ6nstar - reQ11nQ1nQ6nstarQ6nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - reQ12nQ6nstarQ5nstarQ1nstar - dMult*reQ6nQ5nstarQ1nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + reQ6nQ5nstarQ1nstar + reQ12nQ6nstarQ6nstar + 3.*dMult*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + 2.*reQ12nQ6nstarQ6nstar + reQ7nQ6nstarQ1nstar + reQ12nQ7nstarQ5nstar + reQ11nQ6nstarQ5nstar + reQ6nQ5nstarQ1nstar + reQ12nQ11nstarQ1nstar + dMult*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (dMult-6.)*reQ6nQ5nstarQ1nstar + 3.*reQ7nQ6nstarQ1nstar + reQ6nQ5nstarQ1nstar + 2.*reQ6nQ5nstarQ1nstar + 3.*reQ11nQ6nstarQ5nstar + dMult*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + reQ6nQ5nstarQ1nstar - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) - (pow(dReQ6n,2.)+pow(dImQ6n,2.))*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ12n,2.)+pow(dImQ12n,2.)) - 2.*dMult*dMult - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + (dMult-8.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) + (dMult-8.)*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) + (dMult-8.)*(pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 2.*(dMult-6.)*(pow(dReQ6n,2.)+pow(dImQ6n,2.))-2.*dMult*(dMult-12.)) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Four distinct harmonics (11): // to be polished: five5n2n3n3n1n = (reQ5nQ2nQ3nstarQ3nstarQ1nstar - reQ5nQ2nQ4nstarQ3nstar-reQ5nQ2nQ4nstarQ3nstar-reQ6nQ1nQ5nstarQ2nstar - reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ5nQ1nQ3nstarQ3nstar - reQ7nQ3nstarQ3nstarQ1nstar-reQ4nQ2nQ3nstarQ3nstar-reQ3nQ1nQ2nstarQ2nstar-reQ3nQ1nQ2nstarQ2nstar + 2.*(reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ7nQ5nstarQ2nstar) + reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ6nQ5nstarQ1nstar + reQ7nQ6nstarQ1nstar+reQ7nQ4nstarQ3nstar+reQ7nQ4nstarQ3nstar + reQ4nQ2nstarQ2nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ4nQ2nstarQ2nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ6nQ4nstarQ2nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar + 2.*(reQ6nQ3nstarQ3nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar) + 2.*(reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ2nQ1nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n1n1n4n3n = (reQ5nQ1nQ1nQ4nstarQ3nstar - reQ5nQ2nQ4nstarQ3nstar-reQ6nQ1nQ4nstarQ3nstar-reQ6nQ1nQ4nstarQ3nstar - reQ5nQ1nQ4nstarQ2nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ5nQ1nQ4nstarQ2nstar - reQ7nQ5nstarQ1nstarQ1nstar-reQ5nQ1nQ3nstarQ3nstar-reQ3nQ1nstarQ1nstarQ1nstar-reQ5nQ1nQ3nstarQ3nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ7nQ4nstarQ3nstar) + reQ4nQ2nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar + reQ7nQ6nstarQ1nstar+reQ7nQ5nstarQ2nstar+reQ7nQ6nstarQ1nstar + reQ3nQ2nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar + reQ6nQ3nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ5nQ3nstarQ2nstar + reQ6nQ3nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ5nQ3nstarQ2nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar+reQ2nQ1nstarQ1nstar) + 2.*(reQ5nQ3nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five5n3n4n2n2n = (reQ5nQ3nQ4nstarQ2nstarQ2nstar - reQ5nQ3nQ4nstarQ4nstar-reQ6nQ2nQ5nstarQ3nstar-reQ6nQ2nQ5nstarQ3nstar - reQ5nQ1nQ4nstarQ2nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ5nQ1nQ4nstarQ2nstar - reQ8nQ4nstarQ2nstarQ2nstar-reQ4nQ2nQ3nstarQ3nstar-reQ3nQ1nQ2nstarQ2nstar-reQ4nQ2nQ3nstarQ3nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ8nQ5nstarQ3nstar) + reQ5nQ4nstarQ1nstar+reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar + reQ8nQ6nstarQ2nstar+reQ8nQ4nstarQ4nstar+reQ8nQ6nstarQ2nstar + reQ4nQ3nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar + reQ6nQ3nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ6nQ3nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ4nQ3nstarQ1nstar + 2.*(reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ4nQ2nstarQ2nstar) + 2.*(reQ4nQ3nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished!!!: five5n2n1n4n4n = (reQ5nQ2nQ1nQ4nstarQ4nstar - reQ5nQ3nQ4nstarQ4nstar-reQ6nQ2nQ4nstarQ4nstar-reQ7nQ1nQ4nstarQ4nstar - reQ5nQ1nQ4nstarQ2nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ5nQ2nQ4nstarQ3nstar - reQ8nQ5nstarQ2nstarQ1nstar-reQ5nQ2nQ4nstarQ3nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ5nQ1nQ4nstarQ2nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ2nstarQ2nstar+reQ8nQ4nstarQ4nstar) + reQ4nQ3nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ7nQ4nstarQ3nstar + reQ8nQ7nstarQ1nstar+reQ8nQ5nstarQ3nstar+reQ8nQ6nstarQ2nstar + reQ4nQ3nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ6nQ4nstarQ2nstar+reQ2nQ1nstarQ1nstar+reQ5nQ3nstarQ2nstar + reQ7nQ4nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ5nQ3nstarQ2nstar + 2.*(reQ7nQ5nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ3nQ2nstarQ1nstar) + 2.*(reQ5nQ4nstarQ1nstar+reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n1n3n2n2n = (reQ6nQ1nQ3nstarQ2nstarQ2nstar - reQ6nQ1nQ4nstarQ3nstar-reQ6nQ1nQ5nstarQ2nstar-reQ6nQ1nQ5nstarQ2nstar - reQ6nQ3nstarQ2nstarQ1nstar-reQ6nQ2nstarQ2nstarQ2nstar-reQ6nQ3nstarQ2nstarQ1nstar - reQ7nQ3nstarQ2nstarQ2nstar-reQ4nQ1nQ3nstarQ2nstar-reQ3nQ1nQ2nstarQ2nstar-reQ4nQ1nQ3nstarQ2nstar + 2.*(reQ6nQ3nstarQ3nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ7nQ6nstarQ1nstar) + reQ6nQ4nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar + reQ7nQ5nstarQ2nstar+reQ7nQ4nstarQ3nstar+reQ7nQ5nstarQ2nstar + reQ4nQ3nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ5nQ4nstarQ1nstar+reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar + reQ5nQ4nstarQ1nstar+reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar + 2.*(reQ5nQ3nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ4nQ2nstarQ2nstar) + 2.*(reQ3nQ2nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n3n4n4n1n = (reQ6nQ3nQ4nstarQ4nstarQ1nstar - reQ8nQ1nQ6nstarQ3nstar-reQ6nQ3nQ5nstarQ4nstar-reQ6nQ3nQ5nstarQ4nstar - reQ6nQ4nstarQ1nstarQ1nstar-reQ6nQ2nQ4nstarQ4nstar-reQ6nQ4nstarQ1nstarQ1nstar - reQ9nQ4nstarQ4nstarQ1nstar-reQ4nQ1nQ3nstarQ2nstar-reQ5nQ3nQ4nstarQ4nstar-reQ4nQ1nQ3nstarQ2nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ9nQ6nstarQ3nstar) + reQ8nQ6nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ6nQ5nstarQ1nstar + reQ9nQ5nstarQ4nstar+reQ9nQ8nstarQ1nstar+reQ9nQ5nstarQ4nstar + reQ8nQ5nstarQ3nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar + reQ5nQ3nstarQ2nstar+reQ4nQ2nstarQ2nstar+reQ2nQ1nstarQ1nstar + reQ5nQ3nstarQ2nstar+reQ4nQ2nstarQ2nstar+reQ2nQ1nstarQ1nstar + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ8nQ4nstarQ4nstar) + 2.*(reQ3nQ2nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n1n1n5n3n = (reQ6nQ1nQ1nQ5nstarQ3nstar - reQ6nQ2nQ5nstarQ3nstar-reQ7nQ1nQ5nstarQ3nstar-reQ7nQ1nQ5nstarQ3nstar - reQ6nQ1nQ5nstarQ2nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ6nQ1nQ5nstarQ2nstar - reQ8nQ6nstarQ1nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar-reQ3nQ1nstarQ1nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ8nQ5nstarQ3nstar) + reQ5nQ3nstarQ2nstar+reQ7nQ5nstarQ2nstar+reQ7nQ5nstarQ2nstar + reQ8nQ7nstarQ1nstar+reQ8nQ6nstarQ2nstar+reQ8nQ7nstarQ1nstar + reQ3nQ2nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar + reQ7nQ4nstarQ3nstar+reQ4nQ3nstarQ1nstar+reQ6nQ4nstarQ2nstar + reQ7nQ4nstarQ3nstar+reQ4nQ3nstarQ1nstar+reQ6nQ4nstarQ2nstar + 2.*(reQ7nQ6nstarQ1nstar+reQ7nQ6nstarQ1nstar+reQ2nQ1nstarQ1nstar) + 2.*(reQ6nQ3nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) - 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n3n5n2n2n = (reQ6nQ3nQ5nstarQ2nstarQ2nstar - reQ6nQ3nQ5nstarQ4nstar-reQ7nQ2nQ6nstarQ3nstar-reQ7nQ2nQ6nstarQ3nstar - reQ6nQ1nQ5nstarQ2nstar-reQ6nQ2nstarQ2nstarQ2nstar-reQ6nQ1nQ5nstarQ2nstar - reQ9nQ5nstarQ2nstarQ2nstar-reQ5nQ2nQ4nstarQ3nstar-reQ3nQ1nQ2nstarQ2nstar-reQ5nQ2nQ4nstarQ3nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ6nQ4nstarQ2nstar+reQ9nQ6nstarQ3nstar) + reQ6nQ4nstarQ2nstar+reQ7nQ6nstarQ1nstar+reQ7nQ6nstarQ1nstar + reQ9nQ7nstarQ2nstar+reQ9nQ5nstarQ4nstar+reQ9nQ7nstarQ2nstar + reQ4nQ3nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ2nQ1nstarQ1nstar + reQ7nQ4nstarQ3nstar+reQ4nQ2nstarQ2nstar+reQ5nQ4nstarQ1nstar + reQ7nQ4nstarQ3nstar+reQ4nQ2nstarQ2nstar+reQ5nQ4nstarQ1nstar + 2.*(reQ7nQ5nstarQ2nstar+reQ7nQ5nstarQ2nstar+reQ4nQ2nstarQ2nstar) + 2.*(reQ5nQ3nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ3nQ2nstarQ1nstar) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished five6n5n4n4n3n = (reQ6nQ5nQ4nstarQ4nstarQ3nstar - reQ7nQ4nQ6nstarQ5nstar-reQ7nQ4nQ6nstarQ5nstar-reQ8nQ3nQ6nstarQ5nstar - reQ6nQ1nQ4nstarQ3nstar-reQ6nQ1nQ4nstarQ3nstar-reQ6nQ2nQ4nstarQ4nstar - reQ11nQ4nstarQ4nstarQ3nstar-reQ5nQ3nQ4nstarQ4nstar-reQ5nQ2nQ4nstarQ3nstar-reQ5nQ2nQ4nstarQ3nstar + 2.*(reQ6nQ4nstarQ2nstar+reQ6nQ3nstarQ3nstar+reQ6nQ4nstarQ2nstar+reQ11nQ6nstarQ5nstar) + reQ7nQ6nstarQ1nstar+reQ7nQ6nstarQ1nstar+reQ8nQ6nstarQ2nstar + reQ11nQ8nstarQ3nstar+reQ11nQ7nstarQ4nstar+reQ11nQ7nstarQ4nstar + reQ7nQ5nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ4nQ2nstarQ2nstar + reQ7nQ5nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ4nQ2nstarQ2nstar + reQ8nQ5nstarQ3nstar+reQ4nQ3nstarQ1nstar+reQ4nQ3nstarQ1nstar + 2.*(reQ8nQ4nstarQ4nstar+reQ7nQ4nstarQ3nstar+reQ7nQ4nstarQ3nstar) + 2.*(reQ5nQ4nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ11n,2.)+pow(dImQ11n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n3n1n5n5n = (reQ6nQ3nQ1nQ5nstarQ5nstar - reQ6nQ4nQ5nstarQ5nstar-reQ7nQ3nQ5nstarQ5nstar-reQ9nQ1nQ5nstarQ5nstar - reQ6nQ1nQ5nstarQ2nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ6nQ3nQ5nstarQ4nstar - reQ10nQ6nstarQ3nstarQ1nstar-reQ6nQ3nQ5nstarQ4nstar-reQ5nQ3nstarQ1nstarQ1nstar-reQ6nQ1nQ5nstarQ2nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ10nQ5nstarQ5nstar) + reQ5nQ4nstarQ1nstar+reQ7nQ5nstarQ2nstar+reQ9nQ5nstarQ4nstar + reQ10nQ9nstarQ1nstar+reQ10nQ6nstarQ4nstar+reQ10nQ7nstarQ3nstar + reQ5nQ4nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ7nQ5nstarQ2nstar+reQ2nQ1nstarQ1nstar+reQ6nQ4nstarQ2nstar + reQ9nQ5nstarQ4nstar+reQ4nQ3nstarQ1nstar+reQ6nQ4nstarQ2nstar + 2.*(reQ9nQ6nstarQ3nstar+reQ7nQ6nstarQ1nstar+reQ4nQ3nstarQ1nstar) + 2.*(reQ6nQ5nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n6n5n4n3n = (reQ6nQ6nQ5nstarQ4nstarQ3nstar - reQ7nQ5nQ6nstarQ6nstar-reQ8nQ4nQ6nstarQ6nstar-reQ9nQ3nQ6nstarQ6nstar - reQ6nQ2nQ5nstarQ3nstar-reQ6nQ1nQ4nstarQ3nstar-reQ6nQ3nQ5nstarQ4nstar - reQ12nQ5nstarQ4nstarQ3nstar-reQ6nQ3nQ5nstarQ4nstar-reQ6nQ1nQ4nstarQ3nstar-reQ6nQ2nQ5nstarQ3nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ3nstarQ3nstar+reQ6nQ4nstarQ2nstar+reQ12nQ6nstarQ6nstar) + reQ7nQ6nstarQ1nstar+reQ8nQ6nstarQ2nstar+reQ9nQ6nstarQ3nstar + reQ12nQ9nstarQ3nstar+reQ12nQ7nstarQ5nstar+reQ12nQ8nstarQ4nstar + reQ7nQ6nstarQ1nstar+reQ3nQ2nstarQ1nstar+reQ4nQ3nstarQ1nstar + reQ8nQ6nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ5nQ3nstarQ2nstar + reQ9nQ6nstarQ3nstar+reQ4nQ3nstarQ1nstar+reQ5nQ3nstarQ2nstar + 2.*(reQ9nQ5nstarQ4nstar+reQ8nQ5nstarQ3nstar+reQ7nQ4nstarQ3nstar) + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ6nQ3nstarQ3nstar) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ12n,2.)+pow(dImQ12n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ9n,2.)+pow(dImQ9n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // Five distinct harmonics (3): // to be polished: five6n2n4n3n1n = (reQ6nQ2nQ4nstarQ3nstarQ1nstar - reQ6nQ2nQ4nstarQ4nstar-reQ6nQ2nQ5nstarQ3nstar-reQ7nQ1nQ6nstarQ2nstar - reQ6nQ4nstarQ1nstarQ1nstar-reQ6nQ3nstarQ2nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar - reQ8nQ4nstarQ3nstarQ1nstar-reQ5nQ2nQ4nstarQ3nstar-reQ3nQ1nQ2nstarQ2nstar-reQ4nQ1nQ3nstarQ2nstar + 2.*(reQ6nQ4nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ6nQ3nstarQ3nstar+reQ8nQ6nstarQ2nstar) + 1.*(reQ6nQ4nstarQ2nstar+reQ6nQ5nstarQ1nstar+reQ7nQ6nstarQ1nstar) + 1.*(reQ8nQ7nstarQ1nstar+reQ8nQ4nstarQ4nstar+reQ8nQ5nstarQ3nstar) + 1.*(reQ4nQ2nstarQ2nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar) + 1.*(reQ5nQ3nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ4nQ3nstarQ1nstar) + 1.*(reQ7nQ5nstarQ2nstar+reQ5nQ3nstarQ2nstar+reQ5nQ4nstarQ1nstar) + 2.*(reQ7nQ4nstarQ3nstar+reQ5nQ4nstarQ1nstar+reQ4nQ3nstarQ1nstar) + 2.*(reQ4nQ2nstarQ2nstar+reQ3nQ2nstarQ1nstar+reQ2nQ1nstarQ1nstar) // 3 - 1 - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ8n,2.)+pow(dImQ8n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 2.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n2n1n5n4n = (reQ6nQ2nQ1nQ5nstarQ4nstar - reQ6nQ3nQ5nstarQ4nstar-reQ7nQ2nQ5nstarQ4nstar-reQ8nQ1nQ5nstarQ4nstar - reQ6nQ1nQ5nstarQ2nstar-reQ5nQ2nstarQ2nstarQ1nstar-reQ6nQ2nQ5nstarQ3nstar - reQ9nQ6nstarQ2nstarQ1nstar-reQ6nQ2nQ4nstarQ4nstar-reQ4nQ2nstarQ1nstarQ1nstar-reQ6nQ1nQ4nstarQ3nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ5nQ4nstarQ1nstar+reQ5nQ3nstarQ2nstar+reQ9nQ5nstarQ4nstar) + reQ5nQ3nstarQ2nstar+reQ7nQ5nstarQ2nstar+reQ8nQ5nstarQ3nstar + reQ9nQ8nstarQ1nstar+reQ9nQ6nstarQ3nstar+reQ9nQ7nstarQ2nstar + reQ4nQ3nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar + reQ7nQ4nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ6nQ3nstarQ3nstar + reQ8nQ4nstarQ4nstar+reQ4nQ2nstarQ2nstar+reQ6nQ4nstarQ2nstar + 2.*(reQ8nQ6nstarQ2nstar+reQ7nQ6nstarQ1nstar+reQ3nQ2nstarQ1nstar) + 2.*(reQ6nQ4nstarQ2nstar+reQ4nQ2nstarQ2nstar+reQ4nQ3nstarQ1nstar) - 6.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)) - 2.*(pow(dReQ9n,2.)+pow(dImQ9n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ6n,2.)+pow(dImQ6n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); // to be polished: five6n4n5n3n2n = (reQ6nQ4nQ5nstarQ3nstarQ2nstar - reQ6nQ4nQ5nstarQ5nstar-reQ7nQ3nQ6nstarQ4nstar-reQ8nQ2nQ6nstarQ4nstar - reQ6nQ1nQ5nstarQ2nstar-reQ6nQ3nstarQ2nstarQ1nstar-reQ6nQ2nQ5nstarQ3nstar - reQ10nQ5nstarQ3nstarQ2nstar-reQ5nQ3nQ4nstarQ4nstar-reQ4nQ1nQ3nstarQ2nstar-reQ5nQ2nQ4nstarQ3nstar + 2.*(reQ6nQ5nstarQ1nstar+reQ6nQ4nstarQ2nstar+reQ6nQ3nstarQ3nstar+reQ10nQ6nstarQ4nstar) + 1.*(reQ6nQ5nstarQ1nstar+reQ7nQ6nstarQ1nstar+reQ8nQ6nstarQ2nstar) + 1.*(reQ10nQ8nstarQ2nstar+reQ10nQ5nstarQ5nstar+reQ10nQ7nstarQ3nstar) + 1.*(reQ5nQ4nstarQ1nstar+reQ2nQ1nstarQ1nstar+reQ3nQ2nstarQ1nstar) + 1.*(reQ7nQ4nstarQ3nstar+reQ3nQ2nstarQ1nstar+reQ5nQ3nstarQ2nstar) + 1.*(reQ8nQ4nstarQ4nstar+reQ4nQ3nstarQ1nstar+reQ5nQ4nstarQ1nstar) + 2.*(reQ8nQ5nstarQ3nstar+reQ7nQ5nstarQ2nstar+reQ5nQ3nstarQ2nstar) + 2.*(reQ5nQ4nstarQ1nstar+reQ4nQ3nstarQ1nstar+reQ4nQ2nstarQ2nstar) // 3 - 1 - 6.*(pow(dReQ6n,2.)+pow(dImQ6n,2.)) - 2.*(pow(dReQ10n,2.)+pow(dImQ10n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)+pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 2.*(pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ7n,2.)+pow(dImQ7n,2.)+pow(dReQ8n,2.)+pow(dImQ8n,2.)) - 2.*(pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)+pow(dReQ1n,2.)+pow(dImQ1n,2.)) - 6.*(pow(dReQ4n,2.)+pow(dImQ4n,2.)+pow(dReQ5n,2.)+pow(dImQ5n,2.)+pow(dReQ2n,2.)+pow(dImQ2n,2.)+pow(dReQ3n,2.)+pow(dImQ3n,2.)) + 24.*dMult) / (dMult*(dMult-1.)*(dMult-2.)*(dMult-3.)*(dMult-4.)); f5pCorrelations->Fill(0.5,five3n2n3n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(1.5,five4n1n2n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(2.5,five4n2n3n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(3.5,five4n3n3n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(4.5,five4n2n4n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(5.5,five4n3n4n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(6.5,five5n1n3n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(7.5,five5n2n5n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(8.5,five5n2n4n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(9.5,five5n3n4n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(10.5,five5n4n4n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(11.5,five5n3n5n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(12.5,five5n4n5n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(13.5,five5n4n5n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(14.5,five6n1n3n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(15.5,five6n2n3n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(16.5,five6n1n4n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(17.5,five6n3n4n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(18.5,five6n4n4n3n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(19.5,five6n2n5n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(20.5,five6n3n5n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(21.5,five6n4n5n4n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(22.5,five6n5n5n3n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(23.5,five6n2n6n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(24.5,five6n3n6n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(25.5,five6n4n6n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(26.5,five6n4n6n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(27.5,five6n5n5n4n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(28.5,five6n5n6n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(29.5,five6n5n6n4n1n,d5pMultiplicityWeight); //f5pCorrelations->Fill(30.5,-44.,d5pMultiplicityWeight); f5pCorrelations->Fill(31.5,five2n1n1n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(32.5,five2n2n2n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(33.5,five3n3n2n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(34.5,five4n1n1n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(35.5,five4n2n2n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(36.5,five4n4n4n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(37.5,five6n3n3n3n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(38.5,five6n6n4n4n4n,d5pMultiplicityWeight); f5pCorrelations->Fill(39.5,five6n6n6n3n3n,d5pMultiplicityWeight); //f5pCorrelations->Fill(40.5,-44.,d5pMultiplicityWeight); f5pCorrelations->Fill(41.5,five3n1n2n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(42.5,five3n2n2n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(43.5,five3n3n3n2n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(44.5,five4n1n3n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(45.5,five4n1n1n3n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(46.5,five4n3n3n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(47.5,five4n4n3n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(48.5,five4n4n4n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(49.5,five5n2n1n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(50.5,five5n1n2n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(51.5,five5n2n3n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(52.5,five5n3n3n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(53.5,five5n1n4n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(54.5,five5n4n3n3n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(55.5,five5n4n4n4n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(56.5,five5n5n4n3n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(57.5,five5n5n4n4n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(58.5,five5n5n5n3n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(59.5,five5n5n5n4n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(60.5,five6n2n2n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(61.5,five6n3n1n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(62.5,five6n1n1n4n4n,d5pMultiplicityWeight); f5pCorrelations->Fill(63.5,five6n1n5n1n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(64.5,five6n2n4n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(65.5,five6n4n4n4n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(66.5,five6n2n2n5n5n,d5pMultiplicityWeight); f5pCorrelations->Fill(67.5,five6n5n5n5n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(68.5,five6n6n5n5n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(69.5,five6n6n6n4n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(70.5,five6n6n6n5n1n,d5pMultiplicityWeight); //f5pCorrelations->Fill(71.5,-44.,d5pMultiplicityWeight); f5pCorrelations->Fill(72.5,five5n2n3n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(73.5,five5n1n1n4n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(74.5,five5n3n4n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(75.5,five5n2n1n4n4n,d5pMultiplicityWeight); f5pCorrelations->Fill(76.5,five6n1n3n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(77.5,five6n3n4n4n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(78.5,five6n1n1n5n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(79.5,five6n3n5n2n2n,d5pMultiplicityWeight); f5pCorrelations->Fill(80.5,five6n5n4n4n3n,d5pMultiplicityWeight); f5pCorrelations->Fill(81.5,five6n3n1n5n5n,d5pMultiplicityWeight); f5pCorrelations->Fill(82.5,five6n6n5n4n3n,d5pMultiplicityWeight); //f5pCorrelations->Fill(83.5,-44.,d5pMultiplicityWeight); f5pCorrelations->Fill(84.5,five6n2n4n3n1n,d5pMultiplicityWeight); f5pCorrelations->Fill(85.5,five6n2n1n5n4n,d5pMultiplicityWeight); f5pCorrelations->Fill(86.5,five6n4n5n3n2n,d5pMultiplicityWeight); allMixedCorrelators[56]=five3n2n3n1n1n; allMixedCorrelators[57]=five4n1n2n2n1n; allMixedCorrelators[58]=five4n2n3n2n1n; allMixedCorrelators[59]=five4n3n3n2n2n; allMixedCorrelators[60]=five4n2n4n1n1n; allMixedCorrelators[61]=five4n3n4n2n1n; allMixedCorrelators[62]=five5n1n3n2n1n; allMixedCorrelators[63]=five5n2n5n1n1n; allMixedCorrelators[64]=five5n2n4n2n1n; allMixedCorrelators[65]=five5n3n4n3n1n; allMixedCorrelators[66]=five5n4n4n3n2n; allMixedCorrelators[67]=five5n3n5n2n1n; allMixedCorrelators[68]=five5n4n5n2n2n; allMixedCorrelators[69]=five5n4n5n3n1n; allMixedCorrelators[70]=five6n1n3n3n1n; allMixedCorrelators[71]=five6n2n3n3n2n; allMixedCorrelators[72]=five6n1n4n2n1n; allMixedCorrelators[73]=five6n3n4n3n2n; allMixedCorrelators[74]=five6n4n4n3n3n; allMixedCorrelators[75]=five6n2n5n2n1n; allMixedCorrelators[76]=five6n3n5n3n1n; allMixedCorrelators[77]=five6n4n5n4n1n; allMixedCorrelators[78]=five6n5n5n3n3n; allMixedCorrelators[79]=five6n2n6n1n1n; allMixedCorrelators[80]=five6n3n6n2n1n; allMixedCorrelators[81]=five6n4n6n2n2n; allMixedCorrelators[82]=five6n4n6n3n1n; allMixedCorrelators[83]=five6n5n5n4n2n; allMixedCorrelators[84]=five6n5n6n3n2n; allMixedCorrelators[85]=five6n5n6n4n1n; allMixedCorrelators[86]=five2n1n1n1n1n; allMixedCorrelators[87]=five2n2n2n1n1n; allMixedCorrelators[88]=five3n3n2n2n2n; allMixedCorrelators[89]=five4n1n1n1n1n; allMixedCorrelators[90]=five4n2n2n2n2n; allMixedCorrelators[91]=five4n4n4n2n2n; allMixedCorrelators[92]=five6n3n3n3n3n; allMixedCorrelators[93]=five6n6n4n4n4n; allMixedCorrelators[94]=five6n6n6n3n3n; allMixedCorrelators[95]=five3n1n2n1n1n; allMixedCorrelators[96]=five3n2n2n2n1n; allMixedCorrelators[97]=five3n3n3n2n1n; allMixedCorrelators[98]=five4n1n3n1n1n; allMixedCorrelators[99]=five4n1n1n3n3n; allMixedCorrelators[100]=five4n3n3n3n1n; allMixedCorrelators[101]=five4n4n3n3n2n; allMixedCorrelators[102]=five4n4n4n3n1n; allMixedCorrelators[103]=five5n2n1n1n1n; allMixedCorrelators[104]=five5n1n2n2n2n; allMixedCorrelators[105]=five5n2n3n2n2n; allMixedCorrelators[106]=five5n3n3n3n2n; allMixedCorrelators[107]=five5n1n4n1n1n; allMixedCorrelators[108]=five5n4n3n3n3n; allMixedCorrelators[109]=five5n4n4n4n1n; allMixedCorrelators[110]=five5n5n4n3n3n; allMixedCorrelators[111]=five5n5n4n4n2n; allMixedCorrelators[112]=five5n5n5n3n2n; allMixedCorrelators[113]=five5n5n5n4n1n; allMixedCorrelators[114]=five6n2n2n1n1n; allMixedCorrelators[115]=five6n3n1n1n1n; allMixedCorrelators[116]=five6n1n1n4n4n; allMixedCorrelators[117]=five6n1n5n1n1n; allMixedCorrelators[118]=five6n2n4n2n2n; allMixedCorrelators[119]=five6n4n4n4n2n; allMixedCorrelators[120]=five6n2n2n5n5n; allMixedCorrelators[121]=five6n5n5n5n1n; allMixedCorrelators[122]=five6n6n5n5n2n; allMixedCorrelators[123]=five6n6n6n4n2n; allMixedCorrelators[124]=five6n6n6n5n1n; allMixedCorrelators[125]=five5n2n3n3n1n; allMixedCorrelators[126]=five5n1n1n4n3n; allMixedCorrelators[127]=five5n3n4n2n2n; allMixedCorrelators[128]=five5n2n1n4n4n; allMixedCorrelators[129]=five6n1n3n2n2n; allMixedCorrelators[130]=five6n3n4n4n1n; allMixedCorrelators[131]=five6n1n1n5n3n; allMixedCorrelators[132]=five6n3n5n2n2n; allMixedCorrelators[133]=five6n5n4n4n3n; allMixedCorrelators[134]=five6n3n1n5n5n; allMixedCorrelators[135]=five6n6n5n4n3n; allMixedCorrelators[136]=five6n2n4n3n1n; allMixedCorrelators[137]=five6n2n1n5n4n; allMixedCorrelators[138]=five6n4n5n3n2n; } // end of if(dMult>4.) // Products of mixed harmonics: Double_t dwx=0.; Double_t dwy=0.; for(Int_t x=1;x<=139;x++) { if(x>=1 && x<7) { dwx=d2pMultiplicityWeight; } else if(x>=7 && x<16) { dwx=d3pMultiplicityWeight; } else if(x>=16 && x<57) { dwx=d4pMultiplicityWeight; } else if(x>=57 && x<140) { dwx=d5pMultiplicityWeight; } for(Int_t y=x+1;y<=139;y++) { if(y>=1 && y<7) { dwy=d2pMultiplicityWeight; } else if(y>=7 && y<16) { dwy=d3pMultiplicityWeight; } else if(y>=16 && y<57) { dwy=d4pMultiplicityWeight; } else if(y>=57 && y<140) { dwy=d5pMultiplicityWeight; } fMixedHarmonicProductOfCorrelations->Fill(x-0.5,y-0.5,allMixedCorrelators[x-1]*allMixedCorrelators[y-1],dwx*dwy); } // end of for(Int_t y=x+1;y<=139;y++) } // end of for(Int_t x=1;x<=139;x++) } // end of void AliFlowAnalysisWithQCumulants::CalculateMixedHarmonics() //=================================================================================================================== void AliFlowAnalysisWithQCumulants::CalculateCumulantsMixedHarmonics() { // Calculate in this method all multi-particle cumulants for azimuthal correlations in mixed harmonics. // (Remark: For completeness sake, we also calculate here again cumulants in the same harmonic.) // a) Calculate 2-p cumulants; // b) Calculate 3-p cumulants; // c) Calculate 4-p cumulants; // d) Calculate 5-p cumulants. // a) Calculate 2-p cumulants: for(Int_t b=1;b<=6;b++) { f2pCumulants->SetBinContent(b,f2pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for error dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpread = f2pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f2pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=1;b<=6;b++) // b) Calculate 3-p cumulants: for(Int_t b=1;b<=10;b++) { f3pCumulants->SetBinContent(b,f3pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpread = f3pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f3pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=1;b<=10;b++) // c) Calculate 4-p cumulants: // c1) "Single harmonic": for(Int_t b=1;b<=6;b++) { f4pCumulants->SetBinContent(b,f4pCorrelations->GetBinContent(b)-2.*pow(f2pCorrelations->GetBinContent(b),2.)); Double_t dSumWLinearTwo = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo = f2pCorrelations->GetBinError(b); dSumWLinearFour = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour = f4pCorrelations->GetBinError(b); if(pow(dSumWLinearTwo,2.)>dSumWQuadraticTwo && pow(dSumWLinearFour,2.)>dSumWQuadraticFour) { Double_t dError = 16.*pow(f2pCorrelations->GetBinContent(b),2.) * pow((pow(dSumWQuadraticTwo,0.5)/dSumWLinearTwo)*dSpreadTwo*pow(pow(dSumWLinearTwo,2.)/(pow(dSumWLinearTwo,2.)-dSumWQuadraticTwo),0.5),2.) + pow((pow(dSumWQuadraticFour,0.5)/dSumWLinearFour)*dSpreadFour*pow(pow(dSumWLinearFour,2.)/(pow(dSumWLinearFour,2.)-dSumWQuadraticFour),0.5),2.) - 8.*f2pCorrelations->GetBinContent(b) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(b,b+15)) - f2pCorrelations->GetBinContent(b)*f4pCorrelations->GetBinContent(b)) / (dSumWLinearTwo*dSumWLinearFour-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(b,pow(dError,0.5)); } } // end of if(pow(dSumWLinearTwo,2.)>dSumWQuadraticTwo && pow(dSumWLinearFour,2.)>dSumWQuadraticFour) } // end of for(Int_t b=1;b<=6;b++) // c2) "Standard candles": // <4>_{2n,1n|2n,1n}: f4pCumulants->SetBinContent(8,f4pCorrelations->GetBinContent(8)-f2pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour2n1n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour2n1n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour2n1n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearFour2n1n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour2n1n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour2n1n2n1n = f4pCorrelations->GetBinError(8); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearFour2n1n2n1n,2.)>dSumWQuadraticFour2n1n2n1n) { Double_t dError = pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow((pow(dSumWQuadraticFour2n1n2n1n,0.5)/dSumWLinearFour2n1n2n1n) * dSpreadFour2n1n2n1n*pow(pow(dSumWLinearFour2n1n2n1n,2.)/(pow(dSumWLinearFour2n1n2n1n,2.)-dSumWQuadraticFour2n1n2n1n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,2)) - f2pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(2)) / (dSumWLinearTwo1n1n*dSumWLinearTwo2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,22)) - f2pCorrelations->GetBinContent(1)*f4pCorrelations->GetBinContent(8)) / (dSumWLinearTwo1n1n*dSumWLinearFour2n1n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,22)) - f2pCorrelations->GetBinContent(2)*f4pCorrelations->GetBinContent(8)) / (dSumWLinearTwo2n2n*dSumWLinearFour2n1n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(8,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{3n,1n|3n,1n}: f4pCumulants->SetBinContent(9,f4pCorrelations->GetBinContent(9)-f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour3n1n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour3n1n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour3n1n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearFour3n1n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour3n1n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour3n1n3n1n = f4pCorrelations->GetBinError(9); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearFour3n1n3n1n,2.)>dSumWQuadraticFour3n1n3n1n) { Double_t dError = pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow((pow(dSumWQuadraticFour3n1n3n1n,0.5)/dSumWLinearFour3n1n3n1n) * dSpreadFour3n1n3n1n*pow(pow(dSumWLinearFour3n1n3n1n,2.)/(pow(dSumWLinearFour3n1n3n1n,2.)-dSumWQuadraticFour3n1n3n1n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,3)) - f2pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(3)) / (dSumWLinearTwo1n1n*dSumWLinearTwo3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,23)) - f2pCorrelations->GetBinContent(1)*f4pCorrelations->GetBinContent(9)) / (dSumWLinearTwo1n1n*dSumWLinearFour3n1n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,23)) - f2pCorrelations->GetBinContent(3)*f4pCorrelations->GetBinContent(9)) / (dSumWLinearTwo3n3n*dSumWLinearFour3n1n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(9,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{3n,2n|3n,2n}: f4pCumulants->SetBinContent(10,f4pCorrelations->GetBinContent(10)-f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour3n2n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour3n2n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour3n2n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearFour3n2n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour3n2n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour3n2n3n2n = f4pCorrelations->GetBinError(10); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearFour3n2n3n2n,2.)>dSumWQuadraticFour3n2n3n2n) { Double_t dError = pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow((pow(dSumWQuadraticFour3n2n3n2n,0.5)/dSumWLinearFour3n2n3n2n) * dSpreadFour3n2n3n2n*pow(pow(dSumWLinearFour3n2n3n2n,2.)/(pow(dSumWLinearFour3n2n3n2n,2.)-dSumWQuadraticFour3n2n3n2n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,3)) - f2pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(3)) / (dSumWLinearTwo2n2n*dSumWLinearTwo3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,24)) - f2pCorrelations->GetBinContent(2)*f4pCorrelations->GetBinContent(10)) / (dSumWLinearTwo2n2n*dSumWLinearFour3n2n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,24)) - f2pCorrelations->GetBinContent(3)*f4pCorrelations->GetBinContent(10)) / (dSumWLinearTwo3n3n*dSumWLinearFour3n2n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(10,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{4n,1n|4n,1n} f4pCumulants->SetBinContent(11,f4pCorrelations->GetBinContent(11)-f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour4n1n4n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour4n1n4n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour4n1n4n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearFour4n1n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour4n1n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour4n1n4n1n = f4pCorrelations->GetBinError(11); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearFour4n1n4n1n,2.)>dSumWQuadraticFour4n1n4n1n) { Double_t dError = pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow((pow(dSumWQuadraticFour4n1n4n1n,0.5)/dSumWLinearFour4n1n4n1n) * dSpreadFour4n1n4n1n*pow(pow(dSumWLinearFour4n1n4n1n,2.)/(pow(dSumWLinearFour4n1n4n1n,2.)-dSumWQuadraticFour4n1n4n1n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,4)) - f2pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(4)) / (dSumWLinearTwo1n1n*dSumWLinearTwo4n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,25)) - f2pCorrelations->GetBinContent(1)*f4pCorrelations->GetBinContent(11)) / (dSumWLinearTwo1n1n*dSumWLinearFour4n1n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,25)) - f2pCorrelations->GetBinContent(4)*f4pCorrelations->GetBinContent(11)) / (dSumWLinearTwo4n4n*dSumWLinearFour4n1n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(11,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{4n,2n|4n,2n} f4pCumulants->SetBinContent(12,f4pCorrelations->GetBinContent(12)-f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour4n2n4n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour4n2n4n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour4n2n4n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearFour4n2n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour4n2n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour4n2n4n2n = f4pCorrelations->GetBinError(12); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearFour4n2n4n2n,2.)>dSumWQuadraticFour4n2n4n2n) { Double_t dError = pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow((pow(dSumWQuadraticFour4n2n4n2n,0.5)/dSumWLinearFour4n2n4n2n) * dSpreadFour4n2n4n2n*pow(pow(dSumWLinearFour4n2n4n2n,2.)/(pow(dSumWLinearFour4n2n4n2n,2.)-dSumWQuadraticFour4n2n4n2n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,4)) - f2pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(4)) / (dSumWLinearTwo2n2n*dSumWLinearTwo4n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,25)) - f2pCorrelations->GetBinContent(2)*f4pCorrelations->GetBinContent(12)) / (dSumWLinearTwo2n2n*dSumWLinearFour4n2n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,25)) - f2pCorrelations->GetBinContent(4)*f4pCorrelations->GetBinContent(12)) / (dSumWLinearTwo4n4n*dSumWLinearFour4n2n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(12,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{4n,3n|4n,3n} f4pCumulants->SetBinContent(13,f4pCorrelations->GetBinContent(13)-f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour4n3n4n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour4n3n4n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour4n3n4n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearFour4n3n4n3n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour4n3n4n3n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour4n3n4n3n = f4pCorrelations->GetBinError(13); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearFour4n3n4n3n,2.)>dSumWQuadraticFour4n3n4n3n) { Double_t dError = pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow((pow(dSumWQuadraticFour4n3n4n3n,0.5)/dSumWLinearFour4n3n4n3n) * dSpreadFour4n3n4n3n*pow(pow(dSumWLinearFour4n3n4n3n,2.)/(pow(dSumWLinearFour4n3n4n3n,2.)-dSumWQuadraticFour4n3n4n3n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,4)) - f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(4)) / (dSumWLinearTwo3n3n*dSumWLinearTwo4n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,26)) - f2pCorrelations->GetBinContent(3)*f4pCorrelations->GetBinContent(13)) / (dSumWLinearTwo3n3n*dSumWLinearFour4n3n4n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,26)) - f2pCorrelations->GetBinContent(4)*f4pCorrelations->GetBinContent(13)) / (dSumWLinearTwo4n4n*dSumWLinearFour4n3n4n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(13,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{5n,1n|5n,1n} f4pCumulants->SetBinContent(14,f4pCorrelations->GetBinContent(14)-f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour5n1n5n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour5n1n5n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour5n1n5n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearFour5n1n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour5n1n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour5n1n5n1n = f4pCorrelations->GetBinError(14); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearFour5n1n5n1n,2.)>dSumWQuadraticFour5n1n5n1n) { Double_t dError = pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow((pow(dSumWQuadraticFour5n1n5n1n,0.5)/dSumWLinearFour5n1n5n1n) * dSpreadFour5n1n5n1n*pow(pow(dSumWLinearFour5n1n5n1n,2.)/(pow(dSumWLinearFour5n1n5n1n,2.)-dSumWQuadraticFour5n1n5n1n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,5)) - f2pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(5)) / (dSumWLinearTwo1n1n*dSumWLinearTwo5n5n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,28)) - f2pCorrelations->GetBinContent(1)*f4pCorrelations->GetBinContent(14)) / (dSumWLinearTwo1n1n*dSumWLinearFour5n1n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,28)) - f2pCorrelations->GetBinContent(5)*f4pCorrelations->GetBinContent(14)) / (dSumWLinearTwo5n5n*dSumWLinearFour5n1n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(14,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{5n,2n|5n,2n} f4pCumulants->SetBinContent(15,f4pCorrelations->GetBinContent(15)-f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour5n2n5n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour5n2n5n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour5n2n5n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearFour5n2n5n2n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour5n2n5n2n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour5n2n5n2n = f4pCorrelations->GetBinError(15); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearFour5n2n5n2n,2.)>dSumWQuadraticFour5n2n5n2n) { Double_t dError = pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow((pow(dSumWQuadraticFour5n2n5n2n,0.5)/dSumWLinearFour5n2n5n2n) * dSpreadFour5n2n5n2n*pow(pow(dSumWLinearFour5n2n5n2n,2.)/(pow(dSumWLinearFour5n2n5n2n,2.)-dSumWQuadraticFour5n2n5n2n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,5)) - f2pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(5)) / (dSumWLinearTwo2n2n*dSumWLinearTwo5n5n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,29)) - f2pCorrelations->GetBinContent(2)*f4pCorrelations->GetBinContent(15)) / (dSumWLinearTwo2n2n*dSumWLinearFour5n2n5n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,29)) - f2pCorrelations->GetBinContent(5)*f4pCorrelations->GetBinContent(15)) / (dSumWLinearTwo5n5n*dSumWLinearFour5n2n5n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(15,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{5n,3n|5n,3n} f4pCumulants->SetBinContent(16,f4pCorrelations->GetBinContent(16)-f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour5n3n5n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour5n3n5n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour5n3n5n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearFour5n3n5n3n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour5n3n5n3n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour5n3n5n3n = f4pCorrelations->GetBinError(16); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearFour5n3n5n3n,2.)>dSumWQuadraticFour5n3n5n3n) { Double_t dError = pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow((pow(dSumWQuadraticFour5n3n5n3n,0.5)/dSumWLinearFour5n3n5n3n) * dSpreadFour5n3n5n3n*pow(pow(dSumWLinearFour5n3n5n3n,2.)/(pow(dSumWLinearFour5n3n5n3n,2.)-dSumWQuadraticFour5n3n5n3n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,5)) - f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(5)) / (dSumWLinearTwo3n3n*dSumWLinearTwo5n5n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,30)) - f2pCorrelations->GetBinContent(3)*f4pCorrelations->GetBinContent(16)) / (dSumWLinearTwo3n3n*dSumWLinearFour5n3n5n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,30)) - f2pCorrelations->GetBinContent(5)*f4pCorrelations->GetBinContent(16)) / (dSumWLinearTwo5n5n*dSumWLinearFour5n3n5n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(16,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{5n,4n|5n,4n} f4pCumulants->SetBinContent(17,f4pCorrelations->GetBinContent(17)-f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour5n4n5n4n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour5n4n5n4n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour5n4n5n4n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearFour5n4n5n4n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour5n4n5n4n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour5n4n5n4n = f4pCorrelations->GetBinError(17); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearFour5n4n5n4n,2.)>dSumWQuadraticFour5n4n5n4n) { Double_t dError = pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow((pow(dSumWQuadraticFour5n4n5n4n,0.5)/dSumWLinearFour5n4n5n4n) * dSpreadFour5n4n5n4n*pow(pow(dSumWLinearFour5n4n5n4n,2.)/(pow(dSumWLinearFour5n4n5n4n,2.)-dSumWQuadraticFour5n4n5n4n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,5)) - f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(5)) / (dSumWLinearTwo4n4n*dSumWLinearTwo5n5n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,31)) - f2pCorrelations->GetBinContent(4)*f4pCorrelations->GetBinContent(17)) / (dSumWLinearTwo4n4n*dSumWLinearFour5n4n5n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,31)) - f2pCorrelations->GetBinContent(5)*f4pCorrelations->GetBinContent(17)) / (dSumWLinearTwo5n5n*dSumWLinearFour5n4n5n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(17,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{6n,1n|6n,1n} f4pCumulants->SetBinContent(18,f4pCorrelations->GetBinContent(18)-f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour6n1n6n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour6n1n6n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour6n1n6n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearFour6n1n6n1n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour6n1n6n1n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour6n1n6n1n = f4pCorrelations->GetBinError(18); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearFour6n1n6n1n,2.)>dSumWQuadraticFour6n1n6n1n) { Double_t dError = pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow((pow(dSumWQuadraticFour6n1n6n1n,0.5)/dSumWLinearFour6n1n6n1n) * dSpreadFour6n1n6n1n*pow(pow(dSumWLinearFour6n1n6n1n,2.)/(pow(dSumWLinearFour6n1n6n1n,2.)-dSumWQuadraticFour6n1n6n1n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,6)) - f2pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(6)) / (dSumWLinearTwo1n1n*dSumWLinearTwo6n6n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,32)) - f2pCorrelations->GetBinContent(1)*f4pCorrelations->GetBinContent(18)) / (dSumWLinearTwo1n1n*dSumWLinearFour6n1n6n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,32)) - f2pCorrelations->GetBinContent(6)*f4pCorrelations->GetBinContent(18)) / (dSumWLinearTwo6n6n*dSumWLinearFour6n1n6n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(18,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{6n,2n|6n,2n} f4pCumulants->SetBinContent(19,f4pCorrelations->GetBinContent(19)-f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour6n2n6n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour6n2n6n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour6n2n6n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearFour6n2n6n2n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour6n2n6n2n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour6n2n6n2n = f4pCorrelations->GetBinError(19); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearFour6n2n6n2n,2.)>dSumWQuadraticFour6n2n6n2n) { Double_t dError = pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow((pow(dSumWQuadraticFour6n2n6n2n,0.5)/dSumWLinearFour6n2n6n2n) * dSpreadFour6n2n6n2n*pow(pow(dSumWLinearFour6n2n6n2n,2.)/(pow(dSumWLinearFour6n2n6n2n,2.)-dSumWQuadraticFour6n2n6n2n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,6)) - f2pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(6)) / (dSumWLinearTwo2n2n*dSumWLinearTwo6n6n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,33)) - f2pCorrelations->GetBinContent(2)*f4pCorrelations->GetBinContent(19)) / (dSumWLinearTwo2n2n*dSumWLinearFour6n2n6n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,33)) - f2pCorrelations->GetBinContent(6)*f4pCorrelations->GetBinContent(19)) / (dSumWLinearTwo6n6n*dSumWLinearFour6n2n6n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(19,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{6n,3n|6n,3n} f4pCumulants->SetBinContent(20,f4pCorrelations->GetBinContent(20)-f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour6n3n6n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour6n3n6n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour6n3n6n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearFour6n3n6n3n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour6n3n6n3n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour6n3n6n3n = f4pCorrelations->GetBinError(20); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearFour6n3n6n3n,2.)>dSumWQuadraticFour6n3n6n3n) { Double_t dError = pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow((pow(dSumWQuadraticFour6n3n6n3n,0.5)/dSumWLinearFour6n3n6n3n) * dSpreadFour6n3n6n3n*pow(pow(dSumWLinearFour6n3n6n3n,2.)/(pow(dSumWLinearFour6n3n6n3n,2.)-dSumWQuadraticFour6n3n6n3n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,6)) - f2pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(6)) / (dSumWLinearTwo3n3n*dSumWLinearTwo6n6n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,34)) - f2pCorrelations->GetBinContent(3)*f4pCorrelations->GetBinContent(20)) / (dSumWLinearTwo3n3n*dSumWLinearFour6n3n6n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,34)) - f2pCorrelations->GetBinContent(6)*f4pCorrelations->GetBinContent(20)) / (dSumWLinearTwo6n6n*dSumWLinearFour6n3n6n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(20,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{6n,4n|6n,4n} f4pCumulants->SetBinContent(21,f4pCorrelations->GetBinContent(21)-f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour6n4n6n4n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour6n4n6n4n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour6n4n6n4n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearFour6n4n6n4n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour6n4n6n4n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour6n4n6n4n = f4pCorrelations->GetBinError(21); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearFour6n4n6n4n,2.)>dSumWQuadraticFour6n4n6n4n) { Double_t dError = pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow((pow(dSumWQuadraticFour6n4n6n4n,0.5)/dSumWLinearFour6n4n6n4n) * dSpreadFour6n4n6n4n*pow(pow(dSumWLinearFour6n4n6n4n,2.)/(pow(dSumWLinearFour6n4n6n4n,2.)-dSumWQuadraticFour6n4n6n4n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,6)) - f2pCorrelations->GetBinContent(4)*f2pCorrelations->GetBinContent(6)) / (dSumWLinearTwo4n4n*dSumWLinearTwo6n6n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,35)) - f2pCorrelations->GetBinContent(4)*f4pCorrelations->GetBinContent(21)) / (dSumWLinearTwo4n4n*dSumWLinearFour6n4n6n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,35)) - f2pCorrelations->GetBinContent(6)*f4pCorrelations->GetBinContent(21)) / (dSumWLinearTwo6n6n*dSumWLinearFour6n4n6n4n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(21,pow(dError,0.5)); } } // end of if(...) } // end of { // <4>_{6n,5n|6n,5n} f4pCumulants->SetBinContent(22,f4pCorrelations->GetBinContent(22)-f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFour6n5n6n5n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFour6n5n6n5n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFour6n5n6n5n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearFour6n5n6n5n = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadraticFour6n5n6n5n = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpreadFour6n5n6n5n = f4pCorrelations->GetBinError(22); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearFour6n5n6n5n,2.)>dSumWQuadraticFour6n5n6n5n) { Double_t dError = pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow((pow(dSumWQuadraticFour6n5n6n5n,0.5)/dSumWLinearFour6n5n6n5n) * dSpreadFour6n5n6n5n*pow(pow(dSumWLinearFour6n5n6n5n,2.)/(pow(dSumWLinearFour6n5n6n5n,2.)-dSumWQuadraticFour6n5n6n5n),0.5),2.) + 2.*f2pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,6)) - f2pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(6)) / (dSumWLinearTwo5n5n*dSumWLinearTwo6n6n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,2))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,36)) - f2pCorrelations->GetBinContent(5)*f4pCorrelations->GetBinContent(22)) / (dSumWLinearTwo5n5n*dSumWLinearFour6n5n6n5n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,36)) - f2pCorrelations->GetBinContent(6)*f4pCorrelations->GetBinContent(22)) / (dSumWLinearTwo6n6n*dSumWLinearFour6n5n6n5n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,4))); if(dError>0.) { f4pCumulants->SetBinError(22,pow(dError,0.5)); } } // end of if(...) } // end of { // c3) "Two distinct harmonics": for(Int_t b=24;b<=25;b++) { f4pCumulants->SetBinContent(b,f4pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpread = f4pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f4pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=24;b<=25;b++) // c4) "Three distinct harmonics": for(Int_t b=27;b<=36;b++) { f4pCumulants->SetBinContent(b,f4pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpread = f4pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f4pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=27;b<=36;b++) // c5) "Four distinct harmonics": for(Int_t b=38;b<=45;b++) { f4pCumulants->SetBinContent(b,f4pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(4); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(4); dSpread = f4pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f4pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=38;b<=45;b++) // d) Calculate 5-p cumulants: // d1) "Standard candles": f5pCumulants->SetBinContent(1,f5pCorrelations->GetBinContent(1)-f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree2n1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree2n1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree2n1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive3n2n3n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive3n2n3n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive3n2n3n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree2n1n1n = f3pCorrelations->GetBinError(1); dSumWLinearFive3n2n3n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive3n2n3n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive3n2n3n1n1n = f5pCorrelations->GetBinError(1); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree2n1n1n,2.)>dSumWQuadraticThree2n1n1n && pow(dSumWLinearFive3n2n3n1n1n,2.)>dSumWQuadraticFive3n2n3n1n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree2n1n1n,0.5)/dSumWLinearThree2n1n1n) * dSpreadThree2n1n1n*pow(pow(dSumWLinearThree2n1n1n,2.)/(pow(dSumWLinearThree2n1n1n,2.)-dSumWQuadraticThree2n1n1n),0.5),2.) + pow((pow(dSumWQuadraticFive3n2n3n1n1n,0.5)/dSumWLinearFive3n2n3n1n1n) * dSpreadFive3n2n3n1n1n*pow(pow(dSumWLinearFive3n2n3n1n1n,2.)/(pow(dSumWLinearFive3n2n3n1n1n,2.)-dSumWQuadraticFive3n2n3n1n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,7)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(1)) / (dSumWLinearTwo3n3n*dSumWLinearThree2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,57)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(1)) / (dSumWLinearTwo3n3n*dSumWLinearFive3n2n3n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(7,57)) - f3pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(1)) / (dSumWLinearThree2n1n1n*dSumWLinearFive3n2n3n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(1,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(2,f5pCorrelations->GetBinContent(2)-f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n1n2n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n1n2n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n1n2n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n2n2n = f3pCorrelations->GetBinError(2); dSumWLinearFive4n1n2n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n1n2n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n1n2n2n1n = f5pCorrelations->GetBinError(2); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree4n2n2n,2.)>dSumWQuadraticThree4n2n2n && pow(dSumWLinearFive4n1n2n2n1n,2.)>dSumWQuadraticFive4n1n2n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree4n2n2n,0.5)/dSumWLinearThree4n2n2n) * dSpreadThree4n2n2n*pow(pow(dSumWLinearThree4n2n2n,2.)/(pow(dSumWLinearThree4n2n2n,2.)-dSumWQuadraticThree4n2n2n),0.5),2.) + pow((pow(dSumWQuadraticFive4n1n2n2n1n,0.5)/dSumWLinearFive4n1n2n2n1n) * dSpreadFive4n1n2n2n1n*pow(pow(dSumWLinearFive4n1n2n2n1n,2.)/(pow(dSumWLinearFive4n1n2n2n1n,2.)-dSumWQuadraticFive4n1n2n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,8)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(2)) / (dSumWLinearTwo1n1n*dSumWLinearThree4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,58)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(2)) / (dSumWLinearTwo1n1n*dSumWLinearFive4n1n2n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(8,58)) - f3pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(2)) / (dSumWLinearThree4n2n2n*dSumWLinearFive4n1n2n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(2,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(3,f5pCorrelations->GetBinContent(3)-f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n3n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n3n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n3n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n2n3n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n2n3n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n2n3n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n3n1n = f3pCorrelations->GetBinError(6); dSumWLinearFive4n2n3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n2n3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n2n3n2n1n = f5pCorrelations->GetBinError(3); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree4n3n1n,2.)>dSumWQuadraticThree4n3n1n && pow(dSumWLinearFive4n2n3n2n1n,2.)>dSumWQuadraticFive4n2n3n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree4n3n1n,0.5)/dSumWLinearThree4n3n1n) * dSpreadThree4n3n1n*pow(pow(dSumWLinearThree4n3n1n,2.)/(pow(dSumWLinearThree4n3n1n,2.)-dSumWQuadraticThree4n3n1n),0.5),2.) + pow((pow(dSumWQuadraticFive4n2n3n2n1n,0.5)/dSumWLinearFive4n2n3n2n1n) * dSpreadFive4n2n3n2n1n*pow(pow(dSumWLinearFive4n2n3n2n1n,2.)/(pow(dSumWLinearFive4n2n3n2n1n,2.)-dSumWQuadraticFive4n2n3n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,11)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(6)) / (dSumWLinearTwo2n2n*dSumWLinearThree4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,59)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(3)) / (dSumWLinearTwo2n2n*dSumWLinearFive4n2n3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(11,59)) - f3pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(3)) / (dSumWLinearThree4n3n1n*dSumWLinearFive4n2n3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(3,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(4,f5pCorrelations->GetBinContent(4)-f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n3n3n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n3n3n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n3n3n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n2n2n = f3pCorrelations->GetBinError(2); dSumWLinearFive4n3n3n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n3n3n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n3n3n2n2n = f5pCorrelations->GetBinError(4); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree4n2n2n,2.)>dSumWQuadraticThree4n2n2n && pow(dSumWLinearFive4n3n3n2n2n,2.)>dSumWQuadraticFive4n3n3n2n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree4n2n2n,0.5)/dSumWLinearThree4n2n2n) * dSpreadThree4n2n2n*pow(pow(dSumWLinearThree4n2n2n,2.)/(pow(dSumWLinearThree4n2n2n,2.)-dSumWQuadraticThree4n2n2n),0.5),2.) + pow((pow(dSumWQuadraticFive4n3n3n2n2n,0.5)/dSumWLinearFive4n3n3n2n2n) * dSpreadFive4n3n3n2n2n*pow(pow(dSumWLinearFive4n3n3n2n2n,2.)/(pow(dSumWLinearFive4n3n3n2n2n,2.)-dSumWQuadraticFive4n3n3n2n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,8)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(2)) / (dSumWLinearTwo3n3n*dSumWLinearThree4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,60)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(4)) / (dSumWLinearTwo3n3n*dSumWLinearFive4n3n3n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(8,60)) - f3pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(4)) / (dSumWLinearThree4n2n2n*dSumWLinearFive4n3n3n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(4,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(5,f5pCorrelations->GetBinContent(5)-f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree2n1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree2n1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree2n1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n2n4n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n2n4n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n2n4n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree2n1n1n = f3pCorrelations->GetBinError(1); dSumWLinearFive4n2n4n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n2n4n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n2n4n1n1n = f5pCorrelations->GetBinError(5); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree2n1n1n,2.)>dSumWQuadraticThree2n1n1n && pow(dSumWLinearFive4n2n4n1n1n,2.)>dSumWQuadraticFive4n2n4n1n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree2n1n1n,0.5)/dSumWLinearThree2n1n1n) * dSpreadThree2n1n1n*pow(pow(dSumWLinearThree2n1n1n,2.)/(pow(dSumWLinearThree2n1n1n,2.)-dSumWQuadraticThree2n1n1n),0.5),2.) + pow((pow(dSumWQuadraticFive4n2n4n1n1n,0.5)/dSumWLinearFive4n2n4n1n1n) * dSpreadFive4n2n4n1n1n*pow(pow(dSumWLinearFive4n2n4n1n1n,2.)/(pow(dSumWLinearFive4n2n4n1n1n,2.)-dSumWQuadraticFive4n2n4n1n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,7)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(1)) / (dSumWLinearTwo4n4n*dSumWLinearThree2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,61)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(5)) / (dSumWLinearTwo4n4n*dSumWLinearFive4n2n4n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(7,61)) - f3pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(5)) / (dSumWLinearThree2n1n1n*dSumWLinearFive4n2n4n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(5,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(6,f5pCorrelations->GetBinContent(6)-f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree3n2n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree3n2n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree3n2n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n3n4n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n3n4n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n3n4n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree3n2n1n = f3pCorrelations->GetBinError(5); dSumWLinearFive4n3n4n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n3n4n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n3n4n2n1n = f5pCorrelations->GetBinError(6); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree3n2n1n,2.)>dSumWQuadraticThree3n2n1n && pow(dSumWLinearFive4n3n4n2n1n,2.)>dSumWQuadraticFive4n3n4n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree3n2n1n,0.5)/dSumWLinearThree3n2n1n) * dSpreadThree3n2n1n*pow(pow(dSumWLinearThree3n2n1n,2.)/(pow(dSumWLinearThree3n2n1n,2.)-dSumWQuadraticThree3n2n1n),0.5),2.) + pow((pow(dSumWQuadraticFive4n3n4n2n1n,0.5)/dSumWLinearFive4n3n4n2n1n) * dSpreadFive4n3n4n2n1n*pow(pow(dSumWLinearFive4n3n4n2n1n,2.)/(pow(dSumWLinearFive4n3n4n2n1n,2.)-dSumWQuadraticFive4n3n4n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,10)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(5)) / (dSumWLinearTwo4n4n*dSumWLinearThree3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,62)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(6)) / (dSumWLinearTwo4n4n*dSumWLinearFive4n3n4n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(10,62)) - f3pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(6)) / (dSumWLinearThree3n2n1n*dSumWLinearFive4n3n4n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(6,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(7,f5pCorrelations->GetBinContent(7)-f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n3n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n3n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n3n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n1n3n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n1n3n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n1n3n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n3n2n = f3pCorrelations->GetBinError(7); dSumWLinearFive5n1n3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n1n3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n1n3n2n1n = f5pCorrelations->GetBinError(7); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree5n3n2n,2.)>dSumWQuadraticThree5n3n2n && pow(dSumWLinearFive5n1n3n2n1n,2.)>dSumWQuadraticFive5n1n3n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(7),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree5n3n2n,0.5)/dSumWLinearThree5n3n2n) * dSpreadThree5n3n2n*pow(pow(dSumWLinearThree5n3n2n,2.)/(pow(dSumWLinearThree5n3n2n,2.)-dSumWQuadraticThree5n3n2n),0.5),2.) + pow((pow(dSumWQuadraticFive5n1n3n2n1n,0.5)/dSumWLinearFive5n1n3n2n1n) * dSpreadFive5n1n3n2n1n*pow(pow(dSumWLinearFive5n1n3n2n1n,2.)/(pow(dSumWLinearFive5n1n3n2n1n,2.)-dSumWQuadraticFive5n1n3n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,12)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(7)) / (dSumWLinearTwo1n1n*dSumWLinearThree5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(7) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,63)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(7)) / (dSumWLinearTwo1n1n*dSumWLinearFive5n1n3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(12,63)) - f3pCorrelations->GetBinContent(7)*f5pCorrelations->GetBinContent(7)) / (dSumWLinearThree5n3n2n*dSumWLinearFive5n1n3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(7,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(8,f5pCorrelations->GetBinContent(8)-f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree2n1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree2n1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree2n1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n2n5n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n2n5n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n2n5n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree2n1n1n = f3pCorrelations->GetBinError(1); dSumWLinearFive5n2n5n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n2n5n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n2n5n1n1n = f5pCorrelations->GetBinError(8); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree2n1n1n,2.)>dSumWQuadraticThree2n1n1n && pow(dSumWLinearFive5n2n5n1n1n,2.)>dSumWQuadraticFive5n2n5n1n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree2n1n1n,0.5)/dSumWLinearThree2n1n1n) * dSpreadThree2n1n1n*pow(pow(dSumWLinearThree2n1n1n,2.)/(pow(dSumWLinearThree2n1n1n,2.)-dSumWQuadraticThree2n1n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n2n5n1n1n,0.5)/dSumWLinearFive5n2n5n1n1n) * dSpreadFive5n2n5n1n1n*pow(pow(dSumWLinearFive5n2n5n1n1n,2.)/(pow(dSumWLinearFive5n2n5n1n1n,2.)-dSumWQuadraticFive5n2n5n1n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,7)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(1)) / (dSumWLinearTwo5n5n*dSumWLinearThree2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,64)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(8)) / (dSumWLinearTwo5n5n*dSumWLinearFive5n2n5n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(7,64)) - f3pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(8)) / (dSumWLinearThree2n1n1n*dSumWLinearFive5n2n5n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(8,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(9,f5pCorrelations->GetBinContent(9)-f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n4n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n4n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n4n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n2n4n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n2n4n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n2n4n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n4n1n = f3pCorrelations->GetBinError(8); dSumWLinearFive5n2n4n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n2n4n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n2n4n2n1n = f5pCorrelations->GetBinError(9); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree5n4n1n,2.)>dSumWQuadraticThree5n4n1n && pow(dSumWLinearFive5n2n4n2n1n,2.)>dSumWQuadraticFive5n2n4n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(8),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree5n4n1n,0.5)/dSumWLinearThree5n4n1n) * dSpreadThree5n4n1n*pow(pow(dSumWLinearThree5n4n1n,2.)/(pow(dSumWLinearThree5n4n1n,2.)-dSumWQuadraticThree5n4n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n2n4n2n1n,0.5)/dSumWLinearFive5n2n4n2n1n) * dSpreadFive5n2n4n2n1n*pow(pow(dSumWLinearFive5n2n4n2n1n,2.)/(pow(dSumWLinearFive5n2n4n2n1n,2.)-dSumWQuadraticFive5n2n4n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,13)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(8)) / (dSumWLinearTwo2n2n*dSumWLinearThree5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(8) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,65)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(9)) / (dSumWLinearTwo2n2n*dSumWLinearFive5n2n4n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(13,65)) - f3pCorrelations->GetBinContent(8)*f5pCorrelations->GetBinContent(9)) / (dSumWLinearThree5n4n1n*dSumWLinearFive5n2n4n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(9,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(10,f5pCorrelations->GetBinContent(10)-f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n4n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n4n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n4n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n3n4n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n3n4n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n3n4n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n4n1n = f3pCorrelations->GetBinError(8); dSumWLinearFive5n3n4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n3n4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n3n4n3n1n = f5pCorrelations->GetBinError(10); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree5n4n1n,2.)>dSumWQuadraticThree5n4n1n && pow(dSumWLinearFive5n3n4n3n1n,2.)>dSumWQuadraticFive5n3n4n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(8),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree5n4n1n,0.5)/dSumWLinearThree5n4n1n) * dSpreadThree5n4n1n*pow(pow(dSumWLinearThree5n4n1n,2.)/(pow(dSumWLinearThree5n4n1n,2.)-dSumWQuadraticThree5n4n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n3n4n3n1n,0.5)/dSumWLinearFive5n3n4n3n1n) * dSpreadFive5n3n4n3n1n*pow(pow(dSumWLinearFive5n3n4n3n1n,2.)/(pow(dSumWLinearFive5n3n4n3n1n,2.)-dSumWQuadraticFive5n3n4n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,13)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(8)) / (dSumWLinearTwo3n3n*dSumWLinearThree5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(8) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,66)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(10)) / (dSumWLinearTwo3n3n*dSumWLinearFive5n3n4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(13,66)) - f3pCorrelations->GetBinContent(8)*f5pCorrelations->GetBinContent(10)) / (dSumWLinearThree5n4n1n*dSumWLinearFive5n3n4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(10,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(11,f5pCorrelations->GetBinContent(11)-f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n3n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n3n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n3n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n4n4n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n4n4n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n4n4n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n3n2n = f3pCorrelations->GetBinError(7); dSumWLinearFive5n4n4n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n4n4n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n4n4n3n2n = f5pCorrelations->GetBinError(11); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree5n3n2n,2.)>dSumWQuadraticThree5n3n2n && pow(dSumWLinearFive5n4n4n3n2n,2.)>dSumWQuadraticFive5n4n4n3n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(7),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree5n3n2n,0.5)/dSumWLinearThree5n3n2n) * dSpreadThree5n3n2n*pow(pow(dSumWLinearThree5n3n2n,2.)/(pow(dSumWLinearThree5n3n2n,2.)-dSumWQuadraticThree5n3n2n),0.5),2.) + pow((pow(dSumWQuadraticFive5n4n4n3n2n,0.5)/dSumWLinearFive5n4n4n3n2n) * dSpreadFive5n4n4n3n2n*pow(pow(dSumWLinearFive5n4n4n3n2n,2.)/(pow(dSumWLinearFive5n4n4n3n2n,2.)-dSumWQuadraticFive5n4n4n3n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,12)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(7)) / (dSumWLinearTwo4n4n*dSumWLinearThree5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(7) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,67)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(11)) / (dSumWLinearTwo4n4n*dSumWLinearFive5n4n4n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(12,67)) - f3pCorrelations->GetBinContent(7)*f5pCorrelations->GetBinContent(11)) / (dSumWLinearThree5n3n2n*dSumWLinearFive5n4n4n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(11,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(12,f5pCorrelations->GetBinContent(12)-f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree3n2n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree3n2n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree3n2n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n3n5n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n3n5n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n3n5n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree3n2n1n = f3pCorrelations->GetBinError(5); dSumWLinearFive5n3n5n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n3n5n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n3n5n2n1n = f5pCorrelations->GetBinError(12); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree3n2n1n,2.)>dSumWQuadraticThree3n2n1n && pow(dSumWLinearFive5n3n5n2n1n,2.)>dSumWQuadraticFive5n3n5n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree3n2n1n,0.5)/dSumWLinearThree3n2n1n) * dSpreadThree3n2n1n*pow(pow(dSumWLinearThree3n2n1n,2.)/(pow(dSumWLinearThree3n2n1n,2.)-dSumWQuadraticThree3n2n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n3n5n2n1n,0.5)/dSumWLinearFive5n3n5n2n1n) * dSpreadFive5n3n5n2n1n*pow(pow(dSumWLinearFive5n3n5n2n1n,2.)/(pow(dSumWLinearFive5n3n5n2n1n,2.)-dSumWQuadraticFive5n3n5n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,10)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(5)) / (dSumWLinearTwo5n5n*dSumWLinearThree3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,68)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(12)) / (dSumWLinearTwo5n5n*dSumWLinearFive5n3n5n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(10,68)) - f3pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(12)) / (dSumWLinearThree3n2n1n*dSumWLinearFive5n3n5n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(12,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(13,f5pCorrelations->GetBinContent(13)-f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n4n5n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n4n5n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n4n5n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n2n2n = f3pCorrelations->GetBinError(2); dSumWLinearFive5n4n5n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n4n5n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n4n5n2n2n = f5pCorrelations->GetBinError(13); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree4n2n2n,2.)>dSumWQuadraticThree4n2n2n && pow(dSumWLinearFive5n4n5n2n2n,2.)>dSumWQuadraticFive5n4n5n2n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree4n2n2n,0.5)/dSumWLinearThree4n2n2n) * dSpreadThree4n2n2n*pow(pow(dSumWLinearThree4n2n2n,2.)/(pow(dSumWLinearThree4n2n2n,2.)-dSumWQuadraticThree4n2n2n),0.5),2.) + pow((pow(dSumWQuadraticFive5n4n5n2n2n,0.5)/dSumWLinearFive5n4n5n2n2n) * dSpreadFive5n4n5n2n2n*pow(pow(dSumWLinearFive5n4n5n2n2n,2.)/(pow(dSumWLinearFive5n4n5n2n2n,2.)-dSumWQuadraticFive5n4n5n2n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,8)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(2)) / (dSumWLinearTwo5n5n*dSumWLinearThree4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,69)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(13)) / (dSumWLinearTwo5n5n*dSumWLinearFive5n4n5n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(8,69)) - f3pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(13)) / (dSumWLinearThree4n2n2n*dSumWLinearFive5n4n5n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(13,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(14,f5pCorrelations->GetBinContent(14)-f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n3n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n3n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n3n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n4n5n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n4n5n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n4n5n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n3n1n = f3pCorrelations->GetBinError(6); dSumWLinearFive5n4n5n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n4n5n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n4n5n3n1n = f5pCorrelations->GetBinError(14); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree4n3n1n,2.)>dSumWQuadraticThree4n3n1n && pow(dSumWLinearFive5n4n5n3n1n,2.)>dSumWQuadraticFive5n4n5n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree4n3n1n,0.5)/dSumWLinearThree4n3n1n) * dSpreadThree4n3n1n*pow(pow(dSumWLinearThree4n3n1n,2.)/(pow(dSumWLinearThree4n3n1n,2.)-dSumWQuadraticThree4n3n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n4n5n3n1n,0.5)/dSumWLinearFive5n4n5n3n1n) * dSpreadFive5n4n5n3n1n*pow(pow(dSumWLinearFive5n4n5n3n1n,2.)/(pow(dSumWLinearFive5n4n5n3n1n,2.)-dSumWQuadraticFive5n4n5n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,11)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(6)) / (dSumWLinearTwo5n5n*dSumWLinearThree4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,70)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(14)) / (dSumWLinearTwo5n5n*dSumWLinearFive5n4n5n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(11,70)) - f3pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(14)) / (dSumWLinearThree4n3n1n*dSumWLinearFive5n4n5n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(14,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(15,f5pCorrelations->GetBinContent(15)-f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n1n3n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n1n3n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n1n3n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n3n3n = f3pCorrelations->GetBinError(3); dSumWLinearFive6n1n3n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n1n3n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n1n3n3n1n = f5pCorrelations->GetBinError(15); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree6n3n3n,2.)>dSumWQuadraticThree6n3n3n && pow(dSumWLinearFive6n1n3n3n1n,2.)>dSumWQuadraticFive6n1n3n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree6n3n3n,0.5)/dSumWLinearThree6n3n3n) * dSpreadThree6n3n3n*pow(pow(dSumWLinearThree6n3n3n,2.)/(pow(dSumWLinearThree6n3n3n,2.)-dSumWQuadraticThree6n3n3n),0.5),2.) + pow((pow(dSumWQuadraticFive6n1n3n3n1n,0.5)/dSumWLinearFive6n1n3n3n1n) * dSpreadFive6n1n3n3n1n*pow(pow(dSumWLinearFive6n1n3n3n1n,2.)/(pow(dSumWLinearFive6n1n3n3n1n,2.)-dSumWQuadraticFive6n1n3n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,9)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(3)) / (dSumWLinearTwo1n1n*dSumWLinearThree6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,71)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(15)) / (dSumWLinearTwo1n1n*dSumWLinearFive6n1n3n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(9,71)) - f3pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(15)) / (dSumWLinearThree6n3n3n*dSumWLinearFive6n1n3n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(15,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(16,f5pCorrelations->GetBinContent(16)-f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n2n3n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n2n3n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n2n3n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n3n3n = f3pCorrelations->GetBinError(3); dSumWLinearFive6n2n3n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n2n3n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n2n3n3n2n = f5pCorrelations->GetBinError(16); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree6n3n3n,2.)>dSumWQuadraticThree6n3n3n && pow(dSumWLinearFive6n2n3n3n2n,2.)>dSumWQuadraticFive6n2n3n3n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree6n3n3n,0.5)/dSumWLinearThree6n3n3n) * dSpreadThree6n3n3n*pow(pow(dSumWLinearThree6n3n3n,2.)/(pow(dSumWLinearThree6n3n3n,2.)-dSumWQuadraticThree6n3n3n),0.5),2.) + pow((pow(dSumWQuadraticFive6n2n3n3n2n,0.5)/dSumWLinearFive6n2n3n3n2n) * dSpreadFive6n2n3n3n2n*pow(pow(dSumWLinearFive6n2n3n3n2n,2.)/(pow(dSumWLinearFive6n2n3n3n2n,2.)-dSumWQuadraticFive6n2n3n3n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,9)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(3)) / (dSumWLinearTwo2n2n*dSumWLinearThree6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,72)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(16)) / (dSumWLinearTwo2n2n*dSumWLinearFive6n2n3n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(9,72)) - f3pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(16)) / (dSumWLinearThree6n3n3n*dSumWLinearFive6n2n3n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(16,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(17,f5pCorrelations->GetBinContent(17)-f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n4n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n4n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n4n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n1n4n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n1n4n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n1n4n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n4n2n = f3pCorrelations->GetBinError(9); dSumWLinearFive6n1n4n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n1n4n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n1n4n2n1n = f5pCorrelations->GetBinError(17); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree6n4n2n,2.)>dSumWQuadraticThree6n4n2n && pow(dSumWLinearFive6n1n4n2n1n,2.)>dSumWQuadraticFive6n1n4n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(9),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree6n4n2n,0.5)/dSumWLinearThree6n4n2n) * dSpreadThree6n4n2n*pow(pow(dSumWLinearThree6n4n2n,2.)/(pow(dSumWLinearThree6n4n2n,2.)-dSumWQuadraticThree6n4n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n1n4n2n1n,0.5)/dSumWLinearFive6n1n4n2n1n) * dSpreadFive6n1n4n2n1n*pow(pow(dSumWLinearFive6n1n4n2n1n,2.)/(pow(dSumWLinearFive6n1n4n2n1n,2.)-dSumWQuadraticFive6n1n4n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,14)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(9)) / (dSumWLinearTwo1n1n*dSumWLinearThree6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(9) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,73)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(17)) / (dSumWLinearTwo1n1n*dSumWLinearFive6n1n4n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(14,73)) - f3pCorrelations->GetBinContent(9)*f5pCorrelations->GetBinContent(17)) / (dSumWLinearThree6n4n2n*dSumWLinearFive6n1n4n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(17,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(18,f5pCorrelations->GetBinContent(18)-f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n4n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n4n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n4n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n3n4n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n3n4n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n3n4n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n4n2n = f3pCorrelations->GetBinError(9); dSumWLinearFive6n3n4n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n3n4n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n3n4n3n2n = f5pCorrelations->GetBinError(18); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree6n4n2n,2.)>dSumWQuadraticThree6n4n2n && pow(dSumWLinearFive6n3n4n3n2n,2.)>dSumWQuadraticFive6n3n4n3n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(9),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree6n4n2n,0.5)/dSumWLinearThree6n4n2n) * dSpreadThree6n4n2n*pow(pow(dSumWLinearThree6n4n2n,2.)/(pow(dSumWLinearThree6n4n2n,2.)-dSumWQuadraticThree6n4n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n3n4n3n2n,0.5)/dSumWLinearFive6n3n4n3n2n) * dSpreadFive6n3n4n3n2n*pow(pow(dSumWLinearFive6n3n4n3n2n,2.)/(pow(dSumWLinearFive6n3n4n3n2n,2.)-dSumWQuadraticFive6n3n4n3n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,14)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(9)) / (dSumWLinearTwo3n3n*dSumWLinearThree6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(9) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,74)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(18)) / (dSumWLinearTwo3n3n*dSumWLinearFive6n3n4n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(14,74)) - f3pCorrelations->GetBinContent(9)*f5pCorrelations->GetBinContent(18)) / (dSumWLinearThree6n4n2n*dSumWLinearFive6n3n4n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(18,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(19,f5pCorrelations->GetBinContent(19)-f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n4n4n3n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n4n4n3n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n4n4n3n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n3n3n = f3pCorrelations->GetBinError(3); dSumWLinearFive6n4n4n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n4n4n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n4n4n3n3n = f5pCorrelations->GetBinError(19); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree6n3n3n,2.)>dSumWQuadraticThree6n3n3n && pow(dSumWLinearFive6n4n4n3n3n,2.)>dSumWQuadraticFive6n4n4n3n3n) { Double_t dError = pow(f3pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree6n3n3n,0.5)/dSumWLinearThree6n3n3n) * dSpreadThree6n3n3n*pow(pow(dSumWLinearThree6n3n3n,2.)/(pow(dSumWLinearThree6n3n3n,2.)-dSumWQuadraticThree6n3n3n),0.5),2.) + pow((pow(dSumWQuadraticFive6n4n4n3n3n,0.5)/dSumWLinearFive6n4n4n3n3n) * dSpreadFive6n4n4n3n3n*pow(pow(dSumWLinearFive6n4n4n3n3n,2.)/(pow(dSumWLinearFive6n4n4n3n3n,2.)-dSumWQuadraticFive6n4n4n3n3n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,9)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(3)) / (dSumWLinearTwo4n4n*dSumWLinearThree6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,75)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(19)) / (dSumWLinearTwo4n4n*dSumWLinearFive6n4n4n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(9,75)) - f3pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(19)) / (dSumWLinearThree6n3n3n*dSumWLinearFive6n4n4n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(19,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(20,f5pCorrelations->GetBinContent(20)-f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n5n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n5n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n5n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n2n5n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n2n5n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n2n5n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n5n1n = f3pCorrelations->GetBinError(10); dSumWLinearFive6n2n5n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n2n5n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n2n5n2n1n = f5pCorrelations->GetBinError(20); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree6n5n1n,2.)>dSumWQuadraticThree6n5n1n && pow(dSumWLinearFive6n2n5n2n1n,2.)>dSumWQuadraticFive6n2n5n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(10),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree6n5n1n,0.5)/dSumWLinearThree6n5n1n) * dSpreadThree6n5n1n*pow(pow(dSumWLinearThree6n5n1n,2.)/(pow(dSumWLinearThree6n5n1n,2.)-dSumWQuadraticThree6n5n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n2n5n2n1n,0.5)/dSumWLinearFive6n2n5n2n1n) * dSpreadFive6n2n5n2n1n*pow(pow(dSumWLinearFive6n2n5n2n1n,2.)/(pow(dSumWLinearFive6n2n5n2n1n,2.)-dSumWQuadraticFive6n2n5n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,15)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(10)) / (dSumWLinearTwo2n2n*dSumWLinearThree6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(10) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,76)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(20)) / (dSumWLinearTwo2n2n*dSumWLinearFive6n2n5n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(15,76)) - f3pCorrelations->GetBinContent(10)*f5pCorrelations->GetBinContent(20)) / (dSumWLinearThree6n5n1n*dSumWLinearFive6n2n5n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(20,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(21,f5pCorrelations->GetBinContent(21)-f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n5n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n5n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n5n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n3n5n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n3n5n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n3n5n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n5n1n = f3pCorrelations->GetBinError(10); dSumWLinearFive6n3n5n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n3n5n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n3n5n3n1n = f5pCorrelations->GetBinError(21); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree6n5n1n,2.)>dSumWQuadraticThree6n5n1n && pow(dSumWLinearFive6n3n5n3n1n,2.)>dSumWQuadraticFive6n3n5n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(10),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree6n5n1n,0.5)/dSumWLinearThree6n5n1n) * dSpreadThree6n5n1n*pow(pow(dSumWLinearThree6n5n1n,2.)/(pow(dSumWLinearThree6n5n1n,2.)-dSumWQuadraticThree6n5n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n3n5n3n1n,0.5)/dSumWLinearFive6n3n5n3n1n) * dSpreadFive6n3n5n3n1n*pow(pow(dSumWLinearFive6n3n5n3n1n,2.)/(pow(dSumWLinearFive6n3n5n3n1n,2.)-dSumWQuadraticFive6n3n5n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,15)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(10)) / (dSumWLinearTwo3n3n*dSumWLinearThree6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(10) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,77)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(21)) / (dSumWLinearTwo3n3n*dSumWLinearFive6n3n5n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(15,77)) - f3pCorrelations->GetBinContent(10)*f5pCorrelations->GetBinContent(21)) / (dSumWLinearThree6n5n1n*dSumWLinearFive6n3n5n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(21,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(22,f5pCorrelations->GetBinContent(22)-f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n5n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n5n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n5n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n3n5n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n3n5n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n3n5n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n5n1n = f3pCorrelations->GetBinError(10); dSumWLinearFive6n3n5n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n3n5n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n3n5n3n1n = f5pCorrelations->GetBinError(22); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree6n5n1n,2.)>dSumWQuadraticThree6n5n1n && pow(dSumWLinearFive6n3n5n3n1n,2.)>dSumWQuadraticFive6n3n5n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(10),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree6n5n1n,0.5)/dSumWLinearThree6n5n1n) * dSpreadThree6n5n1n*pow(pow(dSumWLinearThree6n5n1n,2.)/(pow(dSumWLinearThree6n5n1n,2.)-dSumWQuadraticThree6n5n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n3n5n3n1n,0.5)/dSumWLinearFive6n3n5n3n1n) * dSpreadFive6n3n5n3n1n*pow(pow(dSumWLinearFive6n3n5n3n1n,2.)/(pow(dSumWLinearFive6n3n5n3n1n,2.)-dSumWQuadraticFive6n3n5n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,15)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(10)) / (dSumWLinearTwo4n4n*dSumWLinearThree6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(10) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,78)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(22)) / (dSumWLinearTwo4n4n*dSumWLinearFive6n3n5n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(15,78)) - f3pCorrelations->GetBinContent(10)*f5pCorrelations->GetBinContent(22)) / (dSumWLinearThree6n5n1n*dSumWLinearFive6n3n5n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(22,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(23,f5pCorrelations->GetBinContent(23)-f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n5n5n3n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n5n5n3n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n5n5n3n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n3n3n = f3pCorrelations->GetBinError(3); dSumWLinearFive6n5n5n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n5n5n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n5n5n3n3n = f5pCorrelations->GetBinError(23); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree6n3n3n,2.)>dSumWQuadraticThree6n3n3n && pow(dSumWLinearFive6n5n5n3n3n,2.)>dSumWQuadraticFive6n5n5n3n3n) { Double_t dError = pow(f3pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree6n3n3n,0.5)/dSumWLinearThree6n3n3n) * dSpreadThree6n3n3n*pow(pow(dSumWLinearThree6n3n3n,2.)/(pow(dSumWLinearThree6n3n3n,2.)-dSumWQuadraticThree6n3n3n),0.5),2.) + pow((pow(dSumWQuadraticFive6n5n5n3n3n,0.5)/dSumWLinearFive6n5n5n3n3n) * dSpreadFive6n5n5n3n3n*pow(pow(dSumWLinearFive6n5n5n3n3n,2.)/(pow(dSumWLinearFive6n5n5n3n3n,2.)-dSumWQuadraticFive6n5n5n3n3n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,9)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(3)) / (dSumWLinearTwo5n5n*dSumWLinearThree6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,79)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(23)) / (dSumWLinearTwo5n5n*dSumWLinearFive6n5n5n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(9,79)) - f3pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(23)) / (dSumWLinearThree6n3n3n*dSumWLinearFive6n5n5n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(23,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(24,f5pCorrelations->GetBinContent(24)-f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree2n1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree2n1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree2n1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n2n6n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n2n6n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n2n6n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree2n1n1n = f3pCorrelations->GetBinError(1); dSumWLinearFive6n2n6n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n2n6n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n2n6n1n1n = f5pCorrelations->GetBinError(24); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree2n1n1n,2.)>dSumWQuadraticThree2n1n1n && pow(dSumWLinearFive6n2n6n1n1n,2.)>dSumWQuadraticFive6n2n6n1n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree2n1n1n,0.5)/dSumWLinearThree2n1n1n) * dSpreadThree2n1n1n*pow(pow(dSumWLinearThree2n1n1n,2.)/(pow(dSumWLinearThree2n1n1n,2.)-dSumWQuadraticThree2n1n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n2n6n1n1n,0.5)/dSumWLinearFive6n2n6n1n1n) * dSpreadFive6n2n6n1n1n*pow(pow(dSumWLinearFive6n2n6n1n1n,2.)/(pow(dSumWLinearFive6n2n6n1n1n,2.)-dSumWQuadraticFive6n2n6n1n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,7)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(1)) / (dSumWLinearTwo6n6n*dSumWLinearThree2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,80)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(24)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n2n6n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(7,80)) - f3pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(24)) / (dSumWLinearThree2n1n1n*dSumWLinearFive6n2n6n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(24,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(25,f5pCorrelations->GetBinContent(25)-f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree3n2n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree3n2n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree3n2n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n3n6n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n3n6n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n3n6n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree3n2n1n = f3pCorrelations->GetBinError(5); dSumWLinearFive6n3n6n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n3n6n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n3n6n2n1n = f5pCorrelations->GetBinError(25); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree3n2n1n,2.)>dSumWQuadraticThree3n2n1n && pow(dSumWLinearFive6n3n6n2n1n,2.)>dSumWQuadraticFive6n3n6n2n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree3n2n1n,0.5)/dSumWLinearThree3n2n1n) * dSpreadThree3n2n1n*pow(pow(dSumWLinearThree3n2n1n,2.)/(pow(dSumWLinearThree3n2n1n,2.)-dSumWQuadraticThree3n2n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n3n6n2n1n,0.5)/dSumWLinearFive6n3n6n2n1n) * dSpreadFive6n3n6n2n1n*pow(pow(dSumWLinearFive6n3n6n2n1n,2.)/(pow(dSumWLinearFive6n3n6n2n1n,2.)-dSumWQuadraticFive6n3n6n2n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,10)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(5)) / (dSumWLinearTwo6n6n*dSumWLinearThree3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,81)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(25)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n3n6n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(10,81)) - f3pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(25)) / (dSumWLinearThree3n2n1n*dSumWLinearFive6n3n6n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(25,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(26,f5pCorrelations->GetBinContent(26)-f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n4n6n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n4n6n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n4n6n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n2n2n = f3pCorrelations->GetBinError(2); dSumWLinearFive6n4n6n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n4n6n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n4n6n2n2n = f5pCorrelations->GetBinError(26); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree4n2n2n,2.)>dSumWQuadraticThree4n2n2n && pow(dSumWLinearFive6n4n6n2n2n,2.)>dSumWQuadraticFive6n4n6n2n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree4n2n2n,0.5)/dSumWLinearThree4n2n2n) * dSpreadThree4n2n2n*pow(pow(dSumWLinearThree4n2n2n,2.)/(pow(dSumWLinearThree4n2n2n,2.)-dSumWQuadraticThree4n2n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n4n6n2n2n,0.5)/dSumWLinearFive6n4n6n2n2n) * dSpreadFive6n4n6n2n2n*pow(pow(dSumWLinearFive6n4n6n2n2n,2.)/(pow(dSumWLinearFive6n4n6n2n2n,2.)-dSumWQuadraticFive6n4n6n2n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,8)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(2)) / (dSumWLinearTwo6n6n*dSumWLinearThree4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,82)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(26)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n4n6n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(8,82)) - f3pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(26)) / (dSumWLinearThree4n2n2n*dSumWLinearFive6n4n6n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(26,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(27,f5pCorrelations->GetBinContent(27)-f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n3n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n3n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n3n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n4n6n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n4n6n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n4n6n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n3n1n = f3pCorrelations->GetBinError(6); dSumWLinearFive6n4n6n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n4n6n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n4n6n3n1n = f5pCorrelations->GetBinError(27); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree4n3n1n,2.)>dSumWQuadraticThree4n3n1n && pow(dSumWLinearFive6n4n6n3n1n,2.)>dSumWQuadraticFive6n4n6n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree4n3n1n,0.5)/dSumWLinearThree4n3n1n) * dSpreadThree4n3n1n*pow(pow(dSumWLinearThree4n3n1n,2.)/(pow(dSumWLinearThree4n3n1n,2.)-dSumWQuadraticThree4n3n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n4n6n3n1n,0.5)/dSumWLinearFive6n4n6n3n1n) * dSpreadFive6n4n6n3n1n*pow(pow(dSumWLinearFive6n4n6n3n1n,2.)/(pow(dSumWLinearFive6n4n6n3n1n,2.)-dSumWQuadraticFive6n4n6n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,11)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(6)) / (dSumWLinearTwo6n6n*dSumWLinearThree4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,83)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(27)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n4n6n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(11,83)) - f3pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(27)) / (dSumWLinearThree4n3n1n*dSumWLinearFive6n4n6n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(27,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(28,f5pCorrelations->GetBinContent(28)-f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n4n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n4n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n4n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n4n6n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n4n6n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n4n6n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n4n2n = f3pCorrelations->GetBinError(9); dSumWLinearFive6n4n6n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n4n6n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n4n6n3n1n = f5pCorrelations->GetBinError(28); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree6n4n2n,2.)>dSumWQuadraticThree6n4n2n && pow(dSumWLinearFive6n4n6n3n1n,2.)>dSumWQuadraticFive6n4n6n3n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(9),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree6n4n2n,0.5)/dSumWLinearThree6n4n2n) * dSpreadThree6n4n2n*pow(pow(dSumWLinearThree6n4n2n,2.)/(pow(dSumWLinearThree6n4n2n,2.)-dSumWQuadraticThree6n4n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n4n6n3n1n,0.5)/dSumWLinearFive6n4n6n3n1n) * dSpreadFive6n4n6n3n1n*pow(pow(dSumWLinearFive6n4n6n3n1n,2.)/(pow(dSumWLinearFive6n4n6n3n1n,2.)-dSumWQuadraticFive6n4n6n3n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,14)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(9)) / (dSumWLinearTwo5n5n*dSumWLinearThree6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(9) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,84)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(28)) / (dSumWLinearTwo5n5n*dSumWLinearFive6n4n6n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(14,84)) - f3pCorrelations->GetBinContent(9)*f5pCorrelations->GetBinContent(28)) / (dSumWLinearThree6n4n2n*dSumWLinearFive6n4n6n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(28,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(29,f5pCorrelations->GetBinContent(29)-f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n3n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n3n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n3n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n5n6n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n5n6n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n5n6n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n3n2n = f3pCorrelations->GetBinError(7); dSumWLinearFive6n5n6n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n5n6n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n5n6n3n2n = f5pCorrelations->GetBinError(29); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree5n3n2n,2.)>dSumWQuadraticThree5n3n2n && pow(dSumWLinearFive6n5n6n3n2n,2.)>dSumWQuadraticFive6n5n6n3n2n) { Double_t dError = pow(f3pCorrelations->GetBinContent(7),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree5n3n2n,0.5)/dSumWLinearThree5n3n2n) * dSpreadThree5n3n2n*pow(pow(dSumWLinearThree5n3n2n,2.)/(pow(dSumWLinearThree5n3n2n,2.)-dSumWQuadraticThree5n3n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n5n6n3n2n,0.5)/dSumWLinearFive6n5n6n3n2n) * dSpreadFive6n5n6n3n2n*pow(pow(dSumWLinearFive6n5n6n3n2n,2.)/(pow(dSumWLinearFive6n5n6n3n2n,2.)-dSumWQuadraticFive6n5n6n3n2n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,12)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(7)) / (dSumWLinearTwo6n6n*dSumWLinearThree5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(7) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,85)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(29)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n5n6n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(12,85)) - f3pCorrelations->GetBinContent(7)*f5pCorrelations->GetBinContent(29)) / (dSumWLinearThree5n3n2n*dSumWLinearFive6n5n6n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(29,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(30,f5pCorrelations->GetBinContent(30)-f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n4n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n4n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n4n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n5n6n4n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n5n6n4n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n5n6n4n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n4n1n = f3pCorrelations->GetBinError(8); dSumWLinearFive6n5n6n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n5n6n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n5n6n4n1n = f5pCorrelations->GetBinError(30); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree5n4n1n,2.)>dSumWQuadraticThree5n4n1n && pow(dSumWLinearFive6n5n6n4n1n,2.)>dSumWQuadraticFive6n5n6n4n1n) { Double_t dError = pow(f3pCorrelations->GetBinContent(8),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree5n4n1n,0.5)/dSumWLinearThree5n4n1n) * dSpreadThree5n4n1n*pow(pow(dSumWLinearThree5n4n1n,2.)/(pow(dSumWLinearThree5n4n1n,2.)-dSumWQuadraticThree5n4n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n5n6n4n1n,0.5)/dSumWLinearFive6n5n6n4n1n) * dSpreadFive6n5n6n4n1n*pow(pow(dSumWLinearFive6n5n6n4n1n,2.)/(pow(dSumWLinearFive6n5n6n4n1n,2.)-dSumWQuadraticFive6n5n6n4n1n),0.5),2.) + 2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,13)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(8)) / (dSumWLinearTwo6n6n*dSumWLinearThree5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*f3pCorrelations->GetBinContent(8) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,86)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(30)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n5n6n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(13,86)) - f3pCorrelations->GetBinContent(8)*f5pCorrelations->GetBinContent(30)) / (dSumWLinearThree5n4n1n*dSumWLinearFive6n5n6n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(30,pow(dError,0.5)); } } // end of if(...) } // end of { // d2) "Two distinct harmonics": f5pCumulants->SetBinContent(32,f5pCorrelations->GetBinContent(32)-3.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree2n1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree2n1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree2n1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive2n1n1n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive2n1n1n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive2n1n1n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree2n1n1n = f3pCorrelations->GetBinError(1); dSumWLinearFive2n1n1n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive2n1n1n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive2n1n1n1n1n = f5pCorrelations->GetBinError(32); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree2n1n1n,2.)>dSumWQuadraticThree2n1n1n && pow(dSumWLinearFive2n1n1n1n1n,2.)>dSumWQuadraticFive2n1n1n1n1n) { Double_t dError = 9.*pow(f3pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + 9.*pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree2n1n1n,0.5)/dSumWLinearThree2n1n1n) * dSpreadThree2n1n1n*pow(pow(dSumWLinearThree2n1n1n,2.)/(pow(dSumWLinearThree2n1n1n,2.)-dSumWQuadraticThree2n1n1n),0.5),2.) + pow((pow(dSumWQuadraticFive2n1n1n1n1n,0.5)/dSumWLinearFive2n1n1n1n1n) * dSpreadFive2n1n1n1n1n*pow(pow(dSumWLinearFive2n1n1n1n1n,2.)/(pow(dSumWLinearFive2n1n1n1n1n,2.)-dSumWQuadraticFive2n1n1n1n1n),0.5),2.) + 9.*2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,7)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(1)) / (dSumWLinearTwo1n1n*dSumWLinearThree2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 3.*2.*f3pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,87)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(32)) / (dSumWLinearTwo1n1n*dSumWLinearFive2n1n1n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 3.*2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(7,87)) - f3pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(32)) / (dSumWLinearThree2n1n1n*dSumWLinearFive2n1n1n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(32,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(33,f5pCorrelations->GetBinContent(33)-2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree2n1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree2n1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree2n1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive2n2n2n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive2n2n2n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive2n2n2n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree2n1n1n = f3pCorrelations->GetBinError(1); dSumWLinearFive2n2n2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive2n2n2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive2n2n2n1n1n = f5pCorrelations->GetBinError(33); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree2n1n1n,2.)>dSumWQuadraticThree2n1n1n && pow(dSumWLinearFive2n2n2n1n1n,2.)>dSumWQuadraticFive2n2n2n1n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree2n1n1n,0.5)/dSumWLinearThree2n1n1n) * dSpreadThree2n1n1n*pow(pow(dSumWLinearThree2n1n1n,2.)/(pow(dSumWLinearThree2n1n1n,2.)-dSumWQuadraticThree2n1n1n),0.5),2.) + pow((pow(dSumWQuadraticFive2n2n2n1n1n,0.5)/dSumWLinearFive2n2n2n1n1n) * dSpreadFive2n2n2n1n1n*pow(pow(dSumWLinearFive2n2n2n1n1n,2.)/(pow(dSumWLinearFive2n2n2n1n1n,2.)-dSumWQuadraticFive2n2n2n1n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(1)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,7)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(1)) / (dSumWLinearTwo2n2n*dSumWLinearThree2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,88)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(33)) / (dSumWLinearTwo2n2n*dSumWLinearFive2n2n2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(7,88)) - f3pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(33)) / (dSumWLinearThree2n1n1n*dSumWLinearFive2n2n2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(33,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(34,f5pCorrelations->GetBinContent(34)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(34); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(34,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(35,f5pCorrelations->GetBinContent(35)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(35); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(35,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(36,f5pCorrelations->GetBinContent(36)-3.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n2n2n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n2n2n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n2n2n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n2n2n = f3pCorrelations->GetBinError(2); dSumWLinearFive4n2n2n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n2n2n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n2n2n2n2n = f5pCorrelations->GetBinError(36); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree4n2n2n,2.)>dSumWQuadraticThree4n2n2n && pow(dSumWLinearFive4n2n2n2n2n,2.)>dSumWQuadraticFive4n2n2n2n2n) { Double_t dError = 9.*pow(f3pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + 9.*pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree4n2n2n,0.5)/dSumWLinearThree4n2n2n) * dSpreadThree4n2n2n*pow(pow(dSumWLinearThree4n2n2n,2.)/(pow(dSumWLinearThree4n2n2n,2.)-dSumWQuadraticThree4n2n2n),0.5),2.) + pow((pow(dSumWQuadraticFive4n2n2n2n2n,0.5)/dSumWLinearFive4n2n2n2n2n) * dSpreadFive4n2n2n2n2n*pow(pow(dSumWLinearFive4n2n2n2n2n,2.)/(pow(dSumWLinearFive4n2n2n2n2n,2.)-dSumWQuadraticFive4n2n2n2n2n),0.5),2.) + 9.*2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,8)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(2)) / (dSumWLinearTwo2n2n*dSumWLinearThree4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 3.*2.*f3pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,91)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(36)) / (dSumWLinearTwo2n2n*dSumWLinearFive4n2n2n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 3.*2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(8,91)) - f3pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(36)) / (dSumWLinearThree4n2n2n*dSumWLinearFive4n2n2n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(36,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(37,f5pCorrelations->GetBinContent(37)-2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n4n4n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n4n4n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n4n4n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n2n2n = f3pCorrelations->GetBinError(2); dSumWLinearFive4n4n4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n4n4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n4n4n2n2n = f5pCorrelations->GetBinError(37); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree4n2n2n,2.)>dSumWQuadraticThree4n2n2n && pow(dSumWLinearFive4n4n4n2n2n,2.)>dSumWQuadraticFive4n4n4n2n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree4n2n2n,0.5)/dSumWLinearThree4n2n2n) * dSpreadThree4n2n2n*pow(pow(dSumWLinearThree4n2n2n,2.)/(pow(dSumWLinearThree4n2n2n,2.)-dSumWQuadraticThree4n2n2n),0.5),2.) + pow((pow(dSumWQuadraticFive4n4n4n2n2n,0.5)/dSumWLinearFive4n4n4n2n2n) * dSpreadFive4n4n4n2n2n*pow(pow(dSumWLinearFive4n4n4n2n2n,2.)/(pow(dSumWLinearFive4n4n4n2n2n,2.)-dSumWQuadraticFive4n4n4n2n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(2)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,8)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(2)) / (dSumWLinearTwo4n4n*dSumWLinearThree4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,92)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(37)) / (dSumWLinearTwo4n4n*dSumWLinearFive4n4n4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(8,92)) - f3pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(37)) / (dSumWLinearThree4n2n2n*dSumWLinearFive4n4n4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(37,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(38,f5pCorrelations->GetBinContent(38)-3.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n3n3n3n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n3n3n3n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n3n3n3n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n3n3n = f3pCorrelations->GetBinError(3); dSumWLinearFive6n3n3n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n3n3n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n3n3n3n3n = f5pCorrelations->GetBinError(38); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree6n3n3n,2.)>dSumWQuadraticThree6n3n3n && pow(dSumWLinearFive6n3n3n3n3n,2.)>dSumWQuadraticFive6n3n3n3n3n) { Double_t dError = 9.*pow(f3pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + 9.*pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree6n3n3n,0.5)/dSumWLinearThree6n3n3n) * dSpreadThree6n3n3n*pow(pow(dSumWLinearThree6n3n3n,2.)/(pow(dSumWLinearThree6n3n3n,2.)-dSumWQuadraticThree6n3n3n),0.5),2.) + pow((pow(dSumWQuadraticFive6n3n3n3n3n,0.5)/dSumWLinearFive6n3n3n3n3n) * dSpreadFive6n3n3n3n3n*pow(pow(dSumWLinearFive6n3n3n3n3n,2.)/(pow(dSumWLinearFive6n3n3n3n3n,2.)-dSumWQuadraticFive6n3n3n3n3n),0.5),2.) + 9.*2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,9)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(3)) / (dSumWLinearTwo3n3n*dSumWLinearThree6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 3.*2.*f3pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,93)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(38)) / (dSumWLinearTwo3n3n*dSumWLinearFive6n3n3n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 3.*2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(9,93)) - f3pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(38)) / (dSumWLinearThree6n3n3n*dSumWLinearFive6n3n3n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(38,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(39,f5pCorrelations->GetBinContent(39)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(39); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(39,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(40,f5pCorrelations->GetBinContent(40)-2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n6n6n3n3n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n6n6n3n3n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n6n6n3n3n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n3n3n = f3pCorrelations->GetBinError(3); dSumWLinearFive6n6n6n3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n6n6n3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n6n6n3n3n = f5pCorrelations->GetBinError(40); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree6n3n3n,2.)>dSumWQuadraticThree6n3n3n && pow(dSumWLinearFive6n6n6n3n3n,2.)>dSumWQuadraticFive6n6n6n3n3n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree6n3n3n,0.5)/dSumWLinearThree6n3n3n) * dSpreadThree6n3n3n*pow(pow(dSumWLinearThree6n3n3n,2.)/(pow(dSumWLinearThree6n3n3n,2.)-dSumWQuadraticThree6n3n3n),0.5),2.) + pow((pow(dSumWQuadraticFive6n6n6n3n3n,0.5)/dSumWLinearFive6n6n6n3n3n) * dSpreadFive6n6n6n3n3n*pow(pow(dSumWLinearFive6n6n6n3n3n,2.)/(pow(dSumWLinearFive6n6n6n3n3n,2.)-dSumWQuadraticFive6n6n6n3n3n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(3)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,9)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(3)) / (dSumWLinearTwo6n6n*dSumWLinearThree6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,95)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(40)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n6n6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(9,95)) - f3pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(40)) / (dSumWLinearThree6n3n3n*dSumWLinearFive6n6n6n3n3n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(40,pow(dError,0.5)); } } // end of if(...) } // end of { // d2) "Three distinct harmonics": f5pCumulants->SetBinContent(42,f5pCorrelations->GetBinContent(42)-2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree3n2n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree3n2n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree3n2n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive3n1n2n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive3n1n2n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive3n1n2n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree3n2n1n = f3pCorrelations->GetBinError(5); dSumWLinearFive3n1n2n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive3n1n2n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive3n1n2n1n1n = f5pCorrelations->GetBinError(42); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree3n2n1n,2.)>dSumWQuadraticThree3n2n1n && pow(dSumWLinearFive3n1n2n1n1n,2.)>dSumWQuadraticFive3n1n2n1n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree3n2n1n,0.5)/dSumWLinearThree3n2n1n) * dSpreadThree3n2n1n*pow(pow(dSumWLinearThree3n2n1n,2.)/(pow(dSumWLinearThree3n2n1n,2.)-dSumWQuadraticThree3n2n1n),0.5),2.) + pow((pow(dSumWQuadraticFive3n1n2n1n1n,0.5)/dSumWLinearFive3n1n2n1n1n) * dSpreadFive3n1n2n1n1n*pow(pow(dSumWLinearFive3n1n2n1n1n,2.)/(pow(dSumWLinearFive3n1n2n1n1n,2.)-dSumWQuadraticFive3n1n2n1n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,10)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(5)) / (dSumWLinearTwo1n1n*dSumWLinearThree3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,96)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(42)) / (dSumWLinearTwo1n1n*dSumWLinearFive3n1n2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(10,96)) - f3pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(42)) / (dSumWLinearThree3n2n1n*dSumWLinearFive3n1n2n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(42,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(43,f5pCorrelations->GetBinContent(43)-2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree3n2n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree3n2n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree3n2n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive3n2n2n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive3n2n2n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive3n2n2n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree3n2n1n = f3pCorrelations->GetBinError(5); dSumWLinearFive3n2n2n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive3n2n2n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive3n2n2n2n1n = f5pCorrelations->GetBinError(43); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree3n2n1n,2.)>dSumWQuadraticThree3n2n1n && pow(dSumWLinearFive3n2n2n2n1n,2.)>dSumWQuadraticFive3n2n2n2n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree3n2n1n,0.5)/dSumWLinearThree3n2n1n) * dSpreadThree3n2n1n*pow(pow(dSumWLinearThree3n2n1n,2.)/(pow(dSumWLinearThree3n2n1n,2.)-dSumWQuadraticThree3n2n1n),0.5),2.) + pow((pow(dSumWQuadraticFive3n2n2n2n1n,0.5)/dSumWLinearFive3n2n2n2n1n) * dSpreadFive3n2n2n2n1n*pow(pow(dSumWLinearFive3n2n2n2n1n,2.)/(pow(dSumWLinearFive3n2n2n2n1n,2.)-dSumWQuadraticFive3n2n2n2n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,10)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(5)) / (dSumWLinearTwo2n2n*dSumWLinearThree3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,97)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(43)) / (dSumWLinearTwo2n2n*dSumWLinearFive3n2n2n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(10,97)) - f3pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(43)) / (dSumWLinearThree3n2n1n*dSumWLinearFive3n2n2n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(43,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(44,f5pCorrelations->GetBinContent(44)-2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree3n2n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree3n2n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree3n2n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive3n3n3n2n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive3n3n3n2n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive3n3n3n2n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree3n2n1n = f3pCorrelations->GetBinError(5); dSumWLinearFive3n3n3n2n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive3n3n3n2n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive3n3n3n2n1n = f5pCorrelations->GetBinError(44); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree3n2n1n,2.)>dSumWQuadraticThree3n2n1n && pow(dSumWLinearFive3n3n3n2n1n,2.)>dSumWQuadraticFive3n3n3n2n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree3n2n1n,0.5)/dSumWLinearThree3n2n1n) * dSpreadThree3n2n1n*pow(pow(dSumWLinearThree3n2n1n,2.)/(pow(dSumWLinearThree3n2n1n,2.)-dSumWQuadraticThree3n2n1n),0.5),2.) + pow((pow(dSumWQuadraticFive3n3n3n2n1n,0.5)/dSumWLinearFive3n3n3n2n1n) * dSpreadFive3n3n3n2n1n*pow(pow(dSumWLinearFive3n3n3n2n1n,2.)/(pow(dSumWLinearFive3n3n3n2n1n,2.)-dSumWQuadraticFive3n3n3n2n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(5)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,10)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(5)) / (dSumWLinearTwo3n3n*dSumWLinearThree3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,98)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(44)) / (dSumWLinearTwo3n3n*dSumWLinearFive3n3n3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(10,98)) - f3pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(44)) / (dSumWLinearThree3n2n1n*dSumWLinearFive3n3n3n2n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(44,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(45,f5pCorrelations->GetBinContent(45)-2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n3n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n3n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n3n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n1n3n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n1n3n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n1n3n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n3n1n = f3pCorrelations->GetBinError(6); dSumWLinearFive4n1n3n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n1n3n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n1n3n1n1n = f5pCorrelations->GetBinError(45); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree4n3n1n,2.)>dSumWQuadraticThree4n3n1n && pow(dSumWLinearFive4n1n3n1n1n,2.)>dSumWQuadraticFive4n1n3n1n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree4n3n1n,0.5)/dSumWLinearThree4n3n1n) * dSpreadThree4n3n1n*pow(pow(dSumWLinearThree4n3n1n,2.)/(pow(dSumWLinearThree4n3n1n,2.)-dSumWQuadraticThree4n3n1n),0.5),2.) + pow((pow(dSumWQuadraticFive4n1n3n1n1n,0.5)/dSumWLinearFive4n1n3n1n1n) * dSpreadFive4n1n3n1n1n*pow(pow(dSumWLinearFive4n1n3n1n1n,2.)/(pow(dSumWLinearFive4n1n3n1n1n,2.)-dSumWQuadraticFive4n1n3n1n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,11)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(6)) / (dSumWLinearTwo1n1n*dSumWLinearThree4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,99)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(45)) / (dSumWLinearTwo1n1n*dSumWLinearFive4n1n3n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(11,99)) - f3pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(45)) / (dSumWLinearThree4n3n1n*dSumWLinearFive4n1n3n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(45,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(46,f5pCorrelations->GetBinContent(46)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(46); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(46,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(47,f5pCorrelations->GetBinContent(47)-2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n3n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n3n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n3n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n3n3n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n3n3n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n3n3n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n3n1n = f3pCorrelations->GetBinError(6); dSumWLinearFive4n3n3n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n3n3n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n3n3n3n1n = f5pCorrelations->GetBinError(47); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree4n3n1n,2.)>dSumWQuadraticThree4n3n1n && pow(dSumWLinearFive4n3n3n3n1n,2.)>dSumWQuadraticFive4n3n3n3n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree4n3n1n,0.5)/dSumWLinearThree4n3n1n) * dSpreadThree4n3n1n*pow(pow(dSumWLinearThree4n3n1n,2.)/(pow(dSumWLinearThree4n3n1n,2.)-dSumWQuadraticThree4n3n1n),0.5),2.) + pow((pow(dSumWQuadraticFive4n3n3n3n1n,0.5)/dSumWLinearFive4n3n3n3n1n) * dSpreadFive4n3n3n3n1n*pow(pow(dSumWLinearFive4n3n3n3n1n,2.)/(pow(dSumWLinearFive4n3n3n3n1n,2.)-dSumWQuadraticFive4n3n3n3n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,11)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(6)) / (dSumWLinearTwo3n3n*dSumWLinearThree4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,101)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(47)) / (dSumWLinearTwo3n3n*dSumWLinearFive4n3n3n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(11,101)) - f3pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(47)) / (dSumWLinearThree4n3n1n*dSumWLinearFive4n3n3n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(47,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(48,f5pCorrelations->GetBinContent(48)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(48); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(48,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(49,f5pCorrelations->GetBinContent(49)-2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree4n3n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree4n3n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree4n3n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive4n3n3n3n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive4n3n3n3n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive4n3n3n3n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree4n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree4n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree4n3n1n = f3pCorrelations->GetBinError(6); dSumWLinearFive4n3n3n3n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive4n3n3n3n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive4n3n3n3n1n = f5pCorrelations->GetBinError(49); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree4n3n1n,2.)>dSumWQuadraticThree4n3n1n && pow(dSumWLinearFive4n3n3n3n1n,2.)>dSumWQuadraticFive4n3n3n3n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree4n3n1n,0.5)/dSumWLinearThree4n3n1n) * dSpreadThree4n3n1n*pow(pow(dSumWLinearThree4n3n1n,2.)/(pow(dSumWLinearThree4n3n1n,2.)-dSumWQuadraticThree4n3n1n),0.5),2.) + pow((pow(dSumWQuadraticFive4n3n3n3n1n,0.5)/dSumWLinearFive4n3n3n3n1n) * dSpreadFive4n3n3n3n1n*pow(pow(dSumWLinearFive4n3n3n3n1n,2.)/(pow(dSumWLinearFive4n3n3n3n1n,2.)-dSumWQuadraticFive4n3n3n3n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(6)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,11)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(6)) / (dSumWLinearTwo4n4n*dSumWLinearThree4n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,103)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(49)) / (dSumWLinearTwo4n4n*dSumWLinearFive4n3n3n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(11,103)) - f3pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(49)) / (dSumWLinearThree4n3n1n*dSumWLinearFive4n3n3n3n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(49,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(50,f5pCorrelations->GetBinContent(50)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(50); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(50,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(51,f5pCorrelations->GetBinContent(51)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(51); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(51,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(52,f5pCorrelations->GetBinContent(52)-2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n3n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n3n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n3n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n2n3n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n2n3n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n2n3n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n3n2n = f3pCorrelations->GetBinError(7); dSumWLinearFive5n2n3n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n2n3n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n2n3n2n2n = f5pCorrelations->GetBinError(52); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree5n3n2n,2.)>dSumWQuadraticThree5n3n2n && pow(dSumWLinearFive5n2n3n2n2n,2.)>dSumWQuadraticFive5n2n3n2n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(7),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree5n3n2n,0.5)/dSumWLinearThree5n3n2n) * dSpreadThree5n3n2n*pow(pow(dSumWLinearThree5n3n2n,2.)/(pow(dSumWLinearThree5n3n2n,2.)-dSumWQuadraticThree5n3n2n),0.5),2.) + pow((pow(dSumWQuadraticFive5n2n3n2n2n,0.5)/dSumWLinearFive5n2n3n2n2n) * dSpreadFive5n2n3n2n2n*pow(pow(dSumWLinearFive5n2n3n2n2n,2.)/(pow(dSumWLinearFive5n2n3n2n2n,2.)-dSumWQuadraticFive5n2n3n2n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,12)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(7)) / (dSumWLinearTwo2n2n*dSumWLinearThree5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(7) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,106)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(52)) / (dSumWLinearTwo2n2n*dSumWLinearFive5n2n3n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(12,106)) - f3pCorrelations->GetBinContent(7)*f5pCorrelations->GetBinContent(52)) / (dSumWLinearThree5n3n2n*dSumWLinearFive5n2n3n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(52,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(53,f5pCorrelations->GetBinContent(53)-2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(3)); { Double_t dSumWLinearTwo3n3n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo3n3n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo3n3n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n3n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n3n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n3n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n3n3n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n3n3n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n3n3n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo3n3n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo3n3n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo3n3n = f2pCorrelations->GetBinError(3); dSumWLinearThree5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n3n2n = f3pCorrelations->GetBinError(7); dSumWLinearFive5n3n3n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n3n3n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n3n3n3n2n = f5pCorrelations->GetBinError(53); if(pow(dSumWLinearTwo3n3n,2.)>dSumWQuadraticTwo3n3n && pow(dSumWLinearThree5n3n2n,2.)>dSumWQuadraticThree5n3n2n && pow(dSumWLinearFive5n3n3n3n2n,2.)>dSumWQuadraticFive5n3n3n3n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(7),2.) * pow((pow(dSumWQuadraticTwo3n3n,0.5)/dSumWLinearTwo3n3n) * dSpreadTwo3n3n*pow(pow(dSumWLinearTwo3n3n,2.)/(pow(dSumWLinearTwo3n3n,2.)-dSumWQuadraticTwo3n3n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(3),2.) * pow((pow(dSumWQuadraticThree5n3n2n,0.5)/dSumWLinearThree5n3n2n) * dSpreadThree5n3n2n*pow(pow(dSumWLinearThree5n3n2n,2.)/(pow(dSumWLinearThree5n3n2n,2.)-dSumWQuadraticThree5n3n2n),0.5),2.) + pow((pow(dSumWQuadraticFive5n3n3n3n2n,0.5)/dSumWLinearFive5n3n3n3n2n) * dSpreadFive5n3n3n3n2n*pow(pow(dSumWLinearFive5n3n3n3n2n,2.)/(pow(dSumWLinearFive5n3n3n3n2n,2.)-dSumWQuadraticFive5n3n3n3n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,12)) - f2pCorrelations->GetBinContent(3)*f3pCorrelations->GetBinContent(7)) / (dSumWLinearTwo3n3n*dSumWLinearThree5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(7) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(3,107)) - f2pCorrelations->GetBinContent(3)*f5pCorrelations->GetBinContent(53)) / (dSumWLinearTwo3n3n*dSumWLinearFive5n3n3n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(3) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(12,107)) - f3pCorrelations->GetBinContent(7)*f5pCorrelations->GetBinContent(53)) / (dSumWLinearThree5n3n2n*dSumWLinearFive5n3n3n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(53,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(54,f5pCorrelations->GetBinContent(54)-2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n4n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n4n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n4n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n1n4n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n1n4n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n1n4n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n4n1n = f3pCorrelations->GetBinError(8); dSumWLinearFive5n1n4n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n1n4n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n1n4n1n1n = f5pCorrelations->GetBinError(54); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree5n4n1n,2.)>dSumWQuadraticThree5n4n1n && pow(dSumWLinearFive5n1n4n1n1n,2.)>dSumWQuadraticFive5n1n4n1n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(8),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree5n4n1n,0.5)/dSumWLinearThree5n4n1n) * dSpreadThree5n4n1n*pow(pow(dSumWLinearThree5n4n1n,2.)/(pow(dSumWLinearThree5n4n1n,2.)-dSumWQuadraticThree5n4n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n1n4n1n1n,0.5)/dSumWLinearFive5n1n4n1n1n) * dSpreadFive5n1n4n1n1n*pow(pow(dSumWLinearFive5n1n4n1n1n,2.)/(pow(dSumWLinearFive5n1n4n1n1n,2.)-dSumWQuadraticFive5n1n4n1n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,13)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(8)) / (dSumWLinearTwo1n1n*dSumWLinearThree5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(8) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,108)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(54)) / (dSumWLinearTwo1n1n*dSumWLinearFive5n1n4n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(13,108)) - f3pCorrelations->GetBinContent(8)*f5pCorrelations->GetBinContent(54)) / (dSumWLinearThree5n4n1n*dSumWLinearFive5n1n4n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(54,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(55,f5pCorrelations->GetBinContent(55)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(55); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(55,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(56,f5pCorrelations->GetBinContent(56)-2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n4n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n4n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n4n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n4n4n4n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n4n4n4n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n4n4n4n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n4n1n = f3pCorrelations->GetBinError(8); dSumWLinearFive5n4n4n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n4n4n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n4n4n4n1n = f5pCorrelations->GetBinError(56); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree5n4n1n,2.)>dSumWQuadraticThree5n4n1n && pow(dSumWLinearFive5n4n4n4n1n,2.)>dSumWQuadraticFive5n4n4n4n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(8),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree5n4n1n,0.5)/dSumWLinearThree5n4n1n) * dSpreadThree5n4n1n*pow(pow(dSumWLinearThree5n4n1n,2.)/(pow(dSumWLinearThree5n4n1n,2.)-dSumWQuadraticThree5n4n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n4n4n4n1n,0.5)/dSumWLinearFive5n4n4n4n1n) * dSpreadFive5n4n4n4n1n*pow(pow(dSumWLinearFive5n4n4n4n1n,2.)/(pow(dSumWLinearFive5n4n4n4n1n,2.)-dSumWQuadraticFive5n4n4n4n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,13)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(8)) / (dSumWLinearTwo4n4n*dSumWLinearThree5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(8) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,110)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(56)) / (dSumWLinearTwo4n4n*dSumWLinearFive5n4n4n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(13,110)) - f3pCorrelations->GetBinContent(8)*f5pCorrelations->GetBinContent(56)) / (dSumWLinearThree5n4n1n*dSumWLinearFive5n4n4n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(56,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(57,f5pCorrelations->GetBinContent(57)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(57); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(57,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(58,f5pCorrelations->GetBinContent(58)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(58); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(58,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(59,f5pCorrelations->GetBinContent(59)-2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n3n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n3n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n3n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n5n5n3n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n5n5n3n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n5n5n3n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n3n2n = f3pCorrelations->GetBinError(7); dSumWLinearFive5n5n5n3n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n5n5n3n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n5n5n3n2n = f5pCorrelations->GetBinError(59); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree5n3n2n,2.)>dSumWQuadraticThree5n3n2n && pow(dSumWLinearFive5n5n5n3n2n,2.)>dSumWQuadraticFive5n5n5n3n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(7),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree5n3n2n,0.5)/dSumWLinearThree5n3n2n) * dSpreadThree5n3n2n*pow(pow(dSumWLinearThree5n3n2n,2.)/(pow(dSumWLinearThree5n3n2n,2.)-dSumWQuadraticThree5n3n2n),0.5),2.) + pow((pow(dSumWQuadraticFive5n5n5n3n2n,0.5)/dSumWLinearFive5n5n5n3n2n) * dSpreadFive5n5n5n3n2n*pow(pow(dSumWLinearFive5n5n5n3n2n,2.)/(pow(dSumWLinearFive5n5n5n3n2n,2.)-dSumWQuadraticFive5n5n5n3n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(7)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,12)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(7)) / (dSumWLinearTwo5n5n*dSumWLinearThree5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(7) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,113)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(59)) / (dSumWLinearTwo5n5n*dSumWLinearFive5n5n5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(12,113)) - f3pCorrelations->GetBinContent(7)*f5pCorrelations->GetBinContent(59)) / (dSumWLinearThree5n3n2n*dSumWLinearFive5n5n5n3n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(59,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(60,f5pCorrelations->GetBinContent(60)-2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree5n4n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree5n4n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree5n4n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive5n5n5n4n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive5n5n5n4n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive5n5n5n4n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree5n4n1n = f3pCorrelations->GetBinError(8); dSumWLinearFive5n5n5n4n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive5n5n5n4n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive5n5n5n4n1n = f5pCorrelations->GetBinError(60); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree5n4n1n,2.)>dSumWQuadraticThree5n4n1n && pow(dSumWLinearFive5n5n5n4n1n,2.)>dSumWQuadraticFive5n5n5n4n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(8),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree5n4n1n,0.5)/dSumWLinearThree5n4n1n) * dSpreadThree5n4n1n*pow(pow(dSumWLinearThree5n4n1n,2.)/(pow(dSumWLinearThree5n4n1n,2.)-dSumWQuadraticThree5n4n1n),0.5),2.) + pow((pow(dSumWQuadraticFive5n5n5n4n1n,0.5)/dSumWLinearFive5n5n5n4n1n) * dSpreadFive5n5n5n4n1n*pow(pow(dSumWLinearFive5n5n5n4n1n,2.)/(pow(dSumWLinearFive5n5n5n4n1n,2.)-dSumWQuadraticFive5n5n5n4n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(8)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,13)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(8)) / (dSumWLinearTwo5n5n*dSumWLinearThree5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(8) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,114)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(60)) / (dSumWLinearTwo5n5n*dSumWLinearFive5n5n5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(13,114)) - f3pCorrelations->GetBinContent(8)*f5pCorrelations->GetBinContent(60)) / (dSumWLinearThree5n4n1n*dSumWLinearFive5n5n5n4n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(60,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(61,f5pCorrelations->GetBinContent(61)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(61); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(61,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(62,f5pCorrelations->GetBinContent(62)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(62); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(62,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(63,f5pCorrelations->GetBinContent(63)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(63); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(63,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(64,f5pCorrelations->GetBinContent(64)-2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(1)); { Double_t dSumWLinearTwo1n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo1n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo1n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n5n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n5n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n5n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n1n5n1n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n1n5n1n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n1n5n1n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo1n1n = f2pCorrelations->GetBinError(1); dSumWLinearThree6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n5n1n = f3pCorrelations->GetBinError(10); dSumWLinearFive6n1n5n1n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n1n5n1n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n1n5n1n1n = f5pCorrelations->GetBinError(64); if(pow(dSumWLinearTwo1n1n,2.)>dSumWQuadraticTwo1n1n && pow(dSumWLinearThree6n5n1n,2.)>dSumWQuadraticThree6n5n1n && pow(dSumWLinearFive6n1n5n1n1n,2.)>dSumWQuadraticFive6n1n5n1n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(10),2.) * pow((pow(dSumWQuadraticTwo1n1n,0.5)/dSumWLinearTwo1n1n) * dSpreadTwo1n1n*pow(pow(dSumWLinearTwo1n1n,2.)/(pow(dSumWLinearTwo1n1n,2.)-dSumWQuadraticTwo1n1n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(1),2.) * pow((pow(dSumWQuadraticThree6n5n1n,0.5)/dSumWLinearThree6n5n1n) * dSpreadThree6n5n1n*pow(pow(dSumWLinearThree6n5n1n,2.)/(pow(dSumWLinearThree6n5n1n,2.)-dSumWQuadraticThree6n5n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n1n5n1n1n,0.5)/dSumWLinearFive6n1n5n1n1n) * dSpreadFive6n1n5n1n1n*pow(pow(dSumWLinearFive6n1n5n1n1n,2.)/(pow(dSumWLinearFive6n1n5n1n1n,2.)-dSumWQuadraticFive6n1n5n1n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,15)) - f2pCorrelations->GetBinContent(1)*f3pCorrelations->GetBinContent(10)) / (dSumWLinearTwo1n1n*dSumWLinearThree6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(10) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(1,118)) - f2pCorrelations->GetBinContent(1)*f5pCorrelations->GetBinContent(64)) / (dSumWLinearTwo1n1n*dSumWLinearFive6n1n5n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(1) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(15,118)) - f3pCorrelations->GetBinContent(10)*f5pCorrelations->GetBinContent(64)) / (dSumWLinearThree6n5n1n*dSumWLinearFive6n1n5n1n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(64,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(65,f5pCorrelations->GetBinContent(65)-2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(2)); { Double_t dSumWLinearTwo2n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo2n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo2n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n4n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n4n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n4n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n2n4n2n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n2n4n2n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n2n4n2n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo2n2n = f2pCorrelations->GetBinError(2); dSumWLinearThree6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n4n2n = f3pCorrelations->GetBinError(9); dSumWLinearFive6n2n4n2n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n2n4n2n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n2n4n2n2n = f5pCorrelations->GetBinError(65); if(pow(dSumWLinearTwo2n2n,2.)>dSumWQuadraticTwo2n2n && pow(dSumWLinearThree6n4n2n,2.)>dSumWQuadraticThree6n4n2n && pow(dSumWLinearFive6n2n4n2n2n,2.)>dSumWQuadraticFive6n2n4n2n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(9),2.) * pow((pow(dSumWQuadraticTwo2n2n,0.5)/dSumWLinearTwo2n2n) * dSpreadTwo2n2n*pow(pow(dSumWLinearTwo2n2n,2.)/(pow(dSumWLinearTwo2n2n,2.)-dSumWQuadraticTwo2n2n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(2),2.) * pow((pow(dSumWQuadraticThree6n4n2n,0.5)/dSumWLinearThree6n4n2n) * dSpreadThree6n4n2n*pow(pow(dSumWLinearThree6n4n2n,2.)/(pow(dSumWLinearThree6n4n2n,2.)-dSumWQuadraticThree6n4n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n2n4n2n2n,0.5)/dSumWLinearFive6n2n4n2n2n) * dSpreadFive6n2n4n2n2n*pow(pow(dSumWLinearFive6n2n4n2n2n,2.)/(pow(dSumWLinearFive6n2n4n2n2n,2.)-dSumWQuadraticFive6n2n4n2n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,14)) - f2pCorrelations->GetBinContent(2)*f3pCorrelations->GetBinContent(9)) / (dSumWLinearTwo2n2n*dSumWLinearThree6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(9) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(2,119)) - f2pCorrelations->GetBinContent(2)*f5pCorrelations->GetBinContent(65)) / (dSumWLinearTwo2n2n*dSumWLinearFive6n2n4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(2) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(14,119)) - f3pCorrelations->GetBinContent(9)*f5pCorrelations->GetBinContent(65)) / (dSumWLinearThree6n4n2n*dSumWLinearFive6n2n4n2n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(65,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(66,f5pCorrelations->GetBinContent(66)-2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(4)); { Double_t dSumWLinearTwo4n4n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo4n4n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo4n4n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n4n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n4n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n4n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n4n4n4n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n4n4n4n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n4n4n4n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo4n4n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo4n4n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo4n4n = f2pCorrelations->GetBinError(4); dSumWLinearThree6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n4n2n = f3pCorrelations->GetBinError(9); dSumWLinearFive6n4n4n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n4n4n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n4n4n4n2n = f5pCorrelations->GetBinError(66); if(pow(dSumWLinearTwo4n4n,2.)>dSumWQuadraticTwo4n4n && pow(dSumWLinearThree6n4n2n,2.)>dSumWQuadraticThree6n4n2n && pow(dSumWLinearFive6n4n4n4n2n,2.)>dSumWQuadraticFive6n4n4n4n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(9),2.) * pow((pow(dSumWQuadraticTwo4n4n,0.5)/dSumWLinearTwo4n4n) * dSpreadTwo4n4n*pow(pow(dSumWLinearTwo4n4n,2.)/(pow(dSumWLinearTwo4n4n,2.)-dSumWQuadraticTwo4n4n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(4),2.) * pow((pow(dSumWQuadraticThree6n4n2n,0.5)/dSumWLinearThree6n4n2n) * dSpreadThree6n4n2n*pow(pow(dSumWLinearThree6n4n2n,2.)/(pow(dSumWLinearThree6n4n2n,2.)-dSumWQuadraticThree6n4n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n4n4n4n2n,0.5)/dSumWLinearFive6n4n4n4n2n) * dSpreadFive6n4n4n4n2n*pow(pow(dSumWLinearFive6n4n4n4n2n,2.)/(pow(dSumWLinearFive6n4n4n4n2n,2.)-dSumWQuadraticFive6n4n4n4n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,14)) - f2pCorrelations->GetBinContent(4)*f3pCorrelations->GetBinContent(9)) / (dSumWLinearTwo4n4n*dSumWLinearThree6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(9) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(4,120)) - f2pCorrelations->GetBinContent(4)*f5pCorrelations->GetBinContent(66)) / (dSumWLinearTwo4n4n*dSumWLinearFive6n4n4n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(4) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(14,120)) - f3pCorrelations->GetBinContent(9)*f5pCorrelations->GetBinContent(66)) / (dSumWLinearThree6n4n2n*dSumWLinearFive6n4n4n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(66,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(67,f5pCorrelations->GetBinContent(67)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(67); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(67,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(68,f5pCorrelations->GetBinContent(68)-2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(5)); { Double_t dSumWLinearTwo5n5n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo5n5n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo5n5n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n5n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n5n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n5n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n5n5n5n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n5n5n5n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n5n5n5n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo5n5n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo5n5n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo5n5n = f2pCorrelations->GetBinError(5); dSumWLinearThree6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n5n1n = f3pCorrelations->GetBinError(10); dSumWLinearFive6n5n5n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n5n5n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n5n5n5n1n = f5pCorrelations->GetBinError(68); if(pow(dSumWLinearTwo5n5n,2.)>dSumWQuadraticTwo5n5n && pow(dSumWLinearThree6n5n1n,2.)>dSumWQuadraticThree6n5n1n && pow(dSumWLinearFive6n5n5n5n1n,2.)>dSumWQuadraticFive6n5n5n5n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(10),2.) * pow((pow(dSumWQuadraticTwo5n5n,0.5)/dSumWLinearTwo5n5n) * dSpreadTwo5n5n*pow(pow(dSumWLinearTwo5n5n,2.)/(pow(dSumWLinearTwo5n5n,2.)-dSumWQuadraticTwo5n5n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(5),2.) * pow((pow(dSumWQuadraticThree6n5n1n,0.5)/dSumWLinearThree6n5n1n) * dSpreadThree6n5n1n*pow(pow(dSumWLinearThree6n5n1n,2.)/(pow(dSumWLinearThree6n5n1n,2.)-dSumWQuadraticThree6n5n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n5n5n5n1n,0.5)/dSumWLinearFive6n5n5n5n1n) * dSpreadFive6n5n5n5n1n*pow(pow(dSumWLinearFive6n5n5n5n1n,2.)/(pow(dSumWLinearFive6n5n5n5n1n,2.)-dSumWQuadraticFive6n5n5n5n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,15)) - f2pCorrelations->GetBinContent(5)*f3pCorrelations->GetBinContent(10)) / (dSumWLinearTwo5n5n*dSumWLinearThree6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(10) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(5,122)) - f2pCorrelations->GetBinContent(5)*f5pCorrelations->GetBinContent(68)) / (dSumWLinearTwo5n5n*dSumWLinearFive6n5n5n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(5) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(15,122)) - f3pCorrelations->GetBinContent(10)*f5pCorrelations->GetBinContent(68)) / (dSumWLinearThree6n5n1n*dSumWLinearFive6n5n5n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(68,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(69,f5pCorrelations->GetBinContent(69)); { Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(69); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(69,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } f5pCumulants->SetBinContent(70,f5pCorrelations->GetBinContent(70)-2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n4n2n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n4n2n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n4n2n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n6n6n4n2n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n6n6n4n2n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n6n6n4n2n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n4n2n = f3pCorrelations->GetBinError(9); dSumWLinearFive6n6n6n4n2n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n6n6n4n2n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n6n6n4n2n = f5pCorrelations->GetBinError(70); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree6n4n2n,2.)>dSumWQuadraticThree6n4n2n && pow(dSumWLinearFive6n6n6n4n2n,2.)>dSumWQuadraticFive6n6n6n4n2n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(9),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree6n4n2n,0.5)/dSumWLinearThree6n4n2n) * dSpreadThree6n4n2n*pow(pow(dSumWLinearThree6n4n2n,2.)/(pow(dSumWLinearThree6n4n2n,2.)-dSumWQuadraticThree6n4n2n),0.5),2.) + pow((pow(dSumWQuadraticFive6n6n6n4n2n,0.5)/dSumWLinearFive6n6n6n4n2n) * dSpreadFive6n6n6n4n2n*pow(pow(dSumWLinearFive6n6n6n4n2n,2.)/(pow(dSumWLinearFive6n6n6n4n2n,2.)-dSumWQuadraticFive6n6n6n4n2n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(9)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,14)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(9)) / (dSumWLinearTwo6n6n*dSumWLinearThree6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(9) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,124)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(70)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n6n6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(14,124)) - f3pCorrelations->GetBinContent(9)*f5pCorrelations->GetBinContent(70)) / (dSumWLinearThree6n4n2n*dSumWLinearFive6n6n6n4n2n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(70,pow(dError,0.5)); } } // end of if(...) } // end of { f5pCumulants->SetBinContent(71,f5pCorrelations->GetBinContent(71)-2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(6)); { Double_t dSumWLinearTwo6n6n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticTwo6n6n = 0.; // sum of quadratic event weights <2> Double_t dSpreadTwo6n6n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearThree6n5n1n = 0.; // sum of linear event weights for <2> Double_t dSumWQuadraticThree6n5n1n = 0.; // sum of quadratic event weights <2> Double_t dSpreadThree6n5n1n = 0.; // weighted and biased estimator for sigma of <2> Double_t dSumWLinearFive6n6n6n5n1n = 0.; // sum of linear event weights for <4> Double_t dSumWQuadraticFive6n6n6n5n1n = 0.; // sum of quadratic event weights <4> Double_t dSpreadFive6n6n6n5n1n = 0.; // weighted and biased estimator for sigma of <4> dSumWLinearTwo6n6n = fMixedHarmonicEventWeights[0]->GetBinContent(2); dSumWQuadraticTwo6n6n = fMixedHarmonicEventWeights[1]->GetBinContent(2); dSpreadTwo6n6n = f2pCorrelations->GetBinError(6); dSumWLinearThree6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(3); dSumWQuadraticThree6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(3); dSpreadThree6n5n1n = f3pCorrelations->GetBinError(10); dSumWLinearFive6n6n6n5n1n = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadraticFive6n6n6n5n1n = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpreadFive6n6n6n5n1n = f5pCorrelations->GetBinError(71); if(pow(dSumWLinearTwo6n6n,2.)>dSumWQuadraticTwo6n6n && pow(dSumWLinearThree6n5n1n,2.)>dSumWQuadraticThree6n5n1n && pow(dSumWLinearFive6n6n6n5n1n,2.)>dSumWQuadraticFive6n6n6n5n1n) { Double_t dError = 4.*pow(f3pCorrelations->GetBinContent(10),2.) * pow((pow(dSumWQuadraticTwo6n6n,0.5)/dSumWLinearTwo6n6n) * dSpreadTwo6n6n*pow(pow(dSumWLinearTwo6n6n,2.)/(pow(dSumWLinearTwo6n6n,2.)-dSumWQuadraticTwo6n6n),0.5),2.) + 4.*pow(f2pCorrelations->GetBinContent(6),2.) * pow((pow(dSumWQuadraticThree6n5n1n,0.5)/dSumWLinearThree6n5n1n) * dSpreadThree6n5n1n*pow(pow(dSumWLinearThree6n5n1n,2.)/(pow(dSumWLinearThree6n5n1n,2.)-dSumWQuadraticThree6n5n1n),0.5),2.) + pow((pow(dSumWQuadraticFive6n6n6n5n1n,0.5)/dSumWLinearFive6n6n6n5n1n) * dSpreadFive6n6n6n5n1n*pow(pow(dSumWLinearFive6n6n6n5n1n,2.)/(pow(dSumWLinearFive6n6n6n5n1n,2.)-dSumWQuadraticFive6n6n6n5n1n),0.5),2.) + 4.*2.*f3pCorrelations->GetBinContent(10)*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,15)) - f2pCorrelations->GetBinContent(6)*f3pCorrelations->GetBinContent(10)) / (dSumWLinearTwo6n6n*dSumWLinearThree6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,3))) - 2.*2.*f3pCorrelations->GetBinContent(10) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(6,125)) - f2pCorrelations->GetBinContent(6)*f5pCorrelations->GetBinContent(71)) / (dSumWLinearTwo6n6n*dSumWLinearFive6n6n6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(2,5))) - 2.*2.*f2pCorrelations->GetBinContent(6) * fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5)) * (fMixedHarmonicProductOfCorrelations->GetBinContent(fMixedHarmonicProductOfCorrelations->GetBin(15,125)) - f3pCorrelations->GetBinContent(10)*f5pCorrelations->GetBinContent(71)) / (dSumWLinearThree6n5n1n*dSumWLinearFive6n6n6n5n1n-fMixedHarmonicProductOfEventWeights->GetBinContent(fMixedHarmonicProductOfEventWeights->GetBin(3,5))); if(dError>0.) { f5pCumulants->SetBinError(71,pow(dError,0.5)); } } // end of if(...) } // end of { // d3) "Four distinct harmonics": for(Int_t b=73;b<=83;b++) { f5pCumulants->SetBinContent(b,f5pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=73;b<=83;b++) // d4) "Five distinct harmonics": for(Int_t b=85;b<=87;b++) { f5pCumulants->SetBinContent(b,f5pCorrelations->GetBinContent(b)); Double_t dSumWLinear = 0.; // sum of linear event weights Double_t dSumWQuadratic = 0.; // sum of quadratic event weights Double_t dSpread = 0.; // weighted and biased estimator for sigma Double_t dError = 0.; // weighted and unbiased estimator for sigma dSumWLinear = fMixedHarmonicEventWeights[0]->GetBinContent(5); dSumWQuadratic = fMixedHarmonicEventWeights[1]->GetBinContent(5); dSpread = f5pCorrelations->GetBinError(b); if(pow(dSumWLinear,2.)>dSumWQuadratic) { dError = (pow(dSumWQuadratic,0.5)/dSumWLinear)*dSpread*pow(pow(dSumWLinear,2.)/(pow(dSumWLinear,2.)-dSumWQuadratic),0.5); f5pCumulants->SetBinError(b,dError); } // end of if(pow(dSumWLinear,2.)>dSumWQuadratic) } // end of for(Int_t b=85;b<=87;b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateCumulantsMixedHarmonics() //=================================================================================================================== void AliFlowAnalysisWithQCumulants::StorePhiDistributionForOneEvent(AliFlowEventSimple *anEvent) { // Store phi distribution for one event to illustrate flow. if(fPhiDistributionForOneEvent->GetEntries()>0){return;} // store only phi distribution for one event Double_t vMin = fPhiDistributionForOneEventSettings[0]; Double_t vMax = fPhiDistributionForOneEventSettings[1]; Double_t refMultMin = fPhiDistributionForOneEventSettings[2]; Double_t refMultMax = fPhiDistributionForOneEventSettings[3]; Double_t vEBE = 0.; Double_t cumulant4thEBE = fIntFlowCorrelationsEBE->GetBinContent(2)-2.*pow(fIntFlowCorrelationsEBE->GetBinContent(1),2.); if(cumulant4thEBE<0.) { vEBE = pow(-1.*cumulant4thEBE,0.25); if((vEBE>vMin && vEBErefMultMin && fReferenceMultiplicityEBESetTitle(Form("v_{%i} = %f",fHarmonic,vEBE)); for(Int_t p=0;pNumberOfTracks();p++) { if(anEvent->GetTrack(p)->InRPSelection()) { fPhiDistributionForOneEvent->Fill(anEvent->GetTrack(p)->Phi()); } } // end of for(Int_t p=0;pNumberOfTracks();p++) } else { fPhiDistributionForOneEvent->SetTitle(Form("v_{%i} = %f, out of specified boundaries",fHarmonic,vEBE)); } } // end of if(cumulant4thEBE<0.) } // end of void AliFlowAnalysisWithQCumulants::StorePhiDistributionForOneEvent(AliFlowEventSimple *anEvent) //=================================================================================================================== void AliFlowAnalysisWithQCumulants::CalculateIntFlowProductOfCorrelations() { // Calculate averages of products of correlations for integrated flow. // Multiplicity bin of an event (relevant for all histos vs M): Double_t dMultiplicityBin = 0.; if(fMultiplicityIs==AliFlowCommonConstants::kRP) { dMultiplicityBin = fNumberOfRPsEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { dMultiplicityBin = fReferenceMultiplicityEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { dMultiplicityBin = fNumberOfPOIsEBE+0.5; } Int_t counter = 0; for(Int_t ci1=1;ci1<4;ci1++) { for(Int_t ci2=ci1+1;ci2<=4;ci2++) { fIntFlowProductOfCorrelationsPro->Fill(0.5+counter, fIntFlowCorrelationsEBE->GetBinContent(ci1)* fIntFlowCorrelationsEBE->GetBinContent(ci2), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci1)* fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci2)); // products versus multiplicity: // [0=<<2><4>>,1=<<2><6>>,2=<<2><8>>,3=<<4><6>>,4=<<4><8>>,5=<<6><8>>] if(fCalculateCumulantsVsM) { fIntFlowProductOfCorrelationsVsMPro[counter]->Fill(dMultiplicityBin, // to be improved: dMult => sum of weights ? fIntFlowCorrelationsEBE->GetBinContent(ci1)* fIntFlowCorrelationsEBE->GetBinContent(ci2), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci1)* fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci2)); } // end of if(fCalculateCumulantsVsM) counter++; } } } // end of AliFlowAnalysisWithQCumulants::CalculateIntFlowProductOfCorrelations() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowProductOfCorrectionTermsForNUA() { // Calculate averages of products of correction terms for NUA. // a) Binning of fIntFlowProductOfCorrectionTermsForNUAPro is organized as follows: // 1st bin: <<2>> // 2nd bin: <<2>> // 3rd bin: <> // 4th bin: <<2>> // 5th bin: <<2>> // 6th bin: <<2>> // 7th bin: <<2>> // 8th bin: <<4>> // 9th bin: <<4>> // 10th bin: <<4>> // 11th bin: <<4>> // 12th bin: <<4>> // 13th bin: <<4>> // 14th bin: <> // 15th bin: <> // 16th bin: <> // 17th bin: <> // 18th bin: <> // 19th bin: <> // 20th bin: <> // 21st bin: <> // 22nd bin: <> // 23rd bin: <> // 24th bin: <> // 25th bin: <> // 26th bin: <> // 27th bin: <> // <<2>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(0.5, fIntFlowCorrelationsEBE->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)); // <<2>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(1.5, fIntFlowCorrelationsEBE->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(2.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)); // <<2>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(3.5, fIntFlowCorrelationsEBE->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // <<2>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(4.5, fIntFlowCorrelationsEBE->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // <<2>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(5.5, fIntFlowCorrelationsEBE->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // <<2>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(6.5, fIntFlowCorrelationsEBE->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // <<4>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(7.5, fIntFlowCorrelationsEBE->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)); // <<4>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(8.5, fIntFlowCorrelationsEBE->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)); // <<4>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(9.5, fIntFlowCorrelationsEBE->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // <<4>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(10.5, fIntFlowCorrelationsEBE->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // <<4>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(11.5, fIntFlowCorrelationsEBE->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // <<4>>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(12.5, fIntFlowCorrelationsEBE->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(13.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(14.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(15.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(16.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(17.5, fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2), fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(18.5, fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2), fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(19.5, fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(20.5, fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(1)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(21.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(22.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(23.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(24.5, fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(25.5, fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(2)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // <>: fIntFlowProductOfCorrectionTermsForNUAPro->Fill(26.5, fIntFlowCorrectionTermsForNUAEBE[1]->GetBinContent(3)*fIntFlowCorrectionTermsForNUAEBE[0]->GetBinContent(3), fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3) *fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); } // end of AliFlowAnalysisWithQCumulants::CalculateIntFlowProductOfCorrectionTermsForNUA() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateCovariancesIntFlow() { // a) Calculate unbiased estimators Cov(<2>,<4>), Cov(<2>,<6>), Cov(<2>,<8>), Cov(<4>,<6>), Cov(<4>,<8>) and Cov(<6>,<8>) // for covariances V_(<2>,<4>), V_(<2>,<6>), V_(<2>,<8>), V_(<4>,<6>), V_(<4>,<8>) and V_(<6>,<8>). // b) Store in histogram fIntFlowCovariances for instance the following: // // Cov(<2>,<4>) * (sum_{i=1}^{N} w_{<2>}_i w_{<4>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<4>}_j)] // // where N is the number of events, w_{<2>} is event weight for <2> and w_{<4>} is event weight for <4>. // c) Binning of fIntFlowCovariances is organized as follows: // // 1st bin: Cov(<2>,<4>) * (sum_{i=1}^{N} w_{<2>}_i w_{<4>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<4>}_j)] // 2nd bin: Cov(<2>,<6>) * (sum_{i=1}^{N} w_{<2>}_i w_{<6>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<6>}_j)] // 3rd bin: Cov(<2>,<8>) * (sum_{i=1}^{N} w_{<2>}_i w_{<8>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<8>}_j)] // 4th bin: Cov(<4>,<6>) * (sum_{i=1}^{N} w_{<4>}_i w_{<6>}_i )/[(sum_{i=1}^{N} w_{<4>}_i) * (sum_{j=1}^{N} w_{<6>}_j)] // 5th bin: Cov(<4>,<8>) * (sum_{i=1}^{N} w_{<4>}_i w_{<8>}_i )/[(sum_{i=1}^{N} w_{<4>}_i) * (sum_{j=1}^{N} w_{<8>}_j)] // 6th bin: Cov(<6>,<8>) * (sum_{i=1}^{N} w_{<6>}_i w_{<8>}_i )/[(sum_{i=1}^{N} w_{<6>}_i) * (sum_{j=1}^{N} w_{<8>}_j)] // // Average 2-, 4-, 6- and 8-particle correlations for all events: Double_t correlation[4] = {0.}; for(Int_t ci=0;ci<4;ci++) { correlation[ci] = fIntFlowCorrelationsPro->GetBinContent(ci+1); } // Average products of 2-, 4-, 6- and 8-particle correlations: Double_t productOfCorrelations[4][4] = {{0.}}; Int_t productOfCorrelationsLabel = 1; // Denominators in the expressions for the unbiased estimator for covariance: Double_t denominator[4][4] = {{0.}}; Int_t sumOfProductOfEventWeightsLabel1 = 1; // Weight dependent prefactor which multiply unbiased estimators for covariances: Double_t wPrefactor[4][4] = {{0.}}; Int_t sumOfProductOfEventWeightsLabel2 = 1; for(Int_t c1=0;c1<4;c1++) { for(Int_t c2=c1+1;c2<4;c2++) { productOfCorrelations[c1][c2] = fIntFlowProductOfCorrelationsPro->GetBinContent(productOfCorrelationsLabel); if(TMath::Abs(fIntFlowSumOfEventWeights[0]->GetBinContent(c1+1)) > 1.e-44 && TMath::Abs(fIntFlowSumOfEventWeights[0]->GetBinContent(c2+1)) > 1.e-44) { denominator[c1][c2] = 1.-(fIntFlowSumOfProductOfEventWeights->GetBinContent(sumOfProductOfEventWeightsLabel1)) / (fIntFlowSumOfEventWeights[0]->GetBinContent(c1+1) * fIntFlowSumOfEventWeights[0]->GetBinContent(c2+1)); wPrefactor[c1][c2] = fIntFlowSumOfProductOfEventWeights->GetBinContent(sumOfProductOfEventWeightsLabel2) / (fIntFlowSumOfEventWeights[0]->GetBinContent(c1+1) * fIntFlowSumOfEventWeights[0]->GetBinContent(c2+1)); } productOfCorrelationsLabel++; // to be improved - do I need here all 3 counters? sumOfProductOfEventWeightsLabel1++; sumOfProductOfEventWeightsLabel2++; } // end of for(Int_t c2=c1+1;c2<4;c2++) } // end of for(Int_t c1=0;c1<4;c1++) Int_t covarianceLabel = 1; for(Int_t c1=0;c1<4;c1++) { for(Int_t c2=c1+1;c2<4;c2++) { if(TMath::Abs(denominator[c1][c2]) > 1.e-44) { // Covariances: Double_t cov = (productOfCorrelations[c1][c2]-correlation[c1]*correlation[c2])/denominator[c1][c2]; // Covariances multiplied with weight dependent prefactor: Double_t wCov = cov * wPrefactor[c1][c2]; fIntFlowCovariances->SetBinContent(covarianceLabel,wCov); } covarianceLabel++; } // end of for(Int_t c2=c1+1;c2<4;c2++) } // end of for(Int_t c1=0;c1<4;c1++) // Versus multiplicity: if(!fCalculateCumulantsVsM){return;} Int_t nBins = fIntFlowCorrelationsVsMPro[0]->GetNbinsX(); // to be improved (hardwired 0) for(Int_t b=1;b<=nBins;b++) { // Average 2-, 4-, 6- and 8-particle correlations for all events: Double_t correlationVsM[4] = {0.}; for(Int_t ci=0;ci<4;ci++) { correlationVsM[ci] = fIntFlowCorrelationsVsMPro[ci]->GetBinContent(b); } // end of for(Int_t ci=0;ci<4;ci++) // Average products of 2-, 4-, 6- and 8-particle correlations: Double_t productOfCorrelationsVsM[4][4] = {{0.}}; Int_t productOfCorrelationsLabelVsM = 1; // Denominators in the expressions for the unbiased estimator for covariance: Double_t denominatorVsM[4][4] = {{0.}}; Int_t sumOfProductOfEventWeightsLabel1VsM = 1; // Weight dependent prefactor which multiply unbiased estimators for covariances: Double_t wPrefactorVsM[4][4] = {{0.}}; Int_t sumOfProductOfEventWeightsLabel2VsM = 1; for(Int_t c1=0;c1<4;c1++) { for(Int_t c2=c1+1;c2<4;c2++) { productOfCorrelationsVsM[c1][c2] = fIntFlowProductOfCorrelationsVsMPro[productOfCorrelationsLabelVsM-1]->GetBinContent(b); if(TMath::Abs(fIntFlowSumOfEventWeightsVsM[c1][0]->GetBinContent(b)) > 1.e-44 && TMath::Abs(fIntFlowSumOfEventWeightsVsM[c2][0]->GetBinContent(b)) > 1.e-44) { denominatorVsM[c1][c2] = 1.-(fIntFlowSumOfProductOfEventWeightsVsM[sumOfProductOfEventWeightsLabel1VsM-1]->GetBinContent(b)) / (fIntFlowSumOfEventWeightsVsM[c1][0]->GetBinContent(b) * fIntFlowSumOfEventWeightsVsM[c2][0]->GetBinContent(b)); wPrefactorVsM[c1][c2] = fIntFlowSumOfProductOfEventWeightsVsM[sumOfProductOfEventWeightsLabel2VsM-1]->GetBinContent(b) / (fIntFlowSumOfEventWeightsVsM[c1][0]->GetBinContent(b) * fIntFlowSumOfEventWeightsVsM[c2][0]->GetBinContent(b)); } productOfCorrelationsLabelVsM++; sumOfProductOfEventWeightsLabel1VsM++; sumOfProductOfEventWeightsLabel2VsM++; } // end of for(Int_t c1=0;c1<4;c1++) } // end of for(Int_t c2=c1+1;c2<4;c2++) Int_t covarianceLabelVsM = 1; for(Int_t c1=0;c1<4;c1++) { for(Int_t c2=c1+1;c2<4;c2++) { if(TMath::Abs(denominatorVsM[c1][c2]) > 1.e-44) { // Covariances: Double_t covVsM = (productOfCorrelationsVsM[c1][c2]-correlationVsM[c1]*correlationVsM[c2])/denominatorVsM[c1][c2]; // Covariances multiplied with weight dependent prefactor: Double_t wCovVsM = covVsM * wPrefactorVsM[c1][c2]; fIntFlowCovariancesVsM[covarianceLabelVsM-1]->SetBinContent(b,wCovVsM); } covarianceLabelVsM++; } // end of for(Int_t c2=c1+1;c2<4;c2++) } // end of for(Int_t c1=0;c1<4;c1++) } // end of for(Int_t b=1;b<=nBins;b++) } // end of AliFlowAnalysisWithQCumulants::CalculateCovariancesIntFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateCovariancesNUAIntFlow() { // a) Calculate unbiased estimators Cov(*,*) for true covariances V_(*,*) for NUA terms. // b) Store in histogram fIntFlowCovariancesNUA for instance the following: // // Cov(<2>,) * (sum_{i=1}^{N} w_{<2>}_i w_{}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{}_j)] // // where N is the number of events, w_{<2>} is event weight for <2> and w_{} is event weight for . // c) Binning of fIntFlowCovariancesNUA is organized as follows: // // 1st bin: Cov(<2>,) * (sum_{i=1}^{N} w_{<2>}_i w_{}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{}_j)] // 2nd bin: Cov(<2>,) * (sum_{i=1}^{N} w_{<2>}_i w_{}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{}_j)] // 3rd bin: Cov(,) * (sum_{i=1}^{N} w_{}_i w_{}_i )/[(sum_{i=1}^{N} w_{}_i) * (sum_{j=1}^{N} w_{}_j)] // ... // Cov(<2>,): Double_t product1 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(1); // <<2>> Double_t term1st1 = fIntFlowCorrelationsPro->GetBinContent(1); // <<2>> Double_t term2nd1 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t sumOfW1st1 = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // W_{<2>} Double_t sumOfW2nd1 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfWW1 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(1); // W_{<2>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator1 = product1 - term1st1*term2nd1; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator1 = 0.; if(TMath::Abs(sumOfW1st1*sumOfW2nd1)>0.) { denominator1 = 1.-sumOfWW1/(sumOfW1st1*sumOfW2nd1); if(TMath::Abs(denominator1)>0.) { // covariance: Double_t covariance1 = numerator1/denominator1; // weight dependent prefactor for covariance: Double_t wPrefactor1 = sumOfWW1/(sumOfW1st1*sumOfW2nd1); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(1,wPrefactor1*covariance1); } // end of if(TMath::Abs(denominator)>0.) } // end of if(TMath::Abs(sumOfW1st1*sumOfW2nd1)>0.) // Cov(<2>,): Double_t product2 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(2); // <<2>> Double_t term1st2 = fIntFlowCorrelationsPro->GetBinContent(1); // <<2>> Double_t term2nd2 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t sumOfW1st2 = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // W_{<2>} Double_t sumOfW2nd2 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfWW2 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(2); // W_{<2>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator2 = product2 - term1st2*term2nd2; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator2 = 0.; if(TMath::Abs(sumOfW1st2*sumOfW2nd2)>0.) { denominator2 = 1.-sumOfWW2/(sumOfW1st2*sumOfW2nd2); if(TMath::Abs(denominator2)>0.) { // covariance: Double_t covariance2 = numerator2/denominator2; // weight dependent prefactor for covariance: Double_t wPrefactor2 = sumOfWW2/(sumOfW1st2*sumOfW2nd2); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(2,wPrefactor2*covariance2); } // end of if(TMath::Abs(denominator2)>0.) } // end of if(TMath::Abs(sumOfW1st2*sumOfW2nd2)>0.) // Cov(,): Double_t product3 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(3); // <> Double_t term1st3 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t term2nd3 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t sumOfW1st3 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd3 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfWW3 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(3); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator3 = product3 - term1st3*term2nd3; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator3 = 0; if(TMath::Abs(sumOfW1st3*sumOfW2nd3)>0.) { denominator3 = 1.-sumOfWW3/(sumOfW1st3*sumOfW2nd3); if(TMath::Abs(denominator3)>0.) { // covariance: Double_t covariance3 = numerator3/denominator3; // weight dependent prefactor for covariance: Double_t wPrefactor3 = sumOfWW3/(sumOfW1st3*sumOfW2nd3); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(3,wPrefactor3*covariance3); } // end of if(TMath::Abs(denominator3)>0.) } // end of if(TMath::Abs(sumOfW1st3*sumOfW2nd3)>0.) // Cov(<2>,): Double_t product4 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(4); // <<2>> Double_t term1st4 = fIntFlowCorrelationsPro->GetBinContent(1); // <<2>> Double_t term2nd4 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t sumOfW1st4 = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // W_{<2>} Double_t sumOfW2nd4 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfWW4 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(4); // W_{<2>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator4 = product4 - term1st4*term2nd4; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator4 = 0.; if(TMath::Abs(sumOfW1st4*sumOfW2nd4)>0.) { denominator4 = 1.-sumOfWW4/(sumOfW1st4*sumOfW2nd4); if(TMath::Abs(denominator4)>0.) { // covariance: Double_t covariance4 = numerator4/denominator4; // weight dependent prefactor for covariance: Double_t wPrefactor4 = sumOfWW4/(sumOfW1st4*sumOfW2nd4); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(4,wPrefactor4*covariance4); } // end of if(TMath::Abs(denominator4)>0.) } // end of if(TMath::Abs(sumOfW1st4*sumOfW2nd4)>0.) // Cov(<2>,): Double_t product5 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(5); // <<2>> Double_t term1st5 = fIntFlowCorrelationsPro->GetBinContent(1); // <<2>> Double_t term2nd5 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t sumOfW1st5 = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // W_{<2>} Double_t sumOfW2nd5 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfWW5 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(5); // W_{<2>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator5 = product5 - term1st5*term2nd5; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator5 = 0.; if(TMath::Abs(sumOfW1st5*sumOfW2nd5)>0.) { denominator5 = 1.-sumOfWW5/(sumOfW1st5*sumOfW2nd5); if(TMath::Abs(denominator5)>0.) { // covariance: Double_t covariance5 = numerator5/denominator5; // weight dependent prefactor for covariance: Double_t wPrefactor5 = sumOfWW5/(sumOfW1st5*sumOfW2nd5); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(5,wPrefactor5*covariance5); } // end of if(TMath::Abs(denominator5)>0.) } // end of if(TMath::Abs(sumOfW1st5*sumOfW2nd5)>0.) // Cov(<2>,): Double_t product6 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(6); // <<2>> Double_t term1st6 = fIntFlowCorrelationsPro->GetBinContent(1); // <<2>> Double_t term2nd6 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t sumOfW1st6 = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // W_{<2>} Double_t sumOfW2nd6 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfWW6 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(6); // W_{<2>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator6 = product6 - term1st6*term2nd6; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator6 = 0.; if(TMath::Abs(sumOfW1st6*sumOfW2nd6)>0.) { denominator6 = 1.-sumOfWW6/(sumOfW1st6*sumOfW2nd6); if(TMath::Abs(denominator6)>0.) { // covariance: Double_t covariance6 = numerator6/denominator6; // weight dependent prefactor for covariance: Double_t wPrefactor6 = sumOfWW6/(sumOfW1st6*sumOfW2nd6); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(6,wPrefactor6*covariance6); } // end of if(TMath::Abs(denominator6)>0.) } // end of if(TMath::Abs(sumOfW1st6*sumOfW2nd6)>0.) // Cov(<2>,): Double_t product7 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(7); // <<2>> Double_t term1st7 = fIntFlowCorrelationsPro->GetBinContent(1); // <<2>> Double_t term2nd7 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st7 = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // W_{<2>} Double_t sumOfW2nd7 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW7 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(7); // W_{<2>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator7 = product7 - term1st7*term2nd7; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator7 = 0.; if(TMath::Abs(sumOfW1st7*sumOfW2nd7)>0.) { denominator7 = 1.-sumOfWW7/(sumOfW1st7*sumOfW2nd7); if(TMath::Abs(denominator7)>0.) { // covariance: Double_t covariance7 = numerator7/denominator7; // weight dependent prefactor for covariance: Double_t wPrefactor7 = sumOfWW7/(sumOfW1st7*sumOfW2nd7); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(7,wPrefactor7*covariance7); } // end of if(TMath::Abs(denominator7)>0.) } // end of if(TMath::Abs(sumOfW1st7*sumOfW2nd7)>0.) // Cov(<4>,): Double_t product8 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(8); // <<4>> Double_t term1st8 = fIntFlowCorrelationsPro->GetBinContent(2); // <<4>> Double_t term2nd8 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t sumOfW1st8 = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // W_{<4>} Double_t sumOfW2nd8 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfWW8 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(8); // W_{<4>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator8 = product8 - term1st8*term2nd8; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator8 = 0.; if(TMath::Abs(sumOfW1st8*sumOfW2nd8)>0.) { denominator8 = 1.-sumOfWW8/(sumOfW1st8*sumOfW2nd8); if(TMath::Abs(denominator8)>0.) { // covariance: Double_t covariance8 = numerator8/denominator8; // weight dependent prefactor for covariance: Double_t wPrefactor8 = sumOfWW8/(sumOfW1st8*sumOfW2nd8); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(8,wPrefactor8*covariance8); } // end of if(TMath::Abs(denominator8)>0.) } // end of if(TMath::Abs(sumOfW1st8*sumOfW2nd8)>0.) // Cov(<4>,): Double_t product9 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(9); // <<4>> Double_t term1st9 = fIntFlowCorrelationsPro->GetBinContent(2); // <<4>> Double_t term2nd9 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t sumOfW1st9 = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // W_{<4>} Double_t sumOfW2nd9 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfWW9 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(9); // W_{<4>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator9 = product9 - term1st9*term2nd9; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator9 = 0.; if(TMath::Abs(sumOfW1st9*sumOfW2nd9)>0.) { denominator9 = 1.-sumOfWW9/(sumOfW1st9*sumOfW2nd9); if(TMath::Abs(denominator9)>0.) { // covariance: Double_t covariance9 = numerator9/denominator9; // weight dependent prefactor for covariance: Double_t wPrefactor9 = sumOfWW9/(sumOfW1st9*sumOfW2nd9); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(9,wPrefactor9*covariance9); } } // end of if(TMath::Abs(sumOfW1st9*sumOfW2nd9)>0.) // Cov(<4>,): Double_t product10 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(10); // <<4>> Double_t term1st10 = fIntFlowCorrelationsPro->GetBinContent(2); // <<4>> Double_t term2nd10 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t sumOfW1st10 = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // W_{<4>} Double_t sumOfW2nd10 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfWW10 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(10); // W_{<4>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator10 = product10 - term1st10*term2nd10; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator10 = 0.; if(TMath::Abs(sumOfW1st10*sumOfW2nd10)>0.) { denominator10 = 1.-sumOfWW10/(sumOfW1st10*sumOfW2nd10); if(TMath::Abs(denominator10)>0.) { // covariance: Double_t covariance10 = numerator10/denominator10; // weight dependent prefactor for covariance: Double_t wPrefactor10 = sumOfWW10/(sumOfW1st10*sumOfW2nd10); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(10,wPrefactor10*covariance10); } // end of if(TMath::Abs(denominator10)>0.) } // end of if(TMath::Abs(sumOfW1st10*sumOfW2nd10)>0.) // Cov(<4>,): Double_t product11 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(11); // <<4>> Double_t term1st11 = fIntFlowCorrelationsPro->GetBinContent(2); // <<4>> Double_t term2nd11 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t sumOfW1st11 = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // W_{<4>} Double_t sumOfW2nd11 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfWW11 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(11); // W_{<4>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator11 = product11 - term1st11*term2nd11; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator11 = 0.; if(TMath::Abs(sumOfW1st11*sumOfW2nd11)>0.) { denominator11 = 1.-sumOfWW11/(sumOfW1st11*sumOfW2nd11); if(TMath::Abs(denominator11)>0.) { // covariance: Double_t covariance11 = numerator11/denominator11; // weight dependent prefactor for covariance: Double_t wPrefactor11 = sumOfWW11/(sumOfW1st11*sumOfW2nd11); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(11,wPrefactor11*covariance11); } // end of if(TMath::Abs(denominator11)>0.) } // end of if(TMath::Abs(sumOfW1st11*sumOfW2nd11)>0.) // Cov(<4>,): Double_t product12 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(12); // <<4>> Double_t term1st12 = fIntFlowCorrelationsPro->GetBinContent(2); // <<4>> Double_t term2nd12 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t sumOfW1st12 = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // W_{<4>} Double_t sumOfW2nd12 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfWW12 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(12); // W_{<4>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator12 = product12 - term1st12*term2nd12; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator12 = 0.; if(TMath::Abs(sumOfW1st12*sumOfW2nd12)>0.) { denominator12 = 1.-sumOfWW12/(sumOfW1st12*sumOfW2nd12); if(TMath::Abs(denominator12)>0.) { // covariance: Double_t covariance12 = numerator12/denominator12; // weight dependent prefactor for covariance: Double_t wPrefactor12 = sumOfWW12/(sumOfW1st12*sumOfW2nd12); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(12,wPrefactor12*covariance12); } // end of if(TMath::Abs(denominator12)>0.) } // end of if(TMath::Abs(sumOfW1st12*sumOfW2nd12)>0.) // Cov(<4>,): Double_t product13 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(13); // <<4>> Double_t term1st13 = fIntFlowCorrelationsPro->GetBinContent(2); // <<4>> Double_t term2nd13 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st13 = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // W_{<4>} Double_t sumOfW2nd13 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW13 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(13); // W_{<4>} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator13 = product13 - term1st13*term2nd13; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator13 = 0.; if(TMath::Abs(sumOfW1st13*sumOfW2nd13)>0.) { denominator13 = 1.-sumOfWW13/(sumOfW1st13*sumOfW2nd13); if(TMath::Abs(denominator13)>0.) { // covariance: Double_t covariance13 = numerator13/denominator13; // weight dependent prefactor for covariance: Double_t wPrefactor13 = sumOfWW13/(sumOfW1st13*sumOfW2nd13); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(13,wPrefactor13*covariance13); } // end of if(TMath::Abs(denominator13)>0.) } // end of if(TMath::Abs(sumOfW1st13*sumOfW2nd13)>0.) // Cov(,): Double_t product14 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(14); // <> Double_t term1st14 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t term2nd14 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t sumOfW1st14 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd14 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfWW14 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(14); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator14 = product14 - term1st14*term2nd14; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator14 = 0.; if(TMath::Abs(sumOfW1st14*sumOfW2nd14)>0.) { denominator14 = 1.-sumOfWW14/(sumOfW1st14*sumOfW2nd14); if(TMath::Abs(denominator14)>0.) { // covariance: Double_t covariance14 = numerator14/denominator14; // weight dependent prefactor for covariance: Double_t wPrefactor14 = sumOfWW14/(sumOfW1st14*sumOfW2nd14); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(14,wPrefactor14*covariance14); } // end of if(TMath::Abs(denominator14)>0.) } // end of if(TMath::Abs(sumOfW1st14*sumOfW2nd14)>0.) // Cov(,): Double_t product15 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(15); // <> Double_t term1st15 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t term2nd15 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t sumOfW1st15 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd15 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfWW15 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(15); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator15 = product15 - term1st15*term2nd15; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator15 = 0.; if(TMath::Abs(sumOfW1st15*sumOfW2nd15)>0.) { denominator15 = 1.-sumOfWW15/(sumOfW1st15*sumOfW2nd15); if(TMath::Abs(denominator15)>0.) { // covariance: Double_t covariance15 = numerator15/denominator15; // weight dependent prefactor for covariance: Double_t wPrefactor15 = sumOfWW15/(sumOfW1st15*sumOfW2nd15); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(15,wPrefactor15*covariance15); } // end of if(TMath::Abs(denominator15)>0.) } // end of if(TMath::Abs(sumOfW1st15*sumOfW2nd15)>0.) // Cov(,): Double_t product16 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(16); // <> Double_t term1st16 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t term2nd16 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t sumOfW1st16 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd16 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfWW16 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(16); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator16 = product16 - term1st16*term2nd16; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator16 = 0.; if(TMath::Abs(sumOfW1st16*sumOfW2nd16)>0.) { denominator16 = 1.-sumOfWW16/(sumOfW1st16*sumOfW2nd16); if(TMath::Abs(denominator16)>0.) { // covariance: Double_t covariance16 = numerator16/denominator16; // weight dependent prefactor for covariance: Double_t wPrefactor16 = sumOfWW16/(sumOfW1st16*sumOfW2nd16); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(16,wPrefactor16*covariance16); } // end of if(TMath::Abs(denominator16)>0.) } // end ofif(TMath::Abs(sumOfW1st16*sumOfW2nd16)>0.) // Cov(,): Double_t product17 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(17); // <> Double_t term1st17 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(1); // <> Double_t term2nd17 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st17 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd17 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW17 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(17); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator17 = product17 - term1st17*term2nd17; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator17 = 0.; if(TMath::Abs(sumOfW1st17*sumOfW2nd17)>0.) { denominator17 = 1.-sumOfWW17/(sumOfW1st17*sumOfW2nd17); if(TMath::Abs(denominator17)>0.) { // covariance: Double_t covariance17 = numerator17/denominator17; // weight dependent prefactor for covariance: Double_t wPrefactor17 = sumOfWW17/(sumOfW1st17*sumOfW2nd17); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(17,wPrefactor17*covariance17); } // end of if(TMath::Abs(denominator17)>0.) } // end of if(TMath::Abs(sumOfW1st17*sumOfW2nd17)>0.) // Cov(,): Double_t product18 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(18); // <> Double_t term1st18 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t term2nd18 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t sumOfW1st18 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd18 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfWW18 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(18); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator18 = product18 - term1st18*term2nd18; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator18 = 0.; if(TMath::Abs(sumOfW1st18*sumOfW2nd18)>0.) { denominator18 = 1.-sumOfWW18/(sumOfW1st18*sumOfW2nd18); if(TMath::Abs(denominator18)>0.) { // covariance: Double_t covariance18 = numerator18/denominator18; // weight dependent prefactor for covariance: Double_t wPrefactor18 = sumOfWW18/(sumOfW1st18*sumOfW2nd18); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(18,wPrefactor18*covariance18); } // end of if(TMath::Abs(denominator18)>0.) } // end of if(TMath::Abs(sumOfW1st18*sumOfW2nd18)>0.) // Cov(,): Double_t product19 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(19); // <> Double_t term1st19 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t term2nd19 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t sumOfW1st19 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd19 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfWW19 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(19); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator19 = product19 - term1st19*term2nd19; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator19 = 0.; if(TMath::Abs(sumOfW1st19*sumOfW2nd19)>0.) { denominator19 = 1.-sumOfWW19/(sumOfW1st19*sumOfW2nd19); if(TMath::Abs(denominator19)>0.) { // covariance: Double_t covariance19 = numerator19/denominator19; // weight dependent prefactor for covariance: Double_t wPrefactor19 = sumOfWW19/(sumOfW1st19*sumOfW2nd19); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(19,wPrefactor19*covariance19); } // end of if(TMath::Abs(denominator19)>0.) } // end of if(TMath::Abs(sumOfW1st19*sumOfW2nd19)>0.) // Cov(,): Double_t product20 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(20); // <> Double_t term1st20 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t term2nd20 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t sumOfW1st20 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd20 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfWW20 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(20); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator20 = product20 - term1st20*term2nd20; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator20 = 0.; if(TMath::Abs(sumOfW1st20*sumOfW2nd20)>0.) { denominator20 = 1.-sumOfWW20/(sumOfW1st20*sumOfW2nd20); if(TMath::Abs(denominator20)>0.) { // covariance: Double_t covariance20 = numerator20/denominator20; // weight dependent prefactor for covariance: Double_t wPrefactor20 = sumOfWW20/(sumOfW1st20*sumOfW2nd20); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(20,wPrefactor20*covariance20); } // end of if(TMath::Abs(denominator20)>0.) } // end of if(TMath::Abs(sumOfW1st20*sumOfW2nd20)>0.) // Cov(,): Double_t product21 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(21); // <> Double_t term1st21 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(1); // <> Double_t term2nd21 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st21 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(1); // W_{} Double_t sumOfW2nd21 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW21 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(21); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator21 = product21 - term1st21*term2nd21; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator21 = 0.; if(TMath::Abs(sumOfW1st21*sumOfW2nd21)>0.) { denominator21 = 1.-sumOfWW21/(sumOfW1st21*sumOfW2nd21); if(TMath::Abs(denominator21)>0.) { // covariance: Double_t covariance21 = numerator21/denominator21; // weight dependent prefactor for covariance: Double_t wPrefactor21 = sumOfWW21/(sumOfW1st21*sumOfW2nd21); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(21,wPrefactor21*covariance21); } // end of if(TMath::Abs(denominator21)>0.) } // end of if(TMath::Abs(sumOfW1st21*sumOfW2nd21)>0.) // Cov(,): Double_t product22 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(22); // <> Double_t term1st22 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t term2nd22 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t sumOfW1st22 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfW2nd22 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfWW22 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(22); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator22 = product22 - term1st22*term2nd22; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator22 = 0.; if(TMath::Abs(sumOfW1st22*sumOfW2nd22)>0.) { denominator22 = 1.-sumOfWW22/(sumOfW1st22*sumOfW2nd22); if(TMath::Abs(denominator22)>0.) { // covariance: Double_t covariance22 = numerator22/denominator22; // weight dependent prefactor for covariance: Double_t wPrefactor22 = sumOfWW22/(sumOfW1st22*sumOfW2nd22); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(22,wPrefactor22*covariance22); } // end of if(TMath::Abs(denominator22)>0.) } // end of if(TMath::Abs(sumOfW1st22*sumOfW2nd22)>0.) // Cov(,): Double_t product23 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(23); // <> Double_t term1st23 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t term2nd23 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t sumOfW1st23 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfW2nd23 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfWW23 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(23); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator23 = product23 - term1st23*term2nd23; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator23 = 0.; if(TMath::Abs(sumOfW1st23*sumOfW2nd23)>0.) { denominator23 = 1.-sumOfWW23/(sumOfW1st23*sumOfW2nd23); if(TMath::Abs(denominator23)>0.) { // covariance: Double_t covariance23 = numerator23/denominator23; // weight dependent prefactor for covariance: Double_t wPrefactor23 = sumOfWW23/(sumOfW1st23*sumOfW2nd23); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(23,wPrefactor23*covariance23); } // end of if(TMath::Abs(denominator23)>0.) } // end of if(TMath::Abs(sumOfW1st23*sumOfW2nd23)>0.) // Cov(,): Double_t product24 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(24); // <> Double_t term1st24 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(2); // <> Double_t term2nd24 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st24 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(2); // W_{} Double_t sumOfW2nd24 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW24 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(24); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator24 = product24 - term1st24*term2nd24; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator24 = 0.; if(TMath::Abs(sumOfW1st24*sumOfW2nd24)>0.) { denominator24 = 1.-sumOfWW24/(sumOfW1st24*sumOfW2nd24); if(TMath::Abs(denominator24)>0.) { // covariance: Double_t covariance24 = numerator24/denominator24; // weight dependent prefactor for covariance: Double_t wPrefactor24 = sumOfWW24/(sumOfW1st24*sumOfW2nd24); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(24,wPrefactor24*covariance24); } // end of if(TMath::Abs(denominator24)>0.) } // end of if(TMath::Abs(sumOfW1st24*sumOfW2nd24)>0.) // Cov(,): Double_t product25 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(25); // <> Double_t term1st25 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t term2nd25 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t sumOfW1st25 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfW2nd25 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfWW25 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(25); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator25 = product25 - term1st25*term2nd25; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator25 = 0.; if(TMath::Abs(sumOfW1st25*sumOfW2nd25)>0.) { denominator25 = 1.-sumOfWW25/(sumOfW1st25*sumOfW2nd25); if(TMath::Abs(denominator25)>0.) { // covariance: Double_t covariance25 = numerator25/denominator25; // weight dependent prefactor for covariance: Double_t wPrefactor25 = sumOfWW25/(sumOfW1st25*sumOfW2nd25); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(25,wPrefactor25*covariance25); } // end of if(TMath::Abs(denominator25)>0.) } // end of if(TMath::Abs(sumOfW1st25*sumOfW2nd25)>0.) // Cov(,): Double_t product26 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(26); // <> Double_t term1st26 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(2); // <> Double_t term2nd26 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st26 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(2); // W_{} Double_t sumOfW2nd26 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW26 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(26); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator26 = product26 - term1st26*term2nd26; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator26 = 0.; if(TMath::Abs(sumOfW1st26*sumOfW2nd26)>0.) { denominator26 = 1.-sumOfWW26/(sumOfW1st26*sumOfW2nd26); if(TMath::Abs(denominator26)>0.) { // covariance: Double_t covariance26 = numerator26/denominator26; // weight dependent prefactor for covariance: Double_t wPrefactor26 = sumOfWW26/(sumOfW1st26*sumOfW2nd26); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(26,wPrefactor26*covariance26); } // end of if(TMath::Abs(denominator26)>0.) } // end of if(TMath::Abs(sumOfW1st26*sumOfW2nd26)>0.) // Cov(,): Double_t product27 = fIntFlowProductOfCorrectionTermsForNUAPro->GetBinContent(27); // <> Double_t term1st27 = fIntFlowCorrectionTermsForNUAPro[1]->GetBinContent(3); // <> Double_t term2nd27 = fIntFlowCorrectionTermsForNUAPro[0]->GetBinContent(3); // <> Double_t sumOfW1st27 = fIntFlowSumOfEventWeightsNUA[1][0]->GetBinContent(3); // W_{} Double_t sumOfW2nd27 = fIntFlowSumOfEventWeightsNUA[0][0]->GetBinContent(3); // W_{} Double_t sumOfWW27 = fIntFlowSumOfProductOfEventWeightsNUA->GetBinContent(27); // W_{} * W_{} // numerator in the expression for the the unbiased estimator for covariance: Double_t numerator27 = product27 - term1st27*term2nd27; // denominator in the expression for the the unbiased estimator for covariance: Double_t denominator27 = 0.; if(TMath::Abs(sumOfW1st27*sumOfW2nd27)>0.) { denominator27 = 1.-sumOfWW27/(sumOfW1st27*sumOfW2nd27); if(TMath::Abs(denominator27)>0.) { // covariance: Double_t covariance27 = numerator27/denominator27; // weight dependent prefactor for covariance: Double_t wPrefactor27 = sumOfWW27/(sumOfW1st27*sumOfW2nd27); // finally, store "weighted" covariance: fIntFlowCovariancesNUA->SetBinContent(27,wPrefactor27*covariance27); } // end of if(TMath::Abs(denominator27)>0.) } // end of if(TMath::Abs(sumOfW1st27*sumOfW2nd27)>0.) } // end of AliFlowAnalysisWithQCumulants::CalculateCovariancesNUAIntFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FinalizeCorrelationsIntFlow() { // From profile fIntFlowCorrelationsPro access measured correlations and spread, // correctly calculate the statistical errors and store the final results and // statistical errors for correlations in histogram fIntFlowCorrelationsHist. // // Remark: Statistical error of correlation is calculated as: // // statistical error = termA * spread * termB: // termA = sqrt{sum_{i=1}^{N} w^2}/(sum_{i=1}^{N} w) // termB = 1/sqrt(1-termA^2) // for(Int_t ci=1;ci<=4;ci++) // correlation index { if(fIntFlowCorrelationsPro->GetBinEffectiveEntries(ci) < 2 || fIntFlowSquaredCorrelationsPro->GetBinEffectiveEntries(ci) < 2) { fIntFlowCorrelationsPro->SetBinError(ci,0.); fIntFlowSquaredCorrelationsPro->SetBinError(ci,0.); continue; } Double_t correlation = fIntFlowCorrelationsPro->GetBinContent(ci); Double_t squaredCorrelation = fIntFlowSquaredCorrelationsPro->GetBinContent(ci); Double_t spread = 0.; if(squaredCorrelation-correlation*correlation >= 0.) { spread = pow(squaredCorrelation-correlation*correlation,0.5); } else { cout<GetBinContent(ci); Double_t sumOfQuadraticEventWeights = fIntFlowSumOfEventWeights[1]->GetBinContent(ci); Double_t termA = 0.; Double_t termB = 0.; if(TMath::Abs(sumOfLinearEventWeights) > 0.) // to be improved - shall I omitt here Abs() ? { termA = pow(sumOfQuadraticEventWeights,0.5)/sumOfLinearEventWeights; } else { cout< 0.) { termB = 1./pow(1-pow(termA,2.),0.5); } else { cout<SetBinContent(ci,correlation); fIntFlowCorrelationsHist->SetBinError(ci,statisticalError); } // end of for(Int_t ci=1;ci<=4;ci++) // correlation index // Versus multiplicity: if(!fCalculateCumulantsVsM){return;} for(Int_t ci=0;ci<=3;ci++) // correlation index { Int_t nBins = fIntFlowCorrelationsVsMPro[ci]->GetNbinsX(); for(Int_t b=1;b<=nBins;b++) // looping over multiplicity bins { if(fIntFlowCorrelationsVsMPro[ci]->GetBinEffectiveEntries(b) < 2 || fIntFlowSquaredCorrelationsVsMPro[ci]->GetBinEffectiveEntries(b) < 2) { fIntFlowCorrelationsVsMPro[ci]->SetBinError(b,0.); fIntFlowSquaredCorrelationsVsMPro[ci]->SetBinError(b,0.); continue; } Double_t correlationVsM = fIntFlowCorrelationsVsMPro[ci]->GetBinContent(b); Double_t squaredCorrelationVsM = fIntFlowSquaredCorrelationsVsMPro[ci]->GetBinContent(b); Double_t spreadVsM = 0.; if(squaredCorrelationVsM-correlationVsM*correlationVsM >= 0.) { spreadVsM = pow(squaredCorrelationVsM-correlationVsM*correlationVsM,0.5); } else { cout<GetBinEffectiveEntries(b))<GetBinContent(b); Double_t sumOfQuadraticEventWeightsVsM = fIntFlowSumOfEventWeightsVsM[ci][1]->GetBinContent(b); Double_t termAVsM = 0.; Double_t termBVsM = 0.; if(sumOfLinearEventWeightsVsM > 0.) { termAVsM = pow(sumOfQuadraticEventWeightsVsM,0.5)/sumOfLinearEventWeightsVsM; } if(1.-pow(termAVsM,2.) > 0.) { termBVsM = 1./pow(1-pow(termAVsM,2.),0.5); } Double_t statisticalErrorVsM = termAVsM * spreadVsM * termBVsM; fIntFlowCorrelationsVsMHist[ci]->SetBinContent(b,correlationVsM); fIntFlowCorrelationsVsMHist[ci]->SetBinError(b,statisticalErrorVsM); } // end of for(Int_t b=1;b<=nBins;b++) } // end of for(Int_t ci=1;ci<=4;ci++) // correlation index } // end of AliFlowAnalysisWithQCumulants::FinalizeCorrelationsIntFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FillAverageMultiplicities(Int_t nRP) { // Fill profile fAverageMultiplicity to hold average multiplicities and // number of events for events with nRP>=0, nRP>=1, ... , and nRP>=8 // Binning of fAverageMultiplicity is organized as follows: // 1st bin: all events (including the empty ones) // 2nd bin: event with # of RPs greater or equal to 1 // 3rd bin: event with # of RPs greater or equal to 2 // 4th bin: event with # of RPs greater or equal to 3 // 5th bin: event with # of RPs greater or equal to 4 // 6th bin: event with # of RPs greater or equal to 5 // 7th bin: event with # of RPs greater or equal to 6 // 8th bin: event with # of RPs greater or equal to 7 // 9th bin: event with # of RPs greater or equal to 8 if(nRP<0) { cout<=i){fAvMultiplicity->Fill(i+0.5,nRP,1);} } } // end of AliFlowAnalysisWithQCumulants::FillAverageMultiplicities(nRP) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateCumulantsIntFlow() { // a) Calculate Q-cumulants from the measured multiparticle correlations; // b) Propagate the statistical errors from measured multiparticle correlations to statistical errors of Q-cumulants; // c) Remark: Q-cumulants calculated in this method are biased by non-uniform acceptance of detector !!!! // Method CalculateQcumulantsCorrectedForNUAIntFlow() is called afterwards to correct for this bias; // d) Store the results and statistical error of Q-cumulants in histogram fIntFlowQcumulants. // Binning of fIntFlowQcumulants is organized as follows: // // 1st bin: QC{2} // 2nd bin: QC{4} // 3rd bin: QC{6} // 4th bin: QC{8} // // Correlations: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); // <<2>> Double_t four = fIntFlowCorrelationsHist->GetBinContent(2); // <<4>> Double_t six = fIntFlowCorrelationsHist->GetBinContent(3); // <<6>> Double_t eight = fIntFlowCorrelationsHist->GetBinContent(4); // <<8>> // Statistical errors of average 2-, 4-, 6- and 8-particle azimuthal correlations: Double_t twoError = fIntFlowCorrelationsHist->GetBinError(1); // statistical error of <2> Double_t fourError = fIntFlowCorrelationsHist->GetBinError(2); // statistical error of <4> Double_t sixError = fIntFlowCorrelationsHist->GetBinError(3); // statistical error of <6> Double_t eightError = fIntFlowCorrelationsHist->GetBinError(4); // statistical error of <8> // Covariances (multiplied by prefactor depending on weights - see comments in CalculateCovariancesIntFlow()): Double_t wCov24 = 0.; // Cov(<2>,<4>) * prefactor(w_<2>,w_<4>) Double_t wCov26 = 0.; // Cov(<2>,<6>) * prefactor(w_<2>,w_<6>) Double_t wCov28 = 0.; // Cov(<2>,<8>) * prefactor(w_<2>,w_<8>) Double_t wCov46 = 0.; // Cov(<4>,<6>) * prefactor(w_<4>,w_<6>) Double_t wCov48 = 0.; // Cov(<4>,<8>) * prefactor(w_<4>,w_<8>) Double_t wCov68 = 0.; // Cov(<6>,<8>) * prefactor(w_<6>,w_<8>) if(!fForgetAboutCovariances) { wCov24 = fIntFlowCovariances->GetBinContent(1); // Cov(<2>,<4>) * prefactor(w_<2>,w_<4>) wCov26 = fIntFlowCovariances->GetBinContent(2); // Cov(<2>,<6>) * prefactor(w_<2>,w_<6>) wCov28 = fIntFlowCovariances->GetBinContent(3); // Cov(<2>,<8>) * prefactor(w_<2>,w_<8>) wCov46 = fIntFlowCovariances->GetBinContent(4); // Cov(<4>,<6>) * prefactor(w_<4>,w_<6>) wCov48 = fIntFlowCovariances->GetBinContent(5); // Cov(<4>,<8>) * prefactor(w_<4>,w_<8>) wCov68 = fIntFlowCovariances->GetBinContent(6); // Cov(<6>,<8>) * prefactor(w_<6>,w_<8>) } // Q-cumulants: Double_t qc2 = 0.; // QC{2} Double_t qc4 = 0.; // QC{4} Double_t qc6 = 0.; // QC{6} Double_t qc8 = 0.; // QC{8} if(TMath::Abs(two) > 0.){qc2 = two;} if(TMath::Abs(four) > 0.){qc4 = four-2.*pow(two,2.);} if(TMath::Abs(six) > 0.){qc6 = six-9.*two*four+12.*pow(two,3.);} if(TMath::Abs(eight) > 0.){qc8 = eight-16.*two*six-18.*pow(four,2.)+144.*pow(two,2.)*four-144.*pow(two,4.);} // Statistical errors of Q-cumulants: Double_t qc2Error = 0.; Double_t qc4Error = 0.; Double_t qc6Error = 0.; Double_t qc8Error = 0.; // Squared statistical errors of Q-cumulants: //Double_t qc2ErrorSquared = 0.; Double_t qc4ErrorSquared = 0.; Double_t qc6ErrorSquared = 0.; Double_t qc8ErrorSquared = 0.; // Statistical error of QC{2}: qc2Error = twoError; // Statistical error of QC{4}: qc4ErrorSquared = 16.*pow(two,2.)*pow(twoError,2)+pow(fourError,2.) - 8.*two*wCov24; if(qc4ErrorSquared>0.) { qc4Error = pow(qc4ErrorSquared,0.5); } else { cout<<" WARNING (QC): Statistical error of QC{4} is imaginary !!!!"<0.) { qc6Error = pow(qc6ErrorSquared,0.5); } else { cout<<" WARNING (QC): Statistical error of QC{6} is imaginary !!!!"<0.) { qc8Error = pow(qc8ErrorSquared,0.5); } else { cout<<"WARNING (QC): Statistical error of QC{8} is imaginary !!!!"<0.) { fIntFlowQcumulants->SetBinContent(1,qc2); fIntFlowQcumulants->SetBinError(1,qc2Error); } if(TMath::Abs(qc4)>0.) { fIntFlowQcumulants->SetBinContent(2,qc4); fIntFlowQcumulants->SetBinError(2,qc4Error); } if(TMath::Abs(qc6)>0.) { fIntFlowQcumulants->SetBinContent(3,qc6); fIntFlowQcumulants->SetBinError(3,qc6Error); } if(TMath::Abs(qc8)>0.) { fIntFlowQcumulants->SetBinContent(4,qc8); fIntFlowQcumulants->SetBinError(4,qc8Error); } // Versus multiplicity: if(!fCalculateCumulantsVsM){return;} Int_t nBins = fIntFlowCorrelationsVsMPro[0]->GetNbinsX(); // to be improved (hardwired 0) Double_t value[4] = {0.}; // QCs vs M Double_t error[4] = {0.}; // error of QCs vs M Double_t dSum1[4] = {0.}; // sum value_i/(error_i)^2 Double_t dSum2[4] = {0.}; // sum 1/(error_i)^2 for(Int_t b=1;b<=nBins;b++) { // Correlations: two = fIntFlowCorrelationsVsMHist[0]->GetBinContent(b); // <<2>> four = fIntFlowCorrelationsVsMHist[1]->GetBinContent(b); // <<4>> six = fIntFlowCorrelationsVsMHist[2]->GetBinContent(b); // <<6>> eight = fIntFlowCorrelationsVsMHist[3]->GetBinContent(b); // <<8>> // Statistical errors of average 2-, 4-, 6- and 8-particle azimuthal correlations: twoError = fIntFlowCorrelationsVsMHist[0]->GetBinError(b); // statistical error of <2> fourError = fIntFlowCorrelationsVsMHist[1]->GetBinError(b); // statistical error of <4> sixError = fIntFlowCorrelationsVsMHist[2]->GetBinError(b); // statistical error of <6> eightError = fIntFlowCorrelationsVsMHist[3]->GetBinError(b); // statistical error of <8> // Covariances (multiplied by prefactor depending on weights - see comments in CalculateCovariancesIntFlow()): if(!fForgetAboutCovariances) { wCov24 = fIntFlowCovariancesVsM[0]->GetBinContent(b); // Cov(<2>,<4>) * prefactor(w_<2>,w_<4>) wCov26 = fIntFlowCovariancesVsM[1]->GetBinContent(b); // Cov(<2>,<6>) * prefactor(w_<2>,w_<6>) wCov28 = fIntFlowCovariancesVsM[2]->GetBinContent(b); // Cov(<2>,<8>) * prefactor(w_<2>,w_<8>) wCov46 = fIntFlowCovariancesVsM[3]->GetBinContent(b); // Cov(<4>,<6>) * prefactor(w_<4>,w_<6>) wCov48 = fIntFlowCovariancesVsM[4]->GetBinContent(b); // Cov(<4>,<8>) * prefactor(w_<4>,w_<8>) wCov68 = fIntFlowCovariancesVsM[5]->GetBinContent(b); // Cov(<6>,<8>) * prefactor(w_<6>,w_<8>) } // Q-cumulants: qc2 = 0.; // QC{2} qc4 = 0.; // QC{4} qc6 = 0.; // QC{6} qc8 = 0.; // QC{8} if(TMath::Abs(two) > 0.){qc2 = two;} if(TMath::Abs(four) > 0.){qc4 = four-2.*pow(two,2.);} if(TMath::Abs(six) > 0.){qc6 = six-9.*two*four+12.*pow(two,3.);} if(TMath::Abs(eight) > 0.){qc8 = eight-16.*two*six-18.*pow(four,2.)+144.*pow(two,2.)*four-144.*pow(two,4.);} // Statistical errors of Q-cumulants: qc2Error = 0.; qc4Error = 0.; qc6Error = 0.; qc8Error = 0.; // Squared statistical errors of Q-cumulants: //Double_t qc2ErrorSquared = 0.; qc4ErrorSquared = 0.; qc6ErrorSquared = 0.; qc8ErrorSquared = 0.; // Statistical error of QC{2}: qc2Error = twoError; // Statistical error of QC{4}: qc4ErrorSquared = 16.*pow(two,2.)*pow(twoError,2)+pow(fourError,2.) - 8.*two*wCov24; if(qc4ErrorSquared>0.) { qc4Error = pow(qc4ErrorSquared,0.5); } else { // cout<<"WARNING: Statistical error of QC{4} is imaginary in multiplicity bin "<0.) { qc6Error = pow(qc6ErrorSquared,0.5); } else { // cout<<"WARNING: Statistical error of QC{6} is imaginary in multiplicity bin "<0.) { qc8Error = pow(qc8ErrorSquared,0.5); } else { // cout<<"WARNING: Statistical error of QC{8} is imaginary in multiplicity bin "<0.) { fIntFlowQcumulantsVsM[0]->SetBinContent(b,qc2); fIntFlowQcumulantsVsM[0]->SetBinError(b,qc2Error); } if(TMath::Abs(qc4)>0.) { fIntFlowQcumulantsVsM[1]->SetBinContent(b,qc4); fIntFlowQcumulantsVsM[1]->SetBinError(b,qc4Error); } if(TMath::Abs(qc6)>0.) { fIntFlowQcumulantsVsM[2]->SetBinContent(b,qc6); fIntFlowQcumulantsVsM[2]->SetBinError(b,qc6Error); } if(TMath::Abs(qc8)>0.) { fIntFlowQcumulantsVsM[3]->SetBinContent(b,qc8); fIntFlowQcumulantsVsM[3]->SetBinError(b,qc8Error); } // Rebin in M: for(Int_t co=0;co<4;co++) { if(fIntFlowCorrelationsVsMPro[co]->GetBinEffectiveEntries(b)<2){continue;} value[co] = fIntFlowQcumulantsVsM[co]->GetBinContent(b); error[co] = fIntFlowQcumulantsVsM[co]->GetBinError(b); if(error[co]>0.) { dSum1[co]+=value[co]/(error[co]*error[co]); dSum2[co]+=1./(error[co]*error[co]); } } // end of for(Int_t co=0;co<4;co++) } // end of for(Int_t b=1;b<=nBins;b++) // Store rebinned Q-cumulants: for(Int_t co=0;co<4;co++) { if(dSum2[co]>0.) { fIntFlowQcumulantsRebinnedInM->SetBinContent(co+1,dSum1[co]/dSum2[co]); fIntFlowQcumulantsRebinnedInM->SetBinError(co+1,pow(1./dSum2[co],0.5)); } } // end of for(Int_t co=0;co<4;co++) } // end of AliFlowAnalysisWithQCumulants::CalculateCumulantsIntFlow() //================================================================================================================================ void AliFlowAnalysisWithQCumulants::CalculateReferenceFlow() { // a) Calculate the final results for reference flow estimates from Q-cumulants; // b) Propagate the statistical errors to reference flow estimates from statistical error of Q-cumulants; // c) Store the results and statistical errors of reference flow estimates in histogram fIntFlow. // Binning of fIntFlow is organized as follows: // // 1st bin: v{2,QC} // 2nd bin: v{4,QC} // 3rd bin: v{6,QC} // 4th bin: v{8,QC} // // Reference flow estimates: Double_t v2 = 0.; // v{2,QC} Double_t v4 = 0.; // v{4,QC} Double_t v6 = 0.; // v{6,QC} Double_t v8 = 0.; // v{8,QC} // Reference flow's statistical errors: Double_t v2Error = 0.; // v{2,QC} stat. error Double_t v4Error = 0.; // v{4,QC} stat. error Double_t v6Error = 0.; // v{6,QC} stat. error Double_t v8Error = 0.; // v{8,QC} stat. error // Q-cumulants: Double_t qc2 = fIntFlowQcumulants->GetBinContent(1); // QC{2} Double_t qc4 = fIntFlowQcumulants->GetBinContent(2); // QC{4} Double_t qc6 = fIntFlowQcumulants->GetBinContent(3); // QC{6} Double_t qc8 = fIntFlowQcumulants->GetBinContent(4); // QC{8} // Q-cumulants's statistical errors: Double_t qc2Error = fIntFlowQcumulants->GetBinError(1); // QC{2} stat. error Double_t qc4Error = fIntFlowQcumulants->GetBinError(2); // QC{4} stat. error Double_t qc6Error = fIntFlowQcumulants->GetBinError(3); // QC{6} stat. error Double_t qc8Error = fIntFlowQcumulants->GetBinError(4); // QC{8} stat. error // Calculate reference flow estimates from Q-cumulants: if(qc2>=0.){v2 = pow(qc2,0.5);} if(qc4<=0.){v4 = pow(-1.*qc4,1./4.);} if(qc6>=0.){v6 = pow((1./4.)*qc6,1./6.);} if(qc8<=0.){v8 = pow((-1./33.)*qc8,1./8.);} // Calculate stat. error for reference flow estimates from stat. error of Q-cumulants: if(qc2>0.){v2Error = (1./2.)*pow(qc2,-0.5)*qc2Error;} if(qc4<0.){v4Error = (1./4.)*pow(-qc4,-3./4.)*qc4Error;} if(qc6>0.){v6Error = (1./6.)*pow(2.,-1./3.)*pow(qc6,-5./6.)*qc6Error;} if(qc8<0.){v8Error = (1./8.)*pow(33.,-1./8.)*pow(-qc8,-7./8.)*qc8Error;} // Print warnings for the 'wrong sign' cumulants: if(TMath::Abs(v2) < 1.e-44) { cout<<" WARNING: Wrong sign QC{2}, couldn't calculate v{2,QC} !!!!"<SetBinContent(1,v2); fIntFlow->SetBinError(1,v2Error); fIntFlow->SetBinContent(2,v4); fIntFlow->SetBinError(2,v4Error); fIntFlow->SetBinContent(3,v6); fIntFlow->SetBinError(3,v6Error); fIntFlow->SetBinContent(4,v8); fIntFlow->SetBinError(4,v8Error); // Versus multiplicity: if(!fCalculateCumulantsVsM){return;} Int_t nBins = fIntFlowCorrelationsVsMPro[0]->GetNbinsX(); // to be improved (hardwired 0) for(Int_t b=1;b<=nBins;b++) { // Q-cumulants: Double_t qc2VsM = fIntFlowQcumulantsVsM[0]->GetBinContent(b); // QC{2} Double_t qc4VsM = fIntFlowQcumulantsVsM[1]->GetBinContent(b); // QC{4} Double_t qc6VsM = fIntFlowQcumulantsVsM[2]->GetBinContent(b); // QC{6} Double_t qc8VsM = fIntFlowQcumulantsVsM[3]->GetBinContent(b); // QC{8} // Q-cumulants's statistical errors: Double_t qc2ErrorVsM = fIntFlowQcumulantsVsM[0]->GetBinError(b); // QC{2} stat. error Double_t qc4ErrorVsM = fIntFlowQcumulantsVsM[1]->GetBinError(b); // QC{4} stat. error Double_t qc6ErrorVsM = fIntFlowQcumulantsVsM[2]->GetBinError(b); // QC{6} stat. error Double_t qc8ErrorVsM = fIntFlowQcumulantsVsM[3]->GetBinError(b); // QC{8} stat. error // Reference flow estimates: Double_t v2VsM = 0.; // v{2,QC} Double_t v4VsM = 0.; // v{4,QC} Double_t v6VsM = 0.; // v{6,QC} Double_t v8VsM = 0.; // v{8,QC} // Reference flow estimates errors: Double_t v2ErrorVsM = 0.; // v{2,QC} stat. error Double_t v4ErrorVsM = 0.; // v{4,QC} stat. error Double_t v6ErrorVsM = 0.; // v{6,QC} stat. error Double_t v8ErrorVsM = 0.; // v{8,QC} stat. error // Calculate reference flow estimates from Q-cumulants: if(qc2VsM>=0.){v2VsM = pow(qc2VsM,0.5);} if(qc4VsM<=0.){v4VsM = pow(-1.*qc4VsM,1./4.);} if(qc6VsM>=0.){v6VsM = pow((1./4.)*qc6VsM,1./6.);} if(qc8VsM<=0.){v8VsM = pow((-1./33.)*qc8VsM,1./8.);} // Calculate stat. error for reference flow estimates from stat. error of Q-cumulants: if(qc2VsM>0.){v2ErrorVsM = (1./2.)*pow(qc2VsM,-0.5)*qc2ErrorVsM;} if(qc4VsM<0.){v4ErrorVsM = (1./4.)*pow(-qc4VsM,-3./4.)*qc4ErrorVsM;} if(qc6VsM>0.){v6ErrorVsM = (1./6.)*pow(2.,-1./3.)*pow(qc6VsM,-5./6.)*qc6ErrorVsM;} if(qc8VsM<0.){v8ErrorVsM = (1./8.)*pow(33.,-1./8.)*pow(-qc8VsM,-7./8.)*qc8ErrorVsM;} // Store the results and statistical errors of integrated flow estimates: fIntFlowVsM[0]->SetBinContent(b,v2VsM); fIntFlowVsM[0]->SetBinError(b,v2ErrorVsM); fIntFlowVsM[1]->SetBinContent(b,v4VsM); fIntFlowVsM[1]->SetBinError(b,v4ErrorVsM); fIntFlowVsM[2]->SetBinContent(b,v6VsM); fIntFlowVsM[2]->SetBinError(b,v6ErrorVsM); fIntFlowVsM[3]->SetBinContent(b,v8VsM); fIntFlowVsM[3]->SetBinError(b,v8ErrorVsM); } // end of for(Int_t b=1;b<=nBins;b++) // 'Rebinned in M' calculation: // to be improved - this can be implemented better: // Reference flow estimates: Double_t v2RebinnedInM = 0.; // v{2,QC} Double_t v4RebinnedInM = 0.; // v{4,QC} Double_t v6RebinnedInM = 0.; // v{6,QC} Double_t v8RebinnedInM = 0.; // v{8,QC} // Reference flow's statistical errors: Double_t v2ErrorRebinnedInM = 0.; // v{2,QC} stat. error Double_t v4ErrorRebinnedInM = 0.; // v{4,QC} stat. error Double_t v6ErrorRebinnedInM = 0.; // v{6,QC} stat. error Double_t v8ErrorRebinnedInM = 0.; // v{8,QC} stat. error // Q-cumulants: Double_t qc2RebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinContent(1); // QC{2} Double_t qc4RebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinContent(2); // QC{4} Double_t qc6RebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinContent(3); // QC{6} Double_t qc8RebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinContent(4); // QC{8} // Q-cumulants's statistical errors: Double_t qc2ErrorRebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinError(1); // QC{2} stat. error Double_t qc4ErrorRebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinError(2); // QC{4} stat. error Double_t qc6ErrorRebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinError(3); // QC{6} stat. error Double_t qc8ErrorRebinnedInM = fIntFlowQcumulantsRebinnedInM->GetBinError(4); // QC{8} stat. error // Calculate reference flow estimates from Q-cumulants: if(qc2RebinnedInM>=0.){v2RebinnedInM = pow(qc2RebinnedInM,0.5);} if(qc4RebinnedInM<=0.){v4RebinnedInM = pow(-1.*qc4RebinnedInM,1./4.);} if(qc6RebinnedInM>=0.){v6RebinnedInM = pow((1./4.)*qc6RebinnedInM,1./6.);} if(qc8RebinnedInM<=0.){v8RebinnedInM = pow((-1./33.)*qc8RebinnedInM,1./8.);} // Calculate stat. error for reference flow estimates from stat. error of Q-cumulants: if(qc2RebinnedInM>0.){v2ErrorRebinnedInM = (1./2.)*pow(qc2RebinnedInM,-0.5)*qc2ErrorRebinnedInM;} if(qc4RebinnedInM<0.){v4ErrorRebinnedInM = (1./4.)*pow(-qc4RebinnedInM,-3./4.)*qc4ErrorRebinnedInM;} if(qc6RebinnedInM>0.){v6ErrorRebinnedInM = (1./6.)*pow(2.,-1./3.)*pow(qc6RebinnedInM,-5./6.)*qc6ErrorRebinnedInM;} if(qc8RebinnedInM<0.){v8ErrorRebinnedInM = (1./8.)*pow(33.,-1./8.)*pow(-qc8RebinnedInM,-7./8.)*qc8ErrorRebinnedInM;} // Print warnings for the 'wrong sign' cumulants: if(TMath::Abs(v2RebinnedInM) < 1.e-44) { cout<<" WARNING: Wrong sign QC{2} rebinned in M, couldn't calculate v{2,QC} !!!!"<SetBinContent(1,v2RebinnedInM); fIntFlowRebinnedInM->SetBinError(1,v2ErrorRebinnedInM); fIntFlowRebinnedInM->SetBinContent(2,v4RebinnedInM); fIntFlowRebinnedInM->SetBinError(2,v4ErrorRebinnedInM); fIntFlowRebinnedInM->SetBinContent(3,v6RebinnedInM); fIntFlowRebinnedInM->SetBinError(3,v6ErrorRebinnedInM); fIntFlowRebinnedInM->SetBinContent(4,v8RebinnedInM); fIntFlowRebinnedInM->SetBinError(4,v8ErrorRebinnedInM); } // end of AliFlowAnalysisWithQCumulants::CalculateReferenceFlow() //================================================================================================================================ void AliFlowAnalysisWithQCumulants::FillCommonHistResultsIntFlow() { // Fill in AliFlowCommonHistResults histograms relevant for reference flow. // There are two possibilities here: // a) Store minimum bias reference flow - use SetMinimumBiasReferenceFlow(kTRUE). This result is // biased by the interplay between nonflow correlations and multiplicity fluctuations and is // also stored in local histogram fIntFlow; // b) Store reference flow obtained from flow analysis performed at fixed multiplicity and // rebinned only at the end of the day - use SetMinimumBiasReferenceFlow(kFALSE). This result // is also stored in local histogram fIntFlowRebinnedInM. // Reference flow estimates: Double_t v[4] = {0.}; // Statistical errors of reference flow estimates: Double_t vError[4] = {0.}; for(Int_t b=0;b<4;b++) { if(fMinimumBiasReferenceFlow) { v[b] = fIntFlow->GetBinContent(b+1); vError[b] = fIntFlow->GetBinError(b+1); } else { v[b] = fIntFlowRebinnedInM->GetBinContent(b+1); vError[b] = fIntFlowRebinnedInM->GetBinError(b+1); } } // end of for(Int_t b=0;b<4;b++) // Fill AliFlowCommonHistResults histogram: fCommonHistsResults2nd->FillIntegratedFlow(v[0],vError[0]); // to be improved (hardwired 2nd in the name) fCommonHistsResults4th->FillIntegratedFlow(v[1],vError[1]); // to be improved (hardwired 4th in the name) if(!(fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights)) // to be improved (calculate also 6th and 8th order) { fCommonHistsResults6th->FillIntegratedFlow(v[2],vError[2]); // to be improved (hardwired 6th in the name) fCommonHistsResults8th->FillIntegratedFlow(v[3],vError[3]); // to be improved (hardwired 8th in the name) } } // end of AliFlowAnalysisWithQCumulants::FillCommonHistResultsIntFlow() //================================================================================================================================ void AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrelationsUsingParticleWeights() { // Calculate all correlations needed for integrated flow using particle weights. // Remark 1: When particle weights are used the binning of fIntFlowCorrelationAllPro is organized as follows: // // 1st bin: <2>_{1n|1n} = two1n1nW1W1 = // 2nd bin: <2>_{2n|2n} = two2n2nW2W2 = // 3rd bin: <2>_{3n|3n} = two3n3nW3W3 = // 4th bin: <2>_{4n|4n} = two4n4nW4W4 = // 5th bin: ---- EMPTY ---- // 6th bin: <3>_{2n|1n,1n} = three2n1n1nW2W1W1 = // 7th bin: <3>_{3n|2n,1n} = ... // 8th bin: <3>_{4n|2n,2n} = ... // 9th bin: <3>_{4n|3n,1n} = ... // 10th bin: ---- EMPTY ---- // 11th bin: <4>_{1n,1n|1n,1n} = four1n1n1n1nW1W1W1W1 = // 12th bin: <4>_{2n,1n|2n,1n} = ... // 13th bin: <4>_{2n,2n|2n,2n} = ... // 14th bin: <4>_{3n|1n,1n,1n} = ... // 15th bin: <4>_{3n,1n|3n,1n} = ... // 16th bin: <4>_{3n,1n|2n,2n} = ... // 17th bin: <4>_{4n|2n,1n,1n} = ... // 18th bin: ---- EMPTY ---- // 19th bin: <5>_{2n|1n,1n,1n,1n} = ... // 20th bin: <5>_{2n,2n|2n,1n,1n} = ... // 21st bin: <5>_{3n,1n|2n,1n,1n} = ... // 22nd bin: <5>_{4n|1n,1n,1n,1n} = ... // 23rd bin: ---- EMPTY ---- // 24th bin: <6>_{1n,1n,1n|1n,1n,1n} = ... // 25th bin: <6>_{2n,1n,1n|2n,1n,1n} = ... // 26th bin: <6>_{2n,2n|1n,1n,1n,1n} = ... // 27th bin: <6>_{3n,1n|1n,1n,1n,1n} = ... // 28th bin: ---- EMPTY ---- // 29th bin: <7>_{2n,1n,1n|1n,1n,1n,1n} = ... // 30th bin: ---- EMPTY ---- // 31st bin: <8>_{1n,1n,1n,1n|1n,1n,1n,1n} = ... // Remark 2: When particle weights are used there are some extra correlations. They are stored in // fIntFlowExtraCorrelationsPro binning of which is organized as follows: // 1st bin: two1n1nW3W1 = // 2nd bin: two1n1nW1W1W2 = // multiplicity (number of particles used to determine the reaction plane) Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n1k = (*fReQ)(0,1); Double_t dReQ2n2k = (*fReQ)(1,2); Double_t dReQ3n3k = (*fReQ)(2,3); Double_t dReQ4n4k = (*fReQ)(3,4); Double_t dReQ1n3k = (*fReQ)(0,3); Double_t dImQ1n1k = (*fImQ)(0,1); Double_t dImQ2n2k = (*fImQ)(1,2); Double_t dImQ3n3k = (*fImQ)(2,3); Double_t dImQ4n4k = (*fImQ)(3,4); Double_t dImQ1n3k = (*fImQ)(0,3); // dMs are variables introduced in order to simplify some Eqs. bellow: //.............................................................................................. Double_t dM11 = (*fSpk)(1,1)-(*fSpk)(0,2); // dM11 = sum_{i,j=1,i!=j}^M w_i w_j Double_t dM22 = (*fSpk)(1,2)-(*fSpk)(0,4); // dM22 = sum_{i,j=1,i!=j}^M w_i^2 w_j^2 Double_t dM33 = (*fSpk)(1,3)-(*fSpk)(0,6); // dM33 = sum_{i,j=1,i!=j}^M w_i^3 w_j^3 Double_t dM44 = (*fSpk)(1,4)-(*fSpk)(0,8); // dM44 = sum_{i,j=1,i!=j}^M w_i^4 w_j^4 Double_t dM31 = (*fSpk)(0,3)*(*fSpk)(0,1)-(*fSpk)(0,4); // dM31 = sum_{i,j=1,i!=j}^M w_i^3 w_j Double_t dM211 = (*fSpk)(0,2)*(*fSpk)(1,1)-2.*(*fSpk)(0,3)*(*fSpk)(0,1) - (*fSpk)(1,2)+2.*(*fSpk)(0,4); // dM211 = sum_{i,j,k=1,i!=j!=k}^M w_i^2 w_j w_k Double_t dM1111 = (*fSpk)(3,1)-6.*(*fSpk)(0,2)*(*fSpk)(1,1) + 8.*(*fSpk)(0,3)*(*fSpk)(0,1) + 3.*(*fSpk)(1,2)-6.*(*fSpk)(0,4); // dM1111 = sum_{i,j,k,l=1,i!=j!=k!=l}^M w_i w_j w_k w_l //.............................................................................................. // 2-particle correlations: Double_t two1n1nW1W1 = 0.; // Double_t two2n2nW2W2 = 0.; // Double_t two3n3nW3W3 = 0.; // Double_t two4n4nW4W4 = 0.; // if(dMult>1) { if(dM11) { two1n1nW1W1 = (pow(dReQ1n1k,2)+pow(dImQ1n1k,2)-(*fSpk)(0,2))/dM11; // average correlation for single event: fIntFlowCorrelationsEBE->SetBinContent(1,two1n1nW1W1); fIntFlowEventWeightsForCorrelationsEBE->SetBinContent(1,dM11); // average correlation for all events: fIntFlowCorrelationsPro->Fill(0.5,two1n1nW1W1,dM11); // average squared correlation for all events: fIntFlowSquaredCorrelationsPro->Fill(0.5,two1n1nW1W1*two1n1nW1W1,dM11); fIntFlowCorrelationsAllPro->Fill(0.5,two1n1nW1W1,dM11); } if(dM22) { two2n2nW2W2 = (pow(dReQ2n2k,2)+pow(dImQ2n2k,2)-(*fSpk)(0,4))/dM22; // ... // average correlation for all events: fIntFlowCorrelationsAllPro->Fill(1.5,two2n2nW2W2,dM22); } if(dM33) { two3n3nW3W3 = (pow(dReQ3n3k,2)+pow(dImQ3n3k,2)-(*fSpk)(0,6))/dM33; // ... // average correlation for all events: fIntFlowCorrelationsAllPro->Fill(2.5,two3n3nW3W3,dM33); } if(dM44) { two4n4nW4W4 = (pow(dReQ4n4k,2)+pow(dImQ4n4k,2)-(*fSpk)(0,8))/dM44; // ... // average correlation for all events: fIntFlowCorrelationsAllPro->Fill(3.5,two4n4nW4W4,dM44); } } // end of if(dMult>1) // extra 2-particle correlations: Double_t two1n1nW3W1 = 0.; // Double_t two1n1nW1W1W2 = 0.; // if(dMult>1) { if(dM31) { two1n1nW3W1 = (dReQ1n3k*dReQ1n1k+dImQ1n3k*dImQ1n1k-(*fSpk)(0,4))/dM31; fIntFlowExtraCorrelationsPro->Fill(0.5,two1n1nW3W1,dM31); } if(dM211) { two1n1nW1W1W2 = ((*fSpk)(0,2)*(pow(dReQ1n1k,2)+pow(dImQ1n1k,2)-(*fSpk)(0,2)) - 2.*(dReQ1n3k*dReQ1n1k+dImQ1n3k*dImQ1n1k - (*fSpk)(0,4)))/dM211; fIntFlowExtraCorrelationsPro->Fill(1.5,two1n1nW1W1W2,dM211); } } // end of if(dMult>1) //.............................................................................................. //.............................................................................................. // 3-particle correlations: Double_t three2n1n1nW2W1W1 = 0.; // if(dMult>2) { if(dM211) { three2n1n1nW2W1W1 = (pow(dReQ1n1k,2.)*dReQ2n2k+2.*dReQ1n1k*dImQ1n1k*dImQ2n2k-pow(dImQ1n1k,2.)*dReQ2n2k - 2.*(dReQ1n3k*dReQ1n1k+dImQ1n3k*dImQ1n1k) - pow(dReQ2n2k,2)-pow(dImQ2n2k,2) + 2.*(*fSpk)(0,4))/dM211; fIntFlowCorrelationsAllPro->Fill(5.5,three2n1n1nW2W1W1,dM211); } } // end of if(dMult>2) //.............................................................................................. //.............................................................................................. // 4-particle correlations: Double_t four1n1n1n1nW1W1W1W1 = 0.; // if(dMult>3) { if(dM1111) { four1n1n1n1nW1W1W1W1 = (pow(pow(dReQ1n1k,2.)+pow(dImQ1n1k,2.),2) - 2.*(pow(dReQ1n1k,2.)*dReQ2n2k+2.*dReQ1n1k*dImQ1n1k*dImQ2n2k-pow(dImQ1n1k,2.)*dReQ2n2k) + 8.*(dReQ1n3k*dReQ1n1k+dImQ1n3k*dImQ1n1k) + (pow(dReQ2n2k,2)+pow(dImQ2n2k,2)) - 4.*(*fSpk)(0,2)*(pow(dReQ1n1k,2)+pow(dImQ1n1k,2)) - 6.*(*fSpk)(0,4)+2.*(*fSpk)(1,2))/dM1111; // average correlation for single event: fIntFlowCorrelationsEBE->SetBinContent(2,four1n1n1n1nW1W1W1W1); fIntFlowEventWeightsForCorrelationsEBE->SetBinContent(2,dM1111); // average correlation for all events: fIntFlowCorrelationsPro->Fill(1.5,four1n1n1n1nW1W1W1W1,dM1111); // average squared correlation for all events: fIntFlowSquaredCorrelationsPro->Fill(1.5,four1n1n1n1nW1W1W1W1*four1n1n1n1nW1W1W1W1,dM1111); fIntFlowCorrelationsAllPro->Fill(10.5,four1n1n1n1nW1W1W1W1,dM1111); } } // end of if(dMult>3) //.............................................................................................. } // end of AliFlowAnalysisWithQCumulants::CalculateIntFlowCorrelationsUsingParticleWeights() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::InitializeArraysForIntFlow() { // Initialize all arrays used to calculate integrated flow. for(Int_t sc=0;sc<2;sc++) // sin or cos terms { fIntFlowCorrectionTermsForNUAEBE[sc] = NULL; fIntFlowEventWeightForCorrectionTermsForNUAEBE[sc] = NULL; fIntFlowCorrectionTermsForNUAPro[sc] = NULL; fIntFlowCorrectionTermsForNUAHist[sc] = NULL; for(Int_t ci=0;ci<4;ci++) // correction term index (to be improved - hardwired 4) { fIntFlowCorrectionTermsForNUAVsMPro[sc][ci] = NULL; } for(Int_t power=0;power<2;power++) // linear or quadratic { fIntFlowSumOfEventWeightsNUA[sc][power] = NULL; } } for(Int_t power=0;power<2;power++) // linear or quadratic { fIntFlowSumOfEventWeights[power] = NULL; } for(Int_t i=0;i<4;i++) // print on the screen the final results (0=RF, 1=RP, 2=POI, 3=RF (rebbined in M)) { fPrintFinalResults[i] = kTRUE; } for(Int_t ci=0;ci<4;ci++) // correlation index or cumulant order { fIntFlowCorrelationsVsMPro[ci] = NULL; fIntFlowSquaredCorrelationsVsMPro[ci] = NULL; fIntFlowCorrelationsVsMHist[ci] = NULL; fIntFlowQcumulantsVsM[ci] = NULL; fIntFlowVsM[ci] = NULL; fIntFlowDetectorBiasVsM[ci] = NULL; for(Int_t lc=0;lc<2;lc++) { fIntFlowSumOfEventWeightsVsM[ci][lc] = NULL; } } for(Int_t pi=0;pi<6;pi++) // product or covariance index { fIntFlowProductOfCorrelationsVsMPro[pi] = NULL; fIntFlowCovariancesVsM[pi] = NULL; fIntFlowSumOfProductOfEventWeightsVsM[pi] = NULL; } for(Int_t ci=0;ci<64;ci++) // correlation index for all correlations vs M profiles (to be improved - hardwired 64) { fIntFlowCorrelationsAllVsMPro[ci] = NULL; } } // end of void AliFlowAnalysisWithQCumulants::InitializeArraysForIntFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::InitializeArraysForDiffFlow() { // Initialize all arrays needed to calculate differential flow. // a) Initialize lists holding profiles; // b) Initialize lists holding histograms; // c) Initialize event-by-event quantities; // d) Initialize profiles; // e) Initialize histograms holding final results. // a) Initialize lists holding profiles; for(Int_t t=0;t<2;t++) // type (RP, POI) { for(Int_t pe=0;pe<2;pe++) // pt or eta { fDiffFlowCorrelationsProList[t][pe] = NULL; fDiffFlowProductOfCorrelationsProList[t][pe] = NULL; fDiffFlowCorrectionsProList[t][pe] = NULL; } // 2D: f2DDiffFlowCorrelationsProList[t] = NULL; } // b) Initialize lists holding histograms; for(Int_t t=0;t<2;t++) // type (RP, POI) { for(Int_t pe=0;pe<2;pe++) // pt or eta { fDiffFlowCorrelationsHistList[t][pe] = NULL; for(Int_t power=0;power<2;power++) { fDiffFlowSumOfEventWeightsHistList[t][pe][power] = NULL; } // end of for(Int_t power=0;power<2;power++) fDiffFlowSumOfProductOfEventWeightsHistList[t][pe] = NULL; fDiffFlowCorrectionsHistList[t][pe] = NULL; fDiffFlowCovariancesHistList[t][pe] = NULL; fDiffFlowCumulantsHistList[t][pe] = NULL; fDiffFlowDetectorBiasHistList[t][pe] = NULL; fDiffFlowHistList[t][pe] = NULL; } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // enf of for(Int_t t=0;t<2;t++) // type (RP, POI) // c) Initialize event-by-event quantities: // 1D: for(Int_t t=0;t<3;t++) // type (RP, POI, POI&&RP) { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t m=0;m<4;m++) // multiple of harmonic { for(Int_t k=0;k<9;k++) // power of weight { fReRPQ1dEBE[t][pe][m][k] = NULL; fImRPQ1dEBE[t][pe][m][k] = NULL; fs1dEBE[t][pe][k] = NULL; // to be improved (this doesn't need to be within loop over m) } } } } // 1D: for(Int_t t=0;t<2;t++) // type (RP or POI) { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAEBE[t][pe][sc][cti] = NULL; } } } } // 2D: for(Int_t t=0;t<3;t++) // type (RP, POI, POI&&RP) { for(Int_t m=0;m<4;m++) // multiple of harmonic { for(Int_t k=0;k<9;k++) // power of weight { fReRPQ2dEBE[t][m][k] = NULL; fImRPQ2dEBE[t][m][k] = NULL; fs2dEBE[t][k] = NULL; // to be improved (this doesn't need to be within loop over m) } } } // d) Initialize profiles: for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t ci=0;ci<4;ci++) // correlation index { fDiffFlowCorrelationsPro[t][pe][ci] = NULL; fDiffFlowSquaredCorrelationsPro[t][pe][ci] = NULL; } // end of for(Int_t ci=0;ci<4;ci++) for(Int_t mci1=0;mci1<8;mci1++) // mixed correlation index { for(Int_t mci2=0;mci2<8;mci2++) // mixed correlation index { fDiffFlowProductOfCorrelationsPro[t][pe][mci1][mci2] = NULL; } // end of for(Int_t mci2=0;mci2<8;mci2++) // mixed correlation index } // end of for(Int_t mci1=0;mci1<8;mci1++) // mixed correlation index // correction terms for nua: for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAPro[t][pe][sc][cti] = NULL; } } // other differential correlators: for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t ci=0;ci<1;ci++) // correction term index { fOtherDiffCorrelators[t][pe][sc][ci] = NULL; } } } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta for(Int_t ci=0;ci<4;ci++) // correlation index { f2DDiffFlowCorrelationsPro[t][ci] = NULL; } } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // e) Initialize histograms holding final results. for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t ci=0;ci<4;ci++) // correlation index { fDiffFlowCorrelationsHist[t][pe][ci] = NULL; fDiffFlowCumulants[t][pe][ci] = NULL; fDiffFlowDetectorBias[t][pe][ci] = NULL; fDiffFlow[t][pe][ci] = NULL; } // end of for(Int_t ci=0;ci<4;ci++) for(Int_t covarianceIndex=0;covarianceIndex<5;covarianceIndex++) { fDiffFlowCovariances[t][pe][covarianceIndex] = NULL; } // end of for(Int_t covarianceIndex=0;covarianceIndex<5;covarianceIndex++) // correction terms for nua: for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAHist[t][pe][sc][cti] = NULL; } } } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta for(Int_t ci=0;ci<4;ci++) // correlation index { f2DDiffFlowCumulants[t][ci] = NULL; f2DDiffFlow[t][ci] = NULL; } } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // sum of event weights for reduced correlations: for(Int_t t=0;t<2;t++) // type = RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t p=0;p<2;p++) // power of weight is 1 or 2 { for(Int_t ew=0;ew<4;ew++) // event weight index for reduced correlations { fDiffFlowSumOfEventWeights[t][pe][p][ew] = NULL; } } } } // product of event weights for both types of correlations: for(Int_t t=0;t<2;t++) // type = RP or POI { for(Int_t pe=0;pe<2;pe++) // pt or eta { for(Int_t mci1=0;mci1<8;mci1++) // mixed correlation index { for(Int_t mci2=0;mci2<8;mci2++) // mixed correlation index { fDiffFlowSumOfProductOfEventWeights[t][pe][mci1][mci2] = NULL; } } } } } // end of AliFlowAnalysisWithQCumulants::InitializeArraysForDiffFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCumulants(TString type, TString ptOrEta) { // Calculate differential flow cumulants from measured multiparticle correlations. // REMARK: Cumulants calculated in this method are NOT corrected for non-uniform acceptance. // This correction, if enabled via setter SetApplyCorrectionForNUA(Bool_t), is applied // in the method CalculateDiffFlowCumulantsCorrectedForNUA(TString type, TString ptOrEta) Int_t t = 0; Int_t pe = 0; if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } // Common: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; // Correlation <<2>>: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); Double_t twoError = fIntFlowCorrelationsHist->GetBinError(1); for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // Reduced correlations: Double_t twoPrime = fDiffFlowCorrelationsHist[t][pe][0]->GetBinContent(b); // <<2'>> Double_t twoPrimeError = fDiffFlowCorrelationsHist[t][pe][0]->GetBinError(b); // stat. error of <<2'>> Double_t fourPrime = fDiffFlowCorrelationsHist[t][pe][1]->GetBinContent(b); // <<4'>> Double_t fourPrimeError = fDiffFlowCorrelationsHist[t][pe][1]->GetBinError(b); // stat. error of <<4'>> // Covariances: Double_t wCovTwoTwoReduced = fDiffFlowCovariances[t][pe][0]->GetBinContent(b); // Cov(<2>,<2'>) * prefactor(<2>,<2'>) Double_t wCovTwoFourReduced = fDiffFlowCovariances[t][pe][1]->GetBinContent(b); // Cov(<2>,<4'>) * prefactor(<2>,<4'>) Double_t wCovTwoReducedFourReduced = fDiffFlowCovariances[t][pe][4]->GetBinContent(b); // Cov(<2'>,<4'>) * prefactor(<2'>,<4'>) // QC{2'}: Double_t qc2Prime = twoPrime; // QC{2'} Double_t qc2PrimeError = twoPrimeError; // stat. error of QC{2'} fDiffFlowCumulants[t][pe][0]->SetBinContent(b,qc2Prime); fDiffFlowCumulants[t][pe][0]->SetBinError(b,qc2PrimeError); // QC{4'}: Double_t qc4Prime = fourPrime - 2.*twoPrime*two; // QC{4'} = <<4'>> - 2*<<2'>><<2>> Double_t qc4PrimeError = 0.; // stat. error of QC{4'} Double_t qc4PrimeErrorSquared = 4.*pow(twoPrime,2.)*pow(twoError,2.) + 4.*pow(two,2.)*pow(twoPrimeError,2.) + pow(fourPrimeError,2.) + 8.*two*twoPrime*wCovTwoTwoReduced - 4.*twoPrime*wCovTwoFourReduced - 4.*two*wCovTwoReducedFourReduced; if(qc4PrimeErrorSquared>0.) { qc4PrimeError = pow(qc4PrimeErrorSquared,0.5); } fDiffFlowCumulants[t][pe][1]->SetBinContent(b,qc4Prime); fDiffFlowCumulants[t][pe][1]->SetBinError(b,qc4PrimeError); } // end of for(Int_t p=1;p<=fnBinsPt;p++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCumulants(TString type, Bool_t useParticleWeights, TString eventWeights); //======================================================================================================================= void AliFlowAnalysisWithQCumulants::Calculate2DDiffFlowCumulants(TString type) { // Calculate 2D differential cumulants. // Remark: correction for detector effects and error propagation not implemented yet for 2D differential cumulants. Int_t t = 0; if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } // Reference correlation <<2>>: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); // Looping over all (pt,eta) bins and calculating differential flow cumulants: for(Int_t p=1;p<=fnBinsPt;p++) { for(Int_t e=1;e<=fnBinsEta;e++) { // Reduced correlations: Double_t twoPrime = f2DDiffFlowCorrelationsPro[t][0]->GetBinContent(f2DDiffFlowCorrelationsPro[t][0]->GetBin(p,e)); // <<2'>>(pt,eta) Double_t fourPrime = f2DDiffFlowCorrelationsPro[t][1]->GetBinContent(f2DDiffFlowCorrelationsPro[t][1]->GetBin(p,e)); // <<4'>>(pt,eta) // Cumulants: Double_t qc2Prime = twoPrime; // QC{2'} = <<2'>> f2DDiffFlowCumulants[t][0]->SetBinContent(f2DDiffFlowCumulants[t][0]->GetBin(p,e),qc2Prime); Double_t qc4Prime = fourPrime - 2.*twoPrime*two; // QC{4'} = <<4'>> - 2*<<2'>><<2>> f2DDiffFlowCumulants[t][1]->SetBinContent(f2DDiffFlowCumulants[t][1]->GetBin(p,e),qc4Prime); } // end of for(Int_t e=1;e<=fnBinsEta;e++) } // end of for(Int_t p=1;p<=fnBinsPt;p++) } // end of void AliFlowAnalysisWithQCumulants::Calculate2DDiffFlowCumulants(TString type) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateFinalResultsForRPandPOIIntegratedFlow(TString type) { // Calculate final results for integrated flow of RPs and POIs. // to be improved - check if the integrated flow calculation here is actually correct Int_t t = 0; // RP = 0, POI = 1 if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } // pt yield: TH1F *yield2ndPt = NULL; TH1F *yield4thPt = NULL; TH1F *yield6thPt = NULL; TH1F *yield8thPt = NULL; if(type == "POI") { if(fFillMultipleControlHistograms) { yield2ndPt = (TH1F*)(fCommonHists2nd->GetHistPtPOI())->Clone(); yield4thPt = (TH1F*)(fCommonHists4th->GetHistPtPOI())->Clone(); yield6thPt = (TH1F*)(fCommonHists6th->GetHistPtPOI())->Clone(); yield8thPt = (TH1F*)(fCommonHists8th->GetHistPtPOI())->Clone(); } else { yield2ndPt = (TH1F*)(fCommonHists->GetHistPtPOI())->Clone(); yield4thPt = (TH1F*)(fCommonHists->GetHistPtPOI())->Clone(); yield6thPt = (TH1F*)(fCommonHists->GetHistPtPOI())->Clone(); yield8thPt = (TH1F*)(fCommonHists->GetHistPtPOI())->Clone(); } } else if(type == "RP") { if(fFillMultipleControlHistograms) { yield2ndPt = (TH1F*)(fCommonHists2nd->GetHistPtRP())->Clone(); yield4thPt = (TH1F*)(fCommonHists4th->GetHistPtRP())->Clone(); yield6thPt = (TH1F*)(fCommonHists6th->GetHistPtRP())->Clone(); yield8thPt = (TH1F*)(fCommonHists8th->GetHistPtRP())->Clone(); } else { yield2ndPt = (TH1F*)(fCommonHists->GetHistPtRP())->Clone(); yield4thPt = (TH1F*)(fCommonHists->GetHistPtRP())->Clone(); yield6thPt = (TH1F*)(fCommonHists->GetHistPtRP())->Clone(); yield8thPt = (TH1F*)(fCommonHists->GetHistPtRP())->Clone(); } } if(!yield2ndPt){return;} if(!yield4thPt){return;} if(!yield6thPt){return;} if(!yield8thPt){return;} Int_t nBinsPt = yield2ndPt->GetNbinsX(); TH1D *flow2ndPt = NULL; TH1D *flow4thPt = NULL; TH1D *flow6thPt = NULL; TH1D *flow8thPt = NULL; // to be improved (hardwired pt index) flow2ndPt = (TH1D*)fDiffFlow[t][0][0]->Clone(); flow4thPt = (TH1D*)fDiffFlow[t][0][1]->Clone(); flow6thPt = (TH1D*)fDiffFlow[t][0][2]->Clone(); flow8thPt = (TH1D*)fDiffFlow[t][0][3]->Clone(); if(!flow2ndPt){return;} if(!flow4thPt){return;} if(!flow6thPt){return;} if(!flow8thPt){return;} Double_t dvn2nd = 0., dvn4th = 0., dvn6th = 0., dvn8th = 0.; // differential flow Double_t dErrvn2nd = 0., dErrvn4th = 0., dErrvn6th = 0., dErrvn8th = 0.; // error on differential flow Double_t dVn2nd = 0., dVn4th = 0., dVn6th = 0., dVn8th = 0.; // integrated flow Double_t dErrVn2nd = 0., dErrVn4th = 0., dErrVn6th = 0., dErrVn8th = 0.; // error on integrated flow Double_t dYield2nd = 0., dYield4th = 0., dYield6th = 0., dYield8th = 0.; // pt yield Double_t dSum2nd = 0., dSum4th = 0., dSum6th = 0., dSum8th = 0.; // needed for normalizing integrated flow // looping over pt bins: for(Int_t p=1;pGetBinContent(p); dvn4th = flow4thPt->GetBinContent(p); dvn6th = flow6thPt->GetBinContent(p); dvn8th = flow8thPt->GetBinContent(p); dErrvn2nd = flow2ndPt->GetBinError(p); dErrvn4th = flow4thPt->GetBinError(p); dErrvn6th = flow6thPt->GetBinError(p); dErrvn8th = flow8thPt->GetBinError(p); dYield2nd = yield2ndPt->GetBinContent(p); dYield4th = yield4thPt->GetBinContent(p); dYield6th = yield6thPt->GetBinContent(p); dYield8th = yield8thPt->GetBinContent(p); dVn2nd += dvn2nd*dYield2nd; dVn4th += dvn4th*dYield4th; dVn6th += dvn6th*dYield6th; dVn8th += dvn8th*dYield8th; dSum2nd += dYield2nd; dSum4th += dYield4th; dSum6th += dYield6th; dSum8th += dYield8th; dErrVn2nd += dYield2nd*dYield2nd*dErrvn2nd*dErrvn2nd; // ro be improved (check this relation) dErrVn4th += dYield4th*dYield4th*dErrvn4th*dErrvn4th; dErrVn6th += dYield6th*dYield6th*dErrvn6th*dErrvn6th; dErrVn8th += dYield8th*dYield8th*dErrvn8th*dErrvn8th; } // end of for(Int_t p=1;pFillIntegratedFlowPOI(dVn2nd,dErrVn2nd); fCommonHistsResults4th->FillIntegratedFlowPOI(dVn4th,dErrVn4th); fCommonHistsResults6th->FillIntegratedFlowPOI(dVn6th,0.); // to be improved (errors) fCommonHistsResults8th->FillIntegratedFlowPOI(dVn8th,0.); // to be improved (errors) } else if (type == "RP") { fCommonHistsResults2nd->FillIntegratedFlowRP(dVn2nd,dErrVn2nd); fCommonHistsResults4th->FillIntegratedFlowRP(dVn4th,dErrVn4th); fCommonHistsResults6th->FillIntegratedFlowRP(dVn6th,0.); // to be improved (errors) fCommonHistsResults8th->FillIntegratedFlowRP(dVn8th,0.); // to be improved (errors) } delete flow2ndPt; delete flow4thPt; //delete flow6thPt; //delete flow8thPt; delete yield2ndPt; delete yield4thPt; delete yield6thPt; delete yield8thPt; } // end of AliFlowAnalysisWithQCumulants::CalculateFinalResultsForRPandPOIIntegratedFlow(TString type) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::InitializeArraysForDistributions() { // Initialize all arrays used for distributions. // a) Initialize arrays of histograms used to hold distributions of correlations; // b) Initialize array to hold min and max values of correlations. // a) Initialize arrays of histograms used to hold distributions of correlations: for(Int_t di=0;di<4;di++) // distribution index { fDistributions[di] = NULL; } // b) Initialize default min and max values of correlations: // (Remark: The default values bellow were chosen for v2=5% and M=500) fMinValueOfCorrelation[0] = -0.01; // <2>_min fMaxValueOfCorrelation[0] = 0.04; // <2>_max fMinValueOfCorrelation[1] = -0.00002; // <4>_min fMaxValueOfCorrelation[1] = 0.00015; // <4>_max fMinValueOfCorrelation[2] = -0.0000003; // <6>_min fMaxValueOfCorrelation[2] = 0.0000006; // <6>_max fMinValueOfCorrelation[3] = -0.000000006; // <8>_min fMaxValueOfCorrelation[3] = 0.000000003; // <8>_max } // end of void AliFlowAnalysisWithQCumulants::InitializeArraysForDistributions() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::InitializeArraysForVarious() { // Initialize all arrays used for various unclassified objects. for(Int_t p=0;p<4;p++) // [v_min,v_max,refMult_min,refMult_max] { fPhiDistributionForOneEventSettings[p] = 0.; } } // end of void AliFlowAnalysisWithQCumulants::InitializeArraysForVarious() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookEverythingForDistributions() { // a) Book profile to hold all flags for distributions of correlations; // b) Book all histograms to hold distributions of correlations. TString correlationIndex[4] = {"<2>","<4>","<6>","<8>"}; // to be improved (should I promote this to data members?) // a) Book profile to hold all flags for distributions of correlations: TString distributionsFlagsName = "fDistributionsFlags"; distributionsFlagsName += fAnalysisLabel->Data(); fDistributionsFlags = new TProfile(distributionsFlagsName.Data(),"Flags for Distributions of Correlations",9,0,9); fDistributionsFlags->SetTickLength(-0.01,"Y"); fDistributionsFlags->SetMarkerStyle(25); fDistributionsFlags->SetLabelSize(0.05); fDistributionsFlags->SetLabelOffset(0.02,"Y"); fDistributionsFlags->SetStats(kFALSE); fDistributionsFlags->GetXaxis()->SetBinLabel(1,"Store or not?"); fDistributionsFlags->GetXaxis()->SetBinLabel(2,"<2>_{min}"); fDistributionsFlags->GetXaxis()->SetBinLabel(3,"<2>_{max}"); fDistributionsFlags->GetXaxis()->SetBinLabel(4,"<4>_{min}"); fDistributionsFlags->GetXaxis()->SetBinLabel(5,"<4>_{max}"); fDistributionsFlags->GetXaxis()->SetBinLabel(6,"<6>_{min}"); fDistributionsFlags->GetXaxis()->SetBinLabel(7,"<6>_{max}"); fDistributionsFlags->GetXaxis()->SetBinLabel(8,"<8>_{min}"); fDistributionsFlags->GetXaxis()->SetBinLabel(9,"<8>_{max}"); fDistributionsList->Add(fDistributionsFlags); // b) Book all histograms to hold distributions of correlations. if(fStoreDistributions) { TString distributionsName = "fDistributions"; distributionsName += fAnalysisLabel->Data(); for(Int_t di=0;di<4;di++) // distribution index { fDistributions[di] = new TH1D(Form("Distribution of %s",correlationIndex[di].Data()),Form("Distribution of %s",correlationIndex[di].Data()),10000,fMinValueOfCorrelation[di],fMaxValueOfCorrelation[di]); fDistributions[di]->SetXTitle(correlationIndex[di].Data()); fDistributionsList->Add(fDistributions[di]); } // end of for(Int_t di=0;di<4;di++) // distribution index } // end of if(fStoreDistributions) } // end of void AliFlowAnalysisWithQCumulants::BookEverythingForDistributions() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookEverythingForVarious() { // Book all objects for various unclassified quantities. if(!fStorePhiDistributionForOneEvent){return;} // a) Book histogram holding phi distribution for single event to illustrate flow. // a) Book histogram holding phi distribution for single event to illustrate flow: fPhiDistributionForOneEvent = new TH1D("fPhiDistributionForOneEvent","",360,0.,TMath::TwoPi()); fPhiDistributionForOneEvent->GetXaxis()->SetTitle("#phi"); fVariousList->Add(fPhiDistributionForOneEvent); } // end of void AliFlowAnalysisWithQCumulants::BookEverythingForVarious() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::StoreFlagsForDistributions() { // Store all flags for distributiuons of correlations in profile fDistributionsFlags. if(!fDistributionsFlags) { cout<<"WARNING: fDistributionsFlags is NULL in AFAWQC::SDF() !!!!"<Fill(0.5,(Int_t)fStoreDistributions); // histos with distributions of correlations stored or not in the output file // store min and max values of correlations: for(Int_t di=0;di<4;di++) // distribution index { fDistributionsFlags->Fill(1.5+2.*(Double_t)di,fMinValueOfCorrelation[di]); fDistributionsFlags->Fill(2.5+2.*(Double_t)di,fMaxValueOfCorrelation[di]); } } // end of void AliFlowAnalysisWithQCumulants::StoreFlagsForDistributions() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::StoreDistributionsOfCorrelations() { // Store distributions of correlations. if(!(fIntFlowCorrelationsEBE && fIntFlowEventWeightsForCorrelationsEBE)) { cout<<"WARNING: fIntFlowCorrelationsEBE && fIntFlowEventWeightsForCorrelationsEBE"<SetOwner(kTRUE); fHistList->Add(fIntFlowList); // List holding profiles: fIntFlowProfiles = new TList(); fIntFlowProfiles->SetName("Profiles"); fIntFlowProfiles->SetOwner(kTRUE); fIntFlowList->Add(fIntFlowProfiles); // List holding all profiles with results for correlations vs M: if(fCalculateAllCorrelationsVsM) { fIntFlowAllCorrelationsVsM = new TList(); fIntFlowAllCorrelationsVsM->SetName("Correlations vs M"); fIntFlowAllCorrelationsVsM->SetOwner(kTRUE); fIntFlowProfiles->Add(fIntFlowAllCorrelationsVsM); } // end of if(fCalculateAllCorrelationsVsM) // List holding histograms with results: fIntFlowResults = new TList(); fIntFlowResults->SetName("Results"); fIntFlowResults->SetOwner(kTRUE); fIntFlowList->Add(fIntFlowResults); // b) Book and nest lists for differential flow: this->BookAndNestListsForDifferentialFlow(); // c) Book and nest list for particle weights: fWeightsList->SetName("Weights"); fWeightsList->SetOwner(kTRUE); fHistList->Add(fWeightsList); // d) Book and nest list for distributions: fDistributionsList = new TList(); fDistributionsList->SetName("Distributions"); fDistributionsList->SetOwner(kTRUE); fHistList->Add(fDistributionsList); // e) Book and nest list for various unclassified objects: if(fStorePhiDistributionForOneEvent) { fVariousList = new TList(); fVariousList->SetName("Various"); fVariousList->SetOwner(kTRUE); fHistList->Add(fVariousList); } // f) Book and nest list for other differential correlators: fOtherDiffCorrelatorsList = new TList(); fOtherDiffCorrelatorsList->SetName("Other differential correlators"); fOtherDiffCorrelatorsList->SetOwner(kTRUE); if(fCalculateDiffFlow){fHistList->Add(fOtherDiffCorrelatorsList);} // TBI: Use another flag here instead of fCalculateDiffFlow // g) Book and nest list for nested loops: fNestedLoopsList = new TList(); fNestedLoopsList->SetName("Nested Loops"); fNestedLoopsList->SetOwner(kTRUE); fHistList->Add(fNestedLoopsList); // h) Book and nest lists for mixed harmonics: // Base list for mixed harmonics: fMixedHarmonicsList = new TList(); fMixedHarmonicsList->SetName("Mixed Harmonics"); fMixedHarmonicsList->SetOwner(kTRUE); fHistList->Add(fMixedHarmonicsList); // List holding profiles: fMixedHarmonicsProfiles = new TList(); fMixedHarmonicsProfiles->SetName("Profiles"); fMixedHarmonicsProfiles->SetOwner(kTRUE); if(fCalculateMixedHarmonics){fMixedHarmonicsList->Add(fMixedHarmonicsProfiles);} // List holding histograms with results: fMixedHarmonicsResults = new TList(); fMixedHarmonicsResults->SetName("Results"); fMixedHarmonicsResults->SetOwner(kTRUE); if(fCalculateMixedHarmonics){fMixedHarmonicsList->Add(fMixedHarmonicsResults);} // List holding objects for statistical error propagation of mixed harmonics: fMixedHarmonicsErrorPropagation = new TList(); fMixedHarmonicsErrorPropagation->SetName("Error Propagation"); fMixedHarmonicsErrorPropagation->SetOwner(kTRUE); if(fCalculateMixedHarmonics){fMixedHarmonicsList->Add(fMixedHarmonicsErrorPropagation);} // i) Book and nest lists for control histograms: // Base list for mixed harmonics: fControlHistogramsList = new TList(); fControlHistogramsList->SetName("Control Histograms"); fControlHistogramsList->SetOwner(kTRUE); fHistList->Add(fControlHistogramsList); } // end of void AliFlowAnalysisWithQCumulants::BookAndNestAllLists() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookAndNestListsForDifferentialFlow() { // Book and nest lists for differential flow. // Base list for differential flow objects: fDiffFlowList = new TList(); fDiffFlowList->SetName("Differential Flow"); fDiffFlowList->SetOwner(kTRUE); fHistList->Add(fDiffFlowList); // Local flags: TString typeFlag[2] = {"RP","POI"}; TString ptEtaFlag[2] = {"p_{T}","#eta"}; TString powerFlag[2] = {"linear","quadratic"}; // 2D: if(fCalculate2DDiffFlow) { fDiffFlow2D = new TList(); fDiffFlow2D->SetName("2D"); fDiffFlow2D->SetOwner(kTRUE); fDiffFlowList->Add(fDiffFlow2D); for(Int_t t=0;t<2;t++) { f2DDiffFlowCorrelationsProList[t] = new TList(); f2DDiffFlowCorrelationsProList[t]->SetOwner(kTRUE); f2DDiffFlowCorrelationsProList[t]->SetName(Form("Profiles with 2D correlations (%s)",typeFlag[t].Data())); fDiffFlow2D->Add(f2DDiffFlowCorrelationsProList[t]); } // end of for(Int_t t=0;t<2;t++) } // end of if(fCalculate2DDiffFlow) // What follows bellow in this method is relevant only for 1D differential flow: if(!fCalculateDiffFlow){return;} // List holding profiles: fDiffFlowProfiles = new TList(); fDiffFlowProfiles->SetName("Profiles"); fDiffFlowProfiles->SetOwner(kTRUE); fDiffFlowList->Add(fDiffFlowProfiles); // List holding histograms with results: fDiffFlowResults = new TList(); fDiffFlowResults->SetName("Results"); fDiffFlowResults->SetOwner(kTRUE); fDiffFlowList->Add(fDiffFlowResults); // Flags used for naming nested lists in list fDiffFlowProfiles and fDiffFlowResults: TList list; list.SetOwner(kTRUE); // Nested lists in fDiffFlowProfiles (~/Differential Flow/Profiles): for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { // list holding profiles with correlations: fDiffFlowCorrelationsProList[t][pe] = (TList*)list.Clone(); fDiffFlowCorrelationsProList[t][pe]->SetName(Form("Profiles with correlations (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowProfiles->Add(fDiffFlowCorrelationsProList[t][pe]); // list holding profiles with products of correlations: fDiffFlowProductOfCorrelationsProList[t][pe] = (TList*)list.Clone(); fDiffFlowProductOfCorrelationsProList[t][pe]->SetName(Form("Profiles with products of correlations (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowProfiles->Add(fDiffFlowProductOfCorrelationsProList[t][pe]); // list holding profiles with corrections: fDiffFlowCorrectionsProList[t][pe] = (TList*)list.Clone(); fDiffFlowCorrectionsProList[t][pe]->SetName(Form("Profiles with correction terms for NUA (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowProfiles->Add(fDiffFlowCorrectionsProList[t][pe]); } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // nested lists in fDiffFlowResults (~/Differential Flow/Results): for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { // list holding histograms with correlations: fDiffFlowCorrelationsHistList[t][pe] = (TList*)list.Clone(); fDiffFlowCorrelationsHistList[t][pe]->SetName(Form("Correlations (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowCorrelationsHistList[t][pe]); // list holding histograms with corrections: fDiffFlowCorrectionsHistList[t][pe] = (TList*)list.Clone(); fDiffFlowCorrectionsHistList[t][pe]->SetName(Form("Histograms with correction terms for NUA (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowCorrectionsHistList[t][pe]); for(Int_t power=0;power<2;power++) { // list holding histograms with sums of event weights: fDiffFlowSumOfEventWeightsHistList[t][pe][power] = (TList*)list.Clone(); fDiffFlowSumOfEventWeightsHistList[t][pe][power]->SetName(Form("Sum of %s event weights (%s, %s)",powerFlag[power].Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowSumOfEventWeightsHistList[t][pe][power]); } // end of for(Int_t power=0;power<2;power++) // list holding histograms with sums of products of event weights: fDiffFlowSumOfProductOfEventWeightsHistList[t][pe] = (TList*)list.Clone(); fDiffFlowSumOfProductOfEventWeightsHistList[t][pe]->SetName(Form("Sum of products of event weights (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowSumOfProductOfEventWeightsHistList[t][pe]); // list holding histograms with covariances of correlations: fDiffFlowCovariancesHistList[t][pe] = (TList*)list.Clone(); fDiffFlowCovariancesHistList[t][pe]->SetName(Form("Covariances of correlations (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowCovariancesHistList[t][pe]); // list holding histograms with differential Q-cumulants: fDiffFlowCumulantsHistList[t][pe] = (TList*)list.Clone(); fDiffFlowCumulantsHistList[t][pe]->SetName(Form("Differential Q-cumulants (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowCumulantsHistList[t][pe]); // list holding histograms which quantify detector bias to differential Q-cumulants: fDiffFlowDetectorBiasHistList[t][pe] = (TList*)list.Clone(); fDiffFlowDetectorBiasHistList[t][pe]->SetName(Form("Detector bias (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowDetectorBiasHistList[t][pe]); // list holding histograms with differential flow estimates from Q-cumulants: fDiffFlowHistList[t][pe] = (TList*)list.Clone(); fDiffFlowHistList[t][pe]->SetName(Form("Differential flow (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data())); fDiffFlowResults->Add(fDiffFlowHistList[t][pe]); } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI } // end of void AliFlowAnalysisWithQCumulants::BookAndNestListsForDifferentialFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FillCommonHistResultsDiffFlow(TString type) { // Fill common result histograms for differential flow. Int_t t = 0; if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } // to be improved - check all pointers used in this method if(!(fCommonHistsResults2nd && fCommonHistsResults4th && fCommonHistsResults6th && fCommonHistsResults8th)) { cout<<"WARNING: fCommonHistsResults2nd && fCommonHistsResults4th && fCommonHistsResults6th && fCommonHistsResults8th"<GetBinContent(p); Double_t v4 = fDiffFlow[t][0][1]->GetBinContent(p); Double_t v6 = fDiffFlow[t][0][2]->GetBinContent(p); Double_t v8 = fDiffFlow[t][0][3]->GetBinContent(p); Double_t v2Error = fDiffFlow[t][0][0]->GetBinError(p); Double_t v4Error = fDiffFlow[t][0][1]->GetBinError(p); //Double_t v6Error = fFinalFlow1D[t][pW][nua][0][2]->GetBinError(p); //Double_t v8Error = fFinalFlow1D[t][pW][nua][0][3]->GetBinError(p); if(type == "RP") { fCommonHistsResults2nd->FillDifferentialFlowPtRP(p,v2,v2Error); fCommonHistsResults4th->FillDifferentialFlowPtRP(p,v4,v4Error); fCommonHistsResults6th->FillDifferentialFlowPtRP(p,v6,0.); fCommonHistsResults8th->FillDifferentialFlowPtRP(p,v8,0.); } else if(type == "POI") { fCommonHistsResults2nd->FillDifferentialFlowPtPOI(p,v2,v2Error); fCommonHistsResults4th->FillDifferentialFlowPtPOI(p,v4,v4Error); fCommonHistsResults6th->FillDifferentialFlowPtPOI(p,v6,0.); fCommonHistsResults8th->FillDifferentialFlowPtPOI(p,v8,0.); } } // end of for(Int_t p=1;p<=fnBinsPt;p++) // eta: if(!fCalculateDiffFlowVsEta){return;} for(Int_t e=1;e<=fnBinsEta;e++) { Double_t v2 = fDiffFlow[t][1][0]->GetBinContent(e); Double_t v4 = fDiffFlow[t][1][1]->GetBinContent(e); Double_t v6 = fDiffFlow[t][1][2]->GetBinContent(e); Double_t v8 = fDiffFlow[t][1][3]->GetBinContent(e); Double_t v2Error = fDiffFlow[t][1][0]->GetBinError(e); Double_t v4Error = fDiffFlow[t][1][1]->GetBinError(e); //Double_t v6Error = fDiffFlow[t][1][2]->GetBinError(e); //Double_t v8Error = fDiffFlow[t][1][3]->GetBinError(e); if(type == "RP") { fCommonHistsResults2nd->FillDifferentialFlowEtaRP(e,v2,v2Error); fCommonHistsResults4th->FillDifferentialFlowEtaRP(e,v4,v4Error); fCommonHistsResults6th->FillDifferentialFlowEtaRP(e,v6,0.); fCommonHistsResults8th->FillDifferentialFlowEtaRP(e,v8,0.); } else if(type == "POI") { fCommonHistsResults2nd->FillDifferentialFlowEtaPOI(e,v2,v2Error); fCommonHistsResults4th->FillDifferentialFlowEtaPOI(e,v4,v4Error); fCommonHistsResults6th->FillDifferentialFlowEtaPOI(e,v6,0.); fCommonHistsResults8th->FillDifferentialFlowEtaPOI(e,v8,0.); } } // end of for(Int_t e=1;e<=fnBinsEta;e++) } // end of void AliFlowAnalysisWithQCumulants::FillCommonHistResultsDiffFlow(TString type, Bool_t useParticleWeights, TString eventWeights, Bool_t correctedForNUA) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CommonConstants(TString method) { // Access and store common constants. // a) If this method was called in Init() access common constants from AliFlowCommonConstants; // b) If this method was called in Init() book and fill TProfile to hold constants accessed in a); // c) If this method was called in Finish() access common constants from TProfile booked and filled in b). if(method == "Init") { // a) If this method was called in Init() access common constants from AliFlowCommonConstants: fnBinsPhi = AliFlowCommonConstants::GetMaster()->GetNbinsPhi(); fPhiMin = AliFlowCommonConstants::GetMaster()->GetPhiMin(); fPhiMax = AliFlowCommonConstants::GetMaster()->GetPhiMax(); if(fnBinsPhi){fPhiBinWidth = (fPhiMax-fPhiMin)/fnBinsPhi;} fnBinsPt = AliFlowCommonConstants::GetMaster()->GetNbinsPt(); fPtMin = AliFlowCommonConstants::GetMaster()->GetPtMin(); fPtMax = AliFlowCommonConstants::GetMaster()->GetPtMax(); if(fnBinsPt){fPtBinWidth = (fPtMax-fPtMin)/fnBinsPt;} fnBinsEta = AliFlowCommonConstants::GetMaster()->GetNbinsEta(); fEtaMin = AliFlowCommonConstants::GetMaster()->GetEtaMin(); fEtaMax = AliFlowCommonConstants::GetMaster()->GetEtaMax(); if(fnBinsEta){fEtaBinWidth = (fEtaMax-fEtaMin)/fnBinsEta;} // b) If this method was called in Init() book and fill TProfile to hold constants accessed in a): TString fCommonConstantsName = "fCommonConstants"; fCommonConstantsName += fAnalysisLabel->Data(); fCommonConstants = new TProfile(fCommonConstantsName.Data(),"Common constants",9,0.,9.); fCommonConstants->SetLabelSize(0.05); fCommonConstants->GetXaxis()->SetBinLabel(1,"nBins (#phi)"); fCommonConstants->Fill(0.5,fnBinsPhi); fCommonConstants->GetXaxis()->SetBinLabel(2,"#phi_{min}"); fCommonConstants->Fill(1.5,fPhiMin); fCommonConstants->GetXaxis()->SetBinLabel(3,"#phi_{max}"); fCommonConstants->Fill(2.5,fPhiMax); fCommonConstants->GetXaxis()->SetBinLabel(4,"nBins (p_{t})"); fCommonConstants->Fill(3.5,fnBinsPt); fCommonConstants->GetXaxis()->SetBinLabel(5,"(p_{t})_{min}"); fCommonConstants->Fill(4.5,fPtMin); fCommonConstants->GetXaxis()->SetBinLabel(6,"(p_{t})_{max}"); fCommonConstants->Fill(5.5,fPtMax); fCommonConstants->GetXaxis()->SetBinLabel(7,"nBins (#eta)"); fCommonConstants->Fill(6.5,fnBinsEta); fCommonConstants->GetXaxis()->SetBinLabel(8,"#eta_{min}"); fCommonConstants->Fill(7.5,fEtaMin); fCommonConstants->GetXaxis()->SetBinLabel(9,"#eta_{max}"); fCommonConstants->Fill(8.5,fEtaMax); fHistList->Add(fCommonConstants); } // end of if(method == "Init") else if(method == "Finish") { // c) If this method was called in Finish() access common constants from TProfile booked and filled in b): if(!fCommonConstants) { printf("\n WARNING (QC): fCommonConstants is NULL in AFAWQC::AC(\"%s\") !!!!\n\n",method.Data()); exit(0); } fnBinsPhi = (Int_t)fCommonConstants->GetBinContent(1); fPhiMin = fCommonConstants->GetBinContent(2); fPhiMax = fCommonConstants->GetBinContent(3); if(fnBinsPhi){fPhiBinWidth = (fPhiMax-fPhiMin)/fnBinsPhi;} fnBinsPt = (Int_t)fCommonConstants->GetBinContent(4); fPtMin = fCommonConstants->GetBinContent(5); fPtMax = fCommonConstants->GetBinContent(6); if(fnBinsPt){fPtBinWidth = (fPtMax-fPtMin)/fnBinsPt;} fnBinsEta = (Int_t)fCommonConstants->GetBinContent(7); fEtaMin = fCommonConstants->GetBinContent(8); fEtaMax = fCommonConstants->GetBinContent(9); if(fnBinsEta){fEtaBinWidth = (fEtaMax-fEtaMin)/fnBinsEta;} } // end of else if(method == "Finish") } // end of void AliFlowAnalysisWithQCumulants::CommonConstants(TString method) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CrossCheckSettings() { // a) Cross-check if the choice for multiplicity weights make sense; // b) Cross-check if the choice for multiplicity itself make sense. // a) Cross-check if the choice for multiplicity weights make sense: if((!fMultiplicityWeight->Contains("combinations")) && (!fMultiplicityWeight->Contains("unit")) && (!fMultiplicityWeight->Contains("multiplicity")) ) { cout<<"WARNING (QC): Multiplicity weight can be either \"combinations\", \"unit\""<Data()<<"\"."<Fill(ci+0.5,pow(fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci+1),p+1)); if(fCalculateCumulantsVsM) { fIntFlowSumOfEventWeightsVsM[ci][p]->Fill(dMultiplicityBin,pow(fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci+1),p+1)); // to be improved: dMult => sum of weights? } } } } // end of void AliFlowAnalysisWithQCumulants::CalculateIntFlowSumOfEventWeights() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowSumOfEventWeightsNUA() { // Calculate sum of linear and quadratic event weights for NUA terms. for(Int_t sc=0;sc<2;sc++) // sin or cos terms { for(Int_t p=0;p<2;p++) // power-1 { for(Int_t ci=0;ci<4;ci++) // nua term index { fIntFlowSumOfEventWeightsNUA[sc][p]->Fill(ci+0.5,pow(fIntFlowEventWeightForCorrectionTermsForNUAEBE[sc]->GetBinContent(ci+1),p+1)); } } } } // end of void AliFlowAnalysisWithQCumulants::CalculateIntFlowSumOfEventWeightsNUA() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowSumOfProductOfEventWeights() { // Calculate sum of product of event weights for correlations. // TBI re-think what is the right multiplicity when particle weights are used! // Multiplicity bin of an event (relevant for all histos vs M): Double_t dMultiplicityBin = 0.; if(fMultiplicityIs==AliFlowCommonConstants::kRP) { dMultiplicityBin = fNumberOfRPsEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { dMultiplicityBin = fReferenceMultiplicityEBE+0.5; } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { dMultiplicityBin = fNumberOfPOIsEBE+0.5; } Int_t counter = 0; for(Int_t ci1=1;ci1<4;ci1++) { for(Int_t ci2=ci1+1;ci2<=4;ci2++) { fIntFlowSumOfProductOfEventWeights->Fill(0.5+counter, fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci1)* fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci2)); if(fCalculateCumulantsVsM) { fIntFlowSumOfProductOfEventWeightsVsM[counter]->Fill(dMultiplicityBin, // to be improved: dMult => sum of weights? fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci1)* fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(ci2)); } // end of if(fCalculateCumulantsVsM) counter++; } } } // end of void AliFlowAnalysisWithQCumulants::CalculateIntFlowSumOfProductOfEventWeights() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateIntFlowSumOfProductOfEventWeightsNUA() { // Calculate sum of product of event weights for NUA terms. // w_{<2>} * w_{}: fIntFlowSumOfProductOfEventWeightsNUA->Fill(0.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)); // w_{<2>} * w_{}: fIntFlowSumOfProductOfEventWeightsNUA->Fill(1.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)); // w_{ * w_{}: fIntFlowSumOfProductOfEventWeightsNUA->Fill(2.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)); // w_{<2>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(3.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // w_{<2>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(4.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // w_{<2>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(5.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // w_{<2>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(6.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // w_{<4>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(7.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)); // w_{<4>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(8.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)); // w_{<4>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(9.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // w_{<4>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(10.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // w_{<4>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(11.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // w_{<4>} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(12.5,fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(13.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(14.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(15.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(16.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(17.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(18.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(19.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(20.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(1)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(21.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(22.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(23.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(24.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(25.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(2)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); // w_{} * w{} fIntFlowSumOfProductOfEventWeightsNUA->Fill(26.5,fIntFlowEventWeightForCorrectionTermsForNUAEBE[1]->GetBinContent(3)* fIntFlowEventWeightForCorrectionTermsForNUAEBE[0]->GetBinContent(3)); } // end of void AliFlowAnalysisWithQCumulants::CalculateIntFlowIntFlowSumOfProductOfEventWeightsNUA() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrelations(TString type, TString ptOrEta) { // Calculate reduced correlations for RPs or POIs for all pt and eta bins. // Multiplicity: Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); //Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); //Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); // reduced correlations are stored in fDiffFlowCorrelationsPro[0=RP,1=POI][0=pt,1=eta][correlation index]. Correlation index runs as follows: // // 0: <<2'>> // 1: <<4'>> // 2: <<6'>> // 3: <<8'>> //Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { //t = 0; } else if(type == "POI") { //t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // looping over all bins and calculating reduced correlations: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular pt or eta bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular pt or eta bin: Double_t mp = 0.; // real and imaginary parts of q_{m*n,0} (non-weighted Q-vector evaluated for particles which are both RPs and POIs in particular pt or eta bin): Double_t q1n0kRe = 0.; Double_t q1n0kIm = 0.; Double_t q2n0kRe = 0.; Double_t q2n0kIm = 0.; // number of particles which are both RPs and POIs in particular pt or eta bin: Double_t mq = 0.; if(type == "POI") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[2][pe][0][0]->GetBinContent(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[2][pe][0][0]->GetBinContent(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][0][0]->GetBinEntries(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[2][pe][1][0]->GetBinContent(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][0]->GetBinEntries(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[2][pe][1][0]->GetBinContent(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][0]->GetBinEntries(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } else if(type == "RP") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[0][pe][1][0]->GetBinContent(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][0]->GetBinEntries(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[0][pe][1][0]->GetBinContent(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][0]->GetBinEntries(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)); mq = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } if(type == "POI") { // p_{m*n,0}: p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) //t = 1; // typeFlag = RP or POI } else if(type == "RP") { // p_{m*n,0} = q_{m*n,0}: p1n0kRe = q1n0kRe; p1n0kIm = q1n0kIm; mp = mq; //t = 0; // typeFlag = RP or POI } // 2'-particle correlation for particular pt or eta bin: Double_t two1n1nPtEta = 0.; Double_t mWeight2pPrime = 0.; // multiplicity weight for <2'> if(mp*dMult-mq) { two1n1nPtEta = (p1n0kRe*dReQ1n+p1n0kIm*dImQ1n-mq) / (mp*dMult-mq); // determine multiplicity weight: if(fMultiplicityWeight->Contains("combinations")) { mWeight2pPrime = mp*dMult-mq; } else if(fMultiplicityWeight->Contains("unit")) { mWeight2pPrime = 1.; } if(type == "POI") // to be improved (I do not this if) { // fill profile to get <<2'>> for POIs fDiffFlowCorrelationsPro[1][pe][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],two1n1nPtEta,mWeight2pPrime); // fill profile to get <<2'>^2> for POIs fDiffFlowSquaredCorrelationsPro[1][pe][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],two1n1nPtEta*two1n1nPtEta,mWeight2pPrime); // histogram to store <2'> for POIs e-b-e (needed in some other methods): fDiffFlowCorrelationsEBE[1][pe][0]->SetBinContent(b,two1n1nPtEta); fDiffFlowEventWeightsForCorrelationsEBE[1][pe][0]->SetBinContent(b,mWeight2pPrime); } else if(type == "RP") // to be improved (I do not this if) { // profile to get <<2'>> for RPs: fDiffFlowCorrelationsPro[0][pe][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],two1n1nPtEta,mWeight2pPrime); // profile to get <<2'>^2> for RPs: fDiffFlowSquaredCorrelationsPro[0][pe][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],two1n1nPtEta*two1n1nPtEta,mWeight2pPrime); // histogram to store <2'> for RPs e-b-e (needed in some other methods): fDiffFlowCorrelationsEBE[0][pe][0]->SetBinContent(b,two1n1nPtEta); fDiffFlowEventWeightsForCorrelationsEBE[0][pe][0]->SetBinContent(b,mWeight2pPrime); } } // end of if(mp*dMult-mq) // 4'-particle correlation: Double_t four1n1n1n1nPtEta = 0.; Double_t mWeight4pPrime = 0.; // multiplicity weight for <4'> if((mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.)) // to be improved (introduce a new variable for this expression) { four1n1n1n1nPtEta = ((pow(dReQ1n,2.)+pow(dImQ1n,2.))*(p1n0kRe*dReQ1n+p1n0kIm*dImQ1n) - q2n0kRe*(pow(dReQ1n,2.)-pow(dImQ1n,2.)) - 2.*q2n0kIm*dReQ1n*dImQ1n - p1n0kRe*(dReQ1n*dReQ2n+dImQ1n*dImQ2n) + p1n0kIm*(dImQ1n*dReQ2n-dReQ1n*dImQ2n) - 2.*dMult*(p1n0kRe*dReQ1n+p1n0kIm*dImQ1n) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*mq + 6.*(q1n0kRe*dReQ1n+q1n0kIm*dImQ1n) + 1.*(q2n0kRe*dReQ2n+q2n0kIm*dImQ2n) + 2.*(p1n0kRe*dReQ1n+p1n0kIm*dImQ1n) + 2.*mq*dMult - 6.*mq) / ((mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.)); // determine multiplicity weight: if(fMultiplicityWeight->Contains("combinations")) { mWeight4pPrime = (mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.); } else if(fMultiplicityWeight->Contains("unit")) { mWeight4pPrime = 1.; } if(type == "POI") { // profile to get <<4'>> for POIs: fDiffFlowCorrelationsPro[1][pe][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],four1n1n1n1nPtEta,mWeight4pPrime); // profile to get <<4'>^2> for POIs: fDiffFlowSquaredCorrelationsPro[1][pe][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],four1n1n1n1nPtEta*four1n1n1n1nPtEta,mWeight4pPrime); // histogram to store <4'> for POIs e-b-e (needed in some other methods): fDiffFlowCorrelationsEBE[1][pe][1]->SetBinContent(b,four1n1n1n1nPtEta); fDiffFlowEventWeightsForCorrelationsEBE[1][pe][1]->SetBinContent(b,mWeight4pPrime); } else if(type == "RP") { // profile to get <<4'>> for RPs: fDiffFlowCorrelationsPro[0][pe][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],four1n1n1n1nPtEta,mWeight4pPrime); // profile to get <<4'>^2> for RPs: fDiffFlowSquaredCorrelationsPro[0][pe][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],four1n1n1n1nPtEta*four1n1n1n1nPtEta,mWeight4pPrime); // histogram to store <4'> for RPs e-b-e (needed in some other methods): fDiffFlowCorrelationsEBE[0][pe][1]->SetBinContent(b,four1n1n1n1nPtEta); fDiffFlowEventWeightsForCorrelationsEBE[0][pe][1]->SetBinContent(b,mWeight4pPrime); } } // end of if((mp-mq)*dMult*(dMult-1.)*(dMult-2.) // +mq*(dMult-1.)*(dMult-2.)*(dMult-3.)) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrelations(TString type, TString ptOrEta); //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateOtherDiffCorrelators(TString type, TString ptOrEta) { // Calculate other differential correlators for RPs or POIs for all pt and eta bins. // Multiplicity: Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); // Other correlations are stored in fOtherDiffCorrelators[2][2][2][1], [0=RP,1=POI][0=pt,1=eta][0=sin terms,1=cos terms][correlator index] // Correlation index runs as follows: // // 0: Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // looping over all bins and calculating reduced correlations: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular pt or eta bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular pt or eta bin: Double_t mp = 0.; // real and imaginary parts of q_{m*n,0} (non-weighted Q-vector evaluated for particles which are both RPs and POIs in particular pt or eta bin): Double_t q1n0kRe = 0.; Double_t q1n0kIm = 0.; Double_t q2n0kRe = 0.; Double_t q2n0kIm = 0.; Double_t q3n0kRe = 0.; Double_t q3n0kIm = 0.; // number of particles which are both RPs and POIs in particular pt or eta bin: Double_t mq = 0.; if(type == "POI") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[2][pe][0][0]->GetBinContent(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[2][pe][0][0]->GetBinContent(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][0][0]->GetBinEntries(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[2][pe][1][0]->GetBinContent(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][0]->GetBinEntries(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[2][pe][1][0]->GetBinContent(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][0]->GetBinEntries(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)); q3n0kRe = fReRPQ1dEBE[2][pe][2][0]->GetBinContent(fReRPQ1dEBE[2][pe][2][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][2][0]->GetBinEntries(fReRPQ1dEBE[2][pe][2][0]->GetBin(b)); q3n0kIm = fImRPQ1dEBE[2][pe][2][0]->GetBinContent(fImRPQ1dEBE[2][pe][2][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][2][0]->GetBinEntries(fImRPQ1dEBE[2][pe][2][0]->GetBin(b)); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } else if(type == "RP") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[0][pe][1][0]->GetBinContent(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][0]->GetBinEntries(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[0][pe][1][0]->GetBinContent(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][0]->GetBinEntries(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)); q3n0kRe = fReRPQ1dEBE[0][pe][2][0]->GetBinContent(fReRPQ1dEBE[0][pe][2][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][2][0]->GetBinEntries(fReRPQ1dEBE[0][pe][2][0]->GetBin(b)); q3n0kIm = fImRPQ1dEBE[0][pe][2][0]->GetBinContent(fImRPQ1dEBE[0][pe][2][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][2][0]->GetBinEntries(fImRPQ1dEBE[0][pe][2][0]->GetBin(b)); mq = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } if(type == "POI") { // p_{m*n,0}: p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) t = 1; // typeFlag = RP or POI } else if(type == "RP") { // p_{m*n,0} = q_{m*n,0}: p1n0kRe = q1n0kRe; p1n0kIm = q1n0kIm; mp = mq; t = 0; // typeFlag = RP or POI } // 3'-particle correlators: // Taeney-Yan correlator: Double_t dTaeneyYan = 0.; Double_t mWeightTaeneyYan = 0.; // multiplicity weight for Taeney-Yan correlator if((mp*dMult-2.*mq)*(dMult-1.) > 0.) // to be improved - is this condition fully justified? { dTaeneyYan = (dReQ3n*(p1n0kRe*dReQ2n-p1n0kIm*dImQ2n)+dImQ3n*(p1n0kIm*dReQ2n+p1n0kRe*dImQ2n) - p1n0kRe*dReQ1n - p1n0kIm*dImQ1n - q2n0kRe*dReQ2n - q2n0kIm*dImQ2n - q3n0kRe*dReQ3n - q3n0kIm*dImQ3n + 2.*mq) / ((mp*dMult-2.*mq)*(dMult-1.)); // determine multiplicity weight: if(fMultiplicityWeight->Contains("combinations")) { mWeightTaeneyYan = (mp*dMult-2.*mq)*(dMult-1.); } else if(fMultiplicityWeight->Contains("unit")) { mWeightTaeneyYan = 1.; } // Fill profiles: fOtherDiffCorrelators[t][pe][1][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dTaeneyYan,mWeightTaeneyYan); } // end of if((mp*dMult-2.*mq)*(dMult-1.) > 0.) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateOtherDiffCorrelators(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::Calculate2DDiffFlowCorrelations(TString type) { // Calculate all reduced correlations needed for 2D differential flow for each (pt,eta) bin. // Multiplicity: Double_t dMult = (*fSpk)(0,0); // Real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); //Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); //Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); // 2D reduced correlations are stored in TProfile2D f2DDiffFlowCorrelationsPro[0=RP,1=POI][correlation index]. // Correlation index runs as follows: // 0: <<2'>> // 1: <<4'>> // 2: <<6'>> // 3: <<8'>> Int_t t = 0; // type flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } // Looping over all (pt,eta) bins and calculating correlations needed for differential flow: for(Int_t p=1;p<=fnBinsPt;p++) { for(Int_t e=1;e<=fnBinsEta;e++) { // Real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular (pt,eta) bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // Number of POIs in particular pt or eta bin: Double_t mp = 0.; // Real and imaginary parts of q_{m*n,0} (non-weighted Q-vector evaluated for 'RP && POI particles' in particular pt or eta bin): Double_t q1n0kRe = 0.; Double_t q1n0kIm = 0.; Double_t q2n0kRe = 0.; Double_t q2n0kIm = 0.; // Number of 'RP && POI particles' in particular pt or eta bin: Double_t mq = 0.; if(type == "POI") { // q_{m*n,0}: q1n0kRe = fReRPQ2dEBE[2][0][0]->GetBinContent(fReRPQ2dEBE[2][0][0]->GetBin(p,e)) * fReRPQ2dEBE[2][0][0]->GetBinEntries(fReRPQ2dEBE[2][0][0]->GetBin(p,e)); q1n0kIm = fImRPQ2dEBE[2][0][0]->GetBinContent(fImRPQ2dEBE[2][0][0]->GetBin(p,e)) * fImRPQ2dEBE[2][0][0]->GetBinEntries(fImRPQ2dEBE[2][0][0]->GetBin(p,e)); q2n0kRe = fReRPQ2dEBE[2][1][0]->GetBinContent(fReRPQ2dEBE[2][1][0]->GetBin(p,e)) * fReRPQ2dEBE[2][1][0]->GetBinEntries(fReRPQ2dEBE[2][1][0]->GetBin(p,e)); q2n0kIm = fImRPQ2dEBE[2][1][0]->GetBinContent(fImRPQ2dEBE[2][1][0]->GetBin(p,e)) * fImRPQ2dEBE[2][1][0]->GetBinEntries(fImRPQ2dEBE[2][1][0]->GetBin(p,e)); // m_{q}: mq = fReRPQ2dEBE[2][0][0]->GetBinEntries(fReRPQ2dEBE[2][0][0]->GetBin(p,e)); // to be improved (cross-checked by accessing other profiles here) } // end of if(type == "POI") else if(type == "RP") { // q_{m*n,0}: q1n0kRe = fReRPQ2dEBE[0][0][0]->GetBinContent(fReRPQ2dEBE[0][0][0]->GetBin(p,e)) * fReRPQ2dEBE[0][0][0]->GetBinEntries(fReRPQ2dEBE[0][0][0]->GetBin(p,e)); q1n0kIm = fImRPQ2dEBE[0][0][0]->GetBinContent(fImRPQ2dEBE[0][0][0]->GetBin(p,e)) * fImRPQ2dEBE[0][0][0]->GetBinEntries(fImRPQ2dEBE[0][0][0]->GetBin(p,e)); q2n0kRe = fReRPQ2dEBE[0][1][0]->GetBinContent(fReRPQ2dEBE[0][1][0]->GetBin(p,e)) * fReRPQ2dEBE[0][1][0]->GetBinEntries(fReRPQ2dEBE[0][1][0]->GetBin(p,e)); q2n0kIm = fImRPQ2dEBE[0][1][0]->GetBinContent(fImRPQ2dEBE[0][1][0]->GetBin(p,e)) * fImRPQ2dEBE[0][1][0]->GetBinEntries(fImRPQ2dEBE[0][1][0]->GetBin(p,e)); // m_{q}: mq = fReRPQ2dEBE[0][0][0]->GetBinEntries(fReRPQ2dEBE[0][0][0]->GetBin(p,e)); // to be improved (cross-checked by accessing other profiles here) } // end of else if(type == "RP") if(type == "POI") { // p_{m*n,0}: p1n0kRe = fReRPQ2dEBE[1][0][0]->GetBinContent(fReRPQ2dEBE[1][0][0]->GetBin(p,e)) * fReRPQ2dEBE[1][0][0]->GetBinEntries(fReRPQ2dEBE[1][0][0]->GetBin(p,e)); p1n0kIm = fImRPQ2dEBE[1][0][0]->GetBinContent(fImRPQ2dEBE[1][0][0]->GetBin(p,e)) * fImRPQ2dEBE[1][0][0]->GetBinEntries(fImRPQ2dEBE[1][0][0]->GetBin(p,e)); // m_{p} mp = fReRPQ2dEBE[1][0][0]->GetBinEntries(fReRPQ2dEBE[1][0][0]->GetBin(p,e)); // to be improved (cross-checked by accessing other profiles here) t = 1; // typeFlag = RP or POI } // end of if(type == "POI") else if(type == "RP") { // p_{m*n,0} = q_{m*n,0}: p1n0kRe = q1n0kRe; p1n0kIm = q1n0kIm; // m_{p} = m_{q}: mp = mq; t = 0; // typeFlag = RP or POI } // end of if(type == "RP") // 2'-particle correlation for particular (pt,eta) bin: Double_t two1n1nPtEta = 0.; Double_t mWeight2pPrime = 0.; // multiplicity weight for <2'> if(mp*dMult-mq) { two1n1nPtEta = (p1n0kRe*dReQ1n+p1n0kIm*dImQ1n-mq) / (mp*dMult-mq); // Determine multiplicity weight: if(fMultiplicityWeight->Contains("combinations")) { mWeight2pPrime = mp*dMult-mq; } else if(fMultiplicityWeight->Contains("unit")) { mWeight2pPrime = 1.; } // Fill 2D profile holding <<2'>>: f2DDiffFlowCorrelationsPro[t][0]->Fill(fPtMin+(p-1)*fPtBinWidth,fEtaMin+(e-1)*fEtaBinWidth,two1n1nPtEta,mWeight2pPrime); } // end of if(mp*dMult-mq) // 4'-particle correlation: Double_t four1n1n1n1nPtEta = 0.; Double_t mWeight4pPrime = 0.; // multiplicity weight for <4'> if((mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.)) // to be improved (introduce a new variable for this expression) { four1n1n1n1nPtEta = ((pow(dReQ1n,2.)+pow(dImQ1n,2.))*(p1n0kRe*dReQ1n+p1n0kIm*dImQ1n) - q2n0kRe*(pow(dReQ1n,2.)-pow(dImQ1n,2.)) - 2.*q2n0kIm*dReQ1n*dImQ1n - p1n0kRe*(dReQ1n*dReQ2n+dImQ1n*dImQ2n) + p1n0kIm*(dImQ1n*dReQ2n-dReQ1n*dImQ2n) - 2.*dMult*(p1n0kRe*dReQ1n+p1n0kIm*dImQ1n) - 2.*(pow(dReQ1n,2.)+pow(dImQ1n,2.))*mq + 6.*(q1n0kRe*dReQ1n+q1n0kIm*dImQ1n) + 1.*(q2n0kRe*dReQ2n+q2n0kIm*dImQ2n) + 2.*(p1n0kRe*dReQ1n+p1n0kIm*dImQ1n) + 2.*mq*dMult - 6.*mq) / ((mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.)); // Determine multiplicity weight: if(fMultiplicityWeight->Contains("combinations")) { mWeight4pPrime = (mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.); } else if(fMultiplicityWeight->Contains("unit")) { mWeight4pPrime = 1.; } // Fill 2D profile holding <<4'>>: f2DDiffFlowCorrelationsPro[t][1]->Fill(fPtMin+(p-1)*fPtBinWidth,fEtaMin+(e-1)*fEtaBinWidth,four1n1n1n1nPtEta,mWeight4pPrime); } // end of if((mp-mq)*dMult*(dMult-1.)*(dMult-2.) // +mq*(dMult-1.)*(dMult-2.)*(dMult-3.)) } // end of for(Int_t e=1;e<=fnBinsEta;e++) } // end of for(Int_t p=1;p<=fnBinsPt;p++) } // end of AliFlowAnalysisWithQCumulants::Calculate2DDiffFlowCorrelations(TString type) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowSumOfEventWeights(TString type, TString ptOrEta) { // Calculate sums of various event weights for reduced correlations. // (These quantitites are needed in expressions for unbiased estimators relevant for the statistical errors.) Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; // binning: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; for(Int_t rpq=0;rpq<3;rpq++) { for(Int_t m=0;m<4;m++) { for(Int_t k=0;k<9;k++) { if(!fReRPQ1dEBE[rpq][pe][m][k]) { cout<<"WARNING: fReRPQ1dEBE[rpq][pe][m][k] is NULL in AFAWQC::CSAPOEWFDF() !!!!"<GetBinEntries(b); mp = mq; // trick to use the very same Eqs. bellow both for RP's and POI's diff. flow } else if(type == "POI") { mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(b); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(b); } // event weight for <2'>: dw2 = mp*dMult-mq; fDiffFlowSumOfEventWeights[t][pe][0][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2); fDiffFlowSumOfEventWeights[t][pe][1][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],pow(dw2,2.)); // event weight for <4'>: dw4 = (mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.); fDiffFlowSumOfEventWeights[t][pe][0][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw4); fDiffFlowSumOfEventWeights[t][pe][1][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],pow(dw4,2.)); // event weight for <6'>: //dw6 = ...; //fDiffFlowSumOfEventWeights[t][pe][0][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw6); //fDiffFlowSumOfEventWeights[t][pe][t][1][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],pow(dw6,2.)); // event weight for <8'>: //dw8 = ...; //fDiffFlowSumOfEventWeights[t][pe][0][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw8); //fDiffFlowSumOfEventWeights[t][pe][1][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],pow(dw8,2.)); } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowSumOfEventWeights() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowSumOfProductOfEventWeights(TString type, TString ptOrEta) { // Calculate sum of products of various event weights for both types of correlations (the ones for int. and diff. flow). // (These quantitites are needed in expressions for unbiased estimators relevant for the statistical errors.) // // Important: To fill fDiffFlowSumOfProductOfEventWeights[][][][] use bellow table (i,j) with following constraints: // 1.) i,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>] x [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>] Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; // binning: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // protection: for(Int_t rpq=0;rpq<3;rpq++) { for(Int_t m=0;m<4;m++) { for(Int_t k=0;k<9;k++) { if(!fReRPQ1dEBE[rpq][pe][m][k]) { cout<<"WARNING: fReRPQ1dEBE[rpq][pe][m][k] is NULL in AFAWQC::CSAPOEWFDF() !!!!"<GetBinEntries(b); mp = mq; // trick to use the very same Eqs. bellow both for RP's and POI's diff. flow } else if(type == "POI") { mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(b); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(b); } // event weight for <2'>: dw2 = mp*dMult-mq; fDiffFlowSumOfProductOfEventWeights[t][pe][0][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW2*dw2); // storing product of even weights for <2> and <2'> fDiffFlowSumOfProductOfEventWeights[t][pe][1][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2*dW4); // storing product of even weights for <4> and <2'> fDiffFlowSumOfProductOfEventWeights[t][pe][1][4]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2*dW6); // storing product of even weights for <6> and <2'> fDiffFlowSumOfProductOfEventWeights[t][pe][1][6]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2*dW8); // storing product of even weights for <8> and <2'> // event weight for <4'>: dw4 = (mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.); fDiffFlowSumOfProductOfEventWeights[t][pe][0][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW2*dw4); // storing product of even weights for <2> and <4'> fDiffFlowSumOfProductOfEventWeights[t][pe][1][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2*dw4); // storing product of even weights for <2'> and <4'> fDiffFlowSumOfProductOfEventWeights[t][pe][2][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW4*dw4); // storing product of even weights for <4> and <4'> fDiffFlowSumOfProductOfEventWeights[t][pe][3][4]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw4*dW6); // storing product of even weights for <6> and <4'> fDiffFlowSumOfProductOfEventWeights[t][pe][3][6]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw4*dW8); // storing product of even weights for <8> and <4'> // event weight for <6'>: //dw6 = ...; //fDiffFlowSumOfProductOfEventWeights[t][pe][0][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW2*dw6); // storing product of even weights for <2> and <6'> //fDiffFlowSumOfProductOfEventWeights[t][pe][1][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2*dw6); // storing product of even weights for <2'> and <6'> //fDiffFlowSumOfProductOfEventWeights[t][pe][2][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW4*dw6); // storing product of even weights for <4> and <6'> //fDiffFlowSumOfProductOfEventWeights[t][pe][3][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw4*dw6); // storing product of even weights for <4'> and <6'> //fDiffFlowSumOfProductOfEventWeights[t][pe][4][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW6*dw6); // storing product of even weights for <6> and <6'> //fDiffFlowSumOfProductOfEventWeights[t][pe][5][6]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw6*dW8); // storing product of even weights for <6'> and <8> //fDiffFlowSumOfProductOfEventWeights[t][pe][5][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw6*dw8); // storing product of even weights for <6'> and <8'> // event weight for <8'>: //dw8 = ...; //fDiffFlowSumOfProductOfEventWeights[t][pe][0][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW2*dw8); // storing product of even weights for <2> and <8'> //fDiffFlowSumOfProductOfEventWeights[t][pe][1][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw2*dw8); // storing product of even weights for <2'> and <8'> //fDiffFlowSumOfProductOfEventWeights[t][pe][2][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW4*dw8); // storing product of even weights for <4> and <8'> //fDiffFlowSumOfProductOfEventWeights[t][pe][3][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw4*dw8); // storing product of even weights for <4'> and <8'> //fDiffFlowSumOfProductOfEventWeights[t][pe][4][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW6*dw8); // storing product of even weights for <6> and <8'> //fDiffFlowSumOfProductOfEventWeights[t][pe][5][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dw6*dw8); // storing product of even weights for <6'> and <8'> //fDiffFlowSumOfProductOfEventWeights[t][pe][6][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],dW8*dw8); // storing product of even weights for <8> and <8'> // Table: // [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>] x [0=<2>,1=<2'>,2=<4>,3=<4'>,4=<6>,5=<6'>,6=<8>,7=<8'>] } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowSumOfProductOfEventWeights(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FinalizeReducedCorrelations(TString type, TString ptOrEta) { // Transfer profiles into histograms and calculate statistical errors correctly. Int_t t = 0; // RP or POI Int_t pe = 0; // pt or eta if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } for(Int_t rci=0;rci<4;rci++) // to be improved - moved into the method CheckPointersUsedInFinish() { if(!fDiffFlowCorrelationsPro[t][pe][rci]) { cout<<"WARNING: fDiffFlowCorrelationsPro[t][pe][rci] is NULL in AFAWQC::FRC() !!!!"<GetBinContent(b); sumOfSquaredWeights = fDiffFlowSumOfEventWeights[t][pe][1][rci]->GetBinContent(b); if(TMath::Abs(sumOfWeights)>0.){termA = (pow(sumOfSquaredWeights,0.5)/sumOfWeights);} if(1.-pow(termA,2.)>0.){termB = 1./pow(1.-pow(termA,2.),0.5);} error = termA*spread*termB; // final error (unbiased estimator for standard deviation) fDiffFlowCorrelationsHist[t][pe][rci]->SetBinContent(b,correlation); fDiffFlowCorrelationsHist[t][pe][rci]->SetBinError(b,error); } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of for(Int_t rci=0;rci<4;rci++) } // end of void AliFlowAnalysisWithQCumulants::FinalizeReducedCorrelations(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowProductOfCorrelations(TString type, TString ptOrEta) { // store products: <2><2'>, <2><4'>, <2><6'>, <2><8'>, <2'><4>, // <2'><4'>, <2'><6>, <2'><6'>, <2'><8>, <2'><8'>, // <4><4'>, <4><6'>, <4><8'>, <4'><6>, <4'><6'>, // <4'><8>, <4'><8'>, <6><6'>, <6><8'>, <6'><8>, // <6'><8'>, <8><8'>. Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; // common: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // protections // to be improved (add protection for all pointers in this method) if(!fIntFlowCorrelationsEBE) { cout<<"WARNING: fIntFlowCorrelationsEBE is NULL in AFAWQC::CDFPOC() !!!!"<GetBinContent(1); // <2> Double_t fourEBE = fIntFlowCorrelationsEBE->GetBinContent(2); // <4> Double_t sixEBE = fIntFlowCorrelationsEBE->GetBinContent(3); // <6> Double_t eightEBE = fIntFlowCorrelationsEBE->GetBinContent(4); // <8> // event weights for correlations: Double_t dW2 = fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(1); // event weight for <2> Double_t dW4 = fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(2); // event weight for <4> Double_t dW6 = fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(3); // event weight for <6> Double_t dW8 = fIntFlowEventWeightsForCorrelationsEBE->GetBinContent(4); // event weight for <8> // e-b-e reduced correlations: Double_t twoReducedEBE = 0.; // <2'> Double_t fourReducedEBE = 0.; // <4'> //Double_t sixReducedEBE = 0.; // <6'> //Double_t eightReducedEBE = 0.; // <8'> // event weights for reduced correlations: Double_t dw2 = 0.; // event weight for <2'> Double_t dw4 = 0.; // event weight for <4'> //Double_t dw6 = 0.; // event weight for <6'> //Double_t dw8 = 0.; // event weight for <8'> // looping over bins: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // e-b-e reduced correlations: twoReducedEBE = fDiffFlowCorrelationsEBE[t][pe][0]->GetBinContent(b); fourReducedEBE = fDiffFlowCorrelationsEBE[t][pe][1]->GetBinContent(b); //sixReducedEBE = fDiffFlowCorrelationsEBE[t][pe][2]->GetBinContent(b); //eightReducedEBE = fDiffFlowCorrelationsEBE[t][pe][3]->GetBinContent(b); /* // to be improved (I should not do this here again) if(type == "RP") { mq = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(b); mp = mq; // trick to use the very same Eqs. bellow both for RP's and POI's diff. flow } else if(type == "POI") { mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(b); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(b); } // event weights for reduced correlations: dw2 = mp*dMult-mq; // weight for <2'> dw4 = (mp-mq)*dMult*(dMult-1.)*(dMult-2.) + mq*(dMult-1.)*(dMult-2.)*(dMult-3.); // weight for <4'> //dw6 = ... //dw8 = ... */ dw2 = fDiffFlowEventWeightsForCorrelationsEBE[t][pe][0]->GetBinContent(b); dw4 = fDiffFlowEventWeightsForCorrelationsEBE[t][pe][1]->GetBinContent(b); // storing all products: fDiffFlowProductOfCorrelationsPro[t][pe][0][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoEBE*twoReducedEBE,dW2*dw2); // storing <2><2'> fDiffFlowProductOfCorrelationsPro[t][pe][1][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],fourEBE*twoReducedEBE,dW4*dw2); // storing <4><2'> fDiffFlowProductOfCorrelationsPro[t][pe][1][4]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixEBE*twoReducedEBE,dW6*dw2); // storing <6><2'> fDiffFlowProductOfCorrelationsPro[t][pe][1][6]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],eightEBE*twoReducedEBE,dW8*dw2); // storing <8><2'> // event weight for <4'>: fDiffFlowProductOfCorrelationsPro[t][pe][0][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoEBE*fourReducedEBE,dW2*dw4); // storing <2><4'> fDiffFlowProductOfCorrelationsPro[t][pe][1][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoReducedEBE*fourReducedEBE,dw2*dw4); // storing <2'><4'> fDiffFlowProductOfCorrelationsPro[t][pe][2][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],fourEBE*fourReducedEBE,dW4*dw4); // storing <4><4'> fDiffFlowProductOfCorrelationsPro[t][pe][3][4]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixEBE*fourReducedEBE,dW6*dw4); // storing <6><4'> fDiffFlowProductOfCorrelationsPro[t][pe][3][6]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],eightEBE*fourReducedEBE,dW8*dw4); // storing <8><4'> // event weight for <6'>: //dw6 = ...; //fDiffFlowProductOfCorrelationsPro[t][pe][0][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoEBE*sixReducedEBE,dW2*dw6); // storing <2><6'> //fDiffFlowProductOfCorrelationsPro[t][pe][1][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoReducedEBE*sixReducedEBE,dw2*dw6); // storing <2'><6'> //fDiffFlowProductOfCorrelationsPro[t][pe][2][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],fourEBE*sixReducedEBE,dW4*dw6); // storing <4><6'> //fDiffFlowProductOfCorrelationsPro[t][pe][3][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],fourReducedEBE*sixReducedEBE,dw4*dw6); // storing <4'><6'> //fDiffFlowProductOfCorrelationsPro[t][pe][4][5]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixEBE*sixReducedEBE,dW6*dw6); // storing <6><6'> //fDiffFlowProductOfCorrelationsPro[t][pe][5][6]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixReducedEBE*eightEBE,dw6*dW8); // storing <6'><8> //fDiffFlowProductOfCorrelationsPro[t][pe][5][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixReducedEBE*eightReducedEBE,dw6*dw8); // storing <6'><8'> // event weight for <8'>: //dw8 = ...; //fDiffFlowProductOfCorrelationsPro[t][pe][0][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoEBE*eightReducedEBE,dW2*dw8); // storing <2><8'> //fDiffFlowProductOfCorrelationsPro[t][pe][1][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],twoReducedEBE*eightReducedEBE,dw2*dw8); // storing <2'><8'> //fDiffFlowProductOfCorrelationsPro[t][pe][2][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],fourEBE*eightReducedEBE,dW4*dw8); // storing <4><8'> //fDiffFlowProductOfCorrelationsPro[t][pe][3][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],fourReducedEBE*eightReducedEBE,dw4*dw8); // storing <4'><8'> //fDiffFlowProductOfCorrelationsPro[t][pe][4][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixEBE*eightReducedEBE,dW6*dw8); // storing <6><8'> //fDiffFlowProductOfCorrelationsPro[t][pe][5][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sixReducedEBE*eightReducedEBE,dw6*dw8); // storing <6'><8'> //fDiffFlowProductOfCorrelationsPro[t][pe][6][7]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],eightEBE*eightReducedEBE,dW8*dw8); // storing <8><8'> } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++ } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowProductOfCorrelations(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCovariances(TString type, TString ptOrEta) // to be improved (reimplemented) { // a) Calculate unbiased estimators Cov(<2>,<2'>), Cov(<2>,<4'>), Cov(<4>,<2'>), Cov(<4>,<4'>) and Cov(<2'>,<4'>) // for covariances V(<2>,<2'>), V(<2>,<4'>), V(<4>,<2'>), V(<4>,<4'>) and V(<2'>,<4'>). // b) Store in histogram fDiffFlowCovariances[t][pe][index] for instance the following: // // Cov(<2>,<2'>) * (sum_{i=1}^{N} w_{<2>}_i w_{<2'>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<2'>}_j)] // // where N is the number of events, w_{<2>} is event weight for <2> and w_{<2'>} is event weight for <2'>. // c) Binning of fDiffFlowCovariances[t][pe][index] is organized as follows: // // 1st bin: Cov(<2>,<2'>) * (sum_{i=1}^{N} w_{<2>}_i w_{<2'>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<2'>}_j)] // 2nd bin: Cov(<2>,<4'>) * (sum_{i=1}^{N} w_{<2>}_i w_{<4'>}_i )/[(sum_{i=1}^{N} w_{<2>}_i) * (sum_{j=1}^{N} w_{<4'>}_j)] // 3rd bin: Cov(<4>,<2'>) * (sum_{i=1}^{N} w_{<4>}_i w_{<2'>}_i )/[(sum_{i=1}^{N} w_{<4>}_i) * (sum_{j=1}^{N} w_{<2'>}_j)] // 4th bin: Cov(<4>,<4'>) * (sum_{i=1}^{N} w_{<4>}_i w_{<4'>}_i )/[(sum_{i=1}^{N} w_{<4>}_i) * (sum_{j=1}^{N} w_{<4'>}_j)] // 5th bin: Cov(<2'>,<4'>) * (sum_{i=1}^{N} w_{<2'>}_i w_{<4'>}_i )/[(sum_{i=1}^{N} w_{<2'>}_i) * (sum_{j=1}^{N} w_{<4'>}_j)] // ... Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; // common: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; //Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; //Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // average correlations: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); // <<2>> Double_t four = fIntFlowCorrelationsHist->GetBinContent(2); // <<4>> //Double_t six = fIntFlowCorrelationsHist->GetBinContent(3); // <<6>> //Double_t eight = fIntFlowCorrelationsHist->GetBinContent(4); // <<8>> // sum of weights for correlation: Double_t sumOfWeightsForTwo = fIntFlowSumOfEventWeights[0]->GetBinContent(1); // sum_{i=1}^{N} w_{<2>} Double_t sumOfWeightsForFour = fIntFlowSumOfEventWeights[0]->GetBinContent(2); // sum_{i=1}^{N} w_{<4>} //Double_t sumOfWeightsForSix = fIntFlowSumOfEventWeights[0]->GetBinContent(3); // sum_{i=1}^{N} w_{<6>} //Double_t sumOfWeightsForEight = fIntFlowSumOfEventWeights[0]->GetBinContent(4); // sum_{i=1}^{N} w_{<8>} // average reduced correlations: Double_t twoReduced = 0.; // <<2'>> Double_t fourReduced = 0.; // <<4'>> //Double_t sixReduced = 0.; // <<6'>> //Double_t eightReduced = 0.; // <<8'>> // sum of weights for reduced correlation: Double_t sumOfWeightsForTwoReduced = 0.; // sum_{i=1}^{N} w_{<2'>} Double_t sumOfWeightsForFourReduced = 0.; // sum_{i=1}^{N} w_{<4'>} //Double_t sumOfWeightsForSixReduced = 0.; // sum_{i=1}^{N} w_{<6'>} //Double_t sumOfWeightsForEightReduced = 0.; // sum_{i=1}^{N} w_{<8'>} // product of weights for reduced correlation: Double_t productOfWeightsForTwoTwoReduced = 0.; // sum_{i=1}^{N} w_{<2>}w_{<2'>} Double_t productOfWeightsForTwoFourReduced = 0.; // sum_{i=1}^{N} w_{<2>}w_{<4'>} Double_t productOfWeightsForFourTwoReduced = 0.; // sum_{i=1}^{N} w_{<4>}w_{<2'>} Double_t productOfWeightsForFourFourReduced = 0.; // sum_{i=1}^{N} w_{<4>}w_{<4'>} Double_t productOfWeightsForTwoReducedFourReduced = 0.; // sum_{i=1}^{N} w_{<2'>}w_{<4'>} // ... // products for differential flow: Double_t twoTwoReduced = 0; // <<2><2'>> Double_t twoFourReduced = 0; // <<2><4'>> Double_t fourTwoReduced = 0; // <<4><2'>> Double_t fourFourReduced = 0; // <<4><4'>> Double_t twoReducedFourReduced = 0; // <<2'><4'>> // denominators in the expressions for the unbiased estimators for covariances: // denominator = 1 - term1/(term2*term3) // prefactor = term1/(term2*term3) Double_t denominator = 0.; Double_t prefactor = 0.; Double_t term1 = 0.; Double_t term2 = 0.; Double_t term3 = 0.; // unbiased estimators for covariances for differential flow: Double_t covTwoTwoReduced = 0.; // Cov(<2>,<2'>) Double_t wCovTwoTwoReduced = 0.; // Cov(<2>,<2'>) * prefactor(w_{<2>},w_{<2'>}) Double_t covTwoFourReduced = 0.; // Cov(<2>,<4'>) Double_t wCovTwoFourReduced = 0.; // Cov(<2>,<4'>) * prefactor(w_{<2>},w_{<4'>}) Double_t covFourTwoReduced = 0.; // Cov(<4>,<2'>) Double_t wCovFourTwoReduced = 0.; // Cov(<4>,<2'>) * prefactor(w_{<4>},w_{<2'>}) Double_t covFourFourReduced = 0.; // Cov(<4>,<4'>) Double_t wCovFourFourReduced = 0.; // Cov(<4>,<4'>) * prefactor(w_{<4>},w_{<4'>}) Double_t covTwoReducedFourReduced = 0.; // Cov(<2'>,<4'>) Double_t wCovTwoReducedFourReduced = 0.; // Cov(<2'>,<4'>) * prefactor(w_{<2'>},w_{<4'>}) for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // average reduced corelations: twoReduced = fDiffFlowCorrelationsHist[t][pe][0]->GetBinContent(b); fourReduced = fDiffFlowCorrelationsHist[t][pe][1]->GetBinContent(b); // average products: twoTwoReduced = fDiffFlowProductOfCorrelationsPro[t][pe][0][1]->GetBinContent(b); twoFourReduced = fDiffFlowProductOfCorrelationsPro[t][pe][0][3]->GetBinContent(b); fourTwoReduced = fDiffFlowProductOfCorrelationsPro[t][pe][1][2]->GetBinContent(b); fourFourReduced = fDiffFlowProductOfCorrelationsPro[t][pe][2][3]->GetBinContent(b); twoReducedFourReduced = fDiffFlowProductOfCorrelationsPro[t][pe][1][3]->GetBinContent(b); // sum of weights for reduced correlations: sumOfWeightsForTwoReduced = fDiffFlowSumOfEventWeights[t][pe][0][0]->GetBinContent(b); sumOfWeightsForFourReduced = fDiffFlowSumOfEventWeights[t][pe][0][1]->GetBinContent(b); // products of weights for correlations: productOfWeightsForTwoTwoReduced = fDiffFlowSumOfProductOfEventWeights[t][pe][0][1]->GetBinContent(b); productOfWeightsForTwoFourReduced = fDiffFlowSumOfProductOfEventWeights[t][pe][0][3]->GetBinContent(b); productOfWeightsForFourTwoReduced = fDiffFlowSumOfProductOfEventWeights[t][pe][1][2]->GetBinContent(b); productOfWeightsForFourFourReduced = fDiffFlowSumOfProductOfEventWeights[t][pe][2][3]->GetBinContent(b); productOfWeightsForTwoReducedFourReduced = fDiffFlowSumOfProductOfEventWeights[t][pe][1][3]->GetBinContent(b); // denominator for the unbiased estimator for covariances: 1 - term1/(term2*term3) // prefactor (multiplies Cov's) = term1/(term2*term3) // <2>,<2'>: term1 = productOfWeightsForTwoTwoReduced; term2 = sumOfWeightsForTwo; term3 = sumOfWeightsForTwoReduced; if(term2*term3>0.) { denominator = 1.-term1/(term2*term3); prefactor = term1/(term2*term3); if(TMath::Abs(denominator)>1.e-6) { covTwoTwoReduced = (twoTwoReduced-two*twoReduced)/denominator; wCovTwoTwoReduced = covTwoTwoReduced*prefactor; fDiffFlowCovariances[t][pe][0]->SetBinContent(b,wCovTwoTwoReduced); } } // <2>,<4'>: term1 = productOfWeightsForTwoFourReduced; term2 = sumOfWeightsForTwo; term3 = sumOfWeightsForFourReduced; if(term2*term3>0.) { denominator = 1.-term1/(term2*term3); prefactor = term1/(term2*term3); if(TMath::Abs(denominator)>1.e-6) { covTwoFourReduced = (twoFourReduced-two*fourReduced)/denominator; wCovTwoFourReduced = covTwoFourReduced*prefactor; fDiffFlowCovariances[t][pe][1]->SetBinContent(b,wCovTwoFourReduced); } } // <4>,<2'>: term1 = productOfWeightsForFourTwoReduced; term2 = sumOfWeightsForFour; term3 = sumOfWeightsForTwoReduced; if(term2*term3>0.) { denominator = 1.-term1/(term2*term3); prefactor = term1/(term2*term3); if(TMath::Abs(denominator)>1.e-6) { covFourTwoReduced = (fourTwoReduced-four*twoReduced)/denominator; wCovFourTwoReduced = covFourTwoReduced*prefactor; fDiffFlowCovariances[t][pe][2]->SetBinContent(b,wCovFourTwoReduced); } } // <4>,<4'>: term1 = productOfWeightsForFourFourReduced; term2 = sumOfWeightsForFour; term3 = sumOfWeightsForFourReduced; if(term2*term3>0.) { denominator = 1.-term1/(term2*term3); prefactor = term1/(term2*term3); if(TMath::Abs(denominator)>1.e-6) { covFourFourReduced = (fourFourReduced-four*fourReduced)/denominator; wCovFourFourReduced = covFourFourReduced*prefactor; fDiffFlowCovariances[t][pe][3]->SetBinContent(b,wCovFourFourReduced); } } // <2'>,<4'>: term1 = productOfWeightsForTwoReducedFourReduced; term2 = sumOfWeightsForTwoReduced; term3 = sumOfWeightsForFourReduced; if(term2*term3>0.) { denominator = 1.-term1/(term2*term3); prefactor = term1/(term2*term3); if(TMath::Abs(denominator)>1.e-6) { covTwoReducedFourReduced = (twoReducedFourReduced-twoReduced*fourReduced)/denominator; wCovTwoReducedFourReduced = covTwoReducedFourReduced*prefactor; fDiffFlowCovariances[t][pe][4]->SetBinContent(b,wCovTwoReducedFourReduced); } } } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCovariances(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlow(TString type, TString ptOrEta) { // Calculate final results for differential flow. // REMARK: Differential flow calculated in this method is NOT corrected for non-uniform acceptance. // This correction, if enabled via setter SetApplyCorrectionForNUA(Bool_t), is applied in the method // CalculateDiffFlowCorrectedForNUA(TString type, TString ptOrEta) Int_t t = 0; // RP or POI Int_t pe = 0; // pt or eta if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } // Common: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; // Correlations: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); // <<2>> Double_t four = fIntFlowCorrelationsHist->GetBinContent(2); // <<4>> // Statistical errors of correlations: Double_t twoError = fIntFlowCorrelationsHist->GetBinError(1); Double_t fourError = fIntFlowCorrelationsHist->GetBinError(2); // Reduced correlations: Double_t twoReduced = 0.; // <<2'>> Double_t fourReduced = 0.; // <<4'>> // Statistical errors of reduced correlations: Double_t twoReducedError = 0.; Double_t fourReducedError = 0.; // Covariances: Double_t wCovTwoFour = 0.; // Cov(<2>,<4>) * prefactor(<2>,<4>) if(!fForgetAboutCovariances) { wCovTwoFour = fIntFlowCovariances->GetBinContent(1); // Cov(<2>,<4>) * prefactor(<2>,<4>) } Double_t wCovTwoTwoReduced = 0.; // Cov(<2>,<2'>) * prefactor(<2>,<2'>) Double_t wCovTwoFourReduced = 0.; // Cov(<2>,<4'>) * prefactor(<2>,<4'>) Double_t wCovFourTwoReduced = 0.; // Cov(<4>,<2'>) * prefactor(<4>,<2'>) Double_t wCovFourFourReduced = 0.; // Cov(<4>,<4'>) * prefactor(<4>,<4'>) Double_t wCovTwoReducedFourReduced = 0.; // Cov(<2'>,<4'>) * prefactor(<2'>,<4'>) // Differential flow: Double_t v2Prime = 0.; // v'{2} Double_t v4Prime = 0.; // v'{4} // Statistical error of differential flow: Double_t v2PrimeError = 0.; Double_t v4PrimeError = 0.; // Squared statistical error of differential flow: Double_t v2PrimeErrorSquared = 0.; Double_t v4PrimeErrorSquared = 0.; // Loop over pt or eta bins: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // Reduced correlations and statistical errors: twoReduced = fDiffFlowCorrelationsHist[t][pe][0]->GetBinContent(b); twoReducedError = fDiffFlowCorrelationsHist[t][pe][0]->GetBinError(b); fourReduced = fDiffFlowCorrelationsHist[t][pe][1]->GetBinContent(b); fourReducedError = fDiffFlowCorrelationsHist[t][pe][1]->GetBinError(b); // Covariances: if(!fForgetAboutCovariances) { wCovTwoTwoReduced = fDiffFlowCovariances[t][pe][0]->GetBinContent(b); wCovTwoFourReduced = fDiffFlowCovariances[t][pe][1]->GetBinContent(b); wCovFourTwoReduced = fDiffFlowCovariances[t][pe][2]->GetBinContent(b); wCovFourFourReduced = fDiffFlowCovariances[t][pe][3]->GetBinContent(b); wCovTwoReducedFourReduced = fDiffFlowCovariances[t][pe][4]->GetBinContent(b); } // Differential flow: // v'{2}: if(two>0.) { v2Prime = twoReduced/pow(two,0.5); v2PrimeErrorSquared = (1./4.)*pow(two,-3.)*(pow(twoReduced,2.)*pow(twoError,2.) + 4.*pow(two,2.)*pow(twoReducedError,2.) - 4.*two*twoReduced*wCovTwoTwoReduced); if(v2PrimeErrorSquared>0.){v2PrimeError = pow(v2PrimeErrorSquared,0.5);} if(TMath::Abs(v2Prime)>0.) { fDiffFlow[t][pe][0]->SetBinContent(b,v2Prime); fDiffFlow[t][pe][0]->SetBinError(b,v2PrimeError); } } // end of if(two>0.) // differential flow: // v'{4} if(2.*pow(two,2.)-four > 0.) { v4Prime = (2.*two*twoReduced-fourReduced)/pow(2.*pow(two,2.)-four,3./4.); v4PrimeErrorSquared = pow(2.*pow(two,2.)-four,-7./2.) * (pow(2.*pow(two,2.)*twoReduced-3.*two*fourReduced+2.*four*twoReduced,2.)*pow(twoError,2.) + (9./16.)*pow(2.*two*twoReduced-fourReduced,2.)*pow(fourError,2.) + 4.*pow(two,2.)*pow(2.*pow(two,2.)-four,2.)*pow(twoReducedError,2.) + pow(2.*pow(two,2.)-four,2.)*pow(fourReducedError,2.) - (3./2.)*(2.*two*twoReduced-fourReduced) * (2.*pow(two,2.)*twoReduced-3.*two*fourReduced+2.*four*twoReduced)*wCovTwoFour - 4.*two*(2.*pow(two,2.)-four) * (2.*pow(two,2.)*twoReduced-3.*two*fourReduced+2.*four*twoReduced)*wCovTwoTwoReduced + 2.*(2.*pow(two,2.)-four) * (2.*pow(two,2.)*twoReduced-3.*two*fourReduced+2.*four*twoReduced)*wCovTwoFourReduced + 3.*two*(2.*pow(two,2.)-four)*(2.*two*twoReduced-fourReduced)*wCovFourTwoReduced - (3./2.)*(2.*pow(two,2.)-four)*(2.*two*twoReduced-fourReduced)*wCovFourFourReduced - 4.*two*pow(2.*pow(two,2.)-four,2.)*wCovTwoReducedFourReduced); if(v4PrimeErrorSquared>0.){v4PrimeError = pow(v4PrimeErrorSquared,0.5);} if(TMath::Abs(v4Prime)>0.) { fDiffFlow[t][pe][1]->SetBinContent(b,v4Prime); fDiffFlow[t][pe][1]->SetBinError(b,v4PrimeError); } } // end of if(2.*pow(two,2.)-four > 0.) } // end of for(Int_t b=1;b<=fnBinsPtEta[pe];b++) } // end of AliFlowAnalysisWithQCumulants::CalculateDiffFlow(TString type, Bool_t useParticleWeights) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::Calculate2DDiffFlow(TString type) { // Calculate final results for 2D diferential flow. // to be improved - check pointers used in this method Int_t t = 0; // RP or POI if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } // Differential flow: Double_t v2Prime = 0.; // v'{2} Double_t v4Prime = 0.; // v'{4} // Differential cumulants: Double_t qc2Prime = 0.; // QC{2'} Double_t qc4Prime = 0.; // QC{4'} // Looping over all (pt,eta) bins and calculating differential flow: for(Int_t p=1;p<=fnBinsPt;p++) { for(Int_t e=1;e<=fnBinsEta;e++) { // QC{2'}: qc2Prime = f2DDiffFlowCumulants[t][0]->GetBinContent(f2DDiffFlowCumulants[t][0]->GetBin(p,e)); if(qc2Prime>=0.) { v2Prime = pow(qc2Prime,0.5); f2DDiffFlow[t][0]->SetBinContent(f2DDiffFlow[t][0]->GetBin(p,e),v2Prime); } // QC{4'}: qc4Prime = f2DDiffFlowCumulants[t][1]->GetBinContent(f2DDiffFlowCumulants[t][1]->GetBin(p,e)); if(qc4Prime<=0.) { v4Prime = pow(-1.*qc4Prime,1./4.); f2DDiffFlow[t][1]->SetBinContent(f2DDiffFlow[t][1]->GetBin(p,e),v4Prime); } } // end of for(Int_t e=1;e<=fnBinsEta;e++) } // end of for(Int_t p=1;p<=fnBinsPt;p++) } // end of void AliFlowAnalysisWithQCumulants::Calculate2DDiffFlow(TString type) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::StoreIntFlowFlags() { // a) Store all flags for integrated flow in profile fIntFlowFlags. if(!fIntFlowFlags) { cout<<"WARNING: fIntFlowFlags is NULL in AFAWQC::SFFIF() !!!!"<Fill(0.5,(Int_t)fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights); // which event weights were used: if(fMultiplicityWeight->Contains("combinations")) { fIntFlowFlags->Fill(1.5,0); // 0 = "combinations" (default) } else if(fMultiplicityWeight->Contains("unit")) { fIntFlowFlags->Fill(1.5,1); // 1 = "unit" } else if(fMultiplicityWeight->Contains("multiplicity")) { fIntFlowFlags->Fill(1.5,2); // 2 = "multiplicity" } fIntFlowFlags->Fill(2.5,(Int_t)fApplyCorrectionForNUA); fIntFlowFlags->Fill(3.5,(Int_t)fPrintFinalResults[0]); fIntFlowFlags->Fill(4.5,(Int_t)fPrintFinalResults[1]); fIntFlowFlags->Fill(5.5,(Int_t)fPrintFinalResults[2]); fIntFlowFlags->Fill(6.5,(Int_t)fPrintFinalResults[3]); fIntFlowFlags->Fill(7.5,(Int_t)fApplyCorrectionForNUAVsM); fIntFlowFlags->Fill(8.5,(Int_t)fPropagateErrorAlsoFromNIT); fIntFlowFlags->Fill(9.5,(Int_t)fCalculateCumulantsVsM); fIntFlowFlags->Fill(10.5,(Int_t)fMinimumBiasReferenceFlow); fIntFlowFlags->Fill(11.5,(Int_t)fForgetAboutCovariances); fIntFlowFlags->Fill(12.5,(Int_t)fStorePhiDistributionForOneEvent); fIntFlowFlags->Fill(13.5,(Int_t)fFillMultipleControlHistograms); fIntFlowFlags->Fill(14.5,(Int_t)fCalculateAllCorrelationsVsM); // which multiplicity was used: if(fMultiplicityIs==AliFlowCommonConstants::kRP) // # of Reference Particles { fIntFlowFlags->Fill(15.5,0); // 0 = # of Reference Particles } else if(fMultiplicityIs==AliFlowCommonConstants::kExternal) { fIntFlowFlags->Fill(15.5,1); // 1 = ref. mult. from ESD } else if(fMultiplicityIs==AliFlowCommonConstants::kPOI) { fIntFlowFlags->Fill(15.5,2); // 2 = # of Particles of Interest } } // end of void AliFlowAnalysisWithQCumulants::StoreIntFlowFlags() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::StoreDiffFlowFlags() { // Store all flags for differential flow in the profile fDiffFlowFlags. if(!fDiffFlowFlags) { printf("\n WARNING (QC): fDiffFlowFlags is NULL in AFAWQC::SDFF() !!!!\n\n"); exit(0); } fDiffFlowFlags->Fill(0.5,fCalculateDiffFlow); // calculate differential flow fDiffFlowFlags->Fill(1.5,fUsePhiWeights||fUsePtWeights||fUseEtaWeights||fUseTrackWeights); // particle weights used or not? //fDiffFlowFlags->Fill(2.5,""); // which event weight was used? ("combinations", "unit" or "multiplicity") to be improved - finalized fDiffFlowFlags->Fill(3.5,fApplyCorrectionForNUA); // corrected for non-uniform acceptance or not fDiffFlowFlags->Fill(4.5,fCalculate2DDiffFlow); // calculate also 2D differential flow vs (pt,eta) fDiffFlowFlags->Fill(5.5,fCalculateDiffFlowVsEta); // if you set kFALSE only differential flow vs pt is calculated } // end of void AliFlowAnalysisWithQCumulants::StoreDiffFlowFlags() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::StoreMixedHarmonicsFlags() { // Store all flags for mixed harmonics in profile fMixedHarmonicsFlags. if(!fMixedHarmonicsFlags) { cout<<"WARNING: fMixedHarmonicsFlags is NULL in AFAWQC::SMHF() !!!!"<Fill(0.5,(Int_t)fCalculateMixedHarmonics); fMixedHarmonicsFlags->Fill(1.5,(Int_t)fHarmonic); fMixedHarmonicsFlags->Fill(2.5,(Int_t)fCalculateMixedHarmonicsVsM); // Which multiplicity weight was used?: if(fMultiplicityWeight->Contains("combinations")) { fMixedHarmonicsFlags->Fill(3.5,0); // 0 = "combinations" (default) } else if(fMultiplicityWeight->Contains("unit")) { fMixedHarmonicsFlags->Fill(3.5,1); // 1 = "unit" } else if(fMultiplicityWeight->Contains("multiplicity")) { fMixedHarmonicsFlags->Fill(3.5,2); // 2 = "multiplicity" } } // end of void AliFlowAnalysisWithQCumulants::StoreMixedHarmonicsFlags() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetPointersForCommonHistograms() { // Access all pointers to common control and common result histograms and profiles. TString sCommonConstantsName = "fCommonConstants"; sCommonConstantsName += fAnalysisLabel->Data(); fCommonConstants = dynamic_cast(fHistList->FindObject(sCommonConstantsName.Data())); if(!fCommonConstants) { printf("\n WARNING (QC): fCommonConstants is NULL in AFAWQC::GPFCH() !!!!\n\n"); exit(0); } // to be improved - lines bellow can be implemented better. TString commonHistsName = "AliFlowCommonHistQC"; commonHistsName += fAnalysisLabel->Data(); AliFlowCommonHist *commonHist = dynamic_cast(fHistList->FindObject(commonHistsName.Data())); if(commonHist) { this->SetCommonHists(commonHist); if(fCommonHists->GetHarmonic()) { fHarmonic = (Int_t)(fCommonHists->GetHarmonic())->GetBinContent(1); } } // end of if(commonHist) TString commonHists2ndOrderName = "AliFlowCommonHist2ndOrderQC"; commonHists2ndOrderName += fAnalysisLabel->Data(); AliFlowCommonHist *commonHist2nd = dynamic_cast(fHistList->FindObject(commonHists2ndOrderName.Data())); if(commonHist2nd) this->SetCommonHists2nd(commonHist2nd); TString commonHists4thOrderName = "AliFlowCommonHist4thOrderQC"; commonHists4thOrderName += fAnalysisLabel->Data(); AliFlowCommonHist *commonHist4th = dynamic_cast(fHistList->FindObject(commonHists4thOrderName.Data())); if(commonHist4th) this->SetCommonHists4th(commonHist4th); TString commonHists6thOrderName = "AliFlowCommonHist6thOrderQC"; commonHists6thOrderName += fAnalysisLabel->Data(); AliFlowCommonHist *commonHist6th = dynamic_cast(fHistList->FindObject(commonHists6thOrderName.Data())); if(commonHist6th) this->SetCommonHists6th(commonHist6th); TString commonHists8thOrderName = "AliFlowCommonHist8thOrderQC"; commonHists8thOrderName += fAnalysisLabel->Data(); AliFlowCommonHist *commonHist8th = dynamic_cast(fHistList->FindObject(commonHists8thOrderName.Data())); if(commonHist8th) this->SetCommonHists8th(commonHist8th); TString commonHistResults2ndOrderName = "AliFlowCommonHistResults2ndOrderQC"; commonHistResults2ndOrderName += fAnalysisLabel->Data(); AliFlowCommonHistResults *commonHistRes2nd = dynamic_cast (fHistList->FindObject(commonHistResults2ndOrderName.Data())); if(commonHistRes2nd) this->SetCommonHistsResults2nd(commonHistRes2nd); TString commonHistResults4thOrderName = "AliFlowCommonHistResults4thOrderQC"; commonHistResults4thOrderName += fAnalysisLabel->Data(); AliFlowCommonHistResults *commonHistRes4th = dynamic_cast (fHistList->FindObject(commonHistResults4thOrderName.Data())); if(commonHistRes4th) this->SetCommonHistsResults4th(commonHistRes4th); TString commonHistResults6thOrderName = "AliFlowCommonHistResults6thOrderQC"; commonHistResults6thOrderName += fAnalysisLabel->Data(); AliFlowCommonHistResults *commonHistRes6th = dynamic_cast (fHistList->FindObject(commonHistResults6thOrderName.Data())); if(commonHistRes6th) this->SetCommonHistsResults6th(commonHistRes6th); TString commonHistResults8thOrderName = "AliFlowCommonHistResults8thOrderQC"; commonHistResults8thOrderName += fAnalysisLabel->Data(); AliFlowCommonHistResults *commonHistRes8th = dynamic_cast (fHistList->FindObject(commonHistResults8thOrderName.Data())); if(commonHistRes8th) this->SetCommonHistsResults8th(commonHistRes8th); } // end of void AliFlowAnalysisWithQCumulants::GetPointersForCommonHistograms() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetPointersForParticleWeightsHistograms() { // Get pointers for histograms with particle weights. TList *weightsList = dynamic_cast(fHistList->FindObject("Weights")); if(!weightsList){printf("\n WARNING (QC): weightsList is NULL in AFAWQC::GPFPWH() !!!!\n");exit(0);} this->SetWeightsList(weightsList); TString fUseParticleWeightsName = "fUseParticleWeightsQC"; // to be improved (hirdwired label QC) fUseParticleWeightsName += fAnalysisLabel->Data(); TProfile *useParticleWeights = dynamic_cast(weightsList->FindObject(fUseParticleWeightsName.Data())); if(useParticleWeights) { this->SetUseParticleWeights(useParticleWeights); fUsePhiWeights = (Int_t)fUseParticleWeights->GetBinContent(1); fUsePtWeights = (Int_t)fUseParticleWeights->GetBinContent(2); fUseEtaWeights = (Int_t)fUseParticleWeights->GetBinContent(3); fUseTrackWeights = (Int_t)fUseParticleWeights->GetBinContent(4); } } // end of void AliFlowAnalysisWithQCumulants::GetPointersForParticleWeightsHistograms(); //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetPointersForIntFlowHistograms() { // Get pointers for histograms and profiles relevant for integrated flow: // a) Get pointer to base list for integrated flow holding profile fIntFlowFlags and lists fIntFlowProfiles and fIntFlowResults. // b) Get pointer to profile fIntFlowFlags holding all flags for integrated flow. // c) Get pointer to list fIntFlowProfiles and pointers to all objects that she holds. // d) Get pointer to list fIntFlowResults and pointers to all objects that she holds. TString sinCosFlag[2] = {"sin","cos"}; // to be improved (should I promote this to data member?) TString powerFlag[2] = {"linear","quadratic"}; // to be improved (should I promote this to data member?) TString correlationFlag[4] = {"#LT#LT2#GT#GT","#LT#LT4#GT#GT","#LT#LT6#GT#GT","#LT#LT8#GT#GT"}; // to be improved (should I promote this to data member?) TString squaredCorrelationFlag[4] = {"#LT#LT2#GT^{2}#GT","#LT#LT4#GT^{2}#GT","#LT#LT6#GT^{2}#GT","#LT#LT8#GT^{2}#GT"}; // to be improved (should I promote this to data member?) // a) Get pointer to base list for integrated flow holding profile fIntFlowFlags and lists fIntFlowProfiles and fIntFlowResults: TList *intFlowList = NULL; intFlowList = dynamic_cast(fHistList->FindObject("Integrated Flow")); if(!intFlowList) { cout<<"WARNING: intFlowList is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TProfile *intFlowFlags = dynamic_cast(intFlowList->FindObject(intFlowFlagsName.Data())); if(intFlowFlags) { this->SetIntFlowFlags(intFlowFlags); fApplyCorrectionForNUA = (Bool_t)intFlowFlags->GetBinContent(3); fApplyCorrectionForNUAVsM = (Bool_t)intFlowFlags->GetBinContent(8); fCalculateCumulantsVsM = (Bool_t)intFlowFlags->GetBinContent(10); } else { cout<<"WARNING: intFlowFlags is NULL in FAWQC::GPFIFH() !!!!"<(intFlowList->FindObject("Profiles")); if(intFlowProfiles) { // average multiplicities: TString avMultiplicityName = "fAvMultiplicity"; avMultiplicityName += fAnalysisLabel->Data(); TProfile *avMultiplicity = dynamic_cast(intFlowProfiles->FindObject(avMultiplicityName.Data())); if(avMultiplicity) { this->SetAvMultiplicity(avMultiplicity); } else { cout<<"WARNING: avMultiplicity is NULL in AFAWQC::GPFIFH() !!!!"<>, <<4>>, <<6>> and <<8>> (with wrong errors!): TString intFlowCorrelationsProName = "fIntFlowCorrelationsPro"; intFlowCorrelationsProName += fAnalysisLabel->Data(); TProfile *intFlowCorrelationsPro = dynamic_cast(intFlowProfiles->FindObject(intFlowCorrelationsProName.Data())); if(intFlowCorrelationsPro) { this->SetIntFlowCorrelationsPro(intFlowCorrelationsPro); } else { cout<<"WARNING: intFlowCorrelationsPro is NULL in AFAWQC::GPFIFH() !!!!"<^2>, <<4>^2>, <<6>^2> and <<8^2>>: TString intFlowSquaredCorrelationsProName = "fIntFlowSquaredCorrelationsPro"; intFlowSquaredCorrelationsProName += fAnalysisLabel->Data(); TProfile *intFlowSquaredCorrelationsPro = dynamic_cast(intFlowProfiles->FindObject(intFlowSquaredCorrelationsProName.Data())); if(intFlowSquaredCorrelationsPro) { this->SetIntFlowSquaredCorrelationsPro(intFlowSquaredCorrelationsPro); } else { cout<<"WARNING: intFlowSquaredCorrelationsPro is NULL in AFAWQC::GPFIFH() !!!!"<>, <<4>>, <<6>> and <<8>> versus multiplicity for all events (error is wrong here): TString intFlowCorrelationsVsMProName = "fIntFlowCorrelationsVsMPro"; intFlowCorrelationsVsMProName += fAnalysisLabel->Data(); for(Int_t ci=0;ci<4;ci++) // correlation index { TProfile *intFlowCorrelationsVsMPro = dynamic_cast (intFlowProfiles->FindObject(Form("%s, %s",intFlowCorrelationsVsMProName.Data(),correlationFlag[ci].Data()))); if(intFlowCorrelationsVsMPro) { this->SetIntFlowCorrelationsVsMPro(intFlowCorrelationsVsMPro,ci); } else { cout<<"WARNING: "<^2>, <<4>^2>, <<6>^2> and <<8>^2> versus multiplicity for all events: TString intFlowSquaredCorrelationsVsMProName = "fIntFlowSquaredCorrelationsVsMPro"; intFlowSquaredCorrelationsVsMProName += fAnalysisLabel->Data(); for(Int_t ci=0;ci<4;ci++) // correlation index { TProfile *intFlowSquaredCorrelationsVsMPro = dynamic_cast (intFlowProfiles->FindObject(Form("%s, %s",intFlowSquaredCorrelationsVsMProName.Data(),squaredCorrelationFlag[ci].Data()))); if(intFlowSquaredCorrelationsVsMPro) { this->SetIntFlowSquaredCorrelationsVsMPro(intFlowSquaredCorrelationsVsMPro,ci); } else { cout<<"WARNING: "<Data(); TProfile *intFlowCorrelationsAllPro = dynamic_cast(intFlowProfiles->FindObject(intFlowCorrelationsAllProName.Data())); if(intFlowCorrelationsAllPro) { this->SetIntFlowCorrelationsAllPro(intFlowCorrelationsAllPro); } else { cout<<"WARNING: intFlowCorrelationsAllPro is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TProfile *intFlowExtraCorrelationsPro = dynamic_cast(intFlowProfiles->FindObject(intFlowExtraCorrelationsProName.Data())); if(intFlowExtraCorrelationsPro) { this->SetIntFlowExtraCorrelationsPro(intFlowExtraCorrelationsPro); } else { cout<<"WARNING: intFlowExtraCorrelationsPro is NULL in AFAWQC::GPFIFH() !!!!"<, <4>, <6> and <8>: TString intFlowProductOfCorrelationsProName = "fIntFlowProductOfCorrelationsPro"; intFlowProductOfCorrelationsProName += fAnalysisLabel->Data(); TProfile *intFlowProductOfCorrelationsPro = dynamic_cast(intFlowProfiles->FindObject(intFlowProductOfCorrelationsProName.Data())); if(intFlowProductOfCorrelationsPro) { this->SetIntFlowProductOfCorrelationsPro(intFlowProductOfCorrelationsPro); } else { cout<<"WARNING: intFlowProductOfCorrelationsPro is NULL in AFAWQC::GPFIFH() !!!!"<, <4>, <6> and <8> versus multiplicity // [0=<<2><4>>,1=<<2><6>>,2=<<2><8>>,3=<<4><6>>,4=<<4><8>>,5=<<6><8>>] if(fCalculateCumulantsVsM) { TString intFlowProductOfCorrelationsVsMProName = "fIntFlowProductOfCorrelationsVsMPro"; intFlowProductOfCorrelationsVsMProName += fAnalysisLabel->Data(); TString productFlag[6] = {"#LT#LT2#GT#LT4#GT#GT","#LT#LT2#GT#LT6#GT#GT","#LT#LT2#GT#LT8#GT#GT", "#LT#LT4#GT#LT6#GT#GT","#LT#LT4#GT#LT8#GT#GT","#LT#LT6#GT#LT8#GT#GT"}; for(Int_t pi=0;pi<6;pi++) { TProfile *intFlowProductOfCorrelationsVsMPro = dynamic_cast(intFlowProfiles->FindObject(Form("%s, %s",intFlowProductOfCorrelationsVsMProName.Data(),productFlag[pi].Data()))); if(intFlowProductOfCorrelationsVsMPro) { this->SetIntFlowProductOfCorrelationsVsMPro(intFlowProductOfCorrelationsVsMPro,pi); } else { cout<<"WARNING: "<Data(); TProfile *intFlowCorrectionTermsForNUAPro = dynamic_cast(intFlowProfiles->FindObject((Form("%s: %s terms",intFlowCorrectionTermsForNUAProName.Data(),sinCosFlag[sc].Data())))); if(intFlowCorrectionTermsForNUAPro) { this->SetIntFlowCorrectionTermsForNUAPro(intFlowCorrectionTermsForNUAPro,sc); } else { cout<<"WARNING: intFlowCorrectionTermsForNUAPro is NULL in AFAWQC::GPFIFH() !!!!"<Data(); for(Int_t ci=0;ci<4;ci++) // correction term index (to be improved - hardwired 4) { TProfile *intFlowCorrectionTermsForNUAVsMPro = dynamic_cast(intFlowProfiles->FindObject(Form("%s: #LT#LT%s%s#GT#GT",intFlowCorrectionTermsForNUAVsMProName.Data(),sinCosFlag[sc].Data(),correctionTermFlag[ci].Data()))); if(intFlowCorrectionTermsForNUAVsMPro) { this->SetIntFlowCorrectionTermsForNUAVsMPro(intFlowCorrectionTermsForNUAVsMPro,sc,ci); } else { cout<<"WARNING: intFlowCorrectionTermsForNUAVsMPro is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TProfile *intFlowProductOfCorrectionTermsForNUAPro = dynamic_cast(intFlowProfiles->FindObject(intFlowProductOfCorrectionTermsForNUAProName.Data())); if(intFlowProductOfCorrectionTermsForNUAPro) { this->SetIntFlowProductOfCorrectionTermsForNUAPro(intFlowProductOfCorrectionTermsForNUAPro); } else { cout<<"WARNING: intFlowProductOfCorrectionTermsForNUAPro is NULL in AFAWQC::GPFIFH() !!!!"<(intFlowList->FindObject("Results")); if(intFlowResults) { // average correlations <<2>>, <<4>>, <<6>> and <<8>> (with correct errors!): TString intFlowCorrelationsHistName = "fIntFlowCorrelationsHist"; intFlowCorrelationsHistName += fAnalysisLabel->Data(); TH1D *intFlowCorrelationsHist = dynamic_cast(intFlowResults->FindObject(intFlowCorrelationsHistName.Data())); if(intFlowCorrelationsHist) { this->SetIntFlowCorrelationsHist(intFlowCorrelationsHist); } else { cout<<"WARNING: intFlowCorrelationsHist is NULL in AFAWQC::GPFIFH() !!!!"<>, <<4>>, <<6>> and <<8>> (with correct errors!) vs M: if(fCalculateCumulantsVsM) { TString intFlowCorrelationsVsMHistName = "fIntFlowCorrelationsVsMHist"; intFlowCorrelationsVsMHistName += fAnalysisLabel->Data(); for(Int_t ci=0;ci<4;ci++) // correlation index { TH1D *intFlowCorrelationsVsMHist = dynamic_cast (intFlowResults->FindObject(Form("%s, %s",intFlowCorrelationsVsMHistName.Data(),correlationFlag[ci].Data()))); if(intFlowCorrelationsVsMHist) { this->SetIntFlowCorrelationsVsMHist(intFlowCorrelationsVsMHist,ci); } else { cout<<"WARNING: "<Data(); TH1D *intFlowCorrelationsAllHist = dynamic_cast(intFlowResults->FindObject(intFlowCorrelationsAllHistName.Data())); if(intFlowCorrelationsAllHist) { this->SetIntFlowCorrelationsAllHist(intFlowCorrelationsAllHist); } else { cout<<"WARNING: intFlowCorrelationsAllHist is NULL in AFAWQC::GPFIFH() !!!!"<Data(); for(Int_t sc=0;sc<2;sc++) { TH1D *intFlowCorrectionTermsForNUAHist = dynamic_cast(intFlowResults->FindObject((Form("%s: %s terms",intFlowCorrectionTermsForNUAHistName.Data(),sinCosFlag[sc].Data())))); if(intFlowCorrectionTermsForNUAHist) { this->SetIntFlowCorrectionTermsForNUAHist(intFlowCorrectionTermsForNUAHist,sc); } else { cout<<"WARNING: intFlowCorrectionTermsForNUAHist is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowCovariances = dynamic_cast(intFlowResults->FindObject(intFlowCovariancesName.Data())); if(intFlowCovariances) { this->SetIntFlowCovariances(intFlowCovariances); } else { cout<<"WARNING: intFlowCovariances is NULL in AFAWQC::GPFIFH() !!!!"<, <4>, <6> and <8>: TString intFlowSumOfEventWeightsName = "fIntFlowSumOfEventWeights"; intFlowSumOfEventWeightsName += fAnalysisLabel->Data(); for(Int_t power=0;power<2;power++) { TH1D *intFlowSumOfEventWeights = dynamic_cast(intFlowResults->FindObject(Form("%s: %s",intFlowSumOfEventWeightsName.Data(),powerFlag[power].Data()))); if(intFlowSumOfEventWeights) { this->SetIntFlowSumOfEventWeights(intFlowSumOfEventWeights,power); } else { cout<<"WARNING: intFlowSumOfEventWeights is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowSumOfProductOfEventWeights = dynamic_cast(intFlowResults->FindObject(intFlowSumOfProductOfEventWeightsName.Data())); if(intFlowSumOfProductOfEventWeights) { this->SetIntFlowSumOfProductOfEventWeights(intFlowSumOfProductOfEventWeights); } else { cout<<"WARNING: intFlowSumOfProductOfEventWeights is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TString covarianceFlag[6] = {"Cov(<2>,<4>)","Cov(<2>,<6>)","Cov(<2>,<8>)","Cov(<4>,<6>)","Cov(<4>,<8>)","Cov(<6>,<8>)"}; for(Int_t ci=0;ci<6;ci++) { TH1D *intFlowCovariancesVsM = dynamic_cast(intFlowResults->FindObject(Form("%s, %s",intFlowCovariancesVsMName.Data(),covarianceFlag[ci].Data()))); if(intFlowCovariancesVsM) { this->SetIntFlowCovariancesVsM(intFlowCovariancesVsM,ci); } else { cout<<"WARNING: "<, <4>, <6> and <8> versus multiplicity // [0=sum{w_{<2>}},1=sum{w_{<4>}},2=sum{w_{<6>}},3=sum{w_{<8>}}][0=linear 1,1=quadratic]: if(fCalculateCumulantsVsM) { TString intFlowSumOfEventWeightsVsMName = "fIntFlowSumOfEventWeightsVsM"; intFlowSumOfEventWeightsVsMName += fAnalysisLabel->Data(); TString sumFlag[2][4] = {{"#sum_{i=1}^{N} w_{<2>}","#sum_{i=1}^{N} w_{<4>}","#sum_{i=1}^{N} w_{<6>}","#sum_{i=1}^{N} w_{<8>}"}, {"#sum_{i=1}^{N} w_{<2>}^{2}","#sum_{i=1}^{N} w_{<4>}^{2}","#sum_{i=1}^{N} w_{<6>}^{2}","#sum_{i=1}^{N} w_{<8>}^{2}"}}; for(Int_t si=0;si<4;si++) { for(Int_t power=0;power<2;power++) { TH1D *intFlowSumOfEventWeightsVsM = dynamic_cast(intFlowResults->FindObject(Form("%s, %s",intFlowSumOfEventWeightsVsMName.Data(),sumFlag[power][si].Data()))); if(intFlowSumOfEventWeightsVsM) { this->SetIntFlowSumOfEventWeightsVsM(intFlowSumOfEventWeightsVsM,si,power); } else { cout<<"WARNING: "<, <4>, <6> and <8> vs M // [0=sum{w_{<2>}w_{<4>}},1=sum{w_{<2>}w_{<6>}},2=sum{w_{<2>}w_{<8>}}, // 3=sum{w_{<4>}w_{<6>}},4=sum{w_{<4>}w_{<8>}},5=sum{w_{<6>}w_{<8>}}]: if(fCalculateCumulantsVsM) { TString intFlowSumOfProductOfEventWeightsVsMName = "fIntFlowSumOfProductOfEventWeightsVsM"; intFlowSumOfProductOfEventWeightsVsMName += fAnalysisLabel->Data(); TString sopowFlag[6] = {"#sum_{i=1}^{N} w_{<2>} w_{<4>}","#sum_{i=1}^{N} w_{<2>} w_{<6>}","#sum_{i=1}^{N} w_{<2>} w_{<8>}", "#sum_{i=1}^{N} w_{<4>} w_{<6>}","#sum_{i=1}^{N} w_{<4>} w_{<8>}","#sum_{i=1}^{N} w_{<6>} w_{<8>}"}; for(Int_t pi=0;pi<6;pi++) { TH1D *intFlowSumOfProductOfEventWeightsVsM = dynamic_cast(intFlowResults->FindObject(Form("%s, %s",intFlowSumOfProductOfEventWeightsVsMName.Data(),sopowFlag[pi].Data()))); if(intFlowSumOfProductOfEventWeightsVsM) { this->SetIntFlowSumOfProductOfEventWeightsVsM(intFlowSumOfProductOfEventWeightsVsM,pi); } else { cout<<"WARNING: "<Data(); TH1D *intFlowCovariancesNUA = dynamic_cast(intFlowResults->FindObject(intFlowCovariancesNUAName.Data())); if(intFlowCovariancesNUA) { this->SetIntFlowCovariancesNUA(intFlowCovariancesNUA); } else { cout<<"WARNING: intFlowCovariancesNUA is NULL in AFAWQC::GPFIFH() !!!!"<Data(); for(Int_t sc=0;sc<2;sc++) { for(Int_t power=0;power<2;power++) { TH1D *intFlowSumOfEventWeightsNUA = dynamic_cast(intFlowResults->FindObject(Form("%s: %s, %s",intFlowSumOfEventWeightsNUAName.Data(),powerFlag[power].Data(),sinCosFlag[sc].Data()))); if(intFlowSumOfEventWeightsNUA) { this->SetIntFlowSumOfEventWeightsNUA(intFlowSumOfEventWeightsNUA,sc,power); } else { cout<<"WARNING: intFlowSumOfEventWeightsNUA is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowSumOfProductOfEventWeightsNUA = dynamic_cast(intFlowResults->FindObject(intFlowSumOfProductOfEventWeightsNUAName.Data())); if(intFlowSumOfProductOfEventWeightsNUA) { this->SetIntFlowSumOfProductOfEventWeightsNUA(intFlowSumOfProductOfEventWeightsNUA); } else { cout<<"WARNING: intFlowSumOfProductOfEventWeightsNUA is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowQcumulants = dynamic_cast(intFlowResults->FindObject(intFlowQcumulantsName.Data())); if(intFlowQcumulants) { this->SetIntFlowQcumulants(intFlowQcumulants); } else { cout<<"WARNING: intFlowQcumulants is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowQcumulantsRebinnedInM = dynamic_cast(intFlowResults->FindObject(intFlowQcumulantsRebinnedInMName.Data())); if(intFlowQcumulantsRebinnedInM) { this->SetIntFlowQcumulantsRebinnedInM(intFlowQcumulantsRebinnedInM); } else { cout<<"WARNING: intFlowQcumulantsRebinnedInM is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowQcumulantsErrorSquaredRatio = dynamic_cast(intFlowResults->FindObject(intFlowQcumulantsErrorSquaredRatioName.Data())); if(intFlowQcumulantsErrorSquaredRatio) { this->SetIntFlowQcumulantsErrorSquaredRatio(intFlowQcumulantsErrorSquaredRatio); } else { cout<<" WARNING: intntFlowQcumulantsErrorSquaredRatio is NULL in AFAWQC::GPFIFH() !!!!"<Data(); for(Int_t co=0;co<4;co++) // cumulant order { TH1D *intFlowQcumulantsVsM = dynamic_cast (intFlowResults->FindObject(Form("%s, %s",intFlowQcumulantsVsMName.Data(),cumulantFlag[co].Data()))); if(intFlowQcumulantsVsM) { this->SetIntFlowQcumulantsVsM(intFlowQcumulantsVsM,co); } else { cout<<"WARNING: "<Data(); TH1D *intFlow = dynamic_cast(intFlowResults->FindObject(intFlowName.Data())); if(intFlow) { this->SetIntFlow(intFlow); } else { cout<<"WARNING: intFlow is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH1D *intFlowRebinnedInM = dynamic_cast(intFlowResults->FindObject(intFlowRebinnedInMName.Data())); if(intFlowRebinnedInM) { this->SetIntFlowRebinnedInM(intFlowRebinnedInM); } else { cout<<"WARNING: intFlowRebinnedInM is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TString flowFlag[4] = {Form("v_{%d}{2,QC}",fHarmonic),Form("v_{%d}{4,QC}",fHarmonic),Form("v_{%d}{6,QC}",fHarmonic),Form("v_{%d}{8,QC}",fHarmonic)}; for(Int_t co=0;co<4;co++) // cumulant order { TH1D *intFlowVsM = dynamic_cast (intFlowResults->FindObject(Form("%s, %s",intFlowVsMName.Data(),flowFlag[co].Data()))); if(intFlowVsM) { this->SetIntFlowVsM(intFlowVsM,co); } else { cout<<"WARNING: "<Data(); TH1D *intFlowDetectorBias = dynamic_cast(intFlowResults->FindObject(intFlowDetectorBiasName.Data())); if(intFlowDetectorBias) { this->SetIntFlowDetectorBias(intFlowDetectorBias); } else { cout<<"WARNING: intFlowDetectorBias is NULL in AFAWQC::GPFIFH() !!!!"<Data(); for(Int_t ci=0;ci<4;ci++) // correlation index { TH1D *intFlowDetectorBiasVsM = dynamic_cast (intFlowResults->FindObject(Form("%s for %s",intFlowDetectorBiasVsMName.Data(),cumulantFlag[ci].Data()))); if(intFlowDetectorBiasVsM) { this->SetIntFlowDetectorBiasVsM(intFlowDetectorBiasVsM,ci); } else { cout<<"WARNING: "<SetCalculate2DDiffFlow((Bool_t)fDiffFlowFlags->GetBinContent(5)); // to be improved - hardwired 5 if(!fCalculate2DDiffFlow){return;} TString typeFlag[2] = {"RP","POI"}; TString reducedCorrelationIndex[4] = {"<2'>","<4'>","<6'>","<8'>"}; TString differentialCumulantIndex[4] = {"QC{2'}","QC{4'}","QC{6'}","QC{8'}"}; TString differentialFlowIndex[4] = {"v'{2}","v'{4}","v'{6}","v'{8}"}; // Base list: TString diffFlow2DListName = "2D"; diffFlow2DListName += fAnalysisLabel->Data(); fDiffFlow2D = dynamic_cast(fDiffFlowList->FindObject(diffFlow2DListName.Data())); if(!fDiffFlow2D) { printf("\n WARNING (QC): fDiffFlow2D is NULL in AFAWQC::GPFDFH() !!!!\n\n"); exit(0); } // Lists holding profiles with 2D correlations: TString s2DDiffFlowCorrelationsProListName = "Profiles with 2D correlations"; s2DDiffFlowCorrelationsProListName += fAnalysisLabel->Data(); // to be improved for(Int_t t=0;t<2;t++) { f2DDiffFlowCorrelationsProList[t] = dynamic_cast(fDiffFlow2D->FindObject(Form("Profiles with 2D correlations (%s)",typeFlag[t].Data()))); if(!f2DDiffFlowCorrelationsProList[t]) { printf("\n WARNING (QC): f2DDiffFlowCorrelationsProList[%i] is NULL in AFAWQC::GPF2DFH() !!!!\n\n",t); exit(0); } } // end of for(Int_t t=0;t<2;t++) // c) Get pointers to 2D differential flow profiles: TString s2DDiffFlowCorrelationsProName = "f2DDiffFlowCorrelationsPro"; s2DDiffFlowCorrelationsProName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { f2DDiffFlowCorrelationsPro[t][rci] = dynamic_cast(f2DDiffFlowCorrelationsProList[t]->FindObject(Form("%s, %s, %s",s2DDiffFlowCorrelationsProName.Data(),typeFlag[t].Data(),reducedCorrelationIndex[rci].Data()))); if(!f2DDiffFlowCorrelationsPro[t][rci]) { printf("\n WARNING (QC): f2DDiffFlowCorrelationsPro[%i][%i] is NULL in AFAWQC::GPF2DFH() !!!!\n\n",t,rci); exit(0); } else { this->Set2DDiffFlowCorrelationsPro(f2DDiffFlowCorrelationsPro[t][rci],t,rci); } } // end of for(Int_t rci=0;rci<4;rci++) // reduced correlation index } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // d) Get pointers to 2D differential flow histograms: TString s2DDiffFlowCumulantsName = "f2DDiffFlowCumulants"; s2DDiffFlowCumulantsName += fAnalysisLabel->Data(); TString s2DDiffFlowName = "f2DDiffFlow"; s2DDiffFlowName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { // 2D differential cumulants: f2DDiffFlowCumulants[t][rci] = dynamic_cast(f2DDiffFlowCorrelationsProList[t]->FindObject(Form("%s, %s, %s",s2DDiffFlowCumulantsName.Data(),typeFlag[t].Data(),differentialCumulantIndex[rci].Data()))); if(!f2DDiffFlowCumulants[t][rci]) { printf("\n WARNING (QC): f2DDiffFlowCumulants[%i][%i] is NULL in AFAWQC::GPF2DFH() !!!!\n\n",t,rci); exit(0); } else { this->Set2DDiffFlowCumulants(f2DDiffFlowCumulants[t][rci],t,rci); } // 2D differential flow: f2DDiffFlow[t][rci] = dynamic_cast(f2DDiffFlowCorrelationsProList[t]->FindObject(Form("%s, %s, %s",s2DDiffFlowName.Data(),typeFlag[t].Data(),differentialFlowIndex[rci].Data()))); if(!f2DDiffFlow[t][rci]) { printf("\n WARNING (QC): f2DDiffFlow[%i][%i] is NULL in AFAWQC::GPF2DFH() !!!!\n\n",t,rci); exit(0); } else { this->Set2DDiffFlow(f2DDiffFlow[t][rci],t,rci); } } // end of for(Int_t rci=0;rci<4;rci++) // reduced correlation index } // end of for(Int_t t=0;t<2;t++) // type: RP or POI } // end of void AliFlowAnalysisWithQCumulants::GetPointersFor2DDiffFlowHistograms() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetPointersForOtherDiffCorrelators() { // Get pointers for other differential correlators. // a) Get pointer to list with other differential correlators; // b) Declare local flags; // c) Get pointers to other differential profiles. if(!fCalculateDiffFlow){return;} // TBI: This must eventually be moved somewhere else // a) Get pointer to list with other differential correlators: fOtherDiffCorrelatorsList = dynamic_cast(fHistList->FindObject("Other differential correlators")); if(!fOtherDiffCorrelatorsList) { printf("\n WARNING (QC): fOtherDiffCorrelatorsList is NULL in AFAWQC::GPFDFH() !!!!\n\n"); exit(0); } // b) Declare local flags: // (to be improved - promoted to data members) TString typeFlag[2] = {"RP","POI"}; TString ptEtaFlag[2] = {"p_{T}","#eta"}; TString sinCosFlag[2] = {"sin","cos"}; // c) Get pointers to other differential profiles: TString otherDiffCorrelatorsName = "fOtherDiffCorrelators"; otherDiffCorrelatorsName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t ci=0;ci<1;ci++) // correlator index { fOtherDiffCorrelators[t][pe][sc][ci] = dynamic_cast(fOtherDiffCorrelatorsList->FindObject(Form("%s, %s, %s, %s, ci = %d",otherDiffCorrelatorsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),ci+1))); if(!fOtherDiffCorrelators[t][pe][sc][ci]) { printf("\n WARNING (QC): fOtherDiffCorrelators[%i][%i][%i][%i] is NULL in AFAWQC::GPFODC() !!!!\n\n",t,pe,sc,ci); exit(0); } else { this->SetOtherDiffCorrelators(fOtherDiffCorrelators[t][pe][sc][ci],t,pe,sc,ci); } } // end of for(Int_t ci=0;ci<1;ci++) // correlator index } // end of for(Int_t sc=0;sc<2;sc++) // sin or cos } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) } // end of void AliFlowAnalysisWithQCumulants::GetPointersForOtherDiffCorrelators() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetPointersForDiffFlowHistograms() { // Get pointer to all objects relevant for differential flow. // a) Get pointer to base list for differential flow fDiffFlowList; // b) Get pointer to profile fDiffFlowFlags holding all flags for differential flow. Access and set some flags; // c) Get pointers to nested lists fDiffFlowListProfiles and fDiffFlowListResults; // d) Define flags locally (to be improved: should I promote these flags to data members?); // e) Get pointers to all nested lists in fDiffFlowListProfiles and to profiles which they hold; // f) Get pointers to all nested lists in fDiffFlowListResults and to histograms which they hold. // a) Get pointer to base list for differential flow fDiffFlowList: fDiffFlowList = dynamic_cast(fHistList->FindObject("Differential Flow")); if(!fDiffFlowList) { printf("\n WARNING (QC): fDiffFlowList is NULL in AFAWQC::GPFDFH() !!!!\n\n"); exit(0); } // b) Get pointer to profile fDiffFlowFlags holding all flags for differential flow. Access and set some flags: TString diffFlowFlagsName = "fDiffFlowFlags"; diffFlowFlagsName += fAnalysisLabel->Data(); fDiffFlowFlags = dynamic_cast(fDiffFlowList->FindObject(diffFlowFlagsName.Data())); if(fDiffFlowFlags) { this->SetCalculateDiffFlow((Bool_t)fDiffFlowFlags->GetBinContent(1)); // to be improved - hardwired 1 this->SetCalculateDiffFlowVsEta((Bool_t)fDiffFlowFlags->GetBinContent(6)); // to be improved - hardwired 6 } else { printf("\n WARNING (QC): fDiffFlowFlags is NULL in AFAWQC::GPFDFH() !!!!\n\n"); printf("\n Flags in method Finish() are wrong.\n\n"); exit(0); } if(!fCalculateDiffFlow){return;} // IMPORTANT: do not move this anywhere above in this method (to be improved) // c) Get pointers to nested lists fDiffFlowListProfiles and fDiffFlowListResults: // List holding nested lists holding profiles: TList *diffFlowListProfiles = NULL; diffFlowListProfiles = dynamic_cast(fDiffFlowList->FindObject("Profiles")); if(!diffFlowListProfiles) { printf("\n WARNING (QC): diffFlowListProfiles is NULL in AFAWQC::GPFDFH() !!!!\n\n"); exit(0); } // List holding nested lists holding histograms with final results: TList *diffFlowListResults = NULL; diffFlowListResults = dynamic_cast(fDiffFlowList->FindObject("Results")); if(!diffFlowListResults) { printf("\n WARNING (QC): diffFlowListResults is NULL in AFAWQC::GPFDFH() !!!!\n\n"); exit(0); } // d) Define flags locally (to be improved: should I promote these flags to data members?): TString typeFlag[2] = {"RP","POI"}; TString ptEtaFlag[2] = {"p_{T}","#eta"}; TString powerFlag[2] = {"linear","quadratic"}; TString sinCosFlag[2] = {"sin","cos"}; TString differentialCumulantIndex[4] = {"QC{2'}","QC{4'}","QC{6'}","QC{8'}"}; TString differentialFlowIndex[4] = {"v'{2}","v'{4}","v'{6}","v'{8}"}; TString reducedCorrelationIndex[4] = {"<2'>","<4'>","<6'>","<8'>"}; TString reducedSquaredCorrelationIndex[4] = {"<2'>^{2}","<4'>^{2}","<6'>^{2}","<8'>^{2}"}; TString mixedCorrelationIndex[8] = {"<2>","<2'>","<4>","<4'>","<6>","<6'>","<8>","<8'>"}; TString covarianceName[5] = {"Cov(<2>,<2'>)","Cov(<2>,<4'>)","Cov(<4>,<2'>)","Cov(<4>,<4'>)","Cov(<2'>,<4'>)"}; // e) Get pointers to all nested lists in fDiffFlowListProfiles and to profiles which they hold: // correlations: TList *diffFlowCorrelationsProList[2][2] = {{NULL}}; TString diffFlowCorrelationsProName = "fDiffFlowCorrelationsPro"; diffFlowCorrelationsProName += fAnalysisLabel->Data(); TProfile *diffFlowCorrelationsPro[2][2][4] = {{{NULL}}}; // squared correlations: TString diffFlowSquaredCorrelationsProName = "fDiffFlowSquaredCorrelationsPro"; diffFlowSquaredCorrelationsProName += fAnalysisLabel->Data(); TProfile *diffFlowSquaredCorrelationsPro[2][2][4] = {{{NULL}}}; // products of correlations: TList *diffFlowProductOfCorrelationsProList[2][2] = {{NULL}}; TString diffFlowProductOfCorrelationsProName = "fDiffFlowProductOfCorrelationsPro"; diffFlowProductOfCorrelationsProName += fAnalysisLabel->Data(); TProfile *diffFlowProductOfCorrelationsPro[2][2][8][8] = {{{{NULL}}}}; // corrections: TList *diffFlowCorrectionsProList[2][2] = {{NULL}}; TString diffFlowCorrectionTermsForNUAProName = "fDiffFlowCorrectionTermsForNUAPro"; diffFlowCorrectionTermsForNUAProName += fAnalysisLabel->Data(); TProfile *diffFlowCorrectionTermsForNUAPro[2][2][2][10] = {{{{NULL}}}}; for(Int_t t=0;t<2;t++) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) { diffFlowCorrelationsProList[t][pe] = dynamic_cast(diffFlowListProfiles->FindObject(Form("Profiles with correlations (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data()))); if(!diffFlowCorrelationsProList[t][pe]) { cout<<"WARNING: diffFlowCorrelationsProList[t][pe] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowCorrelationsPro(diffFlowCorrelationsPro[t][pe][ci],t,pe,ci); } else { cout<<"WARNING: diffFlowCorrelationsPro[t][pe][ci] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowSquaredCorrelationsPro(diffFlowSquaredCorrelationsPro[t][pe][ci],t,pe,ci); } else { cout<<"WARNING: diffFlowSquaredCorrelationsPro[t][pe][ci] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowProductOfCorrelationsPro(diffFlowProductOfCorrelationsPro[t][pe][mci1][mci2],t,pe,mci1,mci2); } else { cout<<"WARNING: diffFlowProductOfCorrelationsPro[t][pe][ci] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowCorrectionTermsForNUAPro(diffFlowCorrectionTermsForNUAPro[t][pe][sc][cti],t,pe,sc,cti); } else { cout<<"WARNING: diffFlowCorrectionTermsForNUAPro[t][pe][sc][cti] is NULL in AFAWQC::GPFDFH() !!!!"<Data(); TH1D *diffFlowCorrelationsHist[2][2][4] = {{{NULL}}}; // corrections for NUA: TList *diffFlowCorrectionsHistList[2][2] = {{NULL}}; TString diffFlowCorrectionTermsForNUAHistName = "fDiffFlowCorrectionTermsForNUAHist"; diffFlowCorrectionTermsForNUAHistName += fAnalysisLabel->Data(); TH1D *diffFlowCorrectionTermsForNUAHist[2][2][2][10] = {{{{NULL}}}}; // differential Q-cumulants: TList *diffFlowCumulantsHistList[2][2] = {{NULL}}; TString diffFlowCumulantsName = "fDiffFlowCumulants"; diffFlowCumulantsName += fAnalysisLabel->Data(); TH1D *diffFlowCumulants[2][2][4] = {{{NULL}}}; // detector bias to differential Q-cumulants: TList *diffFlowDetectorBiasHistList[2][2] = {{NULL}}; TString diffFlowDetectorBiasName = "fDiffFlowDetectorBias"; diffFlowDetectorBiasName += fAnalysisLabel->Data(); TH1D *diffFlowDetectorBias[2][2][4] = {{{NULL}}}; // differential flow estimates from Q-cumulants: TList *diffFlowHistList[2][2] = {{NULL}}; TString diffFlowName = "fDiffFlow"; diffFlowName += fAnalysisLabel->Data(); TH1D *diffFlow[2][2][4] = {{{NULL}}}; // differential covariances: TList *diffFlowCovariancesHistList[2][2] = {{NULL}}; TString diffFlowCovariancesName = "fDiffFlowCovariances"; diffFlowCovariancesName += fAnalysisLabel->Data(); TH1D *diffFlowCovariances[2][2][5] = {{{NULL}}}; for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { // reduced correlations: diffFlowCorrelationsHistList[t][pe] = dynamic_cast(diffFlowListResults->FindObject(Form("Correlations (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data()))); if(!diffFlowCorrelationsHistList[t][pe]) { cout<<"WARNING: diffFlowCorrelationsHistList[t][pe] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowCorrelationsHist(diffFlowCorrelationsHist[t][pe][index],t,pe,index); } else { cout<<"WARNING: diffFlowCorrelationsHist[t][pe][index] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowCorrectionTermsForNUAHist(diffFlowCorrectionTermsForNUAHist[t][pe][sc][cti],t,pe,sc,cti); } else { cout<<"WARNING: diffFlowCorrectionTermsForNUAHist[t][pe][sc][cti] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowCumulants(diffFlowCumulants[t][pe][index],t,pe,index); } else { cout<<"WARNING: diffFlowCumulants[t][pe][index] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowDetectorBias(diffFlowDetectorBias[t][pe][index],t,pe,index); } else { cout<<"WARNING: diffFlowDetectorBias[t][pe][index] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlow(diffFlow[t][pe][index],t,pe,index); } else { cout<<"WARNING: diffFlow[t][pe][index] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowCovariances(diffFlowCovariances[t][pe][covIndex],t,pe,covIndex); } else { cout<<"WARNING: diffFlowCovariances[t][pe][covIndex] is NULL in AFAWQC::GPFDFH() !!!!"<Data(); TH1D *diffFlowSumOfEventWeights[2][2][2][4] = {{{{NULL}}}}; for(Int_t t=0;t<2;t++) // type is RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t p=0;p<2;p++) // power of event weights is either 1 or 2 { diffFlowSumOfEventWeightsHistList[t][pe][p] = dynamic_cast(diffFlowListResults->FindObject(Form("Sum of %s event weights (%s, %s)",powerFlag[p].Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data()))); if(!diffFlowSumOfEventWeightsHistList[t][pe][p]) { cout<<"WARNING: diffFlowSumOfEventWeightsHistList[t][pe][p] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowSumOfEventWeights(diffFlowSumOfEventWeights[t][pe][p][ew],t,pe,p,ew); } else { cout<<"WARNING: diffFlowSumOfEventWeights[t][pe][p][ew] is NULL in AFAWQC::GPFDFH() !!!!"<Data(); TH1D *diffFlowSumOfProductOfEventWeights[2][2][8][8] = {{{{NULL}}}}; for(Int_t t=0;t<2;t++) // type is RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { diffFlowSumOfProductOfEventWeightsHistList[t][pe] = dynamic_cast(diffFlowListResults->FindObject(Form("Sum of products of event weights (%s, %s)",typeFlag[t].Data(),ptEtaFlag[pe].Data()))); if(!diffFlowSumOfProductOfEventWeightsHistList[t][pe]) { cout<<"WARNING: diffFlowSumOfProductOfEventWeightsHistList[t][pe] is NULL in AFAWQC::GPFDFH() !!!!"<SetDiffFlowSumOfProductOfEventWeights(diffFlowSumOfProductOfEventWeights[t][pe][mci1][mci2],t,pe,mci1,mci2); } else { cout<<"WARNING: diffFlowSumOfProductOfEventWeights[t][pe][mci1][mci2] is NULL in AFAWQC::GPFDFH() !!!!"<","<4'>","<6'>","<8'>"}; TString differentialCumulantIndex[4] = {"QC{2'}","QC{4'}","QC{6'}","QC{8'}"}; TString differentialFlowIndex[4] = {"v'{2}","v'{4}","v'{6}","v'{8}"}; // b) Book e-b-e quantities: TProfile2D styleRe("typeMultiplePowerRe","typeMultiplePowerRe",fnBinsPt,fPtMin,fPtMax,fnBinsEta,fEtaMin,fEtaMax); TProfile2D styleIm("typeMultiplePowerIm","typeMultiplePowerIm",fnBinsPt,fPtMin,fPtMax,fnBinsEta,fEtaMin,fEtaMax); for(Int_t t=0;t<3;t++) // typeFlag (0 = RP, 1 = POI, 2 = RP&&POI ) { for(Int_t m=0;m<4;m++) { for(Int_t k=0;k<9;k++) { fReRPQ2dEBE[t][m][k] = (TProfile2D*)styleRe.Clone(Form("typeFlag%dmultiple%dpower%dRe",t,m,k)); fImRPQ2dEBE[t][m][k] = (TProfile2D*)styleIm.Clone(Form("typeFlag%dmultiple%dpower%dIm",t,m,k)); } } } TProfile2D styleS("typePower","typePower",fnBinsPt,fPtMin,fPtMax,fnBinsEta,fEtaMin,fEtaMax); for(Int_t t=0;t<3;t++) // typeFlag (0 = RP, 1 = POI, 2 = RP&&POI ) { for(Int_t k=0;k<9;k++) { fs2dEBE[t][k] = (TProfile2D*)styleS.Clone(Form("typeFlag%dpower%d",t,k)); } } // c) Book 2D profiles: TString s2DDiffFlowCorrelationsProName = "f2DDiffFlowCorrelationsPro"; s2DDiffFlowCorrelationsProName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { f2DDiffFlowCorrelationsPro[t][rci] = new TProfile2D(Form("%s, %s, %s",s2DDiffFlowCorrelationsProName.Data(),typeFlag[t].Data(),reducedCorrelationIndex[rci].Data()),Form("%s, %s, %s",s2DDiffFlowCorrelationsProName.Data(),typeFlag[t].Data(),reducedCorrelationIndex[rci].Data()),fnBinsPt,fPtMin,fPtMax,fnBinsEta,fEtaMin,fEtaMax,""); f2DDiffFlowCorrelationsPro[t][rci]->Sumw2(); f2DDiffFlowCorrelationsPro[t][rci]->SetXTitle("p_{t}"); f2DDiffFlowCorrelationsPro[t][rci]->SetYTitle("#eta"); f2DDiffFlowCorrelationsProList[t]->Add(f2DDiffFlowCorrelationsPro[t][rci]); } // end of for(Int_t rci=0;rci<4;rci++) // correlation index } // end of for(Int_t t=0;t<2;t++) // type: RP or POIs // d) Book 2D histograms: TString s2DDiffFlowCumulantsName = "f2DDiffFlowCumulants"; s2DDiffFlowCumulantsName += fAnalysisLabel->Data(); TString s2DDiffFlowName = "f2DDiffFlow"; s2DDiffFlowName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { // 2D diferential cumulants: f2DDiffFlowCumulants[t][rci] = new TH2D(Form("%s, %s, %s",s2DDiffFlowCumulantsName.Data(),typeFlag[t].Data(),differentialCumulantIndex[rci].Data()),Form("%s, %s, %s",s2DDiffFlowCumulantsName.Data(),typeFlag[t].Data(),differentialCumulantIndex[rci].Data()),fnBinsPt,fPtMin,fPtMax,fnBinsEta,fEtaMin,fEtaMax); f2DDiffFlowCumulants[t][rci]->SetXTitle("p_{t}"); f2DDiffFlowCumulants[t][rci]->SetYTitle("#eta"); f2DDiffFlowCorrelationsProList[t]->Add(f2DDiffFlowCumulants[t][rci]); // to be improved - moved to another list // 2D differential flow: f2DDiffFlow[t][rci] = new TH2D(Form("%s, %s, %s",s2DDiffFlowName.Data(),typeFlag[t].Data(),differentialFlowIndex[rci].Data()),Form("%s, %s, %s",s2DDiffFlowName.Data(),typeFlag[t].Data(),differentialFlowIndex[rci].Data()),fnBinsPt,fPtMin,fPtMax,fnBinsEta,fEtaMin,fEtaMax); f2DDiffFlow[t][rci]->SetXTitle("p_{t}"); f2DDiffFlow[t][rci]->SetYTitle("#eta"); f2DDiffFlowCorrelationsProList[t]->Add(f2DDiffFlow[t][rci]); // to be improved - moved to another list } // end of for(Int_t rci=0;rci<4;rci++) // correlation index } // end of for(Int_t t=0;t<2;t++) // type: RP or POIs } // void AliFlowAnalysisWithQCumulants::BookEverythingFor2DDifferentialFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::BookEverythingForDifferentialFlow() { // Book all histograms and profiles needed for differential flow. // a) Book profile to hold all flags for differential flow; // b) Define flags locally (to be improved: should I promote flags to data members?); // c) Book e-b-e quantities; // d) Book profiles; // e) Book histograms holding final results. // a) Book profile to hold all flags for differential flow: TString diffFlowFlagsName = "fDiffFlowFlags"; diffFlowFlagsName += fAnalysisLabel->Data(); fDiffFlowFlags = new TProfile(diffFlowFlagsName.Data(),"Flags for differential flow",6,0,6); fDiffFlowFlags->SetTickLength(-0.01,"Y"); fDiffFlowFlags->SetMarkerStyle(25); fDiffFlowFlags->SetLabelSize(0.04,"X"); fDiffFlowFlags->SetLabelOffset(0.02,"Y"); fDiffFlowFlags->SetStats(kFALSE); fDiffFlowFlags->GetXaxis()->SetBinLabel(1,"Calculate diff. flow"); fDiffFlowFlags->GetXaxis()->SetBinLabel(2,"Particle weights"); fDiffFlowFlags->GetXaxis()->SetBinLabel(3,"Event weights"); fDiffFlowFlags->GetXaxis()->SetBinLabel(4,"Correct for NUA"); fDiffFlowFlags->GetXaxis()->SetBinLabel(5,"Calculate 2D diff. flow"); fDiffFlowFlags->GetXaxis()->SetBinLabel(6,"Calculate diff. flow vs eta"); fDiffFlowList->Add(fDiffFlowFlags); if(!fCalculateDiffFlow){return;} // b) Define flags locally (to be improved: should I promote flags to data members?): TString typeFlag[2] = {"RP","POI"}; TString ptEtaFlag[2] = {"p_{T}","#eta"}; TString powerFlag[2] = {"linear","quadratic"}; TString sinCosFlag[2] = {"sin","cos"}; TString differentialCumulantIndex[4] = {"QC{2'}","QC{4'}","QC{6'}","QC{8'}"}; TString differentialFlowIndex[4] = {"v'{2}","v'{4}","v'{6}","v'{8}"}; TString reducedCorrelationIndex[4] = {"<2'>","<4'>","<6'>","<8'>"}; TString reducedSquaredCorrelationIndex[4] = {"<2'>^{2}","<4'>^{2}","<6'>^{2}","<8'>^{2}"}; TString mixedCorrelationIndex[8] = {"<2>","<2'>","<4>","<4'>","<6>","<6'>","<8>","<8'>"}; TString covarianceName[5] = {"Cov(<2>,<2'>)","Cov(<2>,<4'>)","Cov(<4>,<2'>)","Cov(<4>,<4'>)","Cov(<2'>,<4'>)"}; Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; Double_t maxPtEta[2] = {fPtMax,fEtaMax}; // c) Book e-b-e quantities: // Event-by-event r_{m*n,k}(pt,eta), p_{m*n,k}(pt,eta) and q_{m*n,k}(pt,eta) // Explanantion of notation: // 1.) n is harmonic, m is multiple of harmonic; // 2.) k is power of particle weight; // 3.) r_{m*n,k}(pt,eta) = Q-vector evaluated in harmonic m*n for RPs in particular (pt,eta) bin (i-th RP is weighted with w_i^k); // 4.) p_{m*n,k}(pt,eta) = Q-vector evaluated in harmonic m*n for POIs in particular (pt,eta) bin // (if i-th POI is also RP, than it is weighted with w_i^k); // 5.) q_{m*n,k}(pt,eta) = Q-vector evaluated in harmonic m*n for particles which are both RPs and POIs in particular (pt,eta) bin // (i-th RP&&POI is weighted with w_i^k) // 1D: for(Int_t t=0;t<3;t++) // typeFlag (0 = RP, 1 = POI, 2 = RP && POI ) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t m=0;m<4;m++) // multiple of harmonic { for(Int_t k=0;k<9;k++) // power of particle weight { fReRPQ1dEBE[t][pe][m][k] = new TProfile(Form("TypeFlag%dpteta%dmultiple%dpower%dRe",t,pe,m,k), Form("TypeFlag%dpteta%dmultiple%dpower%dRe",t,pe,m,k),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fImRPQ1dEBE[t][pe][m][k] = new TProfile(Form("TypeFlag%dpteta%dmultiple%dpower%dIm",t,pe,m,k), Form("TypeFlag%dpteta%dmultiple%dpower%dIm",t,pe,m,k),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); } } } } // to be improved (add explanation of fs1dEBE[t][pe][k]): for(Int_t t=0;t<3;t++) // typeFlag (0 = RP, 1 = POI, 2 = RP&&POI ) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t k=0;k<9;k++) // power of particle weight { fs1dEBE[t][pe][k] = new TProfile(Form("TypeFlag%dpteta%dmultiple%d",t,pe,k), Form("TypeFlag%dpteta%dmultiple%d",t,pe,k),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); } } } // correction terms for nua: for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAEBE[t][pe][sc][cti] = new TH1D(Form("typeFlag%d pteta%d sincos%d cti%d",t,pe,sc,cti), Form("typeFlag%d pteta%d sincos%d cti%d",t,pe,sc,cti),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); } } } } // reduced correlations e-b-e: TString diffFlowCorrelationsEBEName = "fDiffFlowCorrelationsEBE"; diffFlowCorrelationsEBEName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { fDiffFlowCorrelationsEBE[t][pe][rci] = new TH1D(Form("%s, %s, %s, %s",diffFlowCorrelationsEBEName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),Form("%s, %s, %s, %s",diffFlowCorrelationsEBEName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); } // end of for(Int_t ci=0;ci<4;ci++) // correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // event weights for reduced correlations e-b-e: TString diffFlowEventWeightsForCorrelationsEBEName = "fDiffFlowEventWeightsForCorrelationsEBE"; diffFlowEventWeightsForCorrelationsEBEName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t rci=0;rci<4;rci++) // event weight for reduced correlation index { fDiffFlowEventWeightsForCorrelationsEBE[t][pe][rci] = new TH1D(Form("%s, %s, %s, eW for %s",diffFlowEventWeightsForCorrelationsEBEName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),Form("%s, %s, %s, eW for %s",diffFlowEventWeightsForCorrelationsEBEName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); } // end of for(Int_t ci=0;ci<4;ci++) // correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // d) Book profiles; // reduced correlations: TString diffFlowCorrelationsProName = "fDiffFlowCorrelationsPro"; diffFlowCorrelationsProName += fAnalysisLabel->Data(); // reduced squared correlations: TString diffFlowSquaredCorrelationsProName = "fDiffFlowSquaredCorrelationsPro"; diffFlowSquaredCorrelationsProName += fAnalysisLabel->Data(); // corrections terms: TString diffFlowCorrectionTermsForNUAProName = "fDiffFlowCorrectionTermsForNUAPro"; diffFlowCorrectionTermsForNUAProName += fAnalysisLabel->Data(); // reduced correlations: for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { fDiffFlowCorrelationsPro[t][pe][rci] = new TProfile(Form("%s, %s, %s, %s",diffFlowCorrelationsProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),Form("%s, %s, %s, %s",diffFlowCorrelationsProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[rci].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe],"s"); fDiffFlowCorrelationsPro[t][pe][rci]->Sumw2(); fDiffFlowCorrelationsPro[t][pe][rci]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowCorrelationsProList[t][pe]->Add(fDiffFlowCorrelationsPro[t][pe][rci]); // to be improved (add dedicated list to hold reduced correlations) } // end of for(Int_t rci=0;rci<4;rci++) // correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // reduced squared correlations: for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { fDiffFlowSquaredCorrelationsPro[t][pe][rci] = new TProfile(Form("%s, %s, %s, %s",diffFlowSquaredCorrelationsProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedSquaredCorrelationIndex[rci].Data()),Form("%s, %s, %s, %s",diffFlowSquaredCorrelationsProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedSquaredCorrelationIndex[rci].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe],"s"); fDiffFlowSquaredCorrelationsPro[t][pe][rci]->Sumw2(); fDiffFlowSquaredCorrelationsPro[t][pe][rci]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowCorrelationsProList[t][pe]->Add(fDiffFlowSquaredCorrelationsPro[t][pe][rci]); // to be improved (add dedicated list to hold reduced correlations) } // end of for(Int_t rci=0;rci<4;rci++) // correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // correction terms for nua: for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAPro[t][pe][sc][cti] = new TProfile(Form("%s, %s, %s, %s, cti = %d",diffFlowCorrectionTermsForNUAProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1),Form("%s, %s, %s, %s, cti = %d",diffFlowCorrectionTermsForNUAProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowCorrectionsProList[t][pe]->Add(fDiffFlowCorrectionTermsForNUAPro[t][pe][sc][cti]); } } } } // Other differential correlators: TString otherDiffCorrelatorsName = "fOtherDiffCorrelators"; otherDiffCorrelatorsName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t ci=0;ci<1;ci++) // correlator index { fOtherDiffCorrelators[t][pe][sc][ci] = new TProfile(Form("%s, %s, %s, %s, ci = %d",otherDiffCorrelatorsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),ci+1),Form("%s, %s, %s, %s, ci = %d",otherDiffCorrelatorsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),ci+1),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fOtherDiffCorrelators[t][pe][sc][ci]->Sumw2(); fOtherDiffCorrelatorsList->Add(fOtherDiffCorrelators[t][pe][sc][ci]); } } } } // e) Book histograms holding final results. // reduced correlations: TString diffFlowCorrelationsHistName = "fDiffFlowCorrelationsHist"; diffFlowCorrelationsHistName += fAnalysisLabel->Data(); // corrections terms: TString diffFlowCorrectionTermsForNUAHistName = "fDiffFlowCorrectionTermsForNUAHist"; diffFlowCorrectionTermsForNUAHistName += fAnalysisLabel->Data(); // differential covariances: TString diffFlowCovariancesName = "fDiffFlowCovariances"; diffFlowCovariancesName += fAnalysisLabel->Data(); // differential Q-cumulants: TString diffFlowCumulantsName = "fDiffFlowCumulants"; diffFlowCumulantsName += fAnalysisLabel->Data(); // Detector bias to differential Q-cumulants: TString diffFlowDetectorBiasName = "fDiffFlowDetectorBias"; diffFlowDetectorBiasName += fAnalysisLabel->Data(); // differential flow: TString diffFlowName = "fDiffFlow"; diffFlowName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type: RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t index=0;index<4;index++) { // reduced correlations: fDiffFlowCorrelationsHist[t][pe][index] = new TH1D(Form("%s, %s, %s, %s",diffFlowCorrelationsHistName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[index].Data()),Form("%s, %s, %s, %s",diffFlowCorrelationsHistName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[index].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowCorrelationsHist[t][pe][index]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowCorrelationsHistList[t][pe]->Add(fDiffFlowCorrelationsHist[t][pe][index]); // differential Q-cumulants: fDiffFlowCumulants[t][pe][index] = new TH1D(Form("%s, %s, %s, %s",diffFlowCumulantsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),differentialCumulantIndex[index].Data()),Form("%s, %s, %s, %s",diffFlowCumulantsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),differentialCumulantIndex[index].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowCumulants[t][pe][index]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowCumulantsHistList[t][pe]->Add(fDiffFlowCumulants[t][pe][index]); // Detector bias to differential Q-cumulants: fDiffFlowDetectorBias[t][pe][index] = new TH1D(Form("%s, %s, %s, %s",diffFlowDetectorBiasName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),differentialCumulantIndex[index].Data()),Form("%s, %s, %s, %s",diffFlowDetectorBiasName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),differentialCumulantIndex[index].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowDetectorBias[t][pe][index]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowDetectorBias[t][pe][index]->SetTitle(Form("#frac{corrected}{measured} %s",differentialCumulantIndex[index].Data())); fDiffFlowDetectorBiasHistList[t][pe]->Add(fDiffFlowDetectorBias[t][pe][index]); // differential flow estimates from Q-cumulants: fDiffFlow[t][pe][index] = new TH1D(Form("%s, %s, %s, %s",diffFlowName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),differentialFlowIndex[index].Data()),Form("%s, %s, %s, %s",diffFlowName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),differentialFlowIndex[index].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlow[t][pe][index]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowHistList[t][pe]->Add(fDiffFlow[t][pe][index]); } // end of for(Int_t index=0;index<4;index++) for(Int_t covIndex=0;covIndex<5;covIndex++) // covariance index { // differential covariances: fDiffFlowCovariances[t][pe][covIndex] = new TH1D(Form("%s, %s, %s, %s",diffFlowCovariancesName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),covarianceName[covIndex].Data()),Form("%s, %s, %s, %s",diffFlowCovariancesName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),covarianceName[covIndex].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowCovariances[t][pe][covIndex]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowCovariancesHistList[t][pe]->Add(fDiffFlowCovariances[t][pe][covIndex]); } // end of for(Int_t covIndex=0;covIndex<5;covIndex++) // covariance index // products of both types of correlations: TString diffFlowProductOfCorrelationsProName = "fDiffFlowProductOfCorrelationsPro"; diffFlowProductOfCorrelationsProName += fAnalysisLabel->Data(); for(Int_t mci1=0;mci1<8;mci1++) // mixed correlation index { for(Int_t mci2=mci1+1;mci2<8;mci2++) // mixed correlation index { fDiffFlowProductOfCorrelationsPro[t][pe][mci1][mci2] = new TProfile(Form("%s, %s, %s, %s, %s",diffFlowProductOfCorrelationsProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),mixedCorrelationIndex[mci1].Data(),mixedCorrelationIndex[mci2].Data()),Form("%s, %s, %s, %s #times %s",diffFlowProductOfCorrelationsProName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),mixedCorrelationIndex[mci1].Data(),mixedCorrelationIndex[mci2].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowProductOfCorrelationsPro[t][pe][mci1][mci2]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowProductOfCorrelationsProList[t][pe]->Add(fDiffFlowProductOfCorrelationsPro[t][pe][mci1][mci2]); if(mci1%2 == 0) mci2++; // products which DO NOT include reduced correlations are not stored here } // end of for(Int_t mci2=mci1+1;mci2<8;mci2++) // mixed correlation index } // end of for(Int_t mci1=0;mci1<8;mci1++) // mixed correlation index } // end of for(Int_t pe=0;pe<2;pe++) // pt or eta } // end of for(Int_t t=0;t<2;t++) // type: RP or POI // sums of event weights for reduced correlations: TString diffFlowSumOfEventWeightsName = "fDiffFlowSumOfEventWeights"; diffFlowSumOfEventWeightsName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type is RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t p=0;p<2;p++) // power of weights is either 1 or 2 { for(Int_t ew=0;ew<4;ew++) // index of reduced correlation { fDiffFlowSumOfEventWeights[t][pe][p][ew] = new TH1D(Form("%s, %s, %s, %s, %s",diffFlowSumOfEventWeightsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),powerFlag[p].Data(),reducedCorrelationIndex[ew].Data()),Form("%s, %s, %s, power = %s, %s",diffFlowSumOfEventWeightsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),powerFlag[p].Data(),reducedCorrelationIndex[ew].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowSumOfEventWeights[t][pe][p][ew]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowSumOfEventWeightsHistList[t][pe][p]->Add(fDiffFlowSumOfEventWeights[t][pe][p][ew]); // to be improved (add dedicated list to hold all this) } } } } // sum of products of event weights for both types of correlations: TString diffFlowSumOfProductOfEventWeightsName = "fDiffFlowSumOfProductOfEventWeights"; diffFlowSumOfProductOfEventWeightsName += fAnalysisLabel->Data(); for(Int_t t=0;t<2;t++) // type is RP or POI { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t mci1=0;mci1<8;mci1++) // mixed correlation index { for(Int_t mci2=mci1+1;mci2<8;mci2++) // mixed correlation index { fDiffFlowSumOfProductOfEventWeights[t][pe][mci1][mci2] = new TH1D(Form("%s, %s, %s, %s, %s",diffFlowSumOfProductOfEventWeightsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),mixedCorrelationIndex[mci1].Data(),mixedCorrelationIndex[mci2].Data()),Form("%s, %s, %s, %s #times %s",diffFlowSumOfProductOfEventWeightsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),mixedCorrelationIndex[mci1].Data(),mixedCorrelationIndex[mci2].Data()),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowSumOfProductOfEventWeights[t][pe][mci1][mci2]->SetXTitle(ptEtaFlag[pe].Data()); fDiffFlowSumOfProductOfEventWeightsHistList[t][pe]->Add(fDiffFlowSumOfProductOfEventWeights[t][pe][mci1][mci2]); if(mci1%2 == 0) mci2++; // products which DO NOT include reduced correlations are not stored here } } } } // correction terms for nua: for(Int_t t=0;t<2;t++) // typeFlag (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAHist[t][pe][sc][cti] = new TH1D(Form("%s, %s, %s, %s, cti = %d",diffFlowCorrectionTermsForNUAHistName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1),Form("%s, %s, %s, %s, cti = %d",diffFlowCorrectionTermsForNUAHistName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1),nBinsPtEta[pe],minPtEta[pe],maxPtEta[pe]); fDiffFlowCorrectionsHistList[t][pe]->Add(fDiffFlowCorrectionTermsForNUAHist[t][pe][sc][cti]); } } } } } // end of AliFlowAnalysisWithQCumulants::BookEverythingForDifferentialFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateQcumulantsCorrectedForNUAIntFlow() { // Calculate generalized Q-cumulants (cumulants corrected for non-unifom acceptance). // Isotropic cumulants: Double_t QC2 = fIntFlowQcumulants->GetBinContent(1); Double_t QC2Error = fIntFlowQcumulants->GetBinError(1); Double_t QC4 = fIntFlowQcumulants->GetBinContent(2); Double_t QC4Error = fIntFlowQcumulants->GetBinError(2); //Double_t QC6 = fIntFlowQcumulants->GetBinContent(3); //Double_t QC6Error = fIntFlowQcumulants->GetBinError(3); //Double_t QC8 = fIntFlowQcumulants->GetBinContent(4); //Double_t QC8Error = fIntFlowQcumulants->GetBinError(4); // Measured 2-, 4-, 6- and 8-particle correlations: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); // <<2>> Double_t twoError = fIntFlowCorrelationsHist->GetBinError(1); // statistical error of <<2>> Double_t four = fIntFlowCorrelationsHist->GetBinContent(2); // <<4>> Double_t fourError = fIntFlowCorrelationsHist->GetBinError(2); // statistical error of <<4>> //Double_t six = fIntFlowCorrelationsHist->GetBinContent(3); // <<6>> //Double_t sixError = fIntFlowCorrelationsHist->GetBinError(3); // statistical error of <<6>> //Double_t eight = fIntFlowCorrelationsHist->GetBinContent(4); // <<8>> //Double_t eightError = fIntFlowCorrelationsHist->GetBinError(4); // statistical error of <<8>> // Non-isotropic terms: Double_t c1 = fIntFlowCorrectionTermsForNUAHist[1]->GetBinContent(1); // <> Double_t c1Error = fIntFlowCorrectionTermsForNUAHist[1]->GetBinError(1); // statistical error of <> Double_t c2 = fIntFlowCorrectionTermsForNUAHist[1]->GetBinContent(2); // <> Double_t c2Error = fIntFlowCorrectionTermsForNUAHist[1]->GetBinError(2); // statistical error of <> Double_t c3 = fIntFlowCorrectionTermsForNUAHist[1]->GetBinContent(3); // <> Double_t c3Error = fIntFlowCorrectionTermsForNUAHist[1]->GetBinError(3); // statistical error of <> Double_t s1 = fIntFlowCorrectionTermsForNUAHist[0]->GetBinContent(1); // <> Double_t s1Error = fIntFlowCorrectionTermsForNUAHist[0]->GetBinError(1); // statistical error of <> Double_t s2 = fIntFlowCorrectionTermsForNUAHist[0]->GetBinContent(2); // <> Double_t s2Error = fIntFlowCorrectionTermsForNUAHist[0]->GetBinError(2); // statistical error of <> Double_t s3 = fIntFlowCorrectionTermsForNUAHist[0]->GetBinContent(3); // <> Double_t s3Error = fIntFlowCorrectionTermsForNUAHist[0]->GetBinError(3); // statistical error of <> // Shortcuts: Double_t a1 = 2.*pow(c1,2.)+2.*pow(s1,2.)-two; Double_t a2 = 6.*pow(c1,3.)-2.*c1*c2+c3+6.*c1*pow(s1,2.)-2.*s1*s2-4.*c1*two; Double_t a3 = 2.*pow(s1,2.)-2.*pow(c1,2.)+c2; Double_t a4 = 6.*pow(s1,3.)+6.*pow(c1,2.)*s1+2.*c2*s1-2.*c1*s2-s3-4.*s1*two; Double_t a5 = 4.*c1*s1-s2; // Covariances (including weight dependent prefactor): Double_t wCov1 = 0.; // w*Cov(<2>,,,<4>) Double_t wCov5 = 0.; // w*Cov(<2>,) Double_t wCov6 = 0.; // w*Cov(<2>,) Double_t wCov7 = 0.; // w*Cov(<2>,) Double_t wCov8 = 0.; // w*Cov(<2>,) Double_t wCov9 = 0.; // w*Cov(<4>, Double_t wCov10 = 0.; // w*Cov(<4>,) Double_t wCov11 = 0.; // w*Cov(<4>,) Double_t wCov12 = 0.; // w*Cov(<4>, Double_t wCov13 = 0.; // w*Cov(<4>,) Double_t wCov14 = 0.; // w*Cov(<4>,) Double_t wCov15 = 0.; // w*Cov(,) Double_t wCov16 = 0.; // w*Cov(,) Double_t wCov17 = 0.; // w*Cov(,) Double_t wCov18 = 0.; // w*Cov(,) Double_t wCov19 = 0.; // w*Cov(,) Double_t wCov20 = 0.; // w*Cov(,) Double_t wCov21 = 0.; // w*Cov(,) Double_t wCov22 = 0.; // w*Cov(,) Double_t wCov23 = 0.; // w*Cov(,) Double_t wCov24 = 0.; // w*Cov(,) Double_t wCov25 = 0.; // w*Cov(,) Double_t wCov26 = 0.; // w*Cov(,) Double_t wCov27 = 0.; // w*Cov(,) Double_t wCov28 = 0.; // w*Cov(,) if(!fForgetAboutCovariances) { wCov1 = fIntFlowCovariancesNUA->GetBinContent(1); // w*Cov(<2>,GetBinContent(2); // w*Cov(<2>,GetBinContent(3); // w*Cov(GetBinContent(1); // w*Cov(<2>,<4>) wCov5 = fIntFlowCovariancesNUA->GetBinContent(4); // w*Cov(<2>,) wCov6 = fIntFlowCovariancesNUA->GetBinContent(6); // w*Cov(<2>,) wCov7 = fIntFlowCovariancesNUA->GetBinContent(5); // w*Cov(<2>,) wCov8 = fIntFlowCovariancesNUA->GetBinContent(7); // w*Cov(<2>,) wCov9 = fIntFlowCovariancesNUA->GetBinContent(8); // w*Cov(<4>, wCov10 = fIntFlowCovariancesNUA->GetBinContent(10); // w*Cov(<4>,) wCov11 = fIntFlowCovariancesNUA->GetBinContent(12); // w*Cov(<4>,) wCov12 = fIntFlowCovariancesNUA->GetBinContent(9); // w*Cov(<4>, wCov13 = fIntFlowCovariancesNUA->GetBinContent(11); // w*Cov(<4>,) wCov14 = fIntFlowCovariancesNUA->GetBinContent(13); // w*Cov(<4>,) wCov15 = fIntFlowCovariancesNUA->GetBinContent(14); // w*Cov(,) wCov16 = fIntFlowCovariancesNUA->GetBinContent(16); // w*Cov(,) wCov17 = fIntFlowCovariancesNUA->GetBinContent(15); // w*Cov(,) wCov18 = fIntFlowCovariancesNUA->GetBinContent(17); // w*Cov(,) wCov19 = fIntFlowCovariancesNUA->GetBinContent(23); // w*Cov(,) wCov20 = fIntFlowCovariancesNUA->GetBinContent(18); // w*Cov(,) wCov21 = fIntFlowCovariancesNUA->GetBinContent(22); // w*Cov(,) wCov22 = fIntFlowCovariancesNUA->GetBinContent(24); // w*Cov(,) wCov23 = fIntFlowCovariancesNUA->GetBinContent(20); // w*Cov(,) wCov24 = fIntFlowCovariancesNUA->GetBinContent(25); // w*Cov(,) wCov25 = fIntFlowCovariancesNUA->GetBinContent(27); // w*Cov(,) wCov26 = fIntFlowCovariancesNUA->GetBinContent(19); // w*Cov(,) wCov27 = fIntFlowCovariancesNUA->GetBinContent(21); // w*Cov(,) wCov28 = fIntFlowCovariancesNUA->GetBinContent(26); // w*Cov(,) } // end of if(!fForgetAboutCovariances) // Calculating generalized QC{2}: // Generalized QC{2}: Double_t gQC2 = two - pow(c1,2.) - pow(s1,2.); if(fApplyCorrectionForNUA){fIntFlowQcumulants->SetBinContent(1,gQC2);} // Statistical error of generalized QC{2}: Double_t gQC2ErrorSquared = pow(twoError,2.)+4.*pow(c1,2.)*pow(c1Error,2.) + 4.*pow(s1,2.)*pow(s1Error,2.) - 4*c1*wCov1-4*s1*wCov2 + 8.*c1*s1*wCov3; // Store ratio of error squared - with/without NUA terms: Double_t ratioErrorSquaredQC2 = 0.; if(fIntFlowQcumulants->GetBinError(1)>0.) { ratioErrorSquaredQC2 = (gQC2ErrorSquared/pow(fIntFlowQcumulants->GetBinError(1),2.)); fIntFlowQcumulantsErrorSquaredRatio->SetBinContent(1,ratioErrorSquaredQC2); } // If enabled, store error by including non-isotropic terms: if(fApplyCorrectionForNUA && fPropagateErrorAlsoFromNIT) { if(gQC2ErrorSquared>=0.) { fIntFlowQcumulants->SetBinError(1,pow(gQC2ErrorSquared,0.5)); } else { fIntFlowQcumulants->SetBinError(1,0.); cout<0.) { fIntFlowDetectorBias->SetBinContent(1,gQC2/QC2); if(QC2Error>0.) { Double_t errorSquared = gQC2ErrorSquared/pow(QC2,2.)+pow(gQC2,2.)*pow(QC2Error,2.)/pow(QC2,4.); if(errorSquared>0.) { fIntFlowDetectorBias->SetBinError(1,pow(errorSquared,0.5)); } } } // end of if(TMath::Abs(QC2)>0.) // Calculating generalized QC{4}: // Generalized QC{4}: Double_t gQC4 = four-2.*pow(two,2.) - 4.*c1*c3+4.*s1*s3-pow(c2,2.)-pow(s2,2.) + 4.*c2*(pow(c1,2.)-pow(s1,2.))+8.*s2*s1*c1 + 8.*two*(pow(c1,2.)+pow(s1,2.))-6.*pow((pow(c1,2.)+pow(s1,2.)),2.); if(fApplyCorrectionForNUA){fIntFlowQcumulants->SetBinContent(2,gQC4);} // Statistical error of generalized QC{4}: Double_t gQC4ErrorSquared = 16.*pow(a1,2.)*pow(twoError,2.)+pow(fourError,2.)+16.*pow(a2,2.)*pow(c1Error,2.) + 4.*pow(a3,2.)*pow(c2Error,2.)+16.*pow(c1,2.)*pow(c3Error,2.) + 16.*pow(a4,2.)*pow(s1Error,2.)+4.*pow(a5,2.)*pow(s2Error,2.) + 16.*pow(s1,2.)*pow(s3Error,2.)+8.*a1*wCov4-32.*a1*a2*wCov1 - 16.*a3*a1*wCov5-32.*c1*a1*wCov6-32.*a1*a4*wCov2+16.*a5*a1*wCov7 + 32.*s1*a1*wCov8-8.*a2*wCov9-4.*a3*wCov10-8.*c1*wCov11-8.*a4*wCov12 + 4.*a5*wCov13+8.*s1*wCov14+16.*a3*a2*wCov15+32.*c1*a2*wCov16+32.*a2*a4*wCov3 - 16.*a5*a2*wCov17-32.*s1*a2*wCov18+16.*c1*a3*wCov19+16.*a3*a4*wCov20 - 8.*a3*a5*wCov21-16.*s1*a3*wCov22+32.*c1*a4*wCov23-16.*c1*a5*wCov24 - 32.*c1*s1*wCov25-16.*a5*a4*wCov26-32.*s1*a4*wCov27+16.*s1*a5*wCov28; // Store ratio of error squared - with/without NUA terms: Double_t ratioErrorSquaredQC4 = 0.; if(fIntFlowQcumulants->GetBinError(2)>0.) { ratioErrorSquaredQC4 = (gQC4ErrorSquared/pow(fIntFlowQcumulants->GetBinError(2),2.)); fIntFlowQcumulantsErrorSquaredRatio->SetBinContent(2,ratioErrorSquaredQC4); } if(fApplyCorrectionForNUA && fPropagateErrorAlsoFromNIT) { if(gQC4ErrorSquared>=0.) { fIntFlowQcumulants->SetBinError(2,pow(gQC4ErrorSquared,0.5)); } else { fIntFlowQcumulants->SetBinError(2,0.); cout<0.) { fIntFlowDetectorBias->SetBinContent(2,gQC4/QC4); if(QC4Error>0.) { Double_t errorSquared = gQC4ErrorSquared/pow(QC4,2.)+pow(gQC4,2.)*pow(QC4Error,2.)/pow(QC4,4.); if(errorSquared>0.) { fIntFlowDetectorBias->SetBinError(2,pow(errorSquared,0.5)); } } } // end of if(TMath::Abs(QC4)>0.) // .... to be improved (continued for 6th and 8th order) .... // versus multiplicity: if(fCalculateCumulantsVsM) // to be improved - propagate error for nua terms vs M { Int_t nBins = fIntFlowCorrelationsVsMPro[0]->GetNbinsX(); // to be improved (hardwired 0) Double_t value[4] = {0.}; // QCs vs M Double_t error[4] = {0.}; // error of QCs vs M Double_t dSum1[4] = {0.}; // sum value_i/(error_i)^2 Double_t dSum2[4] = {0.}; // sum 1/(error_i)^2 for(Int_t b=1;b<=nBins;b++) { // Measured correlations: two = fIntFlowCorrelationsVsMHist[0]->GetBinContent(b); // <<2>> vs M four = fIntFlowCorrelationsVsMHist[1]->GetBinContent(b); // <<4>> vs M // Isotropic cumulants: QC2 = two; QC4 = four-2.*pow(two,2.); // Non-isotropic terms: c1 = fIntFlowCorrectionTermsForNUAVsMPro[1][0]->GetBinContent(b); // <> c2 = fIntFlowCorrectionTermsForNUAVsMPro[1][1]->GetBinContent(b); // <> c3 = fIntFlowCorrectionTermsForNUAVsMPro[1][2]->GetBinContent(b); // <> s1 = fIntFlowCorrectionTermsForNUAVsMPro[0][0]->GetBinContent(b); // <> s2 = fIntFlowCorrectionTermsForNUAVsMPro[0][1]->GetBinContent(b); // <> s3 = fIntFlowCorrectionTermsForNUAVsMPro[0][2]->GetBinContent(b); // <> // Generalized QC{2} vs M: gQC2 = two - pow(c1,2.) - pow(s1,2.); if(fApplyCorrectionForNUAVsM){fIntFlowQcumulantsVsM[0]->SetBinContent(b,gQC2);} // Generalized QC{4} vs M: gQC4 = four-2.*pow(two,2.) - 4.*c1*c3+4.*s1*s3-pow(c2,2.)-pow(s2,2.) + 4.*c2*(pow(c1,2.)-pow(s1,2.))+8.*s2*s1*c1 + 8.*two*(pow(c1,2.)+pow(s1,2.))-6.*pow((pow(c1,2.)+pow(s1,2.)),2.); if(fApplyCorrectionForNUAVsM){fIntFlowQcumulantsVsM[1]->SetBinContent(b,gQC4);} // Detector bias vs M: if(TMath::Abs(QC2)>0.) { fIntFlowDetectorBiasVsM[0]->SetBinContent(b,gQC2/QC2); } // end of if(TMath::Abs(QC2)>0.) if(TMath::Abs(QC4)>0.) { fIntFlowDetectorBiasVsM[1]->SetBinContent(b,gQC4/QC4); } // end of if(TMath::Abs(QC4)>0.) // Rebin in M: for(Int_t co=0;co<4;co++) { value[co] = fIntFlowQcumulantsVsM[co]->GetBinContent(b); error[co] = fIntFlowQcumulantsVsM[co]->GetBinError(b); if(error[co]>0.) { dSum1[co]+=value[co]/(error[co]*error[co]); dSum2[co]+=1./(error[co]*error[co]); } } // end of for(Int_t co=0;co<4;co++) } // end of for(Int_t b=1;b<=nBins;b++) // Store rebinned Q-cumulants: if(fApplyCorrectionForNUAVsM) { for(Int_t co=0;co<4;co++) { if(dSum2[co]>0.) { fIntFlowQcumulantsRebinnedInM->SetBinContent(co+1,dSum1[co]/dSum2[co]); fIntFlowQcumulantsRebinnedInM->SetBinError(co+1,pow(1./dSum2[co],0.5)); } } // end of for(Int_t co=0;co<4;co++) } // end of if(fApplyCorrectionForNUAVsM) } // end of if(fCalculateCumulantsVsM) } // end of void AliFlowAnalysisWithQCumulants::CalculateQcumulantsCorrectedForNUAIntFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FinalizeCorrectionTermsForNUAIntFlow() { // From profile fIntFlowCorrectionTermsForNUAPro[sc] access measured correction terms for NUA // and their spread, correctly calculate the statistical errors and store the final // results and statistical errors for correction terms for NUA in histogram fIntFlowCorrectionTermsForNUAHist[sc]. // // Remark: Statistical error of correction temrs is calculated as: // // statistical error = termA * spread * termB: // termA = sqrt{sum_{i=1}^{N} w^2}/(sum_{i=1}^{N} w) // termB = 1/sqrt(1-termA^2) TString sinCosFlag[2] = {"sin","cos"}; // to be improved - promore this to data member? TString nonisotropicTermFlag[4] = {"(n(phi1))","(n(phi1+phi2))","(n(phi1-phi2-phi3))","(n(2phi1-phi2))"}; // to be improved - hardwired 4 for(Int_t sc=0;sc<2;sc++) // sin or cos correction terms { for(Int_t ci=1;ci<=4;ci++) // correction term index (to be improved - hardwired 4) { Double_t correction = fIntFlowCorrectionTermsForNUAPro[sc]->GetBinContent(ci); Double_t spread = fIntFlowCorrectionTermsForNUAPro[sc]->GetBinError(ci); Double_t sumOfLinearEventWeights = fIntFlowSumOfEventWeightsNUA[sc][0]->GetBinContent(ci); Double_t sumOfQuadraticEventWeights = fIntFlowSumOfEventWeightsNUA[sc][1]->GetBinContent(ci); Double_t termA = 0.; Double_t termB = 0.; if(TMath::Abs(sumOfLinearEventWeights)>1.e-44) { termA = pow(sumOfQuadraticEventWeights,0.5)/sumOfLinearEventWeights; } else { cout<<" WARNING (QC): sumOfLinearEventWeights == 0 in AFAWQC::FCTFNIF() !!!!"<> non-isotropic term)",sinCosFlag[sc].Data(),nonisotropicTermFlag[ci-1].Data())< 0.) { termB = 1./pow(1-pow(termA,2.),0.5); } else { cout<<" WARNING (QC): 1.-pow(termA,2.) <= 0 in AFAWQC::FCTFNIF() !!!!"<> non-isotropic term)",sinCosFlag[sc].Data(),nonisotropicTermFlag[ci-1].Data())<SetBinContent(ci,correction); fIntFlowCorrectionTermsForNUAHist[sc]->SetBinError(ci,statisticalError); } // end of for(Int_t ci=1;ci<=4;ci++) // correction term index } // end of for(Int sc=0;sc<2;sc++) // sin or cos correction terms } // end of void AliFlowAnalysisWithQCumulants::FinalizeCorrectionTermsForNUAIntFlow() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::GetPointersForNestedLoopsHistograms() { // Get pointers to all objects relevant for calculations with nested loops. TList *nestedLoopsList = dynamic_cast(fHistList->FindObject("Nested Loops")); if(nestedLoopsList) { this->SetNestedLoopsList(nestedLoopsList); } else { cout<<"WARNING: nestedLoopsList is NULL in AFAWQC::GPFNLH() !!!!"<","<4'>","<6'>","<8'>"}; // to be improved (should I promote this to data members?) TString evaluateNestedLoopsName = "fEvaluateNestedLoops"; evaluateNestedLoopsName += fAnalysisLabel->Data(); TProfile *evaluateNestedLoops = dynamic_cast(nestedLoopsList->FindObject(evaluateNestedLoopsName.Data())); Bool_t bEvaluateIntFlowNestedLoops = kFALSE; Bool_t bEvaluateDiffFlowNestedLoops = kFALSE; if(evaluateNestedLoops) { this->SetEvaluateNestedLoops(evaluateNestedLoops); bEvaluateIntFlowNestedLoops = (Int_t)evaluateNestedLoops->GetBinContent(1); bEvaluateDiffFlowNestedLoops = (Int_t)evaluateNestedLoops->GetBinContent(2); } // nested loops relevant for integrated flow: if(bEvaluateIntFlowNestedLoops) { // correlations: TString intFlowDirectCorrelationsName = "fIntFlowDirectCorrelations"; intFlowDirectCorrelationsName += fAnalysisLabel->Data(); TProfile *intFlowDirectCorrelations = dynamic_cast(nestedLoopsList->FindObject(intFlowDirectCorrelationsName.Data())); if(intFlowDirectCorrelations) { this->SetIntFlowDirectCorrelations(intFlowDirectCorrelations); } else { cout<<"WARNING: intFlowDirectCorrelations is NULL in AFAWQC::GPFNLH() !!!!"<Data(); TProfile *intFlowExtraDirectCorrelations = dynamic_cast(nestedLoopsList->FindObject(intFlowExtraDirectCorrelationsName.Data())); if(intFlowExtraDirectCorrelations) { this->SetIntFlowExtraDirectCorrelations(intFlowExtraDirectCorrelations); } else { cout<<"WARNING: intFlowExtraDirectCorrelations is NULL in AFAWQC::GPFNLH() !!!!"<Data(); TProfile *intFlowDirectCorrectionTermsForNUA[2] = {NULL}; for(Int_t sc=0;sc<2;sc++) // sin or cos terms { intFlowDirectCorrectionTermsForNUA[sc] = dynamic_cast(nestedLoopsList->FindObject(Form("%s: %s terms",intFlowDirectCorrectionTermsForNUAName.Data(),sinCosFlag[sc].Data()))); if(intFlowDirectCorrectionTermsForNUA[sc]) { this->SetIntFlowDirectCorrectionTermsForNUA(intFlowDirectCorrectionTermsForNUA[sc],sc); } else { cout<<"WARNING: intFlowDirectCorrectionTermsForNUA[sc] is NULL in AFAWQC::GPFNLH() !!!!"<Data(); TProfile *mixedHarmonicsNestedLoops = dynamic_cast(nestedLoopsList->FindObject(mixedHarmonicsNestedLoopsName.Data())); if(mixedHarmonicsNestedLoops) { this->SetMixedHarmonicsNestedLoops(mixedHarmonicsNestedLoops); } else { cout<<"WARNING: mixedHarmonicsNestedLoops is NULL in AFAWQC::GPFNLH() !!!!"<Data(); TProfile *diffFlowDirectCorrelations[2][2][4] = {{{NULL}}}; for(Int_t t=0;t<2;t++) { for(Int_t pe=0;pe<2;pe++) { for(Int_t ci=0;ci<4;ci++) // correlation index { diffFlowDirectCorrelations[t][pe][ci] = dynamic_cast(nestedLoopsList->FindObject(Form("%s, %s, %s, %s",diffFlowDirectCorrelationsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),reducedCorrelationIndex[ci].Data()))); if(diffFlowDirectCorrelations[t][pe][ci]) { this->SetDiffFlowDirectCorrelations(diffFlowDirectCorrelations[t][pe][ci],t,pe,ci); } else { cout<<"WARNING: diffFlowDirectCorrelations[t][pe][ci] is NULL in AFAWQC::GPFDFH() !!!!"<Data(); TProfile *diffFlowDirectCorrectionTermsForNUA[2][2][2][10] = {{{{NULL}}}}; for(Int_t t=0;t<2;t++) { for(Int_t pe=0;pe<2;pe++) { // correction terms for NUA: for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { diffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti] = dynamic_cast(nestedLoopsList->FindObject(Form("%s, %s, %s, %s, cti = %d",diffFlowDirectCorrectionTermsForNUAName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),cti+1))); if(diffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti]) { this->SetDiffFlowDirectCorrectionTermsForNUA(diffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti],t,pe,sc,cti); } else { cout<<"WARNING: diffFlowDirectCorrectionTermsForNUA[t][pe][sc][cti] is NULL in AFAWQC::GPFDFH() !!!!"<Data(); TProfile *otherDirectDiffCorrelators[2][2][2][1] = {{{{NULL}}}}; for(Int_t t=0;t<2;t++) { for(Int_t pe=0;pe<2;pe++) { // correction terms for NUA: for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t ci=0;ci<1;ci++) // correlator index { otherDirectDiffCorrelators[t][pe][sc][ci] = dynamic_cast(nestedLoopsList->FindObject(Form("%s, %s, %s, %s, ci = %d",otherDirectDiffCorrelatorsName.Data(),typeFlag[t].Data(),ptEtaFlag[pe].Data(),sinCosFlag[sc].Data(),ci+1))); if(otherDirectDiffCorrelators[t][pe][sc][ci]) { this->SetOtherDirectDiffCorrelators(otherDirectDiffCorrelators[t][pe][sc][ci],t,pe,sc,ci); } else { cout<<"WARNING: otherDirectDiffCorrelators[t][pe][sc][ci] is NULL in AFAWQC::GPFDFH() !!!!"<(nestedLoopsList->FindObject(noOfParticlesInBinName.Data())); if(noOfParticlesInBin) { this->SetNoOfParticlesInBin(noOfParticlesInBin); } else { cout<(fHistList->FindObject("Mixed Harmonics")); if(mixedHarmonicsList) { this->SetMixedHarmonicsList(mixedHarmonicsList); } else { cout<<"WARNING: mixedHarmonicsList is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *mixedHarmonicsFlags = dynamic_cast (mixedHarmonicsList->FindObject(mixedHarmonicsFlagsName.Data())); if(mixedHarmonicsFlags) { this->SetMixedHarmonicsFlags(mixedHarmonicsFlags); fCalculateMixedHarmonics = (Bool_t)mixedHarmonicsFlags->GetBinContent(1); fCalculateMixedHarmonicsVsM = (Bool_t)mixedHarmonicsFlags->GetBinContent(3); } else { cout<<"WARNING: mixedHarmonicsFlags is NULL in AFAWQC::GPFMHH() !!!!"<(mixedHarmonicsList->FindObject("Profiles")); if(mixedHarmonicsProfiles) { // 2p: TString s2pCorrelationsName = "f2pCorrelations"; s2pCorrelationsName += fAnalysisLabel->Data(); TProfile *p2pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s2pCorrelationsName.Data())); if(p2pCorrelations) { this->Set2pCorrelations(p2pCorrelations); } else { cout<<"WARNING: p2pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *p3pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s3pCorrelationsName.Data())); if(p3pCorrelations) { this->Set3pCorrelations(p3pCorrelations); } else { cout<<"WARNING: p3pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *p4pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s4pCorrelationsName.Data())); if(p4pCorrelations) { this->Set4pCorrelations(p4pCorrelations); } else { cout<<"WARNING: p4pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *p5pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s5pCorrelationsName.Data())); if(p5pCorrelations) { this->Set5pCorrelations(p5pCorrelations); } else { cout<<"WARNING: p5pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *p6pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s6pCorrelationsName.Data())); if(p6pCorrelations) { this->Set6pCorrelations(p6pCorrelations); } else { cout<<"WARNING: p6pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *p7pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s7pCorrelationsName.Data())); if(p7pCorrelations) { this->Set7pCorrelations(p7pCorrelations); } else { cout<<"WARNING: p7pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile *p8pCorrelations = dynamic_cast(mixedHarmonicsProfiles->FindObject(s8pCorrelationsName.Data())); if(p8pCorrelations) { this->Set8pCorrelations(p8pCorrelations); } else { cout<<"WARNING: p8pCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<(mixedHarmonicsList->FindObject("Results")); if(mixedHarmonicsResults) { // 2p: TString s2pCumulantsName = "f2pCumulants"; s2pCumulantsName += fAnalysisLabel->Data(); TH1D *p2pCumulants = dynamic_cast(mixedHarmonicsResults->FindObject(s2pCumulantsName.Data())); if(p2pCumulants) { this->Set2pCumulants(p2pCumulants); } else { cout<<"WARNING: p2pCumulants is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TH1D *p3pCumulants = dynamic_cast(mixedHarmonicsResults->FindObject(s3pCumulantsName.Data())); if(p3pCumulants) { this->Set3pCumulants(p3pCumulants); } else { cout<<"WARNING: p3pCumulants is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TH1D *p4pCumulants = dynamic_cast(mixedHarmonicsResults->FindObject(s4pCumulantsName.Data())); if(p4pCumulants) { this->Set4pCumulants(p4pCumulants); } else { cout<<"WARNING: p4pCumulants is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TH1D *p5pCumulants = dynamic_cast(mixedHarmonicsResults->FindObject(s5pCumulantsName.Data())); if(p5pCumulants) { this->Set5pCumulants(p5pCumulants); } else { cout<<"WARNING: p5pCumulants is NULL in AFAWQC::GPFMHH() !!!!"<(mixedHarmonicsList->FindObject("Error Propagation")); if(mixedHarmonicsErrorPropagation) { TString sMixedHarmonicEventWeightsName = "fMixedHarmonicEventWeights"; sMixedHarmonicEventWeightsName += fAnalysisLabel->Data(); TString powerFlag[2] = {"linear","quadratic"}; for(Int_t power=0;power<2;power++) { TH1D *hMixedHarmonicEventWeights = dynamic_cast(mixedHarmonicsErrorPropagation->FindObject(Form("%s: %s",sMixedHarmonicEventWeightsName.Data(),powerFlag[power].Data()))); if(hMixedHarmonicEventWeights) { this->SetMixedHarmonicEventWeights(hMixedHarmonicEventWeights,power); } else { cout<<"WARNING: hMixedHarmonicEventWeights is NULL in AFAWQC::GPFIFH() !!!!"<Data(); TH2D *hMixedHarmonicProductOfEventWeights = dynamic_cast(mixedHarmonicsErrorPropagation->FindObject(sMixedHarmonicProductOfEventWeightsName.Data())); if(hMixedHarmonicProductOfEventWeights) { this->SetMixedHarmonicProductOfEventWeights(hMixedHarmonicProductOfEventWeights); } else { cout<<"WARNING: hMixedHarmonicProductOfEventWeights is NULL in AFAWQC::GPFMHH() !!!!"<Data(); TProfile2D *hMixedHarmonicProductOfCorrelations = dynamic_cast(mixedHarmonicsErrorPropagation->FindObject(sMixedHarmonicProductOfCorrelationsName.Data())); if(hMixedHarmonicProductOfCorrelations) { this->SetMixedHarmonicProductOfCorrelations(hMixedHarmonicProductOfCorrelations); } else { cout<<"WARNING: hMixedHarmonicProductOfCorrelations is NULL in AFAWQC::GPFMHH() !!!!"<GetHarmonic())->Fill(0.5,fHarmonic); if(fFillMultipleControlHistograms) { (fCommonHists2nd->GetHarmonic())->Fill(0.5,fHarmonic); (fCommonHists4th->GetHarmonic())->Fill(0.5,fHarmonic); (fCommonHists6th->GetHarmonic())->Fill(0.5,fHarmonic); (fCommonHists8th->GetHarmonic())->Fill(0.5,fHarmonic); } } // end of void AliFlowAnalysisWithQCumulants::StoreHarmonic() //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrelationsUsingParticleWeights(TString type, TString ptOrEta) // type = RP or POI { // Calculate all correlations needed for differential flow using particle weights. Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // real and imaginary parts of weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n1k = (*fReQ)(0,1); Double_t dReQ2n2k = (*fReQ)(1,2); Double_t dReQ1n3k = (*fReQ)(0,3); //Double_t dReQ4n4k = (*fReQ)(3,4); Double_t dImQ1n1k = (*fImQ)(0,1); Double_t dImQ2n2k = (*fImQ)(1,2); Double_t dImQ1n3k = (*fImQ)(0,3); //Double_t dImQ4n4k = (*fImQ)(3,4); // S^M_{p,k} (see .h file for the definition of fSpk): Double_t dSM1p1k = (*fSpk)(0,1); Double_t dSM1p2k = (*fSpk)(0,2); Double_t dSM1p3k = (*fSpk)(0,3); Double_t dSM2p1k = (*fSpk)(1,1); Double_t dSM3p1k = (*fSpk)(2,1); // looping over all bins and calculating reduced correlations: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular (pt,eta) bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular (pt,eta) bin): Double_t mp = 0.; // real and imaginary parts of q_{m*n,k}: // (weighted Q-vector evaluated for particles which are both RPs and POIs in particular (pt,eta) bin) Double_t q1n2kRe = 0.; Double_t q1n2kIm = 0.; Double_t q2n1kRe = 0.; Double_t q2n1kIm = 0.; // s_{1,1}, s_{1,2} and s_{1,3} // to be improved (add explanation) Double_t s1p1k = 0.; Double_t s1p2k = 0.; Double_t s1p3k = 0.; // M0111 from Eq. (118) in QC2c (to be improved (notation)) Double_t dM0111 = 0.; if(type == "POI") { p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) t = 1; // typeFlag = RP or POI // q_{m*n,k}: (Remark: m=1 is 0, k=0 iz zero (to be improved!)) q1n2kRe = fReRPQ1dEBE[2][pe][0][2]->GetBinContent(fReRPQ1dEBE[2][pe][0][2]->GetBin(b)) * fReRPQ1dEBE[2][pe][0][2]->GetBinEntries(fReRPQ1dEBE[2][pe][0][2]->GetBin(b)); q1n2kIm = fImRPQ1dEBE[2][pe][0][2]->GetBinContent(fImRPQ1dEBE[2][pe][0][2]->GetBin(b)) * fImRPQ1dEBE[2][pe][0][2]->GetBinEntries(fImRPQ1dEBE[2][pe][0][2]->GetBin(b)); q2n1kRe = fReRPQ1dEBE[2][pe][1][1]->GetBinContent(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][1]->GetBinEntries(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)); q2n1kIm = fImRPQ1dEBE[2][pe][1][1]->GetBinContent(fImRPQ1dEBE[2][pe][1][1]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][1]->GetBinEntries(fImRPQ1dEBE[2][pe][1][1]->GetBin(b)); // s_{1,1}, s_{1,2} and s_{1,3} // to be improved (add explanation) s1p1k = pow(fs1dEBE[2][pe][1]->GetBinContent(b)*fs1dEBE[2][pe][1]->GetBinEntries(b),1.); s1p2k = pow(fs1dEBE[2][pe][2]->GetBinContent(b)*fs1dEBE[2][pe][2]->GetBinEntries(b),1.); s1p3k = pow(fs1dEBE[2][pe][3]->GetBinContent(b)*fs1dEBE[2][pe][3]->GetBinEntries(b),1.); // M0111 from Eq. (118) in QC2c (to be improved (notation)): dM0111 = mp*(dSM3p1k-3.*dSM1p1k*dSM1p2k+2.*dSM1p3k) - 3.*(s1p1k*(dSM2p1k-dSM1p2k) + 2.*(s1p3k-s1p2k*dSM1p1k)); } else if(type == "RP") { // q_{m*n,k}: (Remark: m=1 is 0, k=0 iz zero (to be improved!)) q1n2kRe = fReRPQ1dEBE[0][pe][0][2]->GetBinContent(fReRPQ1dEBE[0][pe][0][2]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][2]->GetBinEntries(fReRPQ1dEBE[0][pe][0][2]->GetBin(b)); q1n2kIm = fImRPQ1dEBE[0][pe][0][2]->GetBinContent(fImRPQ1dEBE[0][pe][0][2]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][2]->GetBinEntries(fImRPQ1dEBE[0][pe][0][2]->GetBin(b)); q2n1kRe = fReRPQ1dEBE[0][pe][1][1]->GetBinContent(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][1]->GetBinEntries(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)); q2n1kIm = fImRPQ1dEBE[0][pe][1][1]->GetBinContent(fImRPQ1dEBE[0][pe][1][1]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][1]->GetBinEntries(fImRPQ1dEBE[0][pe][1][1]->GetBin(b)); // s_{1,1}, s_{1,2} and s_{1,3} // to be improved (add explanation) s1p1k = pow(fs1dEBE[0][pe][1]->GetBinContent(b)*fs1dEBE[0][pe][1]->GetBinEntries(b),1.); s1p2k = pow(fs1dEBE[0][pe][2]->GetBinContent(b)*fs1dEBE[0][pe][2]->GetBinEntries(b),1.); s1p3k = pow(fs1dEBE[0][pe][3]->GetBinContent(b)*fs1dEBE[0][pe][3]->GetBinEntries(b),1.); // to be improved (cross-checked): p1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) t = 0; // typeFlag = RP or POI // M0111 from Eq. (118) in QC2c (to be improved (notation)): dM0111 = mp*(dSM3p1k-3.*dSM1p1k*dSM1p2k+2.*dSM1p3k) - 3.*(s1p1k*(dSM2p1k-dSM1p2k) + 2.*(s1p3k-s1p2k*dSM1p1k)); //............................................................................................... } // 2'-particle correlation: Double_t two1n1nW0W1 = 0.; if(mp*dSM1p1k-s1p1k) { two1n1nW0W1 = (p1n0kRe*dReQ1n1k+p1n0kIm*dImQ1n1k-s1p1k) / (mp*dSM1p1k-s1p1k); // fill profile to get <<2'>> fDiffFlowCorrelationsPro[t][pe][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],two1n1nW0W1,mp*dSM1p1k-s1p1k); // fill profile to get <<2'>^2> fDiffFlowSquaredCorrelationsPro[t][pe][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],two1n1nW0W1*two1n1nW0W1,mp*dSM1p1k-s1p1k); // histogram to store <2'> e-b-e (needed in some other methods): fDiffFlowCorrelationsEBE[t][pe][0]->SetBinContent(b,two1n1nW0W1); fDiffFlowEventWeightsForCorrelationsEBE[t][pe][0]->SetBinContent(b,mp*dSM1p1k-s1p1k); } // end of if(mp*dSM1p1k-s1p1k) // 4'-particle correlation: Double_t four1n1n1n1nW0W1W1W1 = 0.; if(dM0111) { four1n1n1n1nW0W1W1W1 = ((pow(dReQ1n1k,2.)+pow(dImQ1n1k,2.))*(p1n0kRe*dReQ1n1k+p1n0kIm*dImQ1n1k) - q2n1kRe*(pow(dReQ1n1k,2.)-pow(dImQ1n1k,2.)) - 2.*q2n1kIm*dReQ1n1k*dImQ1n1k - p1n0kRe*(dReQ1n1k*dReQ2n2k+dImQ1n1k*dImQ2n2k) + p1n0kIm*(dImQ1n1k*dReQ2n2k-dReQ1n1k*dImQ2n2k) - 2.*dSM1p2k*(p1n0kRe*dReQ1n1k+p1n0kIm*dImQ1n1k) - 2.*(pow(dReQ1n1k,2.)+pow(dImQ1n1k,2.))*s1p1k + 6.*(q1n2kRe*dReQ1n1k+q1n2kIm*dImQ1n1k) + 1.*(q2n1kRe*dReQ2n2k+q2n1kIm*dImQ2n2k) + 2.*(p1n0kRe*dReQ1n3k+p1n0kIm*dImQ1n3k) + 2.*s1p1k*dSM1p2k - 6.*s1p3k) / dM0111; // to be improved (notation of dM0111) // fill profile to get <<4'>> fDiffFlowCorrelationsPro[t][pe][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],four1n1n1n1nW0W1W1W1,dM0111); // fill profile to get <<4'>^2> fDiffFlowSquaredCorrelationsPro[t][pe][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],four1n1n1n1nW0W1W1W1*four1n1n1n1nW0W1W1W1,dM0111); // histogram to store <4'> e-b-e (needed in some other methods): fDiffFlowCorrelationsEBE[t][pe][1]->SetBinContent(b,four1n1n1n1nW0W1W1W1); fDiffFlowEventWeightsForCorrelationsEBE[t][pe][1]->SetBinContent(b,dM0111); } // end of if(dM0111) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrelationsUsingParticleWeights(TString type, TString ptOrEta); // type = RP or POI //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FillCommonControlHistograms(AliFlowEventSimple *anEvent) { // Fill common control histograms. Int_t nRP = anEvent->GetNumberOfRPs(); // number of Reference Particles fCommonHists->FillControlHistograms(anEvent); if(fFillMultipleControlHistograms) { if(nRP>1) { fCommonHists2nd->FillControlHistograms(anEvent); if(nRP>3) { fCommonHists4th->FillControlHistograms(anEvent); if(nRP>5) { fCommonHists6th->FillControlHistograms(anEvent); if(nRP>7) { fCommonHists8th->FillControlHistograms(anEvent); } // end of if(nRP>7) } // end of if(nRP>5) } // end of if(nRP>3) } // end of if(nRP>1) } // end of if(fFillMultipleControlHistograms) } // end of void AliFlowAnalysisWithQCumulants::FillCommonControlHistograms(AliFlowEventSimple *anEvent) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::FillControlHistograms(AliFlowEventSimple *anEvent) { // Fill common control histograms. Int_t nRPs = anEvent->GetNumberOfRPs(); // number of Reference Particles Int_t nPOIs = anEvent->GetNumberOfPOIs(); // number of Particles Of Interest Int_t nRefMult = anEvent->GetReferenceMultiplicity(); // reference multiplicity for current event (TBI: This call is not really needed here, use fReferenceMultiplicityEBE instead) fCorrelationNoRPsVsRefMult->Fill(nRPs,nRefMult); fCorrelationNoPOIsVsRefMult->Fill(nPOIs,nRefMult); fCorrelationNoRPsVsNoPOIs->Fill(nRPs,nPOIs); } // end of void AliFlowAnalysisWithQCumulants::FillControlHistograms(AliFlowEventSimple *anEvent) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::ResetEventByEventQuantities() { // Reset all event by event quantities. // Reference flow: fReQ->Zero(); fImQ->Zero(); fSpk->Zero(); fIntFlowCorrelationsEBE->Reset(); fIntFlowEventWeightsForCorrelationsEBE->Reset(); fIntFlowCorrelationsAllEBE->Reset(); for(Int_t sc=0;sc<2;sc++) { fIntFlowCorrectionTermsForNUAEBE[sc]->Reset(); fIntFlowEventWeightForCorrectionTermsForNUAEBE[sc]->Reset(); } // Differential flow: if(fCalculateDiffFlow) { for(Int_t t=0;t<3;t++) // type (RP, POI, POI&&RP) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // 1D in pt or eta { for(Int_t m=0;m<4;m++) // multiple of harmonic { for(Int_t k=0;k<9;k++) // power of weight { if(fReRPQ1dEBE[t][pe][m][k]) fReRPQ1dEBE[t][pe][m][k]->Reset(); if(fImRPQ1dEBE[t][pe][m][k]) fImRPQ1dEBE[t][pe][m][k]->Reset(); } } } } for(Int_t t=0;t<3;t++) // type (0 = RP, 1 = POI, 2 = RP&&POI ) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // 1D in pt or eta { for(Int_t k=0;k<9;k++) { if(fs1dEBE[t][pe][k]) fs1dEBE[t][pe][k]->Reset(); } } } // e-b-e reduced correlations: for(Int_t t=0;t<2;t++) // type (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t rci=0;rci<4;rci++) // reduced correlation index { if(fDiffFlowCorrelationsEBE[t][pe][rci]) fDiffFlowCorrelationsEBE[t][pe][rci]->Reset(); if(fDiffFlowEventWeightsForCorrelationsEBE[t][pe][rci]) fDiffFlowEventWeightsForCorrelationsEBE[t][pe][rci]->Reset(); } } } // correction terms for NUA: for(Int_t t=0;t<2;t++) // type (0 = RP, 1 = POI) { for(Int_t pe=0;pe<1+(Int_t)fCalculateDiffFlowVsEta;pe++) // pt or eta { for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { fDiffFlowCorrectionTermsForNUAEBE[t][pe][sc][cti]->Reset(); } } } } } // end of if(fCalculateDiffFlow) // 2D (pt,eta) if(fCalculate2DDiffFlow) { for(Int_t t=0;t<3;t++) // type (RP, POI, POI&&RP) { for(Int_t m=0;m<4;m++) // multiple of harmonic { for(Int_t k=0;k<9;k++) // power of weight { if(fReRPQ2dEBE[t][m][k]){fReRPQ2dEBE[t][m][k]->Reset();} if(fImRPQ2dEBE[t][m][k]){fImRPQ2dEBE[t][m][k]->Reset();} } } } for(Int_t t=0;t<3;t++) // type (0 = RP, 1 = POI, 2 = RP&&POI ) { for(Int_t k=0;k<9;k++) { if(fs2dEBE[t][k]){fs2dEBE[t][k]->Reset();} } } } // end of if(fCalculate2DDiffFlow) } // end of void AliFlowAnalysisWithQCumulants::ResetEventByEventQuantities(); //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUASinTerms(TString type, TString ptOrEta) { // Calculate correction terms for non-uniform acceptance for differential flow (sin terms). // Results are stored in fDiffFlowCorrectionTermsForNUAPro[t][pe][0][cti], where cti runs as follows: // 0: <> // 1: <> // 2: <> // 3: <>: // 4: // 5: // 6: // multiplicity: Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); //Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); //Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // looping over all bins and calculating correction terms: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular pt or eta bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular pt or eta bin: Double_t mp = 0.; // real and imaginary parts of q_{m*n,0} (non-weighted Q-vector evaluated for particles which are both RPs and POIs in particular pt or eta bin): Double_t q1n0kRe = 0.; Double_t q1n0kIm = 0.; Double_t q2n0kRe = 0.; Double_t q2n0kIm = 0.; // number of particles which are both RPs and POIs in particular pt or eta bin: Double_t mq = 0.; if(type == "POI") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[2][pe][0][0]->GetBinContent(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[2][pe][0][0]->GetBinContent(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][0][0]->GetBinEntries(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[2][pe][1][0]->GetBinContent(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][0]->GetBinEntries(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[2][pe][1][0]->GetBinContent(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][0]->GetBinEntries(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } else if(type == "RP") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[0][pe][1][0]->GetBinContent(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][0]->GetBinEntries(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[0][pe][1][0]->GetBinContent(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][0]->GetBinEntries(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)); mq = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } if(type == "POI") { // p_{m*n,0}: p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) t = 1; // typeFlag = RP or POI } else if(type == "RP") { // p_{m*n,0} = q_{m*n,0}: p1n0kRe = q1n0kRe; p1n0kIm = q1n0kIm; mp = mq; t = 0; // typeFlag = RP or POI } // <>: Double_t sinP1nPsi = 0.; if(mp) { sinP1nPsi = p1n0kIm/mp; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsi,mp); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][0]->SetBinContent(b,sinP1nPsi); } // end of if(mp) // <>: Double_t sinP1nPsiP1nPhi = 0.; if(mp*dMult-mq) { sinP1nPsiP1nPhi = (p1n0kRe*dImQ1n+p1n0kIm*dReQ1n-q2n0kIm)/(mp*dMult-mq); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsiP1nPhi,mp*dMult-mq); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][1]->SetBinContent(b,sinP1nPsiP1nPhi); } // end of if(mp*dMult-mq) // <>: Double_t sinP1nPsi1P1nPhi2MPhi3 = 0.; if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) { sinP1nPsi1P1nPhi2MPhi3 = (p1n0kIm*(pow(dImQ1n,2.)+pow(dReQ1n,2.)-dMult) - 1.*(q2n0kIm*dReQ1n-q2n0kRe*dImQ1n) - mq*dImQ1n+2.*q1n0kIm) / (mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsi1P1nPhi2MPhi3,mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][2]->SetBinContent(b,sinP1nPsi1P1nPhi2MPhi3); } // end of if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) // <>: Double_t sinP1nPsi1M1nPhi2MPhi3 = 0.; if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) { sinP1nPsi1M1nPhi2MPhi3 = (p1n0kIm*(pow(dReQ1n,2.)-pow(dImQ1n,2.))-2.*p1n0kRe*dReQ1n*dImQ1n - 1.*(p1n0kIm*dReQ2n-p1n0kRe*dImQ2n) + 2.*mq*dImQ1n-2.*q1n0kIm) / (mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsi1M1nPhi2MPhi3,mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][3]->SetBinContent(b,sinP1nPsi1M1nPhi2MPhi3); } // end of if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUASinTerms(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUACosTerms(TString type, TString ptOrEta) { // Calculate correction terms for non-uniform acceptance for differential flow (cos terms). // Results are stored in fDiffFlowCorrectionTermsForNUAPro[t][pe][1][cti], where cti runs as follows: // 0: <> // 1: <> // 2: <> // 3: <> // 4: // 5: // 6: // multiplicity: Double_t dMult = (*fSpk)(0,0); // real and imaginary parts of non-weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n = (*fReQ)(0,0); Double_t dReQ2n = (*fReQ)(1,0); //Double_t dReQ3n = (*fReQ)(2,0); //Double_t dReQ4n = (*fReQ)(3,0); Double_t dImQ1n = (*fImQ)(0,0); Double_t dImQ2n = (*fImQ)(1,0); //Double_t dImQ3n = (*fImQ)(2,0); //Double_t dImQ4n = (*fImQ)(3,0); Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // looping over all bins and calculating correction terms: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular pt or eta bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular pt or eta bin: Double_t mp = 0.; // real and imaginary parts of q_{m*n,0} (non-weighted Q-vector evaluated for particles which are both RPs and POIs in particular pt or eta bin): Double_t q1n0kRe = 0.; Double_t q1n0kIm = 0.; Double_t q2n0kRe = 0.; Double_t q2n0kIm = 0.; // number of particles which are both RPs and POIs in particular pt or eta bin: Double_t mq = 0.; if(type == "POI") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[2][pe][0][0]->GetBinContent(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[2][pe][0][0]->GetBinContent(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][0][0]->GetBinEntries(fImRPQ1dEBE[2][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[2][pe][1][0]->GetBinContent(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][0]->GetBinEntries(fReRPQ1dEBE[2][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[2][pe][1][0]->GetBinContent(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][0]->GetBinEntries(fImRPQ1dEBE[2][pe][1][0]->GetBin(b)); mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } else if(type == "RP") { // q_{m*n,0}: q1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); q1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); q2n0kRe = fReRPQ1dEBE[0][pe][1][0]->GetBinContent(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][0]->GetBinEntries(fReRPQ1dEBE[0][pe][1][0]->GetBin(b)); q2n0kIm = fImRPQ1dEBE[0][pe][1][0]->GetBinContent(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][0]->GetBinEntries(fImRPQ1dEBE[0][pe][1][0]->GetBin(b)); mq = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } if(type == "POI") { // p_{m*n,0}: p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) t = 1; // typeFlag = RP or POI } else if(type == "RP") { // p_{m*n,0} = q_{m*n,0}: p1n0kRe = q1n0kRe; p1n0kIm = q1n0kIm; mp = mq; t = 0; // typeFlag = RP or POI } // <>: Double_t cosP1nPsi = 0.; if(mp) { cosP1nPsi = p1n0kRe/mp; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsi,mp); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][0]->SetBinContent(b,cosP1nPsi); } // end of if(mp) // <>: Double_t cosP1nPsiP1nPhi = 0.; if(mp*dMult-mq) { cosP1nPsiP1nPhi = (p1n0kRe*dReQ1n-p1n0kIm*dImQ1n-q2n0kRe)/(mp*dMult-mq); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsiP1nPhi,mp*dMult-mq); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][1]->SetBinContent(b,cosP1nPsiP1nPhi); } // end of if(mp*dMult-mq) // <>: Double_t cosP1nPsi1P1nPhi2MPhi3 = 0.; if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) { cosP1nPsi1P1nPhi2MPhi3 = (p1n0kRe*(pow(dImQ1n,2.)+pow(dReQ1n,2.)-dMult) - 1.*(q2n0kRe*dReQ1n+q2n0kIm*dImQ1n) - mq*dReQ1n+2.*q1n0kRe) / (mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsi1P1nPhi2MPhi3,mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][2]->SetBinContent(b,cosP1nPsi1P1nPhi2MPhi3); } // end of if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) // <>: Double_t cosP1nPsi1M1nPhi2MPhi3 = 0.; if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) { cosP1nPsi1M1nPhi2MPhi3 = (p1n0kRe*(pow(dReQ1n,2.)-pow(dImQ1n,2.))+2.*p1n0kIm*dReQ1n*dImQ1n - 1.*(p1n0kRe*dReQ2n+p1n0kIm*dImQ2n) - 2.*mq*dReQ1n+2.*q1n0kRe) / (mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsi1M1nPhi2MPhi3,mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][3]->SetBinContent(b,cosP1nPsi1M1nPhi2MPhi3); } // end of if(mq*(dMult-1.)*(dMult-2.)+(mp-mq)*dMult*(dMult-1.)) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUACosTerms(TString type, TString ptOrEta) //========================================================================================================================= void AliFlowAnalysisWithQCumulants::FinalizeCorrectionTermsForNUADiffFlow(TString type, TString ptOrEta) { // Transfer profiles into histogams and correctly propagate the error. Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; //Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; //Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; for(Int_t sc=0;sc<2;sc++) // sin or cos { for(Int_t cti=0;cti<9;cti++) // correction term index { for(Int_t b=1;b<=nBinsPtEta[pe];b++) { Double_t correctionTerm = fDiffFlowCorrectionTermsForNUAPro[t][pe][sc][cti]->GetBinContent(b); fDiffFlowCorrectionTermsForNUAHist[t][pe][sc][cti]->SetBinContent(b,correctionTerm); // to be improved (propagate error correctly) // ... } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // correction term index } // end of for(Int_t sc=0;sc<2;sc++) // sin or cos }// end of void AliFlowAnalysisWithQCumulants::FinalizeCorrectionTermsForNUADiffFlow(TString type, TString ptOrEta) //========================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCumulantsCorrectedForNUA(TString type, TString ptOrEta) { // Calculate generalized differential flow cumulants (corrected for non-uniform acceptance). // to be improved - propagate error also from non-isotropic terms Int_t t = 0; // RP = 0, POI = 1 Int_t pe = 0; // pt = 0, eta = 1 if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } // Common: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; // 2-particle correlation: Double_t two = fIntFlowCorrelationsHist->GetBinContent(1); // <<2>> // sinus terms coming from reference flow: Double_t sinP1nPhi = fIntFlowCorrectionTermsForNUAHist[0]->GetBinContent(1); // <> Double_t sinP1nPhi1P1nPhi2 = fIntFlowCorrectionTermsForNUAHist[0]->GetBinContent(2); // <> Double_t sinP1nPhi1M1nPhi2M1nPhi3 = fIntFlowCorrectionTermsForNUAHist[0]->GetBinContent(3); // <> // cosinus terms coming from reference flow: Double_t cosP1nPhi = fIntFlowCorrectionTermsForNUAHist[1]->GetBinContent(1); // <> Double_t cosP1nPhi1P1nPhi2 = fIntFlowCorrectionTermsForNUAHist[1]->GetBinContent(2); // <> Double_t cosP1nPhi1M1nPhi2M1nPhi3 = fIntFlowCorrectionTermsForNUAHist[1]->GetBinContent(3); // <> for(Int_t b=1;b<=nBinsPtEta[pe];b++) { Double_t twoPrime = fDiffFlowCorrelationsHist[t][pe][0]->GetBinContent(b); // <<2'>> Double_t fourPrime = fDiffFlowCorrelationsHist[t][pe][1]->GetBinContent(b); // <<4'>> Double_t sinP1nPsi = fDiffFlowCorrectionTermsForNUAHist[t][pe][0][0]->GetBinContent(b); // <> Double_t cosP1nPsi = fDiffFlowCorrectionTermsForNUAHist[t][pe][1][0]->GetBinContent(b); // <> Double_t sinP1nPsi1P1nPhi2 = fDiffFlowCorrectionTermsForNUAHist[t][pe][0][1]->GetBinContent(b); // <> Double_t cosP1nPsi1P1nPhi2 = fDiffFlowCorrectionTermsForNUAHist[t][pe][1][1]->GetBinContent(b); // <> Double_t sinP1nPsi1P1nPhi2M1nPhi3 = fDiffFlowCorrectionTermsForNUAHist[t][pe][0][2]->GetBinContent(b); // <> Double_t cosP1nPsi1P1nPhi2M1nPhi3 = fDiffFlowCorrectionTermsForNUAHist[t][pe][1][2]->GetBinContent(b); // <> Double_t sinP1nPsi1M1nPhi2M1nPhi3 = fDiffFlowCorrectionTermsForNUAHist[t][pe][0][3]->GetBinContent(b); // <> Double_t cosP1nPsi1M1nPhi2M1nPhi3 = fDiffFlowCorrectionTermsForNUAHist[t][pe][1][3]->GetBinContent(b); // <> // Generalized QC{2'}: Double_t qc2Prime = twoPrime - sinP1nPsi*sinP1nPhi - cosP1nPsi*cosP1nPhi; if(fApplyCorrectionForNUA) { fDiffFlowCumulants[t][pe][0]->SetBinContent(b,qc2Prime); } if(TMath::Abs(twoPrime)>0.) { fDiffFlowDetectorBias[t][pe][0]->SetBinContent(b,qc2Prime/twoPrime); // detector bias = generalized/isotropic cumulant. } // Generalized QC{4'}: Double_t qc4Prime = fourPrime-2.*twoPrime*two - cosP1nPsi*cosP1nPhi1M1nPhi2M1nPhi3 + sinP1nPsi*sinP1nPhi1M1nPhi2M1nPhi3 - cosP1nPhi*cosP1nPsi1M1nPhi2M1nPhi3 + sinP1nPhi*sinP1nPsi1M1nPhi2M1nPhi3 - 2.*cosP1nPhi*cosP1nPsi1P1nPhi2M1nPhi3 - 2.*sinP1nPhi*sinP1nPsi1P1nPhi2M1nPhi3 - cosP1nPsi1P1nPhi2*cosP1nPhi1P1nPhi2 - sinP1nPsi1P1nPhi2*sinP1nPhi1P1nPhi2 + 2.*cosP1nPhi1P1nPhi2*(cosP1nPsi*cosP1nPhi-sinP1nPsi*sinP1nPhi) + 2.*sinP1nPhi1P1nPhi2*(cosP1nPsi*sinP1nPhi+sinP1nPsi*cosP1nPhi) + 4.*two*(cosP1nPsi*cosP1nPhi+sinP1nPsi*sinP1nPhi) + 2.*cosP1nPsi1P1nPhi2*(pow(cosP1nPhi,2.)-pow(sinP1nPhi,2.)) + 4.*sinP1nPsi1P1nPhi2*cosP1nPhi*sinP1nPhi + 4.*twoPrime*(pow(cosP1nPhi,2.)+pow(sinP1nPhi,2.)) - 6.*(pow(cosP1nPhi,2.)-pow(sinP1nPhi,2.)) * (cosP1nPsi*cosP1nPhi-sinP1nPsi*sinP1nPhi) - 12.*cosP1nPhi*sinP1nPhi * (sinP1nPsi*cosP1nPhi+cosP1nPsi*sinP1nPhi); if(fApplyCorrectionForNUA) { fDiffFlowCumulants[t][pe][1]->SetBinContent(b,qc4Prime); } if(TMath::Abs(fourPrime-2.*twoPrime*two)>0.) { fDiffFlowDetectorBias[t][pe][1]->SetBinContent(b,qc4Prime/(fourPrime-2.*twoPrime*two)); // detector bias = generalized/isotropic cumulant. } } // end of for(Int_t p=1;p<=fnBinsPt;p++) } // end of AliFlowAnalysisWithQCumulants::CalculateDiffFlowCumulantsCorrectedForNUA(TString type, TString ptOrEta) //================================================================================================================================== void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectedForNUA(TString type, TString ptOrEta) { // Calculate differential flow corrected for non-uniform acceptance. // to be improved: eventually I will have to access here masured correlations and NUA terms // instead of cumulants in order to propagate statistical error correctly also // to NUA terms (propagating errors directly from cumulants is WRONG for // differential flow becuase that doesn't account at all cross-covariance terms) // REMARK: When NUA correction is apllied error for differential flow DOES NOT get corrected, // i.e. only value is being corrected, error is still the one relevant for isotropic // case. This eventually will be resolved. Int_t t = 0; // RP or POI Int_t pe = 0; // pt or eta if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } // Common: Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; // Reference Q-cumulants Double_t qc2 = fIntFlowQcumulants->GetBinContent(1); // QC{2} Double_t qc4 = fIntFlowQcumulants->GetBinContent(2); // QC{4} // Loop over pt or eta bins: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // Differential Q-cumulants: Double_t qc2Prime = fDiffFlowCumulants[t][pe][0]->GetBinContent(b); // QC{2'} Double_t qc4Prime = fDiffFlowCumulants[t][pe][1]->GetBinContent(b); // QC{4'} // v'{2}: if(qc2>0.) { Double_t v2Prime = qc2Prime/pow(qc2,0.5); if(TMath::Abs(v2Prime)>0.){fDiffFlow[t][pe][0]->SetBinContent(b,v2Prime);} } // v'{4}: if(qc4<0.) { Double_t v4Prime = -qc4Prime/pow(-qc4,3./4.); if(TMath::Abs(v4Prime)>0.){fDiffFlow[t][pe][1]->SetBinContent(b,v4Prime);} } } // end of for(Int_t b=1;b<=fnBinsPtEta[pe];b++) } // end of void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectedForNUA(TString type, TString ptOrEta); //========================================================================================================================= void AliFlowAnalysisWithQCumulants::EvaluateIntFlowCorrelationsWithNestedLoops(AliFlowEventSimple * const anEvent) { // Evaluate with nested loops multiparticle correlations for integrated flow (without using the particle weights). // Remark: Results are stored in profile fIntFlowDirectCorrelations whose binning is organized as follows: // // 1st bin: <2>_{1n|1n} = two1n1n = cos(n*(phi1-phi2))> // 2nd bin: <2>_{2n|2n} = two2n2n = cos(2n*(phi1-phi2))> // 3rd bin: <2>_{3n|3n} = two3n3n = cos(3n*(phi1-phi2))> // 4th bin: <2>_{4n|4n} = two4n4n = cos(4n*(phi1-phi2))> // 5th bin: ---- EMPTY ---- // 6th bin: <3>_{2n|1n,1n} = three2n1n1n = // 7th bin: <3>_{3n|2n,1n} = three3n2n1n = // 8th bin: <3>_{4n|2n,2n} = three4n2n2n = // 9th bin: <3>_{4n|3n,1n} = three4n3n1n = // 10th bin: ---- EMPTY ---- // 11th bin: <4>_{1n,1n|1n,1n} = four1n1n1n1n = // 12th bin: <4>_{2n,1n|2n,1n} = four2n1n2n1n = // 13th bin: <4>_{2n,2n|2n,2n} = four2n2n2n2n = // 14th bin: <4>_{3n|1n,1n,1n} = four3n1n1n1n = // 15th bin: <4>_{3n,1n|3n,1n} = four3n1n3n1n = // 16th bin: <4>_{3n,1n|2n,2n} = four3n1n2n2n = // 17th bin: <4>_{4n|2n,1n,1n} = four4n2n1n1n = // 18th bin: ---- EMPTY ---- // 19th bin: <5>_{2n|1n,1n,1n,1n} = five2n1n1n1n1n = // 20th bin: <5>_{2n,2n|2n,1n,1n} = five2n2n2n1n1n = // 21st bin: <5>_{3n,1n|2n,1n,1n} = five3n1n2n1n1n = // 22nd bin: <5>_{4n|1n,1n,1n,1n} = five4n1n1n1n1n = // 23rd bin: ---- EMPTY ---- // 24th bin: <6>_{1n,1n,1n|1n,1n,1n} = six1n1n1n1n1n1n = // 25th bin: <6>_{2n,1n,1n|2n,1n,1n} = six2n1n1n2n1n1n = // 26th bin: <6>_{2n,2n|1n,1n,1n,1n} = six2n2n1n1n1n1n = // 27th bin: <6>_{3n,1n|1n,1n,1n,1n} = six3n1n1n1n1n1n = // 28th bin: ---- EMPTY ---- // 29th bin: <7>_{2n,1n,1n|1n,1n,1n,1n} = seven2n1n1n1n1n1n1n = // 30th bin: ---- EMPTY ---- // 31st bin: <8>_{1n,1n,1n,1n|1n,1n,1n,1n} = eight1n1n1n1n1n1n1n1n = // 32nd bin: ---- EMPTY ---- // Extra correlations for 3p TY study: // 33rd bin: <4>_{4n,2n|3n,3n}= four4n2n3n3n = // 34th bin: <5>_{3n,3n|2n,2n,2n} = five3n3n2n2n2n = // Extra correlations for 6p TY study: // 35th bin: <2>_{5n|5n} = two5n5n = T // 36th bin: <2>_{6n|6n} = two6n6n = T // 37th bin: <3>_{5n|3n,2n} = three5n3n2n = // 38th bin: <3>_{5n|4n,1n} = three5n4n1n = // 39th bin: <3>_{6n|3n,3n} = three6n3n3n = T // 40th bin: <3>_{6n|4n,2n} = three6n4n2n = T // 41st bin: <3>_{6n|5n,1n} = three6n5n1n = // 42nd bin: <4>_{6n|3n,2n,1n} = four6n3n2n1n = // 43rd bin: <4>_{3n,2n|3n,2n} = four3n2n3n2n = // 44th bin: <4>_{4n,1n|3n,2n} = four4n1n3n2n = // 45th bin: <4>_{3n,3n|3n,3n} = four3n3n3n3n = T // 46th bin: <4>_{4n,2n|3n,3n} = four4n2n3n3n = // 47th bin: <4>_{5n,1n|3n,3n} = four5n1n3n3n = // 48th bin: <4>_{4n,2n|4n,2n} = four4n2n4n2n = T // 49th bin: <4>_{5n,1n|4n,2n} = four5n1n4n2n = // 50th bin: <4>_{5n|3n,1n,1n} = four5n3n1n1n = // 51st bin: <4>_{5n|2n,2n,1n} = four5n2n2n1n = // 52nd bin: <4>_{5n,1n|5n,1n} = four5n1n5n1n = // 53rd bin: <5>_{3n,3n|3n,2n,1n} = four3n3n3n2n1n = // 54th bin: <5>_{4n,2n|3n,2n,1n} = four4n2n3n2n1n = // 55th bin: <5>_{3n,2n|3n,1n,1n} = four3n2n3n1n1n = // 56th bin: <5>_{3n,2n|2n,2n,1n} = four3n2n2n2n1n = // 57th bin: <5>_{5n,1n|3n,2n,1n} = four5n1n3n2n1n = // 58th bin: <6>_{3n,2n,1n|3n,2n,1n} = six3n2n1n3n2n1n = Int_t nPrim = anEvent->NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t phi1=0., phi2=0., phi3=0., phi4=0., phi5=0., phi6=0., phi7=0., phi8=0.; Int_t n = fHarmonic; Int_t eventNo = (Int_t)fAvMultiplicity->GetBinEntries(1); // to be improved (is this casting safe in general?) Double_t dMult = (*fSpk)(0,0); cout<fMaxAllowedMultiplicity) { cout<<"... skipping this event (multiplicity too high) ..."<=2 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(nPrim==2) cout<Fill(0.5,cos(n*(phi1-phi2)),1.); // fIntFlowDirectCorrelations->Fill(1.5,cos(2.*n*(phi1-phi2)),1.); // fIntFlowDirectCorrelations->Fill(2.5,cos(3.*n*(phi1-phi2)),1.); // fIntFlowDirectCorrelations->Fill(3.5,cos(4.*n*(phi1-phi2)),1.); // fIntFlowDirectCorrelations->Fill(34.5,cos(5.*n*(phi1-phi2)),1.); // fIntFlowDirectCorrelations->Fill(35.5,cos(6.*n*(phi1-phi2)),1.); // } // end of for(Int_t i2=0;i2=2) // 3-particle correlations: if(nPrim>=3 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(nPrim==3) cout<Fill(5.,cos(2.*n*phi1-n*(phi2+phi3)),1.); //<3>_{2n|nn,n} fIntFlowDirectCorrelations->Fill(6.,cos(3.*n*phi1-2.*n*phi2-n*phi3),1.); //<3>_{3n|2n,n} fIntFlowDirectCorrelations->Fill(7.,cos(4.*n*phi1-2.*n*phi2-2.*n*phi3),1.); //<3>_{4n|2n,2n} fIntFlowDirectCorrelations->Fill(8.,cos(4.*n*phi1-3.*n*phi2-n*phi3),1.); //<3>_{4n|3n,n} fIntFlowDirectCorrelations->Fill(36.5,cos(5.*n*phi1-3.*n*phi2-2.*n*phi3),1.); //<3>_{5n|3n,2n} fIntFlowDirectCorrelations->Fill(37.5,cos(5.*n*phi1-4.*n*phi2-1.*n*phi3),1.); //<3>_{5n|4n,1n} fIntFlowDirectCorrelations->Fill(38.5,cos(6.*n*phi1-3.*n*phi2-3.*n*phi3),1.); //<3>_{6n|3n,3n} fIntFlowDirectCorrelations->Fill(39.5,cos(6.*n*phi1-4.*n*phi2-2.*n*phi3),1.); //<3>_{6n|4n,2n} fIntFlowDirectCorrelations->Fill(40.5,cos(6.*n*phi1-5.*n*phi2-1.*n*phi3),1.); //<3>_{6n|5n,1n} } // end of for(Int_t i3=0;i3=3) // 4-particle correlations: if(nPrim>=4 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); if(nPrim==4) cout<Fill(10.,cos(n*phi1+n*phi2-n*phi3-n*phi4),1.); // <4>_{n,n|n,n} fIntFlowDirectCorrelations->Fill(11.,cos(2.*n*phi1+n*phi2-2.*n*phi3-n*phi4),1.); // <4>_{2n,n|2n,n} fIntFlowDirectCorrelations->Fill(12.,cos(2.*n*phi1+2*n*phi2-2.*n*phi3-2.*n*phi4),1.); // <4>_{2n,2n|2n,2n} fIntFlowDirectCorrelations->Fill(13.,cos(3.*n*phi1-n*phi2-n*phi3-n*phi4),1.); // <4>_{3n|n,n,n} fIntFlowDirectCorrelations->Fill(14.,cos(3.*n*phi1+n*phi2-3.*n*phi3-n*phi4),1.); // <4>_{3n,n|3n,n} fIntFlowDirectCorrelations->Fill(15.,cos(3.*n*phi1+n*phi2-2.*n*phi3-2.*n*phi4),1.); // <4>_{3n,n|2n,2n} fIntFlowDirectCorrelations->Fill(16.,cos(4.*n*phi1-2.*n*phi2-n*phi3-n*phi4),1.); // <4>_{4n|2n,n,n} fIntFlowDirectCorrelations->Fill(32.,cos(n*(4.*phi1+2.*phi2-3.*phi3-3.*phi4)),1.); // <4>_{4n,2n|3n,3n} fIntFlowDirectCorrelations->Fill(41.5,cos(n*(6.*phi1-3.*phi2-2.*phi3-1.*phi4)),1.); // <4>_{6n|3n,2n,1n} fIntFlowDirectCorrelations->Fill(42.5,cos(n*(3.*phi1+2.*phi2-3.*phi3-2.*phi4)),1.); // <4>_{3n,2n|3n,2n} fIntFlowDirectCorrelations->Fill(43.5,cos(n*(4.*phi1+1.*phi2-3.*phi3-2.*phi4)),1.); // <4>_{4n,1n|3n,2n} fIntFlowDirectCorrelations->Fill(44.5,cos(n*(3.*phi1+3.*phi2-3.*phi3-3.*phi4)),1.); // <4>_{3n,3n|3n,3n} fIntFlowDirectCorrelations->Fill(45.5,cos(n*(4.*phi1+2.*phi2-3.*phi3-3.*phi4)),1.); // <4>_{4n,2n|3n,3n} fIntFlowDirectCorrelations->Fill(46.5,cos(n*(5.*phi1+1.*phi2-3.*phi3-3.*phi4)),1.); // <4>_{5n,1n|3n,3n} fIntFlowDirectCorrelations->Fill(47.5,cos(n*(4.*phi1+2.*phi2-4.*phi3-2.*phi4)),1.); // <4>_{4n,2n|4n,2n} fIntFlowDirectCorrelations->Fill(48.5,cos(n*(5.*phi1+1.*phi2-4.*phi3-2.*phi4)),1.); // <4>_{5n,1n|4n,2n} fIntFlowDirectCorrelations->Fill(49.5,cos(n*(5.*phi1-3.*phi2-1.*phi3-1.*phi4)),1.); // <4>_{5n|3n,1n,1n} fIntFlowDirectCorrelations->Fill(50.5,cos(n*(5.*phi1-2.*phi2-2.*phi3-1.*phi4)),1.); // <4>_{5n|2n,2n,1n} fIntFlowDirectCorrelations->Fill(51.5,cos(n*(5.*phi1+1.*phi2-5.*phi3-1.*phi4)),1.); // <4>_{5n,1n|5n,1n} fIntFlowDirectCorrelations->Fill(58.5,cos(n*(6.*phi1-4.*phi2-1.*phi3-1.*phi4)),1.); // <4>_{6n|4n,1n,1n} fIntFlowDirectCorrelations->Fill(59.5,cos(n*(6.*phi1-2.*phi2-2.*phi3-2.*phi4)),1.); // <4>_{6n|2n,2n,2n} } // end of for(Int_t i4=0;i4=) // 5-particle correlations: if(nPrim>=5 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); for(Int_t i5=0;i5GetTrack(i5); if(!(aftsTrack->InRPSelection())) continue; phi5=aftsTrack->Phi(); if(nPrim==5) cout<Fill(18.,cos(2.*n*phi1+n*phi2-n*phi3-n*phi4-n*phi5),1.); // <5>_{2n,n|n,n,n} fIntFlowDirectCorrelations->Fill(19.,cos(2.*n*phi1+2.*n*phi2-2.*n*phi3-n*phi4-n*phi5),1.); // <5>_{2n,2n|2n,n,n} fIntFlowDirectCorrelations->Fill(20.,cos(3.*n*phi1+n*phi2-2.*n*phi3-n*phi4-n*phi5),1.); // <5>_{3n,n|2n,n,n} fIntFlowDirectCorrelations->Fill(21.,cos(4.*n*phi1-n*phi2-n*phi3-n*phi4-n*phi5),1.); // <5>_{4n|n,n,n,n} fIntFlowDirectCorrelations->Fill(33.,cos(3.*n*phi1+3.*n*phi2-2.*n*phi3-2.*n*phi4-2.*n*phi5),1.); // <5>_{3n,3n|2n,2n,2n} fIntFlowDirectCorrelations->Fill(52.5,cos(3.*n*phi1+3.*n*phi2-3.*n*phi3-2.*n*phi4-1.*n*phi5),1.); // <5>_{3n,3n|3n,2n,1n} fIntFlowDirectCorrelations->Fill(53.5,cos(4.*n*phi1+2.*n*phi2-3.*n*phi3-2.*n*phi4-1.*n*phi5),1.); // <5>_{4n,2n|3n,2n,1n} fIntFlowDirectCorrelations->Fill(54.5,cos(3.*n*phi1+2.*n*phi2-3.*n*phi3-1.*n*phi4-1.*n*phi5),1.); // <5>_{3n,2n|3n,1n,1n} fIntFlowDirectCorrelations->Fill(55.5,cos(3.*n*phi1+2.*n*phi2-2.*n*phi3-2.*n*phi4-1.*n*phi5),1.); // <5>_{3n,2n|2n,2n,1n} fIntFlowDirectCorrelations->Fill(56.5,cos(5.*n*phi1+1.*n*phi2-3.*n*phi3-2.*n*phi4-1.*n*phi5),1.); // <5>_{5n,1n|3n,2n,1n} fIntFlowDirectCorrelations->Fill(60.5,cos(6.*n*phi1-2.*n*phi2-2.*n*phi3-1.*n*phi4-1.*n*phi5),1.); // <5>_{6n|2n,2n,1n,1n} fIntFlowDirectCorrelations->Fill(61.5,cos(4.*n*phi1+1.*n*phi2+1.*n*phi3-3.*n*phi4-3.*n*phi5),1.); // <5>_{4n,1n,1n|3n,3n} } // end of for(Int_t i5=0;i5=5) // 6-particle correlations: if(nPrim>=6 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); for(Int_t i5=0;i5GetTrack(i5); if(!(aftsTrack->InRPSelection())) continue; phi5=aftsTrack->Phi(); for(Int_t i6=0;i6GetTrack(i6); if(!(aftsTrack->InRPSelection())) continue; phi6=aftsTrack->Phi(); if(nPrim==6) cout<Fill(23.,cos(n*phi1+n*phi2+n*phi3-n*phi4-n*phi5-n*phi6),1.); // <6>_{1n,1n,1n|1n,1n,1n} fIntFlowDirectCorrelations->Fill(24.,cos(2.*n*phi1+n*phi2+n*phi3-2.*n*phi4-n*phi5-n*phi6),1.); // <6>_{2n,1n,1n|2n,1n,1n} fIntFlowDirectCorrelations->Fill(25.,cos(2.*n*phi1+2.*n*phi2-n*phi3-n*phi4-n*phi5-n*phi6),1.); // <6>_{2n,2n|1n,1n,1n,1n} fIntFlowDirectCorrelations->Fill(26.,cos(3.*n*phi1+n*phi2-n*phi3-n*phi4-n*phi5-n*phi6),1.); // <6>_{3n,1n|1n,1n,1n,1n} fIntFlowDirectCorrelations->Fill(57.5,cos(3.*n*phi1+2.*n*phi2+1.*n*phi3-3.*n*phi4-2.*n*phi5-1.*n*phi6),1.); // <6>_{3n,2n,1n|3n,2n,1n} fIntFlowDirectCorrelations->Fill(62.5,cos(3.*n*phi1+3.*n*phi2-2.*n*phi3-2.*n*phi4-1.*n*phi5-1.*n*phi6),1.); // <6>_{3n,3n|2n,2n,1n,1n} } // end of for(Int_t i6=0;i6=6) // 7-particle correlations: if(nPrim>=7 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); for(Int_t i5=0;i5GetTrack(i5); if(!(aftsTrack->InRPSelection())) continue; phi5=aftsTrack->Phi(); for(Int_t i6=0;i6GetTrack(i6); if(!(aftsTrack->InRPSelection())) continue; phi6=aftsTrack->Phi(); for(Int_t i7=0;i7GetTrack(i7); if(!(aftsTrack->InRPSelection())) continue; phi7=aftsTrack->Phi(); if(nPrim==7) cout<Fill(28.,cos(2.*n*phi1+n*phi2+n*phi3-n*phi4-n*phi5-n*phi6-n*phi7),1.); // <7>_{2n,n,n|n,n,n,n} } // end of for(Int_t i7=0;i7=7) // 8-particle correlations: if(nPrim>=8 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); for(Int_t i5=0;i5GetTrack(i5); if(!(aftsTrack->InRPSelection())) continue; phi5=aftsTrack->Phi(); for(Int_t i6=0;i6GetTrack(i6); if(!(aftsTrack->InRPSelection())) continue; phi6=aftsTrack->Phi(); for(Int_t i7=0;i7GetTrack(i7); if(!(aftsTrack->InRPSelection())) continue; phi7=aftsTrack->Phi(); for(Int_t i8=0;i8GetTrack(i8); if(!(aftsTrack->InRPSelection())) continue; phi8=aftsTrack->Phi(); cout<Fill(30.,cos(n*phi1+n*phi2+n*phi3+n*phi4-n*phi5-n*phi6-n*phi7-n*phi8),1.); // <8>_{n,n,n,n|n,n,n,n} } // end of for(Int_t i8=0;i8=8) cout<NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t phi1=0.; Double_t phi2=0.; Double_t phi3=0.; Double_t phi4=0.; Double_t phi5=0.; /*Double_t phi6=0.; Double_t phi7=0.; Double_t phi8=0.;*/ Int_t n = fHarmonic; Int_t eventNo = (Int_t)fAvMultiplicity->GetBinEntries(1); // TBI: is such casting safe in general? Double_t dMult = (*fSpk)(0,0); cout<fMaxAllowedMultiplicity) { cout<<"... skipping this event (multiplicity too high) ..."<=2 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(nPrim==2) cout<Fill(0.5,cos(1.*n*(phi1-phi2)),1.); // fMixedHarmonicsNestedLoops->Fill(1.5,cos(2.*n*(phi1-phi2)),1.); // fMixedHarmonicsNestedLoops->Fill(2.5,cos(3.*n*(phi1-phi2)),1.); // fMixedHarmonicsNestedLoops->Fill(3.5,cos(4.*n*(phi1-phi2)),1.); // fMixedHarmonicsNestedLoops->Fill(4.5,cos(5.*n*(phi1-phi2)),1.); // fMixedHarmonicsNestedLoops->Fill(5.5,cos(6.*n*(phi1-phi2)),1.); // } // end of for(Int_t i2=0;i2=2) // 3-particle correlations: if(nPrim>=3 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(nPrim==3) cout<Fill( 6.5,cos(2.*n*phi1-n*(phi2+phi3)),1.); // <3>_{2n|1n,1n} fMixedHarmonicsNestedLoops->Fill( 7.5,cos(4.*n*phi1-2.*n*phi2-2.*n*phi3),1.); // <3>_{4n|2n,2n} fMixedHarmonicsNestedLoops->Fill( 8.5,cos(6.*n*phi1-3.*n*phi2-3.*n*phi3),1.); // <3>_{6n|3n,3n} fMixedHarmonicsNestedLoops->Fill(10.5,cos(3.*n*phi1-2.*n*phi2-n*phi3),1.); // <3>_{3n|2n,1n} fMixedHarmonicsNestedLoops->Fill(11.5,cos(4.*n*phi1-3.*n*phi2-1.*n*phi3),1.); // <3>_{4n|3n,1n} fMixedHarmonicsNestedLoops->Fill(12.5,cos(5.*n*phi1-3.*n*phi2-2.*n*phi3),1.); // <3>_{5n|3n,2n} fMixedHarmonicsNestedLoops->Fill(13.5,cos(5.*n*phi1-4.*n*phi2-1.*n*phi3),1.); // <3>_{5n|4n,1n} fMixedHarmonicsNestedLoops->Fill(14.5,cos(6.*n*phi1-4.*n*phi2-2.*n*phi3),1.); // <3>_{6n|4n,2n} fMixedHarmonicsNestedLoops->Fill(15.5,cos(6.*n*phi1-5.*n*phi2-1.*n*phi3),1.); // <3>_{6n|5n,1n} } // end of for(Int_t i3=0;i3=3) // 4-particle correlations: if(nPrim>=4 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); if(nPrim==4) cout<Fill(16.5,cos(1.*n*(phi1+phi2-phi3-phi4)),1.); // <4>_{1n,1n|1n,1n} fMixedHarmonicsNestedLoops->Fill(17.5,cos(2.*n*(phi1+phi2-phi3-phi4)),1.); // <4>_{2n,2n|2n,2n} fMixedHarmonicsNestedLoops->Fill(18.5,cos(3.*n*(phi1+phi2-phi3-phi4)),1.); // <4>_{3n,3n|3n,3n} fMixedHarmonicsNestedLoops->Fill(19.5,cos(4.*n*(phi1+phi2-phi3-phi4)),1.); // <4>_{4n,4n|4n,4n} fMixedHarmonicsNestedLoops->Fill(20.5,cos(5.*n*(phi1+phi2-phi3-phi4)),1.); // <4>_{5n,5n|5n,5n} fMixedHarmonicsNestedLoops->Fill(21.5,cos(6.*n*(phi1+phi2-phi3-phi4)),1.); // <4>_{6n,6n|6n,6n} fMixedHarmonicsNestedLoops->Fill(23.5,cos(n*(2.*phi1+1.*phi2-2.*phi3-1.*phi4)),1.); // <4>_{2n,1n|2n,1n} fMixedHarmonicsNestedLoops->Fill(24.5,cos(n*(3.*phi1+1.*phi2-3.*phi3-1.*phi4)),1.); // <4>_{3n,1n|3n,1n} fMixedHarmonicsNestedLoops->Fill(25.5,cos(n*(3.*phi1+2.*phi2-3.*phi3-2.*phi4)),1.); // <4>_{3n,2n|3n,2n} fMixedHarmonicsNestedLoops->Fill(26.5,cos(n*(4.*phi1+1.*phi2-4.*phi3-1.*phi4)),1.); // <4>_{4n,1n|4n,1n} fMixedHarmonicsNestedLoops->Fill(27.5,cos(n*(4.*phi1+2.*phi2-4.*phi3-2.*phi4)),1.); // <4>_{4n,2n|4n,2n} fMixedHarmonicsNestedLoops->Fill(28.5,cos(n*(4.*phi1+3.*phi2-4.*phi3-3.*phi4)),1.); // <4>_{4n,3n|4n,3n} fMixedHarmonicsNestedLoops->Fill(29.5,cos(n*(5.*phi1+1.*phi2-5.*phi3-1.*phi4)),1.); // <4>_{5n,1n|5n,1n} fMixedHarmonicsNestedLoops->Fill(30.5,cos(n*(5.*phi1+2.*phi2-5.*phi3-2.*phi4)),1.); // <4>_{5n,2n|5n,2n} fMixedHarmonicsNestedLoops->Fill(31.5,cos(n*(5.*phi1+3.*phi2-5.*phi3-3.*phi4)),1.); // <4>_{5n,3n|5n,3n} fMixedHarmonicsNestedLoops->Fill(32.5,cos(n*(5.*phi1+4.*phi2-5.*phi3-4.*phi4)),1.); // <4>_{5n,4n|5n,4n} fMixedHarmonicsNestedLoops->Fill(33.5,cos(n*(6.*phi1+1.*phi2-6.*phi3-1.*phi4)),1.); // <4>_{6n,1n|6n,1n} fMixedHarmonicsNestedLoops->Fill(34.5,cos(n*(6.*phi1+2.*phi2-6.*phi3-2.*phi4)),1.); // <4>_{6n,2n|6n,2n} fMixedHarmonicsNestedLoops->Fill(35.5,cos(n*(6.*phi1+3.*phi2-6.*phi3-3.*phi4)),1.); // <4>_{6n,3n|6n,3n} fMixedHarmonicsNestedLoops->Fill(36.5,cos(n*(6.*phi1+4.*phi2-6.*phi3-4.*phi4)),1.); // <4>_{6n,4n|6n,4n} fMixedHarmonicsNestedLoops->Fill(37.5,cos(n*(6.*phi1+5.*phi2-6.*phi3-5.*phi4)),1.); // <4>_{6n,5n|6n,5n} fMixedHarmonicsNestedLoops->Fill(39.5,cos(n*(3.*phi1-1.*phi2-1.*phi3-1.*phi4)),1.); // <4>_{3n|1n,1n,1n} fMixedHarmonicsNestedLoops->Fill(40.5,cos(n*(6.*phi1-2.*phi2-2.*phi3-2.*phi4)),1.); // <4>_{6n|2n,2n,2n} fMixedHarmonicsNestedLoops->Fill(42.5,cos(n*(3.*phi1+1.*phi2-2.*phi3-2.*phi4)),1.); // <4>_{3n,1n|2n,2n} fMixedHarmonicsNestedLoops->Fill(43.5,cos(n*(4.*phi1-2.*phi2-1.*phi3-1.*phi4)),1.); // <4>_{4n|2n,1n,1n} fMixedHarmonicsNestedLoops->Fill(44.5,cos(n*(4.*phi1+2.*phi2-3.*phi3-3.*phi4)),1.); // <4>_{4n,2n|3n,3n} fMixedHarmonicsNestedLoops->Fill(45.5,cos(n*(5.*phi1-2.*phi2-2.*phi3-1.*phi4)),1.); // <4>_{5n|2n,2n,1n} fMixedHarmonicsNestedLoops->Fill(46.5,cos(n*(5.*phi1-3.*phi2-1.*phi3-1.*phi4)),1.); // <4>_{5n|3n,1n,1n} fMixedHarmonicsNestedLoops->Fill(47.5,cos(n*(5.*phi1+1.*phi2-3.*phi3-3.*phi4)),1.); // <4>_{5n,1n|3n,3n} fMixedHarmonicsNestedLoops->Fill(48.5,cos(n*(5.*phi1+3.*phi2-4.*phi3-4.*phi4)),1.); // <4>_{5n,3n|4n,4n} fMixedHarmonicsNestedLoops->Fill(49.5,cos(n*(6.*phi1-4.*phi2-1.*phi3-1.*phi4)),1.); // <4>_{6n|4n,1n,1n} fMixedHarmonicsNestedLoops->Fill(50.5,cos(n*(6.*phi1+2.*phi2-4.*phi3-4.*phi4)),1.); // <4>_{6n,2n|4n,4n} fMixedHarmonicsNestedLoops->Fill(51.5,cos(n*(6.*phi1+4.*phi2-5.*phi3-5.*phi4)),1.); // <4>_{6n,4n|5n,5n} fMixedHarmonicsNestedLoops->Fill(53.5,cos(n*(4.*phi1+1.*phi2-3.*phi3-2.*phi4)),1.); // <4>_{4n,1n|3n,2n} fMixedHarmonicsNestedLoops->Fill(54.5,cos(n*(5.*phi1+1.*phi2-4.*phi3-2.*phi4)),1.); // <4>_{5n,1n|4n,2n} fMixedHarmonicsNestedLoops->Fill(55.5,cos(n*(5.*phi1+2.*phi2-4.*phi3-3.*phi4)),1.); // <4>_{5n,2n|4n,3n} fMixedHarmonicsNestedLoops->Fill(56.5,cos(n*(6.*phi1+1.*phi2-4.*phi3-3.*phi4)),1.); // <4>_{6n,1n|4n,3n} fMixedHarmonicsNestedLoops->Fill(57.5,cos(n*(6.*phi1+1.*phi2-5.*phi3-2.*phi4)),1.); // <4>_{6n,1n|5n,2n} fMixedHarmonicsNestedLoops->Fill(58.5,cos(n*(6.*phi1-3.*phi2-2.*phi3-1.*phi4)),1.); // <4>_{6n|3n,2n,1n} fMixedHarmonicsNestedLoops->Fill(59.5,cos(n*(6.*phi1+2.*phi2-5.*phi3-3.*phi4)),1.); // <4>_{6n,2n|5n,3n} fMixedHarmonicsNestedLoops->Fill(60.5,cos(n*(6.*phi1+3.*phi2-5.*phi3-4.*phi4)),1.); // <4>_{6n,3n|5n,4n} } // end of for(Int_t i4=0;i4=) // 5-particle correlations: if(nPrim>=5 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); for(Int_t i5=0;i5GetTrack(i5); if(!(aftsTrack->InRPSelection())) continue; phi5=aftsTrack->Phi(); if(nPrim==5) cout<Fill(61.5,cos(n*(3.*phi1+2.*phi2-3.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(62.5,cos(n*(4.*phi1+1.*phi2-2.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(63.5,cos(n*(4.*phi1+2.*phi2-3.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(64.5,cos(n*(4.*phi1+3.*phi2-3.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(65.5,cos(n*(4.*phi1+2.*phi2-4.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(66.5,cos(n*(4.*phi1+3.*phi2-4.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(67.5,cos(n*(5.*phi1+1.*phi2-3.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(68.5,cos(n*(5.*phi1+2.*phi2-5.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(69.5,cos(n*(5.*phi1+2.*phi2-4.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(70.5,cos(n*(5.*phi1+3.*phi2-4.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(71.5,cos(n*(5.*phi1+4.*phi2-4.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(72.5,cos(n*(5.*phi1+3.*phi2-5.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(73.5,cos(n*(5.*phi1+4.*phi2-5.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(74.5,cos(n*(5.*phi1+4.*phi2-5.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(75.5,cos(n*(6.*phi1+1.*phi2-3.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(76.5,cos(n*(6.*phi1+2.*phi2-3.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(77.5,cos(n*(6.*phi1+1.*phi2-4.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(78.5,cos(n*(6.*phi1+3.*phi2-4.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(79.5,cos(n*(6.*phi1+4.*phi2-4.*phi3-3.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(80.5,cos(n*(6.*phi1+2.*phi2-5.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(81.5,cos(n*(6.*phi1+3.*phi2-5.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(82.5,cos(n*(6.*phi1+4.*phi2-5.*phi3-4.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(83.5,cos(n*(6.*phi1+5.*phi2-5.*phi3-3.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(84.5,cos(n*(6.*phi1+2.*phi2-6.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(85.5,cos(n*(6.*phi1+3.*phi2-6.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(86.5,cos(n*(6.*phi1+4.*phi2-6.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(87.5,cos(n*(6.*phi1+4.*phi2-6.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(88.5,cos(n*(6.*phi1+5.*phi2-5.*phi3-4.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(89.5,cos(n*(6.*phi1+5.*phi2-6.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(90.5,cos(n*(6.*phi1+5.*phi2-6.*phi3-4.*phi4-1.*phi5)),1.); // //fMixedHarmonicsNestedLoops->Fill(91.5,-44.,1.); // empty fMixedHarmonicsNestedLoops->Fill(92.5,cos(n*(2.*phi1+1.*phi2-1.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(93.5,cos(n*(2.*phi1+2.*phi2-2.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(94.5,cos(n*(3.*phi1+3.*phi2-2.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(95.5,cos(n*(4.*phi1-1.*phi2-1.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(96.5,cos(n*(4.*phi1+2.*phi2-2.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(97.5,cos(n*(4.*phi1+4.*phi2-4.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(98.5,cos(n*(6.*phi1+3.*phi2-3.*phi3-3.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(99.5,cos(n*(6.*phi1+6.*phi2-4.*phi3-4.*phi4-4.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(100.5,cos(n*(6.*phi1+6.*phi2-6.*phi3-3.*phi4-3.*phi5)),1.); // //fMixedHarmonicsNestedLoops->Fill(101.5,-44.,1.); // empty fMixedHarmonicsNestedLoops->Fill(102.5,cos(n*(3.*phi1+1.*phi2-2.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(103.5,cos(n*(3.*phi1+2.*phi2-2.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(104.5,cos(n*(3.*phi1+3.*phi2-3.*phi3-2.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(105.5,cos(n*(4.*phi1+1.*phi2-3.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(106.5,cos(n*(4.*phi1+1.*phi2+1.*phi3-3.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(107.5,cos(n*(4.*phi1+3.*phi2-3.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(108.5,cos(n*(4.*phi1+4.*phi2-3.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(109.5,cos(n*(4.*phi1+4.*phi2-4.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(110.5,cos(n*(5.*phi1-2.*phi2-1.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(111.5,cos(n*(5.*phi1+1.*phi2-2.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(112.5,cos(n*(5.*phi1+2.*phi2-3.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(113.5,cos(n*(5.*phi1+3.*phi2-3.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(114.5,cos(n*(5.*phi1+1.*phi2-4.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(115.5,cos(n*(5.*phi1+4.*phi2-3.*phi3-3.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(116.5,cos(n*(5.*phi1+4.*phi2-4.*phi3-4.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(117.5,cos(n*(5.*phi1+5.*phi2-4.*phi3-3.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(118.5,cos(n*(5.*phi1+5.*phi2-4.*phi3-4.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(119.5,cos(n*(5.*phi1+5.*phi2-5.*phi3-3.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(120.5,cos(n*(5.*phi1+5.*phi2-5.*phi3-4.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(121.5,cos(n*(6.*phi1-2.*phi2-2.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(122.5,cos(n*(6.*phi1-3.*phi2-1.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(123.5,cos(n*(6.*phi1+1.*phi2+1.*phi3-4.*phi4-4.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(124.5,cos(n*(6.*phi1+1.*phi2-5.*phi3-1.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(125.5,cos(n*(6.*phi1+2.*phi2-4.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(126.5,cos(n*(6.*phi1+4.*phi2-4.*phi3-4.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(127.5,cos(n*(6.*phi1+2.*phi2+2.*phi3-5.*phi4-5.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(128.5,cos(n*(6.*phi1+5.*phi2-5.*phi3-5.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(129.5,cos(n*(6.*phi1+6.*phi2-5.*phi3-5.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(130.5,cos(n*(6.*phi1+6.*phi2-6.*phi3-4.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(131.5,cos(n*(6.*phi1+6.*phi2-6.*phi3-5.*phi4-1.*phi5)),1.); // // TBI swap with the one above //fMixedHarmonicsNestedLoops->Fill(132.5,-44.,1.); // empty fMixedHarmonicsNestedLoops->Fill(133.5,cos(n*(5.*phi1+2.*phi2-3.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(134.5,cos(n*(5.*phi1+1.*phi2+1.*phi3-4.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(135.5,cos(n*(5.*phi1+3.*phi2-4.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(136.5,cos(n*(5.*phi1+2.*phi2+1.*phi3-4.*phi4-4.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(137.5,cos(n*(6.*phi1+1.*phi2-3.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(138.5,cos(n*(6.*phi1+3.*phi2-4.*phi3-4.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(139.5,cos(n*(6.*phi1+1.*phi2+1.*phi3-5.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(140.5,cos(n*(6.*phi1+3.*phi2-5.*phi3-2.*phi4-2.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(141.5,cos(n*(6.*phi1+5.*phi2-4.*phi3-4.*phi4-3.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(142.5,cos(n*(6.*phi1+3.*phi2+1.*phi3-5.*phi4-5.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(143.5,cos(n*(6.*phi1+6.*phi2-5.*phi3-4.*phi4-3.*phi5)),1.); // //fMixedHarmonicsNestedLoops->Fill(144.5,-44.,1.); // empty fMixedHarmonicsNestedLoops->Fill(145.5,cos(n*(6.*phi1+2.*phi2-4.*phi3-3.*phi4-1.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(146.5,cos(n*(6.*phi1+2.*phi2+1.*phi3-5.*phi4-4.*phi5)),1.); // fMixedHarmonicsNestedLoops->Fill(147.5,cos(n*(6.*phi1+4.*phi2-5.*phi3-3.*phi4-2.*phi5)),1.); // } // end of for(Int_t i5=0;i5=5) // QW44 } // end of void AliFlowAnalysisWithQCumulants::EvaluateMixedHarmonicsWithNestedLoops(AliFlowEventSimple * const anEvent) //================================================================================================================ void AliFlowAnalysisWithQCumulants::CrossCheckIntFlowCorrelations() { // Cross-check results for multiparticle correlations needed for int. flow: results from Q-vectors vs results from nested loops. cout<GetXaxis())->GetBinLabel(ci), "") == 0) continue; // to be improved (access finalized histogram here) cout<<(fIntFlowCorrelationsAllPro->GetXaxis())->GetBinLabel(ci)<<":"<GetXaxis())->GetBinLabel(ci)<<":"<GetXaxis())->GetBinLabel(ci), "") == 0) continue; // to be improved (access finalized histogram here) cout<<(fIntFlowCorrectionTermsForNUAPro[sc]->GetXaxis())->GetBinLabel(ci)<<":"<fMaxAllowedMultiplicity) { cout<<"... skipping this event (multiplicity too high) ..."<=2 && nPrim<=fMaxAllowedMultiplicity) { // 2 nested loops multiparticle correlations using particle weights: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); if(nPrim==2) cout<Fill(0.5,cos(n*(phi1-phi2)),wPhi1*wPhi2); // if(fUsePhiWeights) fIntFlowDirectCorrelations->Fill(1.5,cos(2.*n*(phi1-phi2)),pow(wPhi1,2)*pow(wPhi2,2)); // if(fUsePhiWeights) fIntFlowDirectCorrelations->Fill(2.5,cos(3.*n*(phi1-phi2)),pow(wPhi1,3)*pow(wPhi2,3)); // if(fUsePhiWeights) fIntFlowDirectCorrelations->Fill(3.5,cos(4.*n*(phi1-phi2)),pow(wPhi1,4)*pow(wPhi2,4)); // // extra correlations: // 2-p extra correlations (do not appear if particle weights are not used): if(fUsePhiWeights) fIntFlowExtraDirectCorrelations->Fill(0.5,cos(n*(phi1-phi2)),pow(wPhi1,3)*wPhi2); // // ... } // end of for(Int_t i2=0;i2=2) if(nPrim>=3 && nPrim<=fMaxAllowedMultiplicity) { // 3 nested loops multiparticle correlations using particle weights: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi3 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi3*fnBinsPhi/TMath::TwoPi()))); if(nPrim==3) cout<Fill(5.5,cos(2.*n*phi1-n*(phi2+phi3)),pow(wPhi1,2)*wPhi2*wPhi3); // // ... // extra correlations: // 2-p extra correlations (do not appear if particle weights are not used): if(fUsePhiWeights) fIntFlowExtraDirectCorrelations->Fill(1.5,cos(n*(phi1-phi2)),wPhi1*wPhi2*pow(wPhi3,2)); // // ... // 3-p extra correlations (do not appear if particle weights are not used): // ... } // end of for(Int_t i3=0;i3=3) if(nPrim>=4 && nPrim<=fMaxAllowedMultiplicity) { // 4 nested loops multiparticle correlations using particle weights: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi3 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi3*fnBinsPhi/TMath::TwoPi()))); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi4 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi4*fnBinsPhi/TMath::TwoPi()))); if(nPrim>=4) cout<Fill(10.5,cos(n*phi1+n*phi2-n*phi3-n*phi4),wPhi1*wPhi2*wPhi3*wPhi4); // extra correlations: // 2-p extra correlations (do not appear if particle weights are not used): // ... // 3-p extra correlations (do not appear if particle weights are not used): // ... // 4-p extra correlations (do not appear if particle weights are not used): // ... } // end of for(Int_t i4=0;i4=4) cout<GetXaxis())->GetBinLabel(eci), "") == 0) continue; cout<<(fIntFlowExtraCorrelationsPro->GetXaxis())->GetBinLabel(eci)<<":"<fMaxAllowedMultiplicity) { cout<<"... skipping this event (multiplicity too high) ..."<=1 && nPrim<=fMaxAllowedMultiplicity) { // 1-particle correction terms for non-uniform acceptance: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(nPrim==1) cout<Fill(0.5,sin(n*phi1),1.); // // cos terms: fIntFlowDirectCorrectionTermsForNUA[1]->Fill(0.5,cos(n*phi1),1.); // } // end of for(Int_t i1=0;i1=1) if(nPrim>=2 && nPrim<=fMaxAllowedMultiplicity) { // 2-particle correction terms for non-uniform acceptance: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(nPrim==2) cout<Fill(1.5,sin(n*(phi1+phi2)),1.); // <> fIntFlowDirectCorrectionTermsForNUA[0]->Fill(3.5,sin(n*(2*phi1-phi2)),1.); // <> // cos terms: fIntFlowDirectCorrectionTermsForNUA[1]->Fill(1.5,cos(n*(phi1+phi2)),1.); // <> fIntFlowDirectCorrectionTermsForNUA[1]->Fill(3.5,cos(n*(2*phi1-phi2)),1.); // <> } // end of for(Int_t i2=0;i2=2) if(nPrim>=3 && nPrim<=fMaxAllowedMultiplicity) { // 3-particle correction terms for non-uniform acceptance: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(nPrim>=3) cout<Fill(2.5,sin(n*(phi1-phi2-phi3)),1.); // <> // cos terms: fIntFlowDirectCorrectionTermsForNUA[1]->Fill(2.5,cos(n*(phi1-phi2-phi3)),1.); // <> } // end of for(Int_t i3=0;i3=3) cout<,1=<4'>,2=<6'>,3=<8'>] // Remark 3: <2'> = // <4'> = // ... Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; Int_t nPrim = anEvent->NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t psi1=0., phi2=0., phi3=0., phi4=0.;// phi5=0., phi6=0., phi7=0., phi8=0.; Int_t n = fHarmonic; // 2'-particle correlations: for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection()))continue; phi2=aftsTrack->Phi(); // 2'-particle correlations: fDiffFlowDirectCorrelations[t][pe][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(1.*n*(psi1-phi2)),1.); // GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); // to be improved : where to store it? ->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(2.*phi1-phi2-phi3)),1.); // }//end of for(Int_t i3=0;i3GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); for(Int_t i4=0;i4GetTrack(i4); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); // 4'-particle correlations: fDiffFlowDirectCorrelations[t][pe][1]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1+phi2-phi3-phi4)),1.); // }//end of for(Int_t i4=0;i4GetTrack(i); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } if(t==1)t++; fNoOfParticlesInBin->Fill(t+pe+0.5); } } // end of void AliFlowAnalysisWithQCumulants::EvaluateDiffFlowCorrelationsWithNestedLoops(AliFlowEventSimple* anEvent, TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::EvaluateOtherDiffCorrelatorsWithNestedLoops(AliFlowEventSimple * const anEvent, TString type, TString ptOrEta) { // Evaluate other differential correlators with nested loops without using the particle weights. // Remark 1: Other differential correlators are evaluated in pt bin number fCrossCheckInPtBinNo // and eta bin number fCrossCheckInEtaBinNo both for RPs and POIs. // Remark 2: Results are stored in 1 bin profiles fOtherDirectDiffCorrelators[t][pe][sc][ci], where indices runs as follows: // [0=RP,1=POI][0=Pt,1=Eta][0=sin terms,1=cos terms][ci = correlator index] // Remark 3: Correlator index 'ci' runs as follows: // 0: (Teaney-Yan correlator) Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; Int_t nPrim = anEvent->NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t psi1=0., phi2=0., phi3=0.; Int_t n = fHarmonic; // 3-p correlators: for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); // Fill 3-p correlators: fOtherDirectDiffCorrelators[t][pe][1][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1-3.*phi2+2.*phi3)),1.); // }//end of for(Int_t i3=0;i3>","<>","",""}; // to be improved (access this from pro or hist) Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Int_t crossCheckInPtEtaBinNo[2] = {fCrossCheckInPtBinNo,fCrossCheckInEtaBinNo}; cout<>"}; // to be improved (access this from pro or hist) Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Int_t crossCheckInPtEtaBinNo[2] = {fCrossCheckInPtBinNo,fCrossCheckInEtaBinNo}; cout<NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t psi1=0., phi2=0., phi3=0., phi4=0.;// phi5=0., phi6=0., phi7=0., phi8=0.; Double_t wPhi2=1., wPhi3=1., wPhi4=1.;// wPhi5=1., wPhi6=1., wPhi7=1., wPhi8=1.; Int_t n = fHarmonic; // 2'-particle correlations: for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); // 2'-particle correlations: fDiffFlowDirectCorrelations[t][pe][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(1.*n*(psi1-phi2)),wPhi2); // GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); for(Int_t i3=0;i3GetTrack(i3); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi3 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi3*fnBinsPhi/TMath::TwoPi()))); for(Int_t i4=0;i4GetTrack(i4); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi4 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi4*fnBinsPhi/TMath::TwoPi()))); // 4'-particle correlations : fDiffFlowDirectCorrelations[t][pe][1]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1+phi2-phi3-phi4)),wPhi2*wPhi3*wPhi4); }//end of for(Int_t i4=0;i4GetTrack(i); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } if(t==1)t++; fNoOfParticlesInBin->Fill(t+pe+0.5); } } // end of void AliFlowAnalysisWithQCumulants::EvaluateDiffFlowCorrelationsWithNestedLoopsUsingParticleWeights(AliFlowEventSimple* anEvent, TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoops(AliFlowEventSimple * const anEvent, TString type, TString ptOrEta) { // Evaluate with nested loops correction terms for non-uniform acceptance (both sin and cos terms) relevant for differential flow. // Remark 1: Reduced correction terms for non-uniform acceptance are evaluated in pt bin number fCrossCheckInPtBinNo // and eta bin number fCrossCheckInEtaBinNo both for RPs and POIs. // Remark 2: Results are stored in 1 bin profiles fDiffFlowDirectCorrections[t][pe][sc][cti], where first three indices runs as: // [0=RP,1=POI][0=Pt,1=Eta][0=sin terms,1=cos terms], whilst the cti (correction term index) runs as follows: // cti: // 0: <> // 1: <> // 2: <> // 3: <> // 4: // 5: // 6: Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; Int_t nPrim = anEvent->NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t psi1=0., phi2=0., phi3=0.;// phi4=0.;// phi5=0., phi6=0., phi7=0., phi8=0.; Int_t n = fHarmonic; // 1-particle correction terms: for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); // sin terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*psi1),1.); // <> // cos terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*psi1),1.); // <> }//end of for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); // sin terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][1]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*(psi1+phi2)),1.); // <> // cos terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][1]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1+phi2)),1.); // <> }//end of for(Int_t i2=0;i2GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); for(Int_t i3=0;i3GetTrack(i3); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); // sin terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][2]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*(psi1+phi2-phi3)),1.); // <> fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][3]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*(psi1-phi2-phi3)),1.); // <> // cos terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][2]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1+phi2-phi3)),1.); // <> fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][3]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1-phi2-phi3)),1.); // <> }//end of for(Int_t i3=0;i3>","<>","<>","<>"}; // to be improved (access this from pro or hist) TString reducedCorrectionCosTerms[4] = {"<>","<>","<>","<>"}; // to be improved (access this from pro or hist) Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Int_t crossCheckInPtEtaBinNo[2] = {fCrossCheckInPtBinNo,fCrossCheckInEtaBinNo}; cout<fMaxAllowedMultiplicity) { cout<<"... skipping this event (multiplicity too high) ..."<=1 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); // 1-particle correction terms using particle weights: if(fUsePhiWeights) fIntFlowDirectCorrectionTermsForNUA[0]->Fill(0.5,sin(n*phi1),wPhi1); // if(fUsePhiWeights) fIntFlowDirectCorrectionTermsForNUA[1]->Fill(0.5,cos(n*phi1),wPhi1); // } // end of for(Int_t i1=0;i1=1 && nPrim<=fMaxAllowedMultiplicity) // 2-particle correction terms using particle weights: if(nPrim>=2 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); if(nPrim==2) cout<Fill(1.5,sin(n*(phi1+phi2)),wPhi1*wPhi2); // if(fUsePhiWeights) fIntFlowDirectCorrectionTermsForNUA[1]->Fill(1.5,cos(n*(phi1+phi2)),wPhi1*wPhi2); // } // end of for(Int_t i2=0;i2=2) // 3-particle correction terms using particle weights: if(nPrim>=3 && nPrim<=fMaxAllowedMultiplicity) { for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi3 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi3*fnBinsPhi/TMath::TwoPi()))); if(nPrim==3) cout<Fill(2.5,sin(n*(phi1-phi2-phi3)),wPhi1*wPhi2*wPhi3); // if(fUsePhiWeights) fIntFlowDirectCorrectionTermsForNUA[1]->Fill(2.5,cos(n*(phi1-phi2-phi3)),wPhi1*wPhi2*wPhi3); // } // end of for(Int_t i3=0;i3=3) /* if(nPrim>=4 && nPrim<=fMaxAllowedMultiplicity) { // 4 nested loops multiparticle correlations using particle weights: for(Int_t i1=0;i1GetTrack(i1); if(!(aftsTrack->InRPSelection())) continue; phi1=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi1 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi1*fnBinsPhi/TMath::TwoPi()))); for(Int_t i2=0;i2GetTrack(i2); if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); for(Int_t i3=0;i3GetTrack(i3); if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi3 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi3*fnBinsPhi/TMath::TwoPi()))); for(Int_t i4=0;i4GetTrack(i4); if(!(aftsTrack->InRPSelection())) continue; phi4=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi4 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi4*fnBinsPhi/TMath::TwoPi()))); if(nPrim>=4) cout<Fill(10.5,cos(n*phi1+n*phi2-n*phi3-n*phi4),wPhi1*wPhi2*wPhi3*wPhi4); // extra correlations: // 2-p extra correlations (do not appear if particle weights are not used): // ... // 3-p extra correlations (do not appear if particle weights are not used): // ... // 4-p extra correlations (do not appear if particle weights are not used): // ... } // end of for(Int_t i4=0;i4=4) */ cout<> // 1: <> // 2: <> // 3: <> // 4: // 5: // 6: // real and imaginary parts of weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n1k = (*fReQ)(0,1); Double_t dReQ2n2k = (*fReQ)(1,2); //Double_t dReQ1n3k = (*fReQ)(0,3); //Double_t dReQ4n4k = (*fReQ)(3,4); Double_t dImQ1n1k = (*fImQ)(0,1); Double_t dImQ2n2k = (*fImQ)(1,2); //Double_t dImQ1n3k = (*fImQ)(0,3); //Double_t dImQ4n4k = (*fImQ)(3,4); // S^M_{p,k} (see .h file for the definition of fSpk): Double_t dSM1p1k = (*fSpk)(0,1); Double_t dSM1p2k = (*fSpk)(0,2); Double_t dSM2p1k = (*fSpk)(1,1); Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // looping over all bins and calculating correction terms: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular pt or eta bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular pt or eta bin: Double_t mp = 0.; // real and imaginary parts of q_{m*n,0} (weighted Q-vector evaluated for particles which are both RPs and POIs in particular pt or eta bin): Double_t q1n2kRe = 0.; //Double_t q1n2kIm = 0.; Double_t q2n1kRe = 0.; Double_t q2n1kIm = 0.; // s_{1,1}, s_{1,2} // to be improved (add explanation) Double_t s1p1k = 0.; Double_t s1p2k = 0.; // number of particles which are both RPs and POIs in particular pt or eta bin: //Double_t mq = 0.; // M0111 from Eq. (118) in QC2c (to be improved (notation)) Double_t dM01 = 0.; Double_t dM011 = 0.; if(type == "POI") { // q_{m*n,k}: q1n2kRe = fReRPQ1dEBE[2][pe][0][2]->GetBinContent(fReRPQ1dEBE[2][pe][0][2]->GetBin(b)) * fReRPQ1dEBE[2][pe][0][2]->GetBinEntries(fReRPQ1dEBE[2][pe][0][2]->GetBin(b)); //q1n2kIm = fImRPQ1dEBE[2][pe][0][2]->GetBinContent(fImRPQ1dEBE[2][pe][0][2]->GetBin(b)) // * fImRPQ1dEBE[2][pe][0][2]->GetBinEntries(fImRPQ1dEBE[2][pe][0][2]->GetBin(b)); q2n1kRe = fReRPQ1dEBE[2][pe][1][1]->GetBinContent(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][1]->GetBinEntries(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)); q2n1kIm = fImRPQ1dEBE[2][pe][1][1]->GetBinContent(fImRPQ1dEBE[2][pe][1][1]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][1]->GetBinEntries(fImRPQ1dEBE[2][pe][1][1]->GetBin(b)); //mq = fReRPQ1dEBE[2][pe][1][1]->GetBinEntries(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) s1p1k = pow(fs1dEBE[2][pe][1]->GetBinContent(b)*fs1dEBE[2][pe][1]->GetBinEntries(b),1.); s1p2k = pow(fs1dEBE[2][pe][2]->GetBinContent(b)*fs1dEBE[2][pe][2]->GetBinEntries(b),1.); }else if(type == "RP") { // q_{m*n,k}: (Remark: m=1 is 0, k=0 iz zero (to be improved!)) q1n2kRe = fReRPQ1dEBE[0][pe][0][2]->GetBinContent(fReRPQ1dEBE[0][pe][0][2]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][2]->GetBinEntries(fReRPQ1dEBE[0][pe][0][2]->GetBin(b)); //q1n2kIm = fImRPQ1dEBE[0][pe][0][2]->GetBinContent(fImRPQ1dEBE[0][pe][0][2]->GetBin(b)) // * fImRPQ1dEBE[0][pe][0][2]->GetBinEntries(fImRPQ1dEBE[0][pe][0][2]->GetBin(b)); q2n1kRe = fReRPQ1dEBE[0][pe][1][1]->GetBinContent(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][1]->GetBinEntries(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)); q2n1kIm = fImRPQ1dEBE[0][pe][1][1]->GetBinContent(fImRPQ1dEBE[0][pe][1][1]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][1]->GetBinEntries(fImRPQ1dEBE[0][pe][1][1]->GetBin(b)); // s_{1,1}, s_{1,2} and s_{1,3} // to be improved (add explanation) s1p1k = pow(fs1dEBE[0][pe][1]->GetBinContent(b)*fs1dEBE[0][pe][1]->GetBinEntries(b),1.); s1p2k = pow(fs1dEBE[0][pe][2]->GetBinContent(b)*fs1dEBE[0][pe][2]->GetBinEntries(b),1.); //s1p3k = pow(fs1dEBE[0][pe][3]->GetBinContent(b)*fs1dEBE[0][pe][3]->GetBinEntries(b),1.); //mq = fReRPQ1dEBE[0][pe][1][1]->GetBinEntries(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) } if(type == "POI") { // p_{m*n,k}: p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) // M01 from Eq. (118) in QC2c (to be improved (notation)): dM01 = mp*dSM1p1k-s1p1k; dM011 = mp*(dSM2p1k-dSM1p2k) - 2.*(s1p1k*dSM1p1k-s1p2k); // typeFlag = RP (0) or POI (1): t = 1; } else if(type == "RP") { // to be improved (cross-checked): p1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) // M01 from Eq. (118) in QC2c (to be improved (notation)): dM01 = mp*dSM1p1k-s1p1k; dM011 = mp*(dSM2p1k-dSM1p2k) - 2.*(s1p1k*dSM1p1k-s1p2k); // typeFlag = RP (0) or POI (1): t = 0; } // <>: Double_t cosP1nPsi = 0.; if(mp) { cosP1nPsi = p1n0kRe/mp; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsi,mp); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][0]->SetBinContent(b,cosP1nPsi); } // end of if(mp) // <>: Double_t cosP1nPsiP1nPhiW2 = 0.; if(dM01) { cosP1nPsiP1nPhiW2 = (p1n0kRe*dReQ1n1k-p1n0kIm*dImQ1n1k-q2n1kRe)/(dM01); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsiP1nPhiW2,dM01); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][1]->SetBinContent(b,cosP1nPsiP1nPhiW2); } // end of if(dM01) // <>: Double_t cosP1nPsi1P1nPhi2MPhi3W2W3 = 0.; if(dM011) { cosP1nPsi1P1nPhi2MPhi3W2W3 = (p1n0kRe*(pow(dImQ1n1k,2.)+pow(dReQ1n1k,2.)) - p1n0kRe*dSM1p2k - q2n1kRe*dReQ1n1k-q2n1kIm*dImQ1n1k - s1p1k*dReQ1n1k + 2.*q1n2kRe) / dM011; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsi1P1nPhi2MPhi3W2W3,dM011); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][2]->SetBinContent(b,cosP1nPsi1P1nPhi2MPhi3W2W3); } // end of if(dM011) // <>: Double_t cosP1nPsi1M1nPhi2MPhi3W2W3 = 0.; if(dM011) { cosP1nPsi1M1nPhi2MPhi3W2W3 = (p1n0kRe*(pow(dReQ1n1k,2.)-pow(dImQ1n1k,2.))+2.*p1n0kIm*dReQ1n1k*dImQ1n1k - 1.*(p1n0kRe*dReQ2n2k+p1n0kIm*dImQ2n2k) - 2.*s1p1k*dReQ1n1k + 2.*q1n2kRe) / dM011; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][1][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],cosP1nPsi1M1nPhi2MPhi3W2W3,dM011); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][1][3]->SetBinContent(b,cosP1nPsi1M1nPhi2MPhi3W2W3); } // end of if(dM011) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUACosTermsUsingParticleWeights(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights(TString type, TString ptOrEta) { // Calculate correction terms for non-uniform acceptance for differential flow (sin terms). // Results are stored in fDiffFlowCorrectionTermsForNUAPro[t][pe][0][cti], where cti runs as follows: // 0: <> // 1: <> // 2: <> // 3: <>: // 4: // 5: // 6: // real and imaginary parts of weighted Q-vectors evaluated in harmonics n, 2n, 3n and 4n: Double_t dReQ1n1k = (*fReQ)(0,1); Double_t dReQ2n2k = (*fReQ)(1,2); //Double_t dReQ1n3k = (*fReQ)(0,3); //Double_t dReQ4n4k = (*fReQ)(3,4); Double_t dImQ1n1k = (*fImQ)(0,1); Double_t dImQ2n2k = (*fImQ)(1,2); //Double_t dImQ1n3k = (*fImQ)(0,3); //Double_t dImQ4n4k = (*fImQ)(3,4); // S^M_{p,k} (see .h file for the definition of fSpk): Double_t dSM1p1k = (*fSpk)(0,1); Double_t dSM1p2k = (*fSpk)(0,2); Double_t dSM2p1k = (*fSpk)(1,1); Int_t t = 0; // type flag Int_t pe = 0; // ptEta flag if(type == "RP") { t = 0; } else if(type == "POI") { t = 1; } if(ptOrEta == "Pt") { pe = 0; } else if(ptOrEta == "Eta") { pe = 1; } Int_t nBinsPtEta[2] = {fnBinsPt,fnBinsEta}; Double_t minPtEta[2] = {fPtMin,fEtaMin}; //Double_t maxPtEta[2] = {fPtMax,fEtaMax}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; // looping over all bins and calculating correction terms: for(Int_t b=1;b<=nBinsPtEta[pe];b++) { // real and imaginary parts of p_{m*n,0} (non-weighted Q-vector evaluated for POIs in particular pt or eta bin): Double_t p1n0kRe = 0.; Double_t p1n0kIm = 0.; // number of POIs in particular pt or eta bin: Double_t mp = 0.; // real and imaginary parts of q_{m*n,0} (weighted Q-vector evaluated for particles which are both RPs and POIs in particular pt or eta bin): //Double_t q1n2kRe = 0.; Double_t q1n2kIm = 0.; Double_t q2n1kRe = 0.; Double_t q2n1kIm = 0.; // s_{1,1}, s_{1,2} and s_{1,3} // to be improved (add explanation) Double_t s1p1k = 0.; Double_t s1p2k = 0.; // number of particles which are both RPs and POIs in particular pt or eta bin: //Double_t mq = 0.; // M0111 from Eq. (118) in QC2c (to be improved (notation)) Double_t dM01 = 0.; Double_t dM011 = 0.; if(type == "POI") { // q_{m*n,k}: //q1n2kRe = fReRPQ1dEBE[2][pe][0][2]->GetBinContent(fReRPQ1dEBE[2][pe][0][2]->GetBin(b)) // * fReRPQ1dEBE[2][pe][0][2]->GetBinEntries(fReRPQ1dEBE[2][pe][0][2]->GetBin(b)); q1n2kIm = fImRPQ1dEBE[2][pe][0][2]->GetBinContent(fImRPQ1dEBE[2][pe][0][2]->GetBin(b)) * fImRPQ1dEBE[2][pe][0][2]->GetBinEntries(fImRPQ1dEBE[2][pe][0][2]->GetBin(b)); q2n1kRe = fReRPQ1dEBE[2][pe][1][1]->GetBinContent(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)) * fReRPQ1dEBE[2][pe][1][1]->GetBinEntries(fReRPQ1dEBE[2][pe][1][1]->GetBin(b)); q2n1kIm = fImRPQ1dEBE[2][pe][1][1]->GetBinContent(fImRPQ1dEBE[2][pe][1][1]->GetBin(b)) * fImRPQ1dEBE[2][pe][1][1]->GetBinEntries(fImRPQ1dEBE[2][pe][1][1]->GetBin(b)); //mq = fReRPQ1dEBE[2][pe][0][0]->GetBinEntries(fReRPQ1dEBE[2][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) s1p1k = pow(fs1dEBE[2][pe][1]->GetBinContent(b)*fs1dEBE[2][pe][1]->GetBinEntries(b),1.); s1p2k = pow(fs1dEBE[2][pe][2]->GetBinContent(b)*fs1dEBE[2][pe][2]->GetBinEntries(b),1.); }else if(type == "RP") { // q_{m*n,k}: (Remark: m=1 is 0, k=0 iz zero (to be improved!)) //q1n2kRe = fReRPQ1dEBE[0][pe][0][2]->GetBinContent(fReRPQ1dEBE[0][pe][0][2]->GetBin(b)) // * fReRPQ1dEBE[0][pe][0][2]->GetBinEntries(fReRPQ1dEBE[0][pe][0][2]->GetBin(b)); q1n2kIm = fImRPQ1dEBE[0][pe][0][2]->GetBinContent(fImRPQ1dEBE[0][pe][0][2]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][2]->GetBinEntries(fImRPQ1dEBE[0][pe][0][2]->GetBin(b)); q2n1kRe = fReRPQ1dEBE[0][pe][1][1]->GetBinContent(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)) * fReRPQ1dEBE[0][pe][1][1]->GetBinEntries(fReRPQ1dEBE[0][pe][1][1]->GetBin(b)); q2n1kIm = fImRPQ1dEBE[0][pe][1][1]->GetBinContent(fImRPQ1dEBE[0][pe][1][1]->GetBin(b)) * fImRPQ1dEBE[0][pe][1][1]->GetBinEntries(fImRPQ1dEBE[0][pe][1][1]->GetBin(b)); // s_{1,1}, s_{1,2} and s_{1,3} // to be improved (add explanation) s1p1k = pow(fs1dEBE[0][pe][1]->GetBinContent(b)*fs1dEBE[0][pe][1]->GetBinEntries(b),1.); s1p2k = pow(fs1dEBE[0][pe][2]->GetBinContent(b)*fs1dEBE[0][pe][2]->GetBinEntries(b),1.); //s1p3k = pow(fs1dEBE[0][pe][3]->GetBinContent(b)*fs1dEBE[0][pe][3]->GetBinEntries(b),1.); } if(type == "POI") { // p_{m*n,k}: p1n0kRe = fReRPQ1dEBE[1][pe][0][0]->GetBinContent(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[1][pe][0][0]->GetBinContent(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[1][pe][0][0]->GetBinEntries(fImRPQ1dEBE[1][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[1][pe][0][0]->GetBinEntries(fReRPQ1dEBE[1][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) // M01 from Eq. (118) in QC2c (to be improved (notation)): dM01 = mp*dSM1p1k-s1p1k; dM011 = mp*(dSM2p1k-dSM1p2k) - 2.*(s1p1k*dSM1p1k-s1p2k); // typeFlag = RP (0) or POI (1): t = 1; } else if(type == "RP") { // to be improved (cross-checked): p1n0kRe = fReRPQ1dEBE[0][pe][0][0]->GetBinContent(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); p1n0kIm = fImRPQ1dEBE[0][pe][0][0]->GetBinContent(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)) * fImRPQ1dEBE[0][pe][0][0]->GetBinEntries(fImRPQ1dEBE[0][pe][0][0]->GetBin(b)); mp = fReRPQ1dEBE[0][pe][0][0]->GetBinEntries(fReRPQ1dEBE[0][pe][0][0]->GetBin(b)); // to be improved (cross-checked by accessing other profiles here) // M01 from Eq. (118) in QC2c (to be improved (notation)): dM01 = mp*dSM1p1k-s1p1k; dM011 = mp*(dSM2p1k-dSM1p2k) - 2.*(s1p1k*dSM1p1k-s1p2k); // typeFlag = RP (0) or POI (1): t = 0; } // <>: Double_t sinP1nPsi = 0.; if(mp) { sinP1nPsi = p1n0kIm/mp; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][0]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsi,mp); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][0]->SetBinContent(b,sinP1nPsi); } // end of if(mp) // <>: Double_t sinP1nPsiP1nPhiW2 = 0.; if(dM01) { sinP1nPsiP1nPhiW2 = (p1n0kRe*dImQ1n1k+p1n0kIm*dReQ1n1k-q2n1kIm)/(dM01); // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][1]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsiP1nPhiW2,dM01); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][1]->SetBinContent(b,sinP1nPsiP1nPhiW2); } // end of if(mp*dMult-mq) // <>: Double_t sinP1nPsi1P1nPhi2MPhi3W2W3 = 0.; if(dM011) { sinP1nPsi1P1nPhi2MPhi3W2W3 = (p1n0kIm*(pow(dImQ1n1k,2.)+pow(dReQ1n1k,2.)) - p1n0kIm*dSM1p2k + q2n1kRe*dImQ1n1k-q2n1kIm*dReQ1n1k - s1p1k*dImQ1n1k + 2.*q1n2kIm) / dM011; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][2]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsi1P1nPhi2MPhi3W2W3,dM011); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][2]->SetBinContent(b,sinP1nPsi1P1nPhi2MPhi3W2W3); } // end of if(dM011) // <>: Double_t sinP1nPsi1M1nPhi2MPhi3W2W3 = 0.; if(dM011) { sinP1nPsi1M1nPhi2MPhi3W2W3 = (p1n0kIm*(pow(dReQ1n1k,2.)-pow(dImQ1n1k,2.))-2.*p1n0kRe*dReQ1n1k*dImQ1n1k + 1.*(p1n0kRe*dImQ2n2k-p1n0kIm*dReQ2n2k) + 2.*s1p1k*dImQ1n1k - 2.*q1n2kIm) / dM011; // fill profile for <>: fDiffFlowCorrectionTermsForNUAPro[t][pe][0][3]->Fill(minPtEta[pe]+(b-1)*binWidthPtEta[pe],sinP1nPsi1M1nPhi2MPhi3W2W3,dM011); // histogram to store e-b-e (needed in some other methods): fDiffFlowCorrectionTermsForNUAEBE[t][pe][0][3]->SetBinContent(b,sinP1nPsi1M1nPhi2MPhi3W2W3); } // end of if(dM011) } // end of for(Int_t b=1;b<=nBinsPtEta[pe];b++) } // end of AliFlowAnalysisWithQCumulants::CalculateDiffFlowCorrectionsForNUASinTermsUsingParticleWeights(TString type, TString ptOrEta) //======================================================================================================================= void AliFlowAnalysisWithQCumulants::EvaluateDiffFlowCorrectionTermsForNUAWithNestedLoopsUsingParticleWeights(AliFlowEventSimple * const anEvent, TString type, TString ptOrEta) { // Evaluate with nested loops correction terms for non-uniform acceptance // with using particle weights (both sin and cos terms) relevant for differential flow. // Remark 1: "w1" in expressions bellow is a particle weight used only for particles which were // flagged both as POI and RP. // Remark 2: Reduced correction terms for non-uniform acceptance are evaluated in pt bin number fCrossCheckInPtBinNo // and eta bin number fCrossCheckInEtaBinNo both for RPs and POIs. // Remark 3: Results are stored in 1 bin profiles fDiffFlowDirectCorrections[t][pe][sc][cti], where first three indices runs as: // [0=RP,1=POI][0=Pt,1=Eta][0=sin terms,1=cos terms], whilst the cti (correction term index) runs as follows: // cti: // 0: <> // 1: <> // 2: <> // 3: <> // 4: // 5: // 6: Int_t typeFlag = 0; Int_t ptEtaFlag = 0; if(type == "RP") { typeFlag = 0; } else if(type == "POI") { typeFlag = 1; } if(ptOrEta == "Pt") { ptEtaFlag = 0; } else if(ptOrEta == "Eta") { ptEtaFlag = 1; } // shortcuts: Int_t t = typeFlag; Int_t pe = ptEtaFlag; Double_t lowerPtEtaEdge[2] = {fPtMin+(fCrossCheckInPtBinNo-1)*fPtBinWidth,fEtaMin+(fCrossCheckInEtaBinNo-1)*fEtaBinWidth}; Double_t upperPtEtaEdge[2] = {fPtMin+fCrossCheckInPtBinNo*fPtBinWidth,fEtaMin+fCrossCheckInEtaBinNo*fEtaBinWidth}; Double_t binWidthPtEta[2] = {fPtBinWidth,fEtaBinWidth}; Int_t nPrim = anEvent->NumberOfTracks(); AliFlowTrackSimple *aftsTrack = NULL; Double_t psi1=0., phi2=0., phi3=0.;// phi4=0.;// phi5=0., phi6=0., phi7=0., phi8=0.; Double_t wPhi2=1., wPhi3=1.; Int_t n = fHarmonic; // 1'-particle correction terms: for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); // sin terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*psi1),1.); // <> // cos terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][0]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*psi1),1.); // <> }//end of for(Int_t i1=0;i1GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); // sin terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][1]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*(psi1+phi2)),wPhi2); // <> // cos terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][1]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1+phi2)),wPhi2); // <> }//end of for(Int_t i2=0;i2GetTrack(i1); // POI condition (first particle in the correlator must be POI): // to be improved (this can be implemented much better) if(typeFlag==1) // this is diff flow of POIs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InPOISelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InPOISelection())))continue; } } else // this is diff flow of RPs { if(ptOrEta == "Pt") { if(!((aftsTrack->Pt()>=lowerPtEtaEdge[pe] && aftsTrack->Pt()InRPSelection())))continue; } else if (ptOrEta == "Eta") { if(!((aftsTrack->Eta()>=lowerPtEtaEdge[pe] && aftsTrack->Eta()InRPSelection())))continue; } } psi1=aftsTrack->Phi(); for(Int_t i2=0;i2GetTrack(i2); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi2=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi2 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi2*fnBinsPhi/TMath::TwoPi()))); for(Int_t i3=0;i3GetTrack(i3); // RP condition (!(first) particle in the correlator must be RP): if(!(aftsTrack->InRPSelection())) continue; phi3=aftsTrack->Phi(); if(fUsePhiWeights && fPhiWeights) wPhi3 = fPhiWeights->GetBinContent(1+(Int_t)(TMath::Floor(phi3*fnBinsPhi/TMath::TwoPi()))); // sin terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][2]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*(psi1+phi2-phi3)),wPhi2*wPhi3); // <> fDiffFlowDirectCorrectionTermsForNUA[t][pe][0][3]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,sin(n*(psi1-phi2-phi3)),wPhi2*wPhi3); // <> // cos terms: fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][2]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1+phi2-phi3)),wPhi2*wPhi3); // <> fDiffFlowDirectCorrectionTermsForNUA[t][pe][1][3]->Fill(lowerPtEtaEdge[pe]+binWidthPtEta[pe]/2.,cos(n*(psi1-phi2-phi3)),wPhi2*wPhi3); // <> }//end of for(Int_t i3=0;i3