GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4BackStoreParameter.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
20 Int_t splitlevel,
21 Int_t bufsize)
23 fiSplit(splitlevel), fiBufsize(bufsize)
24{
25 SetTitle(name);
26}
27
29: TGo4EventStoreParameter("Default Go4 FileStore", GO4EV_BACK)
30{
31 SetTitle("Go4FileStore-Tree");
32}
33
37
38void TGo4BackStoreParameter::Print(Option_t *) const
39{
41 TGo4Status::PrintLine(" Split level: \t%d", fiSplit);
42 TGo4Status::PrintLine(" Buffer size: \t%d bytes", fiBufsize);
43}
44
46{
47 auto backpar = dynamic_cast<TGo4BackStoreParameter*>(rhs);
48 if(!backpar) return kFALSE;
49 if(!TGo4EventStoreParameter::UpdateFrom(rhs)) return kFALSE;
50 SetSplitlevel(backpar->GetSplitlevel());
51 SetBufsize(backpar->GetBufsize());
52 return kTRUE;
53}
@ GO4EV_BACK
Int_t fiSplit
Splitlevel for Tree.
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
Int_t fiBufsize
Size of the root io buffer.
void Print(Option_t *opt="") const override
void SetBufsize(Int_t bufsize)
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.