GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4MbsSourceParameter.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4MBSSOURCEPARAMETER_H
15 #define TGO4MBSSOURCEPARAMETER_H
16 
18 
20  public:
22 
23  TGo4MbsSourceParameter(const char *name, Int_t id);
24 
25  virtual ~TGo4MbsSourceParameter();
26 
28  void SetStartEvent(UInt_t firstindex) { fuStartEvent = firstindex; }
29 
31  UInt_t GetStartEvent() const { return fuStartEvent; }
32 
34  void SetStopEvent(UInt_t lastindex) { fuStopEvent = lastindex; }
35 
37  UInt_t GetStopEvent() const { return fuStopEvent; }
38 
40  void SetEventInterval(UInt_t skipinterval) { fuEventInterval = skipinterval; }
41 
43  UInt_t GetEventInterval() const { return fuEventInterval; }
44 
46  void SetPort(Int_t port) { fiPort = port; }
47 
49  Int_t GetPort() const { return fiPort; }
50 
52  void SetRetryCnt(Int_t cnt) { fiRetryCnt = cnt; }
53 
55  Int_t GetRetryCnt() const { return fiRetryCnt; }
56 
58  void Print(Option_t *opt = "") const override;
59 
61  Bool_t UpdateFrom(TGo4Parameter *rhs) override;
62 
63  private:
64 
66  UInt_t fuStartEvent{0};
67 
69  UInt_t fuStopEvent{0};
70 
72  UInt_t fuEventInterval{0};
73 
75  Int_t fiPort{0};
76 
78  Int_t fiRetryCnt{0};
79 
80  ClassDefOverride(TGo4MbsSourceParameter,3)
81 
82 };
83 
84 #endif //TGO4MBSFILEPARAMETER_H
void SetStartEvent(UInt_t firstindex)
void SetStopEvent(UInt_t lastindex)
Bool_t UpdateFrom(TGo4Parameter *rhs) override
void SetEventInterval(UInt_t skipinterval)
void Print(Option_t *opt="") const override