1 #ifndef ALIANALYSISTASKPIDRESPONSE_H
2 #define ALIANALYSISTASKPIDRESPONSE_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /* $Id: AliAnalysisTaskPIDResponse.h 43642 2010-09-17 15:50:04Z wiechula $ */
8 // Author: Jens Wiechula, 24/02/2011
10 //==============================================================================
15 //==============================================================================
17 #include <TVectorDfwd.h>
20 #ifndef ALIANALYSISTASKSE_H
21 #include "AliAnalysisTaskSE.h"
27 class AliAnalysisTaskPIDResponse : public AliAnalysisTaskSE {
31 AliAnalysisTaskPIDResponse();
32 AliAnalysisTaskPIDResponse(const char *name);
33 virtual ~AliAnalysisTaskPIDResponse();
35 void SetIsMC(Bool_t isMC=kTRUE) { fIsMC=isMC; }
37 virtual void UserCreateOutputObjects();
39 virtual void UserExec(Option_t */*option*/);
41 void SetOADBPath(const char* path) {fOADBPath=path;}
42 const char* GetOADBPath() const { return fOADBPath.Data(); }
45 Bool_t fIsMC; // If we run on MC data
46 TString fOADBPath; // OADB path to use
48 AliPIDResponse *fPIDResponse; //! PID response Handler
49 Int_t fRun; //! current run number
50 Int_t fOldRun; //! current run number
51 Int_t fRecoPass; //! reconstruction pass
56 AliAnalysisTaskPIDResponse(const AliAnalysisTaskPIDResponse &other);
57 AliAnalysisTaskPIDResponse& operator=(const AliAnalysisTaskPIDResponse &other);
59 ClassDef(AliAnalysisTaskPIDResponse,2) // Task to properly set the PID response functions of all detectors