GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
Go4Event
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
14
#include "
TGo4EventStoreParameter.h
"
15
16
#include "
TGo4Status.h
"
17
18
TGo4EventStoreParameter::~TGo4EventStoreParameter
()
19
{
20
}
21
22
TGo4EventStoreParameter::TGo4EventStoreParameter
(
const
char
*name, Int_t
id
)
23
:
TGo4Parameter
(name),
fiID
(id)
24
{
25
}
26
27
TGo4EventStoreParameter::TGo4EventStoreParameter
()
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
41
Bool_t
TGo4EventStoreParameter::UpdateFrom
(
TGo4Parameter
*rhs)
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
}
TGo4EventStoreParameter.h
TGo4Status.h
TGo4EventStoreParameter::~TGo4EventStoreParameter
virtual ~TGo4EventStoreParameter()
Definition
TGo4EventStoreParameter.cxx:18
TGo4EventStoreParameter::GetID
Int_t GetID() const
Definition
TGo4EventStoreParameter.h:35
TGo4EventStoreParameter::fiID
Int_t fiID
Identity number to specify the kind.
Definition
TGo4EventStoreParameter.h:44
TGo4EventStoreParameter::Print
void Print(Option_t *opt="") const override
Definition
TGo4EventStoreParameter.cxx:32
TGo4EventStoreParameter::TGo4EventStoreParameter
TGo4EventStoreParameter()
Definition
TGo4EventStoreParameter.cxx:27
TGo4EventStoreParameter::UpdateFrom
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
Definition
TGo4EventStoreParameter.cxx:41
TGo4Parameter::TGo4Parameter
TGo4Parameter()
Definition
TGo4Parameter.cxx:35
TGo4Status::PrintLine
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.
Definition
TGo4Status.cxx:101
Generated by
1.13.2