]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONPreprocessor.h
Adding HV subprocessor and change the way we select which subprocessor must be ran...
[u/mrichter/AliRoot.git] / MUON / AliMUONPreprocessor.h
1 #ifndef ALIMUONPREPROCESSOR_H
2 #define ALIMUONPREPROCESSOR_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice                               */
6
7 // $Id$
8
9 /// \ingroup shuttle
10 /// \class AliMUONPreprocessor
11 /// \brief Shuttle preprocessor for MUON subsystems (TRK and TRG)
12 /// 
13 /// \author Laurent Aphecetche
14
15 #ifndef ALI_PREPROCESSOR_H
16 #  include "AliPreprocessor.h"
17 #endif
18
19 class AliMUONVSubprocessor;
20 class TObjArray;
21
22 class AliMUONPreprocessor : public AliPreprocessor
23 {
24 public:
25   AliMUONPreprocessor(const TString& detName, AliShuttleInterface* shuttle);
26   virtual ~AliMUONPreprocessor();
27   
28   virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
29   virtual UInt_t Process(TMap* dcsAliasMap);
30   virtual void Print(Option_t* opt="") const;
31   
32   void Log(const char* message) { AliPreprocessor::Log(message); }
33   
34   TList* GetFileSources(Int_t system, const char* id) 
35   { return AliPreprocessor::GetFileSources(system,id); }
36
37   UInt_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object,
38                AliCDBMetaData* metaData, 
39                Int_t validityStart = 0, Bool_t validityInfinite = kFALSE)
40   {
41     return AliPreprocessor::Store(pathLevel2,pathLevel3,object,metaData,
42                                   validityStart,validityInfinite);
43   }
44   
45   const char* GetFile(Int_t system, const char* id, const char* source)
46   {
47     return AliPreprocessor::GetFile(system,id,source);
48   }  
49   
50 private:
51   // enum ESubprocessors { kPedestal=0, kGMS=1, kLast };
52   
53   AliMUONPreprocessor(const AliMUONPreprocessor& rhs);
54   AliMUONPreprocessor& operator=(const AliMUONPreprocessor& rhs);
55   
56   AliMUONVSubprocessor* Subprocessor(Int_t i) const;
57   
58 private:
59   static const TString  fgkTrackerDetName;  ///< The tracker detector name
60   static const TString  fgkTriggerDetName;  ///< The trigger detector name
61
62   TObjArray* fSubprocessors; ///!< sub processors to execute
63   
64   ClassDef(AliMUONPreprocessor,1) // MUON Shuttle preprocessor
65 };
66
67 #endif