+
#ifndef ALIANALYSISTASKJETSPECTRUM2_H
#define ALIANALYSISTASKJETSPECTRUM2_H
class AliJetHeader;
class AliESDEvent;
class AliAODEvent;
+class AliAODExtension;
class AliAODJet;
+class AliVParticle;
+class AliAODJetEventBackground;
class AliGenPythiaEventHeader;
class AliCFManager;
+class AliTHn;
class TList;
class TChain;
+class TH1F;
class TH2F;
class TH3F;
+class TRandom3;
class TProfile;
class TSTring;
virtual Bool_t Notify();
virtual void SetUseGlobalSelection(Bool_t b){fUseGlobalSelection = b;}
+ virtual void SetEventClass(Int_t i){fEventClass = i;}
virtual void SetExternalWeight(Float_t f){fExternalWeight = f;}
virtual void SetUseExternalWeightOnly(Bool_t b){fUseExternalWeightOnly = b;}
virtual void SetAODJetInput(Bool_t b){fUseAODJetInput = b;}
virtual void SetAODTrackInput(Bool_t b){fUseAODTrackInput = b;}
virtual void SetAODMCInput(Bool_t b){fUseAODMCInput = b;}
virtual void SetLimitGenJetEta(Bool_t b){fLimitGenJetEta = b;}
- virtual void SetRecEtaWindow(Float_t f){fRecEtaWindow = f;}
+ virtual void SetJetEtaWindow(Float_t f){fJetRecEtaWindow = f;}
+ virtual void SetTrackEtaWindow(Float_t f){fTrackRecEtaWindow = f;}
+ virtual void SetNMatchJets(Short_t f){fNMatchJets = f;}
+ virtual void SetMinJetPt(Float_t f){fMinJetPt = f;}
+ virtual void SetNRPBins(Short_t i){fNRPBins = i;}
+ virtual void SetFlagJetType(Int_t iType,Int_t iF){fFlagJetType[iType] = iF;}
+ virtual void SetMinTrackPt(Float_t f){fMinTrackPt = f;}
+ virtual void SetDeltaPhiWindow(Float_t f){fDeltaPhiWindow = f;}
virtual void SetAnalysisType(Int_t i){fAnalysisType = i;}
virtual void SetBranchGen(const char* c){fBranchGen = c;}
virtual void SetBranchRec(const char* c){fBranchRec = c;}
+ virtual void SetBranchBkgRec(const char* c){fBranchBkgRec = c;}
+ virtual void SetBranchBkgGen(const char* c){fBranchBkgGen = c;}
virtual void SetTrackTypeGen(Int_t i){fTrackTypeGen = i;}
virtual void SetTrackTypeRec(Int_t i){fTrackTypeRec = i;}
virtual void SetFilterMask(UInt_t i){fFilterMask = i;}
- // use for the CF
+ virtual void SetMatching(Bool_t b = kTRUE){fDoMatching = b;}
+ virtual void SetEventSelectionMask(UInt_t i){fEventSelectionMask = i;}
+ virtual void SetPhiWeights(TH3F *phiw){fh3PhiWeights = phiw;}
+ virtual void SetFlatteningCoeff(Float_t *fA,Float_t *fB){
+ fFlatA[0] = fA[0];fFlatA[1] = fA[1];
+ fFlatA[0] = fB[0];fFlatB[1] = fB[1];
+ }
+ virtual void SetDeltaQxy(Float_t *fD){
+ fDeltaQxy[0] = fD[0];
+ fDeltaQxy[1] = fD[1];
+ }
+ virtual void SetNonStdFile(char* c){fNonStdFile = c;}
// Helper
// this has to match with our selection of input events
enum {kTrackUndef = 0, kTrackAOD, kTrackKineAll,kTrackKineCharged, kTrackAODMCAll, kTrackAODMCCharged, kTrackAODMCChargedAcceptance};
enum {kAnaMC = 0x1, kAnaMCESD = 0x2};
- enum {kMaxJets = 4};
+ enum {kMaxJets = 2};
+ enum {kJetRec = 0, kJetGen, kJetRecFull, kJetGenFull, kJetTypes}; //
enum {kMaxCorrelation = 3};
//
AliAnalysisTaskJetSpectrum2(const AliAnalysisTaskJetSpectrum2&);
AliAnalysisTaskJetSpectrum2& operator=(const AliAnalysisTaskJetSpectrum2&);
- void MakeJetContainer();
- Int_t GetListOfTracks(TList *list,Int_t type);
-
- AliJetHeader *fJetHeaderRec;
- AliJetHeader *fJetHeaderGen;
- AliAODEvent *fAOD; // where we take the jets from can be input or output AOD
- THnSparseF *fhnJetContainer[kMaxStep*2]; // like particle container in corrfw with different steps need AliCFContainer with Scale(), and clone() to do the same
- THnSparseF *fhnCorrelation; // response matrix for unfolding
-
+ void MakeJetContainer();
+ Int_t GetListOfTracks(TList *list,Int_t type);
+ void FillTrackHistos(TList &particlesList,int iType);
+ Float_t GetCentrality();
+ Bool_t CalculateReactionPlaneAngle(const TList *trackList);
+ Int_t GetPhiBin(Double_t phi);
+ Double_t GetPhiWeight(Double_t phi,Double_t signedpt);
+ Int_t GetListOfJets(TList *list,TClonesArray* jarray,Int_t type);
+ void FillJetHistos(TList &jetsList,TList &particlesList,Int_t iType);
+
+ void FillMatchHistos(TList &recJetsList,TList &genJetsList);
+
+ Bool_t JetSelected(AliAODJet *jet);
+ Int_t MultFromJetRefs(TClonesArray *jets);
+ AliVParticle *LeadingTrackFromJetRefs(AliAODJet* jet);
+ AliVParticle *LeadingTrackInCone(AliAODJet* jet,TList *list,Float_t r = 0.4);
+
+
+ AliJetHeader *fJetHeaderRec;//! The jet header that can be fetched from the userinfo
+ AliJetHeader *fJetHeaderGen;//! The jet header that can fetched from the userinfo
+ AliAODEvent *fAODIn; //! where we take the jets from
+ AliAODEvent *fAODOut; //! where we take the jets from
+ AliAODExtension *fAODExtension; //! where we take the jets from can be input or output AOD
+ AliTHn *fhnJetContainer; //! like particle container in corrfw with different steps need AliCFContainer with Scale(), and clone() to do the same
+ AliTHn *fhnCorrelation; //! response matrix for unfolding
+ THnSparseF *fhnEvent; //! event counts
+ TF1 *f1PtScale; //! correction function to correct to the average true jet energy depending on p_T,rec
TString fBranchRec; // AOD branch name for reconstructed
TString fBranchGen; // AOD brnach for genereated
+ TString fBranchBkgRec; //AOD branch for background
+ TString fBranchBkgGen; //AOD branch for background
+ TString fNonStdFile; // name of delta aod file to catch the extension
+
+ TRandom3* fRandomizer; //! randomizer
Bool_t fUseAODJetInput; // take jet from input AOD not from ouptu AOD
Bool_t fUseAODTrackInput; // take track from input AOD not from ouptu AOD
Bool_t fUseGlobalSelection; // Limit the eta of the generated jets
Bool_t fUseExternalWeightOnly; // use only external weight
Bool_t fLimitGenJetEta; // Limit the eta of the generated jets
- UInt_t fFilterMask; // filter bit for slecected tracks
+ Bool_t fDoMatching; // switch on the matching between rec and gen
+ Short_t fNMatchJets; // number of leading jets considered from the list
+ Short_t fNRPBins; // number of bins with respect to RP
+ UInt_t fFilterMask; // filter bit for slecected tracks
+ UInt_t fEventSelectionMask; // Selection information used to filter events
Int_t fAnalysisType; // Analysis type
Int_t fTrackTypeRec; // type of tracks used for FF
Int_t fTrackTypeGen; // type of tracks used for FF
+ Int_t fFlagJetType[kJetTypes]; // disable the filling and booking of certain JetType histos
+ Int_t fEventClass; // event class to be looked at for this instance of the task
+ Int_t fRPSubeventMethod; // method for subevent calculation
Float_t fAvgTrials; // Average nimber of trials
Float_t fExternalWeight; // external weight
- Float_t fRecEtaWindow; // eta window used for corraltion plots between rec and gen
-
- TProfile* fh1Xsec; // pythia cross section and trials
- TH1F* fh1Trials; // trials are added
- TH1F* fh1PtHard; // Pt har of the event...
- TH1F* fh1PtHardNoW; // Pt har of the event without weigt
- TH1F* fh1PtHardTrials; // Number of trials
- TH1F* fh1NGenJets; // nr of gen jets
- TH1F* fh1NRecJets; // nr of rec jets
- TH1F* fh1PtTrackRec; // track pt
- TH1F* fh1SumPtTrackRec; // sum over all track pT
- TH1F* fh1SumPtTrackAreaRec; // sum over all track pT
+ Float_t fJetRecEtaWindow; // eta window for rec jets
+ Float_t fTrackRecEtaWindow; // eta window for rec tracks
+ Float_t fMinJetPt; // limits the jet p_T in addition to what already is done in the jet finder, this is important for jet matching for JF with lo threshold
+ Float_t fMinTrackPt; // limits the track p_T
+ Float_t fDeltaPhiWindow; // minium angle between dijets
+ Float_t fCentrality; // ! centrality
+ Float_t fRPAngle; // ! RP angle of the reaction plane
+ Float_t fFlatA[2]; // flattening for RP
+ Float_t fFlatB[2]; // flattening for RP
+ Float_t fDeltaQxy[2]; // centering of QX QY
+ Int_t fMultRec; // ! reconstructed track multiplicity
+ Int_t fMultGen; // ! generated track multiplicity
+
+ TProfile* fh1Xsec; //! pythia cross section and trials
+ TH1F* fh1Trials; //! trials are added
+ TH1F* fh1PtHard; //! Pt har of the event...
+ TH1F* fh1PtHardNoW; //! Pt har of the event without weigt
+ TH1F* fh1PtHardTrials; //! Number of trials
+ TH1F* fh1ZVtx; //! z-vtx distribution
+ TH1F* fh1RP; //! RP distribution
+ TH1F* fh1Centrality; //! centrality distribution
+ TH1F* fh1TmpRho; //! just temporary histo for calculation
+ TH2F* fh2MultRec; //! reconstructed track multiplicity
+ TH2F* fh2MultGen; //! generated track multiplicity
+ TH2F* fh2RPSubevents; //! subevent RP
+ TH2F* fh2RPCentrality; //! RP vs centrality
+ TH2F* fh2RPDeltaRP; //! centrality vs. RP dela
+ TH2F* fh2RPQxQy; //! QX QY moments
+ TH2F* fh2RPCosDeltaRP; //! RP resolution
+
+ TH2F* fh2PtFGen; //! found vs generated
+ TH2F* fh2RelPtFGen; //! relative difference between generated and found
+
+ TH3F* fh3PhiWeights; // RP phi weights, need to be set externally
+ TH3F* fh3RPPhiTracks; //! RP angle
+
- TH1F* fh1PtRecIn[kMaxJets]; // Jet pt for all this info is also in the THNsparse
- TH1F* fh1PtGenIn[kMaxJets]; // Jet pt with corellated generated jet
+ // Jet histos second go
- TH1F* fh1PtJetsRecIn; // Jet pt for all jets
- TH1F* fh1PtJetsLeadingRecIn; // Jet pt for all jets
- TH1F* fh1PtTracksRecIn; // track pt for all tracks
- TH1F* fh1PtTracksLeadingRecIn; // track pt for all tracks
- TH1F* fh1PtTracksGenIn; // track pt for all tracks
+ TH1F* fh1NJets[kJetTypes]; //! nr of gen jets
+ TH1F* fh1SumPtTrack[kJetTypes]; //! sum over all track pT
+ TH1F* fh1PtIn[kJetTypes][kMaxJets+1]; //! Jet pt
+ TH1F* fh1PtJetsIn[kJetTypes]; //! Jet pt for all jets
+ TH1F* fh1PtTracksIn[kJetTypes]; //! track pt for all tracks
+ TH1F* fh1PtTracksInLow[kJetTypes]; //! track pt for all tracks
+
+ TH2F* fh2NJetsPt[kJetTypes]; //! Number of found jets above threshold
+ TH2F* fh2NTracksPt[kJetTypes]; //! Number of tracks above threshold
- TH2F* fh2NRecJetsPt; // Number of found jets above threshold
- TH2F* fh2NRecTracksPt; // Number of found tracks above threshold
- TH2F* fh2JetsLeadingPhiEta; // jet correlation with leading jet
- TH2F* fh2JetsLeadingPhiPt; // jet correlation with leading jet
- TH2F* fh2TracksLeadingPhiEta; // track correlation with leading track
- TH2F* fh2TracksLeadingPhiPt; // track correlation with leading track
- TH2F* fh2TracksLeadingJetPhiPt; // track correlation with leading track
- TH2F* fh2PhiPt[kMaxJets]; // delta phi correlation of tracks with the jet
- TH2F* fh2PhiEta[kMaxJets]; // eta phi correlation of tracks with the jet
+ THnSparseF *fhnJetPt[kJetTypes]; //! jet pt information for analysis
+ THnSparseF *fhnJetPtQA[kJetTypes]; //! jet pt information for QA
+ THnSparseF *fhnTrackPt[kJetTypes]; //! track pt information for analysis
+ THnSparseF *fhnTrackPtQA[kJetTypes]; //! track pt information for analysis
- TH2F* fh2FragRec[kMaxJets]; // fragmentation function
- TH2F* fh2FragLnRec[kMaxJets]; // fragmetation in xi
+ TH2F* fh2LTrackPtJetPt[kJetTypes][kMaxJets+1]; //! leading track within the jet vs jet pt
- TH2F* fh2FragGen[kMaxJets]; // fragmentation function
- TH2F* fh2FragLnGen[kMaxJets]; // fragmetation in xi
+ TH1F* fh1DijetMinv[kJetTypes]; //! dijet inv mass
+ TH2F* fh2DijetDeltaPhiPt[kJetTypes]; //! dijet delta phi vs pt
+ TH2F* fh2DijetAsymPt[kJetTypes]; //! dijet asym vs pt after delta phi cut
+ TH2F* fh2DijetPt2vsPt1[kJetTypes]; //! dijet pt2 vs pt1
+ TH2F* fh2DijetDifvsSum[kJetTypes]; //! dijet dif vs sum
- TList *fHistList; // Output list
+ TList *fHistList; //! Output list
- ClassDef(AliAnalysisTaskJetSpectrum2, 1) // Analysis task for standard jet analysis
+ ClassDef(AliAnalysisTaskJetSpectrum2, 16) // Analysis task for standard jet analysis
};
#endif