1 #ifndef ALIANALYSISTASKLOCALRHO_H
2 #define ALIANALYSISTASKLOCALRHO_H
11 #include <AliVEvent.h>
12 #include <AliVTrack.h>
13 #include <AliVCluster.h>
14 #include <TClonesArray.h>
46 while (x>=TMath::TwoPi())x-=TMath::TwoPi();
47 while (x<0.)x+=TMath::TwoPi();
51 if(TMath::Nint(n)==2)
while (x>TMath::Pi()) x-=TMath::Pi();
52 if(TMath::Nint(n)==3) {
53 if(x>2.*TMath::TwoPi()/n) x = TMath::TwoPi() - x;
54 if(x>TMath::TwoPi()/n) x = TMath::TwoPi()-(x+TMath::TwoPi()/n);
58 Double_t n(ndf/2.), denom(TMath::Power(2, n)*TMath::Gamma(n));
59 if (denom!=0)
return ((1./denom)*TMath::Power(x, n-1)*TMath::Exp(-x/2.));
Double_t ChiSquarePDF(Int_t ndf, Double_t x) const
Double_t QCnS(Int_t i, Int_t j)
void CalculateEventPlaneCombinedVZERO(Double_t *comb) const
Double_t PhaseShift(Double_t x, Double_t n) const
detectorType fDetectorType
Float_t fPercentageOfFits
virtual Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
void CalculateEventPlaneTPC(Double_t *tpc)
virtual void Terminate(Option_t *option)
virtual void UserCreateOutputObjects()
void SetNoEventWeightsForQC(Bool_t e)
ClassDef(AliAnalysisTaskLocalRho, 6)
Bool_t PassesCuts(AliVTrack *track) const
Bool_t QCnRecovery(Double_t psi2, Double_t psi3)
Bool_t fAbsVnHarmonics
status of rho vs centrality
void SetUseScaledRho(Bool_t s)
void SetSoftTrackMinMaxPt(Float_t min, Float_t max)
Double_t ChiSquareCDF(Int_t ndf, Double_t x) const
void SetRebinSwapHistoOnTheFly(Bool_t r)
Bool_t fRebinSwapHistoOnTheFly
TH1F * fHistAnalysisSummary
swap histogram
Float_t fExcludeLeadingJetsFromFit
virtual ~AliAnalysisTaskLocalRho()
TH1F * fHistPsi2[10]
v3 cumulant
void SetFillHistograms(Bool_t b)
void SetOnTheFlyResCorrection(TH1F *r2, TH1F *r3)
AliParticleContainer * GetParticleContainer(Int_t i=0) const
Get particle container attached to this task.
void CalculateEventPlaneVZERO(Double_t vzero[2][2]) const
TString fLocalRhoName
name for local rho
Bool_t CorrectRho(Double_t psi2, Double_t psi3)
TArrayI * fCentralityClasses
Int_t fNAcceptedTracksQCn
number of accepted tracks
void SetExcludeLeadingJetsFromFit(Float_t n)
void SetSaveThisPercentageOfFits(Float_t p)
Bool_t PassesCuts(AliEmcalJet *jet)
void SetReferenceDetector(detectorType type)
TList * fOutputListBad
output list for local analysis
Double_t CalculateQC4(Int_t harm)
void SetQCnRecoveryType(qcRecovery type)
void QCnQnk(Int_t n, Int_t k, Double_t &reQ, Double_t &imQ)
void ExecOnce()
Perform steps needed to initialize the analysis.
void SetForceAbsVnHarmonics(Bool_t f)
Bool_t fUseV0EventPlaneFromHeader
virtual Bool_t AcceptParticle(const AliVParticle *vp, UInt_t &rejectionReason) const
void SetUsePtWeightErrorPropagation(Bool_t w)
void SetCentralityClasses(TArrayI *c)
void SetModulationFitOptions(TString opt)
fitModulationType fFitModulationType
centrality bin, only for QA plots
void SetRunModeType(runModeType type)
TList * fOutputListGood
output list
TH2F * fHistRhoStatusCent
cdf value of chisquare p
TProfile * fProfV3
v2 cumulant
TString fFitModulationOptions
Bool_t InitializeAnalysis()
void FillEventPlaneHistograms(Double_t psi2, Double_t psi3) const
TH2F * BookTH2F(const char *name, const char *x, const char *y, Int_t binsx, Double_t minx, Double_t maxx, Int_t binsy, Double_t miny, Double_t maxy, Int_t c=-1, Bool_t append=kTRUE)
void SetModulationFitType(fitModulationType type)
TProfile * fProfV3Cumulant
extracted v3
void FillAnalysisSummaryHistogram() const
void SetModulationFit(TF1 *fit)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Bool_t fUsePtWeightErrorPropagation
void SetUseV0EventPlaneFromHeader(Bool_t h)
TH1F * fHistSwap
output list for local analysis
Int_t fInCentralitySelection
accepted tracks for QCn
AliAnalysisTaskLocalRho & operator=(const AliAnalysisTaskLocalRho &)
void SetModulationFitMinMaxP(Float_t m, Float_t n)
TProfile * fProfV2Cumulant
extracted v2
virtual Bool_t AcceptJet(AliEmcalJet *jet, Int_t c=0)
Double_t PhaseShift(Double_t x) const
TH1F * BookTH1F(const char *name, const char *x, Int_t bins, Double_t min, Double_t max, Int_t c=-1, Bool_t append=kTRUE)
Bool_t fAttachToEvent
is the analysis initialized?
TString GetLocalRhoName() const
void SetIntegratedFlow(TH1F *i, TH1F *j)
AliAnalysisTaskLocalRho()
Double_t CalculateQC2(Int_t harm)
void SetAttachToEvent(Bool_t a)
Bool_t fNoEventWeightsForQC
void SetUsePtWeight(Bool_t w)
TH1F * fHistPsi3[10]
psi 2