]>
Commit | Line | Data |
---|---|---|
e75408ba | 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 AliESDpid; | |
18 | class AliSplineFit; | |
19 | class AliGRPObject; | |
20 | ||
21 | class AliTPCTenderSupply: public AliTenderSupply { | |
22 | ||
23 | public: | |
24 | AliTPCTenderSupply(); | |
25 | AliTPCTenderSupply(const char *name, const AliTender *tender=NULL); | |
26 | ||
27 | virtual ~AliTPCTenderSupply(){;} | |
28 | ||
29 | void SetGainCorrection(Bool_t gainCorr) {fGainCorrection=gainCorr;} | |
f19a0c5e | 30 | void SetDebugLevel(Int_t level) {fDebugLevel=level;} |
31 | void SetMip(Double_t mip) {fMip=mip;} | |
e75408ba | 32 | |
33 | virtual void Init(); | |
34 | virtual void ProcessEvent(); | |
35 | ||
36 | private: | |
37 | AliESDpid *fESDpid; //! ESD pid object | |
38 | AliSplineFit *fGainNew; //! New gain correction | |
39 | AliSplineFit *fGainOld; //! Old gain correction | |
40 | ||
41 | Bool_t fGainCorrection; //Perform gain correction | |
f19a0c5e | 42 | Bool_t fPcorrection; //!Perform pressure correction |
43 | ||
44 | Int_t fDebugLevel; //debug level | |
45 | Double_t fMip; //mip position | |
46 | ||
e75408ba | 47 | AliGRPObject *fGRP; //!GRP for pressure temperature correction |
48 | ||
49 | void SetSplines(); | |
50 | Double_t GetGainCorrection(); | |
51 | ||
52 | AliTPCTenderSupply(const AliTPCTenderSupply&c); | |
53 | AliTPCTenderSupply& operator= (const AliTPCTenderSupply&c); | |
54 | ||
55 | ClassDef(AliTPCTenderSupply, 1); // TPC tender task | |
56 | }; | |
57 | ||
58 | ||
59 | #endif | |
60 |