/* $Id$ */ #ifndef AlidNdEtaTask_H #define AlidNdEtaTask_H #include "AliAnalysisTaskSE.h" #include "AliPWG0Helper.h" #include "AliTriggerAnalysis.h" #include class AliESDtrackCuts; class dNdEtaAnalysis; class TH1F; class TH2F; class TH3F; class AliESDEvent; class AliTriggerAnalysis; class AlidNdEtaTask : public AliAnalysisTaskSE { public: AlidNdEtaTask(const char* opt = ""); virtual ~AlidNdEtaTask(); virtual void ConnectInputData(Option_t *opt); virtual void UserCreateOutputObjects(); virtual void UserExec(Option_t*); virtual void Terminate(Option_t*); virtual Bool_t UserNotify(); Bool_t IsEventInBinZero(); void SetTrackCuts(AliESDtrackCuts* cuts) { fEsdTrackCuts = cuts; } void SetAnalysisMode(AliPWG0Helper::AnalysisMode mode) { fAnalysisMode = mode; } void SetReadMC(Bool_t flag = kTRUE) { fReadMC = flag; } void SetUseMCVertex(Bool_t flag = kTRUE) { fUseMCVertex = flag; } void SetOnlyPrimaries(Bool_t flag = kTRUE) { fOnlyPrimaries = flag; } void SetUseMCKine(Bool_t flag = kTRUE) { fUseMCKine = flag; } void SetTrigger(AliTriggerAnalysis::Trigger trigger) { fTrigger = trigger; } void SetFillPhi(Bool_t flag = kTRUE) { fFillPhi = flag; } void SetDeltaPhiCut(Float_t cut) { fDeltaPhiCut = cut; } void SetSymmetrize(Bool_t flag = kTRUE) { fSymmetrize = flag; } void SetMultAxisEta1(Bool_t flag = kTRUE) { fMultAxisEta1 = flag; } void SetDiffTreatment(AliPWG0Helper::DiffTreatment diffTreatment) { fDiffTreatment = diffTreatment; } void SetOption(const char* opt) { fOption = opt; } protected: AliESDEvent *fESD; //! ESD object TList* fOutput; //! list send on output slot 0 TString fOption; // option string AliPWG0Helper::AnalysisMode fAnalysisMode; // detector that is used for analysis AliTriggerAnalysis::Trigger fTrigger; // trigger that is used Bool_t fFillPhi; // if true phi is filled as 3rd coordinate in all maps Float_t fDeltaPhiCut; // cut in delta phi (only SPD) Bool_t fReadMC; // if true reads MC data (to build correlation maps) Bool_t fUseMCVertex; // the MC vtx is used instead of the ESD vertex (for syst. check) Bool_t fOnlyPrimaries; // Process only primaries by using the MC information (for syst. check) Bool_t fUseMCKine; // use the MC values for each found track/tracklet (for syst. check) Bool_t fSymmetrize; // move all negative to positive eta Bool_t fMultAxisEta1; // restrict multiplicity count to |eta| < 1 AliPWG0Helper::DiffTreatment fDiffTreatment; // how to identify SD events (see AliPWG0Helper::GetEventProcessType) AliESDtrackCuts* fEsdTrackCuts; // Object containing the parameters of the esd track cuts // Gathered from ESD dNdEtaAnalysis* fdNdEtaAnalysisESD; //! contains the dndeta from the ESD // control hists TH1F* fMult; //! raw multiplicity histogram TH1F* fMultVtx; //! raw multiplicity histogram of evts with vtx (control histogram) TH1F* fPartEta[3]; //! counted particles as function of eta (full vertex range, below 0 range, above 0 range) TH1F* fEvents; //! events counted as function of vtx TH2F* fVertexResolution; //! z resolution of the vertex // Gathered from MC (when fReadMC is set) dNdEtaAnalysis* fdNdEtaAnalysis; //! contains the dndeta from the full sample dNdEtaAnalysis* fdNdEtaAnalysisND; //! contains the dndeta for the ND sample dNdEtaAnalysis* fdNdEtaAnalysisNSD; //! contains the dndeta for the NSD sample dNdEtaAnalysis* fdNdEtaAnalysisOnePart; //! contains the dndeta for the one particle sample dNdEtaAnalysis* fdNdEtaAnalysisTr; //! contains the dndeta from the triggered events dNdEtaAnalysis* fdNdEtaAnalysisTrVtx; //! contains the dndeta from the triggered events with vertex dNdEtaAnalysis* fdNdEtaAnalysisTracks; //! contains the dndeta from the triggered events with vertex counted from the mc particles associated to the tracks (comparing this to the raw values from the esd shows the effect of the detector resolution) // control histograms (MC) TH1F* fPartPt; //! counted particles as function of pt // control histograms (ESD) TH3F* fVertex; //! 3d vertex distribution TH3F* fVertexVsMult; //! x-vtx vs y-vtx vs multiplicity TH1F* fPhi; //! raw phi distribution TH1F* fRawPt; //! raw pt distribution TH2F* fEtaPhi; //! raw eta - phi distribution TH2F* fZPhi[2]; //! raw z - phi distribution from tracklets per layer (only SPD) TH1F* fModuleMap; //! count clusters as function of module number (only SPD) TH1F* fDeltaPhi; //! histogram of delta_phi values for tracklets (only for SPD analysis) TH1F* fDeltaTheta; //! histogram of delta_theta values for tracklets (only for SPD analysis) TH2F* fFiredChips; //! fired chips l1+l2 vs. number of tracklets (only for SPD analysis) TH2F* fTrackletsVsClusters; //! number of tracklets vs. clusters in all ITS detectors (only for SPD analysis) TH2F* fTrackletsVsUnassigned; //! number of tracklets vs. number of unassigned clusters in L1 (only for SPD analysis) TH1F* fStats; //! further statistics : bin 1 = vertexer 3d, bin 2 = vertexer z, etc (see CreateOutputObjects) TH2F* fStats2; //! V0 vs SPD statistics private: AlidNdEtaTask(const AlidNdEtaTask&); AlidNdEtaTask& operator=(const AlidNdEtaTask&); ClassDef(AlidNdEtaTask, 1); }; #endif