GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4UserStoreParameter.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 "Go4EventServerTypes.h"
18
21{
22 SetTitle(name);
23}
24
26: TGo4EventStoreParameter("Default Go4 UserStore", GO4EV_USER)
27{
28 SetTitle("Go4UserStore");
29}
30
34
35void TGo4UserStoreParameter::Print(Option_t *) const
36{
38 TGo4Status::PrintLine(" Expression: %s", GetExpression());
39}
40
41
43{
44 auto filepar = dynamic_cast<TGo4UserStoreParameter*>(rhs);
45
46 if(filepar && TGo4EventStoreParameter::UpdateFrom(rhs)) {
47 SetExpression(filepar->GetExpression());
48 return kTRUE;
49 }
50
51 return kFALSE;
52}
@ GO4EV_USER
void Print(Option_t *opt="") const override
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
static void PrintLine(const char *text,...)
Print single line of debug output with appropriate indent.
const char * GetExpression() const
User expression as string.
void Print(Option_t *opt="") const override
basic method to printout object
void SetExpression(const char *name)
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.