GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
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 
14 #include "TGo4BackStoreParameter.h"
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 
35 {
36 }
37 
38 void 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 }
void SetSplitlevel(Int_t split)
void Print(Option_t *opt="") const override
Bool_t UpdateFrom(TGo4Parameter *rhs) override
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
Bool_t UpdateFrom(TGo4Parameter *rhs) override
void SetBufsize(Int_t bufsize)
void Print(Option_t *opt="") const override