which we have nothing to do with.
(Laurent)
AliMUONPreprocessor::AliMUONPreprocessor(const char* detName, AliShuttleInterface* shuttle)
: AliPreprocessor(detName, shuttle),
fIsValid(kFALSE),
+ fIsApplicable(kTRUE),
fSubprocessors(new TObjArray()),
fProcessDCS(kFALSE)
{
fSubprocessors->Clear();
fProcessDCS = kFALSE;
fIsValid = kFALSE;
+ fIsApplicable = kTRUE;
}
//_____________________________________________________________________________
}
}
+ if (! IsApplicable() )
+ Log(Form("WARNING-RunType=%s is not one I should handle.",GetRunType()));
+
Log(Form("Initialize was %s",( IsValid() ? "fine" : "NOT OK")));
}
return 99;
}
+ if (!IsApplicable())
+ {
+ Log("Nothing to do for me");
+ return 0;
+ }
+
UInt_t rv(0);
for ( Int_t i = 0; i <= fSubprocessors->GetLast(); ++i )
/// 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 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);
TObjArray* fSubprocessors; //!< sub processors to execute
Bool_t fProcessDCS; //!< whether the current subprocessor(s) needs DCS or not
- ClassDef(AliMUONPreprocessor,3) // MUON Shuttle preprocessor
+ ClassDef(AliMUONPreprocessor,4) // MUON Shuttle preprocessor
};
#endif
TString runType = GetRunType();
fIsValid = kTRUE;
+ fIsApplicable = kTRUE;
if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name
{
}
else
{
- Log(Form("WARNING-RunType=%s is not one I should handle.",runType.Data()));
+ fIsApplicable = kFALSE;
}
AliMUONPreprocessor::Initialize(run,startTime,endTime);
ClearSubprocessors();
fIsValid = kTRUE;
+ fIsApplicable = kTRUE;
TString runType = GetRunType();
}
else
{
- Log(Form("WARNING-RunType=%s is not one I should handle.",runType.Data()));
+ fIsApplicable = kFALSE;
}
AliMUONPreprocessor::Initialize(run,startTime,endTime);