X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONPreprocessor.h;h=1d3247eef05fc536b4bc665d99acbc9ad8774368;hb=521ca3934fedcb770d84e4099120da9b7be46015;hp=909d4810d38c74b4dc628f0f5dd3334bad0495b9;hpb=71a2d3aa63e94daa0244d8d6d1c7c162ae29a374;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONPreprocessor.h b/MUON/AliMUONPreprocessor.h index 909d4810d38..1d3247eef05 100644 --- a/MUON/AliMUONPreprocessor.h +++ b/MUON/AliMUONPreprocessor.h @@ -25,7 +25,10 @@ public: virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime); virtual UInt_t Process(TMap* dcsAliasMap); virtual void Print(Option_t* opt="") const; - + + /// Return info whether the current subprocessor(s) needs DCS or not + virtual Bool_t ProcessDCS() { return fProcessDCS; } + /// Publish AliPreprocessor::Log function void Log(const char* message) { AliPreprocessor::Log(message); } @@ -34,7 +37,7 @@ public: { return AliPreprocessor::GetFileSources(system,id); } /// Publish AliPreprocessor::Store function - UInt_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object, + Bool_t Store(const char* pathLevel2, const char* pathLevel3, TObject* object, AliCDBMetaData* metaData, Int_t validityStart = 0, Bool_t validityInfinite = kFALSE) { @@ -47,14 +50,31 @@ public: { return AliPreprocessor::GetFile(system,id,source); } + + /// Publish AliPreprocessor::GetFromOCDB function + AliCDBEntry* GetFromOCDB(const char* pathLevel2, const char* pathLevel3) { + return AliPreprocessor::GetFromOCDB(pathLevel2,pathLevel3); + } + + /// Whether we can be used (e.g. whether we were properly initialized) + Bool_t IsValid() const { return fIsValid; } + + /// Mark as invalid + void Invalidate() { fIsValid = kFALSE; } + + /// Whether we should do something or not + Bool_t IsApplicable() { return fIsApplicable; } protected: AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle); virtual ~AliMUONPreprocessor(); - void Add(AliMUONVSubprocessor* subProcessor); + void Add(AliMUONVSubprocessor* subProcessor, Bool_t processDCS=kFALSE); void ClearSubprocessors(); + Bool_t fIsValid; //!< whether we were correctly initialized + Bool_t fIsApplicable; //!< whether we have something to do + private: /// Not implemented AliMUONPreprocessor(const AliMUONPreprocessor& rhs); @@ -66,8 +86,9 @@ private: private: TObjArray* fSubprocessors; //!< sub processors to execute - - ClassDef(AliMUONPreprocessor,1) // MUON Shuttle preprocessor + Bool_t fProcessDCS; //!< whether the current subprocessor(s) needs DCS or not + + ClassDef(AliMUONPreprocessor,4) // MUON Shuttle preprocessor }; #endif