4 #include <TLorentzVector.h>
8 #include "AliVCluster.h"
9 #include "AliAODCaloCluster.h"
10 #include "AliESDCaloCluster.h"
11 #include "AliVParticle.h"
19 #include "AliVEventHandler.h"
20 #include "AliAnalysisManager.h"
69 DefineOutput(2, TList::Class());
70 DefineOutput(3, TList::Class());
120 Bool_t bStatusTmpH = TH1::AddDirectoryStatus();
121 TH1::AddDirectory(kFALSE);
125 TH1::AddDirectory(bStatusTmpH);
142 AliAnalysisTaskEmcalJet::Terminate(opt);
246 const Double_t dAreaRef = dR * dR * TMath::Pi();
255 pJet->
Eta(), pJet->
Phi(), pJet->
Area()/dAreaRef };
258 if (!bFillEH) bFillEH = kTRUE;
282 const Int_t nEveV = 7;
283 const Double_t dPhiNeg = -1.*TMath::Pi();
284 const Double_t dPhiPos = 1.*TMath::Pi() + TMath::Pi()/50.;
285 const Double_t dPhiMax = TMath::TwoPi() + TMath::Pi()/50.;
286 const Double_t dPhiMin = TMath::PiOver2() + TMath::Pi()/50.;
287 const TString sEveBin[] = {
"aCent",
"aMtCh",
"aMtEm",
"aVz",
"aEPhi",
"aAPhi",
"aRho" };
288 const Int_t nEveBin[] = { 100, 600, 600, 20, 101, 101, 500 };
289 const Double_t dEveMin[] = { 0., 0., 0., -10., dPhiNeg, 0., 0. };
290 const Double_t dEveMax[] = { 100., 3000., 3000., 10., dPhiPos, dPhiMax, 500. };
293 fHnsEveH =
new THnSparseD(
"hsEveH",
"", nEveV, nEveBin, dEveMin, dEveMax);
294 for (
Int_t i=0; i<nEveV; i++)
fHnsEveH->GetAxis(i)->SetName(sEveBin[i]);
298 const Int_t nJetV = 11;
299 const TString sJetBin[] = {
"aCent",
"aVz",
"aEPhi",
"aAPhi",
"aRPhi",
"aLeading",
"aPtb",
"aPta",
"aEta",
"aPhi",
"aArea" };
300 const Int_t nJetBin[] = { 100, 20, 101, 101, 26, 500, 500, 1000, 200, 101, 100 };
301 const Double_t dJetMin[] = { 0., -10., dPhiNeg, 0., 0., 0., 0., -500., -1., 0., 0. };
302 const Double_t dJetMax[] = { 100., 10., dPhiPos, dPhiMax, dPhiMin, 250., 500., 500., 1., dPhiMax, 5. };
305 fHnsJets =
new THnSparseD(
"hsJets",
"", nJetV, nJetBin, dJetMin, dJetMax);
306 for (
Int_t i=0; i<nJetV; i++)
fHnsJets->GetAxis(i)->SetName(sJetBin[i]);
320 Double_t dPhiSA = TVector2::Phi_mpi_pi(dPhi);
323 dPhiEP = TMath::Abs(dPhiEP);
324 if (dPhiEP>TMath::PiOver2()) dPhiEP = TMath::Pi() - dPhiEP;
339 AliVParticle *pTrk = 0;
343 dQx += TMath::Cos(pTrk->Phi());
344 dQy += TMath::Sin(pTrk->Phi());
345 } TVector2 vQ(dQx,dQy);
AliJetContainer * fContJets
virtual AliVParticle * GetNextAcceptParticle()
Double_t CalcRelPhiEP(Double_t dPhi)
Double_t GetRhoVal() const
AliJetContainer * GetJetContainer(Int_t i=0) const
Bool_t fLocalInitialized
whether or not the task has been already initialized
Double_t fEPV0
!event plane V0
virtual Bool_t IsEventSelected()
Performing event selection.
Bool_t RetrieveEventObjects()
AliClusterContainer * fContClus
virtual Bool_t FillGeneralHistograms()
Filling general histograms.
AliParticleContainer * GetParticleContainer(Int_t i=0) const
Get particle container attached to this task.
virtual Bool_t FillHistograms()
Function filling histograms.
Double_t GetLeadingHadronPt(const AliEmcalJet *jet) const
AliClusterContainer * GetClusterContainer(Int_t i=0) const
Get cluster container attached to this task.
virtual Bool_t FillGeneralHistograms()
Filling general histograms.
Int_t GetNAcceptedClusters() const
Double_t fCent
!event centrality
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.
virtual Bool_t RetrieveEventObjects()
Retrieve common objects from event.
AliEmcalJet * GetNextAcceptJet()
virtual void Terminate(Option_t *opt)
ClassImp(AliAnalysisTaskEmcalJetSparseMaker) AliAnalysisTaskEmcalJetSparseMaker
virtual void UserCreateOutputObjects()
virtual Bool_t IsEventSelected()
Performing event selection.
Float_t GetJetRadius() const
Double_t fVertex[3]
!event vertex
void SetMakeGeneralHistograms(Bool_t g)
virtual void ExecOnce()
Perform steps needed to initialize the analysis.
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
void UserCreateOutputObjects()
Main initialization function on the worker.
virtual ~AliAnalysisTaskEmcalJetSparseMaker()
Int_t GetNAcceptedParticles() const
virtual Bool_t FillHistograms()
Function filling histograms.
Double_t GetJetPtCorr(Int_t i) const
AliParticleContainer * fContTrks
AliAnalysisTaskEmcalJetSparseMaker()