1 #ifndef ALITPCTENDERSUPPLY_H
2 #define ALITPCTENDERSUPPLY_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 ////////////////////////////////////////////////////////////////////////
9 // TPC tender, reapply pid on the fly //
11 ////////////////////////////////////////////////////////////////////////
15 #include <AliTenderSupply.h>
22 class AliTPCTenderSupply: public AliTenderSupply {
26 AliTPCTenderSupply(const char *name, const AliTender *tender=NULL);
28 virtual ~AliTPCTenderSupply(){;}
30 void SetGainCorrection(Bool_t gainCorr) {fGainCorrection=gainCorr;}
31 void SetDebugLevel(Int_t level) {fDebugLevel=level;}
32 void SetMip(Double_t mip) {fMip=mip;}
33 void SetResponseFunctions(TObjArray *arr) {fArrPidResponseMaster=arr;}
36 virtual void ProcessEvent();
39 AliESDpid *fESDpid; //! ESD pid object
40 AliSplineFit *fGainNew; //! New gain correction
41 AliSplineFit *fGainOld; //! Old gain correction
43 Bool_t fGainCorrection; //Perform gain correction
44 Bool_t fPcorrection; //!Perform pressure correction
45 TObjArray *fArrPidResponseMaster; //array with gain curves
47 Int_t fDebugLevel; //debug level
48 Double_t fMip; //mip position
50 AliGRPObject *fGRP; //!GRP for pressure temperature correction
53 Double_t GetGainCorrection();
55 void SetParametrisation();
57 AliTPCTenderSupply(const AliTPCTenderSupply&c);
58 AliTPCTenderSupply& operator= (const AliTPCTenderSupply&c);
60 ClassDef(AliTPCTenderSupply, 1); // TPC tender task