]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/TenderSupplies/AliTPCTenderSupply.h
count correctly the number of libraries
[u/mrichter/AliRoot.git] / ANALYSIS / TenderSupplies / AliTPCTenderSupply.h
1 #ifndef ALITPCTENDERSUPPLY_H
2 #define ALITPCTENDERSUPPLY_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 ////////////////////////////////////////////////////////////////////////
8 //                                                                    //
9 //  TPC tender, reapply pid on the fly                                //
10 //                                                                    //
11 ////////////////////////////////////////////////////////////////////////
12
13
14
15 #include <AliTenderSupply.h>
16
17 class TObjArray;
18 class AliESDpid;
19 class AliSplineFit;
20 class AliGRPObject;
21
22 class AliTPCTenderSupply: public AliTenderSupply {
23   
24 public:
25   AliTPCTenderSupply();
26   AliTPCTenderSupply(const char *name, const AliTender *tender=NULL);
27   
28   virtual ~AliTPCTenderSupply(){;}
29
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;}
34   
35   virtual void              Init();
36   virtual void              ProcessEvent();
37   
38 private:
39   AliESDpid          *fESDpid;       //! ESD pid object
40   AliSplineFit       *fGainNew;      //! New gain correction
41   AliSplineFit       *fGainOld;      //! Old gain correction
42
43   Bool_t fGainCorrection;            //Perform gain correction
44   Bool_t fPcorrection;               //!Perform pressure correction
45   TObjArray *fArrPidResponseMaster;  //array with gain curves
46
47   Int_t fDebugLevel;                 //debug level
48   Double_t fMip;                     //mip position
49   
50   AliGRPObject *fGRP;                //!GRP for pressure temperature correction
51   
52   void SetSplines();
53   Double_t GetGainCorrection();
54   
55   void SetParametrisation();
56   
57   AliTPCTenderSupply(const AliTPCTenderSupply&c);
58   AliTPCTenderSupply& operator= (const AliTPCTenderSupply&c);
59   
60   ClassDef(AliTPCTenderSupply, 1);  // TPC tender task
61 };
62
63
64 #endif
65