]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPreprocessor.h
Protection if the compiler is not gcc
[u/mrichter/AliRoot.git] / MUON / AliMUONPreprocessor.h
index e7ea4ff137825128a33cee87301bf0d86fb334c6..dc51b1ac366c9dd5530c785360dbd075eea1ff2f 100644 (file)
@@ -25,7 +25,8 @@ 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
@@ -50,6 +51,12 @@ 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; }
+  
 protected:
   AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle);
   virtual ~AliMUONPreprocessor();
@@ -57,6 +64,8 @@ protected:
   void Add(AliMUONVSubprocessor* subProcessor, Bool_t processDCS=kFALSE); 
   void ClearSubprocessors();
   
+  Bool_t fIsValid; //!< whether we were correctly initialized
+
 private:
   /// Not implemented
   AliMUONPreprocessor(const AliMUONPreprocessor& rhs);
@@ -69,8 +78,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,3) // MUON Shuttle preprocessor
 };
 
 #endif