GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
Go4Event
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
14
#include "
TGo4EventProcessorParameter.h
"
15
16
#include "
TGo4Status.h
"
17
#include "
TGo4Log.h
"
18
19
20
TGo4EventProcessorParameter::TGo4EventProcessorParameter
(
const
char
*name, Int_t
id
) :
21
TGo4Parameter
(name), fiID(id)
22
{
23
GO4TRACE
((12,
"TGo4EventProcessorParameter::TGo4EventProcessorParameter(const char *)"
,__LINE__, __FILE__));
24
}
25
26
TGo4EventProcessorParameter::TGo4EventProcessorParameter
() :
27
TGo4Parameter
(
"Default Event Processor Parameter"
)
28
{
29
GO4TRACE
((12,
"TGo4EventProcessorParameter::TGo4EventProcessorParameter()"
,__LINE__, __FILE__));
30
}
31
32
TGo4EventProcessorParameter::~TGo4EventProcessorParameter
()
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
44
Bool_t
TGo4EventProcessorParameter::UpdateFrom
(
TGo4Parameter
*rhs)
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
}
TGo4EventProcessorParameter::fiID
Int_t fiID
Definition:
TGo4EventProcessorParameter.h:44
TGo4Status.h
TGo4Parameter
Definition:
TGo4Parameter.h:28
TGo4Log.h
TGo4EventProcessorParameter::TGo4EventProcessorParameter
TGo4EventProcessorParameter()
Definition:
TGo4EventProcessorParameter.cxx:26
TGo4EventProcessorParameter::Print
void Print(Option_t *opt="") const override
Definition:
TGo4EventProcessorParameter.cxx:37
TGo4EventProcessorParameter.h
TGo4EventProcessorParameter::UpdateFrom
Bool_t UpdateFrom(TGo4Parameter *rhs) override
Definition:
TGo4EventProcessorParameter.cxx:44
TGo4EventProcessorParameter
Definition:
TGo4EventProcessorParameter.h:26
TGo4EventProcessorParameter::~TGo4EventProcessorParameter
virtual ~TGo4EventProcessorParameter()
Definition:
TGo4EventProcessorParameter.cxx:32
GO4TRACE
#define GO4TRACE(X)
Definition:
TGo4Log.h:25
TGo4Status::PrintLine
static void PrintLine(const char *text,...)
Definition:
TGo4Status.cxx:101
TGo4EventProcessorParameter::GetID
Int_t GetID() const
Definition:
TGo4EventProcessorParameter.h:34
Generated on Wed Jan 10 2024 15:04:17 for GSI Object Oriented Online Offline (Go4) by
1.8.13