RelVal: more retries w/pauses on VM + small fixes
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskPIDResponse.h
CommitLineData
66ab8ab2 1#ifndef ALIANALYSISTASKPIDRESPONSE_H
2#define ALIANALYSISTASKPIDRESPONSE_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id: AliAnalysisTaskPIDResponse.h 43642 2010-09-17 15:50:04Z wiechula $ */
8// Author: Jens Wiechula, 24/02/2011
9
10//==============================================================================
11//
12//
13//
14//
15//==============================================================================
16
17#include <TVectorDfwd.h>
67ad8680 18#include <TString.h>
66ab8ab2 19
20#ifndef ALIANALYSISTASKSE_H
21#include "AliAnalysisTaskSE.h"
22#endif
23
24class AliPIDResponse;
6a45d03f 25class AliVEvent;
66ab8ab2 26
27class AliAnalysisTaskPIDResponse : public AliAnalysisTaskSE {
28
29
30public:
31 AliAnalysisTaskPIDResponse();
32 AliAnalysisTaskPIDResponse(const char *name);
33 virtual ~AliAnalysisTaskPIDResponse();
34
00a38d07 35 void SetIsMC(Bool_t isMC=kTRUE) { fIsMC=isMC; }
36 void SetCachePID(Bool_t cachePID) { fCachePID=cachePID; }
37 Bool_t GetCachePID() const { return fCachePID; }
66ab8ab2 38
39 virtual void UserCreateOutputObjects();
40
41 virtual void UserExec(Option_t */*option*/);
42
67ad8680 43 void SetOADBPath(const char* path) {fOADBPath=path;}
44 const char* GetOADBPath() const { return fOADBPath.Data(); }
539a5a59 45 void SetTuneOnData(Bool_t flag,Int_t recopass){fIsTunedOnData=flag;fRecoPassTuned=recopass;};
648b33eb 46 Bool_t GetTunedOnData() const { return fIsTunedOnData; };
c4f61bb2 47 void SetTuneOnDataMask(Int_t mask){fTunedOnDataMask=mask;};
f84b18dd 48
49 void SetUseTPCEtaCorrection(Bool_t useTPCEtaCorrection) { fUseTPCEtaCorrection = useTPCEtaCorrection; };
50 Bool_t UseTPCEtaCorrection() const { return fUseTPCEtaCorrection; };
87da0205 51
52 void SetUseTPCMultiplicityCorrection(Bool_t useMultiplicityCorrection = kTRUE) { fUseTPCMultiplicityCorrection = useMultiplicityCorrection; };
53 Bool_t UseTPCMultiplicityCorrection() const { return fUseTPCMultiplicityCorrection; };
67ad8680 54
b438e263 55 void SetSpecialDetectorResponse(const char* det) { fSpecialDetResponse=det; }
2e8a05e1 56 void SetUserDataRecoPass(Int_t pass){fUserDataRecoPass=pass;};
57
b438e263 58
66ab8ab2 59private:
00a38d07 60 Bool_t fIsMC; // If we run on MC data
61 Bool_t fCachePID; // Cache PID values in transient object
67ad8680 62 TString fOADBPath; // OADB path to use
b438e263 63 TString fSpecialDetResponse; // Special detector response files for debugging
66ab8ab2 64
65 AliPIDResponse *fPIDResponse; //! PID response Handler
66ab8ab2 66 Int_t fRun; //! current run number
67 Int_t fOldRun; //! current run number
6a45d03f 68 Int_t fRecoPass; //! reconstruction pass
539a5a59 69
70 Bool_t fIsTunedOnData; // flag to tune MC on data (dE/dx)
c4f61bb2 71 Int_t fTunedOnDataMask; // mask to activate tuning on data on specific detectors
539a5a59 72 Int_t fRecoPassTuned; // Reco pass tuned on data for MC
66ab8ab2 73
87da0205 74 Bool_t fUseTPCEtaCorrection; // Use TPC eta correction
75 Bool_t fUseTPCMultiplicityCorrection; // Use TPC multiplicity correction
74be3cb3 76 Int_t fUserDataRecoPass; // forced DATA reco pass
f84b18dd 77
66ab8ab2 78 //
79 void SetRecoInfo();
6a45d03f 80
66ab8ab2 81 AliAnalysisTaskPIDResponse(const AliAnalysisTaskPIDResponse &other);
82 AliAnalysisTaskPIDResponse& operator=(const AliAnalysisTaskPIDResponse &other);
83
2e8a05e1 84 ClassDef(AliAnalysisTaskPIDResponse,7) // Task to properly set the PID response functions of all detectors
66ab8ab2 85};
86#endif