GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4EventSourceParameter.cxx
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 
15 
16 #include "TGo4Status.h"
17 #include "TGo4Log.h"
18 
20  TGo4Parameter (name), fiID(id)
21 {
22 }
23 
25  TGo4Parameter ("Default Event Source Parameter")
26 {
27 }
28 
30 {
31 }
32 
33 void TGo4EventSourceParameter::Print(Option_t *) const
34 {
35  TString woparam = ClassName();
36  woparam.ReplaceAll("Parameter","");
37  TGo4Status::PrintLine("Eventsource: %s", woparam.Data());
38  TGo4Status::PrintLine(" Name: \t%s",GetName());
39  TGo4Status::PrintLine(" Timeout: \t%d s",GetTimeout());
40  TGo4Status::PrintLine(" ID: \t\t%d",GetID());
41 }
42 
44 {
45  auto srcpar = dynamic_cast<TGo4EventSourceParameter*>(rhs);
46  if (!srcpar) return kFALSE;
47  SetName(srcpar->GetName());
48  SetTimeout(srcpar->GetTimeout());
49  fiID = srcpar->GetID();
50  return kTRUE;
51 }
Bool_t UpdateFrom(TGo4Parameter *rhs) override
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
void Print(Option_t *opt="") const override