GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
22
24 public:
26
27 TGo4MbsSourceParameter(const char *name, Int_t id);
28
30
32 void SetStartEvent(UInt_t firstindex) { fuStartEvent = firstindex; }
33
35 UInt_t GetStartEvent() const { return fuStartEvent; }
36
38 void SetStopEvent(UInt_t lastindex) { fuStopEvent = lastindex; }
39
41 UInt_t GetStopEvent() const { return fuStopEvent; }
42
44 void SetEventInterval(UInt_t skipinterval) { fuEventInterval = skipinterval; }
45
47 UInt_t GetEventInterval() const { return fuEventInterval; }
48
50 void SetPort(Int_t port) { fiPort = port; }
51
53 Int_t GetPort() const { return fiPort; }
54
56 void SetRetryCnt(Int_t cnt) { fiRetryCnt = cnt; }
57
59 Int_t GetRetryCnt() const { return fiRetryCnt; }
60
62 void Print(Option_t *opt = "") const override;
63
65 Bool_t UpdateFrom(TGo4Parameter *rhs) override;
66
67 private:
68
70 UInt_t fuStartEvent{0};
71
73 UInt_t fuStopEvent{0};
74
76 UInt_t fuEventInterval{0};
77
79 Int_t fiPort{0};
80
82 Int_t fiRetryCnt{0};
83
84 ClassDefOverride(TGo4MbsSourceParameter,3)
85
86};
87
88#endif //TGO4MBSFILEPARAMETER_H
void SetStartEvent(UInt_t firstindex)
Define the Start index for the NextEvent.
void SetPort(Int_t port)
Set optional port number, 0 or negative value means that default port number will be used.
UInt_t fuEventInterval
Number of events to skip from file in between two read events.
UInt_t fuStartEvent
Index of first event to process.
Int_t GetPort() const
Return optional port number, 0 or negative value means that default port number will be used.
Int_t fiRetryCnt
Allowed number of retries when connection lost.
UInt_t GetEventInterval() const
Returns event interval.
UInt_t GetStopEvent() const
Returns the index of Stop event.
Int_t GetRetryCnt() const
Return allowed number of reconnection retries.
void SetStopEvent(UInt_t lastindex)
Define the index of Stop event.
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
void SetRetryCnt(Int_t cnt)
Set number of allowed reconnection retries.
UInt_t GetStartEvent() const
Returns the Start index for the NextEvent.
UInt_t fuStopEvent
Index of last event to process.
void Print(Option_t *opt="") const override
basic method to printout object
void SetEventInterval(UInt_t skipinterval)
Defines event interval.
Base class for all parameter aggregations, e.g.