]>
Commit | Line | Data |
---|---|---|
ea199e33 | 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 | /// | |
78649106 | 13 | // Author Laurent Aphecetche |
ea199e33 | 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 | { | |
6c7a0c0f | 24 | public: |
ea199e33 | 25 | virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime); |
26 | virtual UInt_t Process(TMap* dcsAliasMap); | |
27 | virtual void Print(Option_t* opt="") const; | |
28 | ||
d489129d | 29 | virtual Bool_t ProcessDCS() { return fProcessDCS; } |
30 | ||
71a2d3aa | 31 | /// Publish AliPreprocessor::Log function |
57e176c0 | 32 | void Log(const char* message) { AliPreprocessor::Log(message); } |
33 | ||
71a2d3aa | 34 | /// Publish AliPreprocessor::GetFileSources function |
ea199e33 | 35 | TList* GetFileSources(Int_t system, const char* id) |
36 | { return AliPreprocessor::GetFileSources(system,id); } | |
37 | ||
71a2d3aa | 38 | /// Publish AliPreprocessor::Store function |
d489129d | 39 | Bool_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object, |
ea199e33 | 40 | AliCDBMetaData* metaData, |
41 | Int_t validityStart = 0, Bool_t validityInfinite = kFALSE) | |
42 | { | |
43 | return AliPreprocessor::Store(pathLevel2,pathLevel3,object,metaData, | |
44 | validityStart,validityInfinite); | |
45 | } | |
46 | ||
71a2d3aa | 47 | /// Publish AliPreprocessor::GetFile function |
ea199e33 | 48 | const char* GetFile(Int_t system, const char* id, const char* source) |
49 | { | |
50 | return AliPreprocessor::GetFile(system,id,source); | |
51 | } | |
52 | ||
eca96915 | 53 | protected: |
54 | AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle); | |
55 | virtual ~AliMUONPreprocessor(); | |
56 | ||
d489129d | 57 | void Add(AliMUONVSubprocessor* subProcessor, Bool_t processDCS=kFALSE); |
eca96915 | 58 | void ClearSubprocessors(); |
59 | ||
ea199e33 | 60 | private: |
71a2d3aa | 61 | /// Not implemented |
ea199e33 | 62 | AliMUONPreprocessor(const AliMUONPreprocessor& rhs); |
71a2d3aa | 63 | /// Not implemented |
ea199e33 | 64 | AliMUONPreprocessor& operator=(const AliMUONPreprocessor& rhs); |
65 | ||
66 | AliMUONVSubprocessor* Subprocessor(Int_t i) const; | |
67 | ||
68 | private: | |
fee1d02b | 69 | |
71a2d3aa | 70 | TObjArray* fSubprocessors; //!< sub processors to execute |
d489129d | 71 | Bool_t fProcessDCS; //!< whether the current subprocessor(s) needs DCS or not |
ea199e33 | 72 | |
d489129d | 73 | ClassDef(AliMUONPreprocessor,2) // MUON Shuttle preprocessor |
ea199e33 | 74 | }; |
75 | ||
76 | #endif |