GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4EventProcessorParameter.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 
19 
21  TGo4Parameter (name), fiID(id)
22 {
23  GO4TRACE((12,"TGo4EventProcessorParameter::TGo4EventProcessorParameter(const char *)",__LINE__, __FILE__));
24 }
25 
27  TGo4Parameter ("Default Event Processor Parameter")
28 {
29  GO4TRACE((12,"TGo4EventProcessorParameter::TGo4EventProcessorParameter()",__LINE__, __FILE__));
30 }
31 
33 {
34  GO4TRACE((12,"TGo4EventProcessorParameter::~TGo4EventProcessorParameter()",__LINE__, __FILE__));
35 }
36 
37 void TGo4EventProcessorParameter::Print(Option_t *) const
38 {
39  TGo4Status::PrintLine("EventProcessor: %s", ClassName());
40  TGo4Status::PrintLine(" Name: \t%s", GetName());
41  TGo4Status::PrintLine(" ID: \t%d", GetID());
42 }
43 
45 {
46  GO4TRACE((12,"TGo4EventProcessorParameter::UpdateFrom()",__LINE__, __FILE__));
47  auto procpar = dynamic_cast<TGo4EventProcessorParameter*>(rhs);
48  if(!procpar) return kFALSE;
49  SetName(procpar->GetName());
50  fiID = procpar->GetID();
51  return kTRUE;
52 }
void Print(Option_t *opt="") const override
Bool_t UpdateFrom(TGo4Parameter *rhs) override
#define GO4TRACE(X)
Definition: TGo4Log.h:25
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101