Setting title to CTP cfg file.
[u/mrichter/AliRoot.git] / STEER / AliGRPPreprocessor.h
1 #ifndef ALIGRPPREPROCESSOR_H
2 #define ALIGRPPREPROCESSOR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //-------------------------------------------------------------------------
7 //                          Class AliGRPPreprocessor
8 //                  Global Run Parameters (GRP) preprocessor
9 //
10 //    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
11 //    Modified: Ernesto.Lopez.Torres@cern.ch  CEADEN-CERN
12 //-------------------------------------------------------------------------
13
14
15
16 //////////////////////////////////////////////////////////////////////////
17 //                                                                      //
18 //                        AliGRPPreprocessor                            //
19 //                                                                      //
20 //           Implementation of the GRP preprocessor                     //
21 //                                                                      //
22 //////////////////////////////////////////////////////////////////////////
23
24 #include "AliPreprocessor.h"
25
26 class TList;
27 class TString;
28 class AliDCSSensorArray;
29
30 class AliGRPPreprocessor: public AliPreprocessor {
31  public:
32                       AliGRPPreprocessor(AliShuttleInterface* shuttle);
33   virtual            ~AliGRPPreprocessor();
34   
35   static      Int_t   ReceivePromptRecoParameters(
36                                   UInt_t run,
37                                   const char* dbHost,
38                                   Int_t dbPort,
39                                   const char* dbName,
40                                   const char* user,
41                                   const char* password,
42                                   const char *cdbRoot
43                                  );
44   Int_t GetRunNumber() const {return fRun;}
45   void SetRunNumber(Int_t runNumber) {fRun = runNumber;}
46
47  protected:
48
49   virtual      void   Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
50   
51   virtual     UInt_t   Process(TMap* valueSet);
52
53                 TMap*  ProcessDaqLB();
54               UInt_t   ProcessDaqFxs();
55               UInt_t   ProcessDcsFxs();
56                Int_t   ProcessDcsDPs(TMap* valueSet, TMap* grpmap);
57    AliDCSSensorArray*  GetPressureMap(TMap *dcsAliasMap);
58   
59  private:
60  
61   static const Int_t   fgknDAQLbPar;            //! number of DAQ lb parameters
62   static const Int_t   fgknDCSDP;               //! number of dcs dps
63   static const char*   fgkDCSDataPoints[];      //! names of dcs dps
64   static const char*   fgkLHCState[];           //! names of LHC States
65   Int_t fRun;                                   // run number
66
67   AliDCSSensorArray*   fPressure; //pressure array
68
69                        AliGRPPreprocessor(const AliGRPPreprocessor&); // Not implemented
70                        AliGRPPreprocessor& operator=(const AliGRPPreprocessor&); // Not implemented
71
72   ClassDef(AliGRPPreprocessor, 2);
73 };
74
75 #endif