X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2FAliAnalysisTaskPIDqa.h;h=53ca7caf8f008a497ccb8a74ff1e973017812797;hb=a65a7e704a90d2ca4e682c82d8a708900dda04ca;hp=aba1d015ccf0dcb2c700d932ec4caa79fb893dd7;hpb=1ea19f39c1537bbc6a2eb0d0485c7d846a4ec49b;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/AliAnalysisTaskPIDqa.h b/ANALYSIS/AliAnalysisTaskPIDqa.h index aba1d015ccf..53ca7caf8f0 100644 --- a/ANALYSIS/AliAnalysisTaskPIDqa.h +++ b/ANALYSIS/AliAnalysisTaskPIDqa.h @@ -1,110 +1,110 @@ -#ifndef ALIANALYSISTASKPIDQA_H -#define ALIANALYSISTASKPIDQA_H - -/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ - -/* $Id: AliAnalysisTaskPIDqa.h 43642 2010-09-17 15:50:04Z wiechula $ */ -// Author: Jens Wiechula, 24/02/2011 - -//============================================================================== -// -// -// -// -//============================================================================== - -#include - -#ifndef ALIANALYSISTASKSE_H -#include "AliAnalysisTaskSE.h" -#endif - -class AliPIDResponse; -class TList; -class AliVEvent; -class AliESDv0KineCuts; - -class AliAnalysisTaskPIDqa : public AliAnalysisTaskSE { - - -public: - AliAnalysisTaskPIDqa(); - AliAnalysisTaskPIDqa(const char *name); - virtual ~AliAnalysisTaskPIDqa(); - - virtual void UserCreateOutputObjects(); - - virtual void UserExec(Option_t */*option*/); - - -private: - AliPIDResponse *fPIDResponse; //! PID response Handler - AliESDv0KineCuts *fV0cuts; //! ESD V0 cuts - - TObjArray *fV0electrons; //! array with pointer to identified particles from V0 decays (electrons) - TObjArray *fV0pions; //! array with pointer to identified particles from V0 decays (pions) - TObjArray *fV0kaons; //! array with pointer to identified particles from V0 decays (kaons) - TObjArray *fV0protons; //! array with pointer to identified particles from V0 decays (ptotons) - - TList *fListQA; //! list with all QA histograms - TList *fListQAits; //! List with ITS QA histograms - TList *fListQAitsSA; //! List with ITS SA QA histograms - TList *fListQAitsPureSA; //! List with ITS pure SA QA histograms - TList *fListQAtpc; //! List with TPC QA histograms - TList *fListQAtrd; //! List with TRD QA histograms - TList *fListQAtof; //! List with TOF QA histograms - TList *fListQAt0; //! List with T0 QA histograms - TList *fListQAemcal; //! List with EMCAL QA histograms - TList *fListQAhmpid; //! List with EMCAL QA histograms - TList *fListQAtofhmpid; //! List with EMCAL QA histograms - TList *fListQAtpctof; //! List with combined PID from TPC + TOF - TList *fListQAV0; //! List with V0 kine cuts QA histograms - TList *fListQAinfo; //! List with information about loaded splines etc. - - - void ExecNewRun(); - - //qa object initialisation - void SetupITSqa(); - void SetupTPCqa(); - void SetupTRDqa(); - void SetupTOFqa(); - void SetupT0qa(); - void SetupEMCALqa(); - void SetupHMPIDqa(); - void SetupTOFHMPIDqa(); - void SetupTPCTOFqa(); - void SetupV0qa(); - void SetupQAinfo(); - - // - void FillV0PIDlist(); - void ClearV0PIDlist(); - // - void FillITSqa(); - void FillTPCqa(); - void FillTRDqa(); - void FillTOFqa(); - void FillT0qa(); - void FillEMCALqa(); - void FillHMPIDqa(); - void FillTOFHMPIDqa(); - void FillTPCTOFqa(); - void FillQAinfo(); - - // - void SetRecoInfo(); - - //helper functions - TVectorD* MakeLogBinning(Int_t nbinsX, Double_t xmin, Double_t xmax); - TVectorD* MakeLinBinning(Int_t nbinsX, Double_t xmin, Double_t xmax); - TVectorD* MakeArbitraryBinning(const char* bins); - - - AliAnalysisTaskPIDqa(const AliAnalysisTaskPIDqa &other); - AliAnalysisTaskPIDqa& operator=(const AliAnalysisTaskPIDqa &other); - - ClassDef(AliAnalysisTaskPIDqa,2) // Task to properly set the PID response functions of all detectors -}; -#endif +#ifndef ALIANALYSISTASKPIDQA_H +#define ALIANALYSISTASKPIDQA_H + +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +/* $Id: AliAnalysisTaskPIDqa.h 43642 2010-09-17 15:50:04Z wiechula $ */ +// Author: Jens Wiechula, 24/02/2011 + +//============================================================================== +// +// +// +// +//============================================================================== + +#include + +#ifndef ALIANALYSISTASKSE_H +#include "AliAnalysisTaskSE.h" +#endif + +class AliPIDResponse; +class TList; +class AliVEvent; +class AliESDv0KineCuts; + +class AliAnalysisTaskPIDqa : public AliAnalysisTaskSE { + + +public: + AliAnalysisTaskPIDqa(); + AliAnalysisTaskPIDqa(const char *name); + virtual ~AliAnalysisTaskPIDqa(); + + virtual void UserCreateOutputObjects(); + + virtual void UserExec(Option_t */*option*/); + + +private: + AliPIDResponse *fPIDResponse; //! PID response Handler + AliESDv0KineCuts *fV0cuts; //! ESD V0 cuts + + TObjArray *fV0electrons; //! array with pointer to identified particles from V0 decays (electrons) + TObjArray *fV0pions; //! array with pointer to identified particles from V0 decays (pions) + TObjArray *fV0kaons; //! array with pointer to identified particles from V0 decays (kaons) + TObjArray *fV0protons; //! array with pointer to identified particles from V0 decays (ptotons) + + TList *fListQA; //! list with all QA histograms + TList *fListQAits; //! List with ITS QA histograms + TList *fListQAitsSA; //! List with ITS SA QA histograms + TList *fListQAitsPureSA; //! List with ITS pure SA QA histograms + TList *fListQAtpc; //! List with TPC QA histograms + TList *fListQAtrd; //! List with TRD QA histograms + TList *fListQAtof; //! List with TOF QA histograms + TList *fListQAt0; //! List with T0 QA histograms + TList *fListQAemcal; //! List with EMCAL QA histograms + TList *fListQAhmpid; //! List with EMCAL QA histograms + TList *fListQAtofhmpid; //! List with EMCAL QA histograms + TList *fListQAtpctof; //! List with combined PID from TPC + TOF + TList *fListQAV0; //! List with V0 kine cuts QA histograms + TList *fListQAinfo; //! List with information about loaded splines etc. + + + void ExecNewRun(); + + //qa object initialisation + void SetupITSqa(); + void SetupTPCqa(); + void SetupTRDqa(); + void SetupTOFqa(); + void SetupT0qa(); + void SetupEMCALqa(); + void SetupHMPIDqa(); + void SetupTOFHMPIDqa(); + void SetupTPCTOFqa(); + void SetupV0qa(); + void SetupQAinfo(); + + // + void FillV0PIDlist(); + void ClearV0PIDlist(); + // + void FillITSqa(); + void FillTPCqa(); + void FillTRDqa(); + void FillTOFqa(); + void FillT0qa(); + void FillEMCALqa(); + void FillHMPIDqa(); + void FillTOFHMPIDqa(); + void FillTPCTOFqa(); + void FillQAinfo(); + + // + void SetRecoInfo(); + + //helper functions + TVectorD* MakeLogBinning(Int_t nbinsX, Double_t xmin, Double_t xmax); + TVectorD* MakeLinBinning(Int_t nbinsX, Double_t xmin, Double_t xmax); + TVectorD* MakeArbitraryBinning(const char* bins); + + + AliAnalysisTaskPIDqa(const AliAnalysisTaskPIDqa &other); + AliAnalysisTaskPIDqa& operator=(const AliAnalysisTaskPIDqa &other); + + ClassDef(AliAnalysisTaskPIDqa,2) // Task to properly set the PID response functions of all detectors +}; +#endif