00001 // $Id: TGo4MbsSourceParameter.h 821 2011-12-16 17:58:23Z 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 TGO4MBSSOURCEPARAMETER_H 00015 #define TGO4MBSSOURCEPARAMETER_H 00016 00017 #include "TGo4EventSourceParameter.h" 00018 00019 #include "TString.h" 00020 00021 class TGo4MbsSourceParameter : public TGo4EventSourceParameter { 00022 public: 00023 TGo4MbsSourceParameter() ; 00024 00025 TGo4MbsSourceParameter(const char* name, Int_t id); 00026 00027 virtual ~TGo4MbsSourceParameter(); 00028 00030 void SetStartEvent(UInt_t firstindex) { fuStartEvent=firstindex; } 00031 00033 UInt_t GetStartEvent() const { return fuStartEvent; } 00034 00036 void SetStopEvent(UInt_t lastindex) { fuStopEvent=lastindex; } 00037 00039 UInt_t GetStopEvent() const { return fuStopEvent; } 00040 00042 void SetEventInterval(UInt_t skipinterval) { fuEventInterval=skipinterval; } 00043 00045 UInt_t GetEventInterval() const { return fuEventInterval; } 00046 00048 void SetPort(Int_t port) { fiPort=port; } 00049 00051 Int_t GetPort() const { return fiPort; } 00052 00054 void SetRetryCnt(Int_t cnt) { fiRetryCnt = cnt; } 00055 00057 Int_t GetRetryCnt() const { return fiRetryCnt; } 00058 00061 virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0); 00062 00064 virtual Bool_t UpdateFrom(TGo4Parameter* rhs); 00065 00066 private: 00067 00069 UInt_t fuStartEvent; 00070 00072 UInt_t fuStopEvent; 00073 00075 UInt_t fuEventInterval; 00076 00078 Int_t fiPort; 00079 00081 Int_t fiRetryCnt; 00082 00083 ClassDef(TGo4MbsSourceParameter,3) 00084 00085 }; 00086 00087 #endif //TGO4MBSFILEPARAMETER_H