GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4EventStoreParameter.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 
19 {
20 }
21 
23 : TGo4Parameter (name), fiID(id)
24 {
25 }
26 
28 : TGo4Parameter ("Default Event Store Parameter")
29 {
30 }
31 
32 void TGo4EventStoreParameter::Print(Option_t *) const
33 {
34  TString woparam = ClassName();
35  woparam.ReplaceAll("Parameter","");
36  TGo4Status::PrintLine("Eventstore: \t\t%s",woparam.Data());
37  TGo4Status::PrintLine(" Name: \t\t%s", GetName());
38  TGo4Status::PrintLine(" ID: \t\t%d", GetID());
39 }
40 
42 {
43  auto storpar = dynamic_cast<TGo4EventStoreParameter*>(rhs);
44  if (!storpar) return kFALSE;
45  SetName(storpar->GetName());
46  fiID = storpar->GetID();
47  return kTRUE;
48 }
Bool_t UpdateFrom(TGo4Parameter *rhs) override
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
void Print(Option_t *opt="") const override