#ifndef AliAnalysisTaskJetV2_H
#define AliAnalysisTaskJetV2_H
+// uncomment to compile with debug information
+//#define DEBUGTASK
+
#include <AliAnalysisTaskEmcalJet.h>
#include <AliEmcalJet.h>
#include <AliVEvent.h>
if(x>TMath::TwoPi()/n) x = TMath::TwoPi()-(x+TMath::TwoPi()/n);
}
return x; }
+ /* inline */ static Bool_t IsInPlane(Double_t dPhi) {
+ return (dPhi < -1.*TMath::Pi()/4. || dPhi > TMath::Pi()/4.); }
/* inline */ static Double_t ChiSquarePDF(Int_t ndf, Double_t x) {
Double_t n(ndf/2.), denom(TMath::Power(2, n)*TMath::Gamma(n));
if (denom!=0) return ((1./denom)*TMath::Power(x, n-1)*TMath::Exp(-x/2.));
/* inline */ Double_t KolmogorovTest(TH1F& histo, TF1* func) const {
// return the probability from a Kolmogorov test
return .5;
+ /* this test is disabeled as it eats a lot of resources but kept as a dummty to
+ * ensure compatibility of the output with offline macros
TH1F test(histo); // stack copy of test statistic
for(Int_t i(0); i < test.GetXaxis()->GetNbins(); i++) test.SetBinContent(i+1, func->Eval(test.GetXaxis()->GetBinCenter(1+i)));
if(fFitGoodnessTest == kKolmogorovTOY) return histo.TH1::KolmogorovTest((&test), "X");
return histo.TH1::KolmogorovTest((&test));
+ */
}
// setters - analysis setup
- void SetDebugMode(Int_t d) {fDebug = d;}
void SetRunToyMC(Bool_t t) {fRunToyMC = t; }
void SetAttachToEvent(Bool_t b) {fAttachToEvent = b;}
void SetFillHistograms(Bool_t b) {fFillHistograms = b;}
Double_t GetJetRadius() const {return GetJetContainer()->GetJetRadius();}
AliEmcalJet* GetLeadingJet(AliLocalRhoParameter* localRho = 0x0);
static TH1F* GetEventPlaneWeights(TH1F* hist);
+ static void PrintTriggerSummary(UInt_t trigger);
void ExecMe() {ExecOnce();}
-
AliAnalysisTaskJetV2* ReturnMe() {return this;}
// local cuts
void SetSoftTrackMinMaxPt(Float_t min, Float_t max) {fSoftTrackMinPt = min; fSoftTrackMaxPt = max;}
void FillWeightedJetHistograms(Double_t psi2);
void FillWeightedQAHistograms(AliVTrack* vtrack) const;
void FillWeightedQAHistograms(AliVEvent* vevent);
+ void FillWeightedTriggerQA(Double_t dPhi, Double_t pt, UInt_t trigger);
void FillAnalysisSummaryHistogram() const;
virtual void Terminate(Option_t* option);
// interface methods for the output file
Int_t GetVZEROCentralityBin() const;
private:
// analysis flags and settings
- Int_t fDebug; // debug level (0 none, 1 fcn calls, 2 verbose)
Bool_t fRunToyMC; // run toy mc for fit routine
Bool_t fLocalInit; //! is the analysis initialized?
Bool_t fAttachToEvent; // attach local rho to the event
TH1F* fHistClusterPt[10]; //! pt emcal clusters
TH2F* fHistClusterEtaPhi[10]; //! eta phi emcal clusters
TH2F* fHistClusterEtaPhiWeighted[10]; //! eta phi emcal clusters, pt weighted
+ // qa histograms for triggers
+ TH2F* fHistTriggerQAIn[10]; //! trigger qa in plane
+ TH2F* fHistTriggerQAOut[10]; //! trigger qa out of plane
// qa event planes
TProfile* fHistPsiControl; //! event plane control histogram
TProfile* fHistPsiSpread; //! event plane spread histogram