]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPreprocessor.h
more methods use the correction framework
[u/mrichter/AliRoot.git] / MUON / AliMUONPreprocessor.h
index b884e821415c20f9707b666a7424e1ebd56846f8..5cfae3533345c1d4f5a648c55815ed7875205198 100644 (file)
@@ -51,6 +51,15 @@ public:
     return AliPreprocessor::GetFile(system,id,source);
   }  
   
+  /// 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();
@@ -58,6 +67,9 @@ protected:
   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);
@@ -70,8 +82,8 @@ private:
 
   TObjArray* fSubprocessors; //!< sub processors to execute
   Bool_t fProcessDCS; //!< whether the current subprocessor(s) needs DCS or not
-  
-  ClassDef(AliMUONPreprocessor,2) // MUON Shuttle preprocessor
+
+  ClassDef(AliMUONPreprocessor,4) // MUON Shuttle preprocessor
 };
 
 #endif