GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
Go4Event
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
14
#include "
TGo4EventSourceParameter.h
"
15
16
#include "
TGo4Status.h
"
17
#include "
TGo4Log.h
"
18
19
TGo4EventSourceParameter::TGo4EventSourceParameter
(
const
char
*name, Int_t
id
) :
20
TGo4Parameter
(name), fiID(id)
21
{
22
}
23
24
TGo4EventSourceParameter::TGo4EventSourceParameter
() :
25
TGo4Parameter
(
"Default Event Source Parameter"
)
26
{
27
}
28
29
TGo4EventSourceParameter::~TGo4EventSourceParameter
()
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
43
Bool_t
TGo4EventSourceParameter::UpdateFrom
(
TGo4Parameter
*rhs)
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
}
TGo4EventSourceParameter
Definition:
TGo4EventSourceParameter.h:26
TGo4Status.h
TGo4EventSourceParameter::UpdateFrom
Bool_t UpdateFrom(TGo4Parameter *rhs) override
Definition:
TGo4EventSourceParameter.cxx:43
TGo4Parameter
Definition:
TGo4Parameter.h:28
TGo4EventSourceParameter::fiID
Int_t fiID
Definition:
TGo4EventSourceParameter.h:48
TGo4Log.h
TGo4EventSourceParameter.h
TGo4EventSourceParameter::SetTimeout
void SetTimeout(Int_t out)
Definition:
TGo4EventSourceParameter.h:38
TGo4EventSourceParameter::GetID
Int_t GetID() const
Definition:
TGo4EventSourceParameter.h:34
TGo4EventSourceParameter::TGo4EventSourceParameter
TGo4EventSourceParameter()
Definition:
TGo4EventSourceParameter.cxx:24
TGo4Status::PrintLine
static void PrintLine(const char *text,...)
Definition:
TGo4Status.cxx:101
TGo4EventSourceParameter::Print
void Print(Option_t *opt="") const override
Definition:
TGo4EventSourceParameter.cxx:33
TGo4EventSourceParameter::~TGo4EventSourceParameter
virtual ~TGo4EventSourceParameter()
Definition:
TGo4EventSourceParameter.cxx:29
TGo4EventSourceParameter::GetTimeout
Int_t GetTimeout() const
Definition:
TGo4EventSourceParameter.h:36
Generated on Wed Jan 10 2024 15:04:17 for GSI Object Oriented Online Offline (Go4) by
1.8.13