00001 // $Id: TGo4AnalysisStepStatus.h 794 2011-09-06 16:19:28Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4ANALYSISSTEPSTATUS_H 00015 #define TGO4ANALYSISSTEPSTATUS_H 00016 00017 #include "TGo4Status.h" 00018 00019 #include "TGo4EventProcessorParameter.h" 00020 #include "TGo4EventStoreParameter.h" 00021 #include "TGo4EventSourceParameter.h" 00022 00029 class TGo4AnalysisStepStatus : public TGo4Status { 00030 00031 public: 00032 TGo4AnalysisStepStatus(); 00033 00034 TGo4AnalysisStepStatus(const char* name); 00035 00036 virtual ~TGo4AnalysisStepStatus(); 00037 00040 virtual Int_t PrintStatus(Text_t* buffer=0, Int_t buflen=0); 00041 00044 void SetSourcePar(TGo4EventSourceParameter* kind); 00045 00048 TGo4EventSourceParameter* GetSourcePar() const { return fxSourceType; } 00049 00052 TGo4EventSourceParameter* TakeSourcePar(); 00053 00056 void SetStorePar(TGo4EventStoreParameter* kind); 00057 00060 TGo4EventStoreParameter * GetStorePar() const { return fxStoreType; } 00061 00064 void SetProcessorPar(TGo4EventProcessorParameter* kind); 00065 00068 TGo4EventProcessorParameter * GetProcessorPar() const { return fxProcessorType; } 00069 00071 void SetSourceEnabled(Bool_t on=kTRUE) { fbSourceEnabled = on; } 00072 Bool_t IsSourceEnabled() const { return fbSourceEnabled; } 00073 00075 void SetStoreEnabled(Bool_t on=kTRUE) { fbStoreEnabled = on; } 00076 Bool_t IsStoreEnabled() const { return fbStoreEnabled; } 00077 00079 void SetProcessEnabled(Bool_t on=kTRUE) { fbProcessEnabled = on; } 00080 Bool_t IsProcessEnabled() const { return fbProcessEnabled; } 00081 00083 void SetErrorStopEnabled(Bool_t on=kTRUE) { fbErrorStopEnabled = on; } 00085 Bool_t IsErrorStopEnabled() const { return fbErrorStopEnabled; } 00086 00088 void SetErrorStopped(Bool_t on) { fbErrorStopped = on; } 00090 Bool_t IsErrorStopped() const { return fbErrorStopped; } 00091 00093 void SetProcessStatus(Int_t val) { fiProcessStatus=val; } 00094 00097 Int_t GetProcessStatus() const { return fiProcessStatus; } 00098 00099 private: 00100 00105 TGo4EventSourceParameter* fxSourceType; 00106 00111 TGo4EventStoreParameter* fxStoreType; 00112 00117 TGo4EventProcessorParameter* fxProcessorType; 00118 00122 Bool_t fbSourceEnabled; 00123 00127 Bool_t fbStoreEnabled; 00128 00134 Bool_t fbProcessEnabled; 00135 00141 Bool_t fbErrorStopEnabled; 00142 00145 Bool_t fbErrorStopped; 00146 00148 Int_t fiProcessStatus; 00149 00150 ClassDef(TGo4AnalysisStepStatus,1) 00151 }; 00152 00153 #endif //TGO4ANALYSISSTEPSTATUS_H