]>
Commit | Line | Data |
---|---|---|
b3fcfd96 | 1 | #ifndef ALITRDPREPROCESSOROFFLINE_H |
2 | #define ALITRDPREPROCESSOROFFLINE_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 | // Class to create OCDB entries - processing the results of the OFFLINE calibration | |
10 | // | |
11 | ||
12 | ||
13 | #include "TNamed.h" | |
14 | class TObjArray; | |
01239968 | 15 | class AliTRDCalDet; |
b3fcfd96 | 16 | class TH2I; |
17 | class TProfile2D; | |
18 | class AliTRDCalibraVdriftLinearFit; | |
19 | class TH1I; | |
20 | class TH2F; | |
01239968 | 21 | class TString; |
b3fcfd96 | 22 | |
23 | ||
24 | class AliTRDPreprocessorOffline:public TNamed { | |
25 | public: | |
26 | enum{ | |
27 | kGain = 0, | |
28 | kVdriftPHDet = 1, | |
29 | kVdriftPHPad = 2, | |
30 | kT0PHDet = 3, | |
31 | kT0PHPad = 4, | |
32 | kVdriftLinear = 5, | |
33 | kLorentzLinear = 6, | |
34 | kPRF = 7 | |
35 | }; | |
36 | ||
37 | AliTRDPreprocessorOffline(); | |
38 | virtual ~AliTRDPreprocessorOffline(); | |
39 | ||
40 | void SetLinearFitForVdrift(Bool_t methodsecond) { fMethodSecond = methodsecond;}; | |
41 | Bool_t GetLinearFitForVdrift() const { return fMethodSecond;}; | |
01239968 | 42 | void SetNameList(TString nameList) { fNameList = nameList;}; |
43 | TString GetNameList() const { return fNameList;}; | |
44 | void SetCalDetGain(AliTRDCalDet *calDetGainUsed) {fCalDetGainUsed = calDetGainUsed;}; | |
45 | AliTRDCalDet *GetCalDetGain() const { return fCalDetGainUsed;}; | |
b3fcfd96 | 46 | |
47 | void CalibVdriftT0(const Char_t* file, Int_t startRunNumber, Int_t endRunNumber, TString ocdbStorage=""); | |
48 | void CalibGain(const Char_t* file, Int_t startRunNumber, Int_t endRunNumber, TString ocdbStorage=""); | |
49 | void CalibPRF(const Char_t* file, Int_t startRunNumber, Int_t endRunNumber, TString ocdbStorage=""); | |
50 | ||
51 | Bool_t ReadGainGlobal(const Char_t* fileName="CalibObjects.root"); | |
52 | Bool_t ReadVdriftT0Global(const Char_t* fileName="CalibObjects.root"); | |
53 | Bool_t ReadVdriftLinearFitGlobal(const Char_t* fileName="CalibObjects.root"); | |
54 | Bool_t ReadPRFGlobal(const Char_t* fileName="CalibObjects.root"); | |
55 | ||
56 | Bool_t AnalyzeGain(); | |
57 | Bool_t AnalyzeVdriftT0(); | |
58 | Bool_t AnalyzeVdriftLinearFit(); | |
59 | Bool_t AnalyzePRF(); | |
60 | ||
01239968 | 61 | void CorrectFromDetGainUsed(); |
62 | ||
b3fcfd96 | 63 | void UpdateOCDBT0(Int_t startRunNumber, Int_t endRunNumber, const char* storagePath); |
64 | void UpdateOCDBVdrift(Int_t startRunNumber, Int_t endRunNumber, const char* storagePath); | |
65 | void UpdateOCDBGain(Int_t startRunNumber, Int_t endRunNumber, const char* storagePath); | |
66 | void UpdateOCDBPRF(Int_t startRunNumber, Int_t endRunNumber, const char* storagePath); | |
67 | ||
68 | ||
69 | private: | |
70 | Bool_t fMethodSecond; // Second Method for drift velocity | |
01239968 | 71 | TString fNameList; // Name of the list |
72 | AliTRDCalDet *fCalDetGainUsed; // CalDet used and to be corrected for | |
b3fcfd96 | 73 | TH2I *fCH2d; // Gain |
74 | TProfile2D *fPH2d; // Drift velocity first method | |
75 | TProfile2D *fPRF2d; // PRF | |
76 | AliTRDCalibraVdriftLinearFit *fAliTRDCalibraVdriftLinearFit; // Drift velocity second method | |
77 | TH1I *fNEvents; // Number of events | |
78 | TH2F *fAbsoluteGain; // Absolute Gain calibration | |
79 | TObjArray * fPlots; // array with some plots to check | |
80 | TObjArray * fCalibObjects; // array with calibration objects | |
81 | ||
82 | ||
83 | ||
84 | ||
85 | private: | |
86 | AliTRDPreprocessorOffline& operator=(const AliTRDPreprocessorOffline&); // not implemented | |
87 | AliTRDPreprocessorOffline(const AliTRDPreprocessorOffline&); // not implemented | |
88 | ClassDef(AliTRDPreprocessorOffline,1) | |
89 | }; | |
90 | ||
91 | #endif | |
01239968 | 92 |