// $Id$ //----------------------------------------------------------------------- // The GSI Online Offline Object Oriented (Go4) Project // Experiment Data Processing at EE department, GSI //----------------------------------------------------------------------- // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH // Planckstr. 1, 64291 Darmstadt, Germany // Contact: http://go4.gsi.de //----------------------------------------------------------------------- // This software can be used under the license agreements as stated // in Go4License.txt file which is part of the distribution. //----------------------------------------------------------------------- #ifndef TGO4MBSSOURCEPARAMETER_H #define TGO4MBSSOURCEPARAMETER_H #include "TGo4EventSourceParameter.h" #include "TString.h" class TGo4MbsSourceParameter : public TGo4EventSourceParameter { public: TGo4MbsSourceParameter() ; TGo4MbsSourceParameter(const char* name, Int_t id); virtual ~TGo4MbsSourceParameter(); /** Define the Start index for the NextEvent */ void SetStartEvent(UInt_t firstindex) { fuStartEvent=firstindex; } /** Returns the Start index for the NextEvent */ UInt_t GetStartEvent() const { return fuStartEvent; } /** Define the index of Stop event */ void SetStopEvent(UInt_t lastindex) { fuStopEvent=lastindex; } /** Returns the index of Stop event */ UInt_t GetStopEvent() const { return fuStopEvent; } /** Defines event interval */ void SetEventInterval(UInt_t skipinterval) { fuEventInterval=skipinterval; } /** Returns event interval */ UInt_t GetEventInterval() const { return fuEventInterval; } /** basic method to printout status information * on stdout; to be overridden by specific subclass */ virtual Int_t PrintParameter(Text_t* buffer=0, Int_t buflen=0); /** update contents of paramter class with external object. */ virtual Bool_t UpdateFrom(TGo4Parameter* rhs); private: /** Index of first event to process. */ UInt_t fuStartEvent; /** Index of last event to process. */ UInt_t fuStopEvent; /** Number of events to skip from file in between two read events */ UInt_t fuEventInterval; ClassDef(TGo4MbsSourceParameter,1) }; #endif //TGO4MBSFILEPARAMETER_H