GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4TreeStoreParameter.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 "TGo4TreeStoreParameter.h"
15 
16 #include "Go4EventServerTypes.h"
17 #include "TGo4Status.h"
18 
20  Int_t splitlevel,
21  Int_t bufsize,
22  const char *filename,
23  Int_t compression)
25  fiSplit(splitlevel), fiBufsize(bufsize), fiCompression(compression)
26 {
27  if(filename) fxBranchFile = filename;
28 }
29 
31 : TGo4EventStoreParameter("default go4 treestore", GO4EV_TREE)
32 {
33 }
34 
35 
37 {
38 }
39 
40 void TGo4TreeStoreParameter::Print(Option_t *) const
41 {
43  TGo4Status::PrintLine(" Split level: \t%d", fiSplit);
44  TGo4Status::PrintLine(" Compression level: \t%d", fiCompression);
45  TGo4Status::PrintLine(" Buffer size: \t%d", fiBufsize);
46  if(!fxBranchFile.IsNull())
47  TGo4Status::PrintLine(" Branch file name: \t%s", fxBranchFile.Data());
48 }
49 
51 {
52  if(rhs && rhs->InheritsFrom(TGo4TreeStoreParameter::Class())) {
53  auto treepar = dynamic_cast<TGo4TreeStoreParameter*>(rhs);
54  if(!treepar) return kFALSE;
55  if(!TGo4EventStoreParameter::UpdateFrom(rhs)) return kFALSE;
56  fiSplit = treepar->fiSplit;
57  fiBufsize = treepar->fiBufsize;
58  fiCompression = treepar->fiCompression;
59  return kTRUE;
60  }
61  return kFALSE;
62 }
void Print(Option_t *opt="") const override
Bool_t UpdateFrom(TGo4Parameter *rhs) override
static void PrintLine(const char *text,...)
Definition: TGo4Status.cxx:101
void Print(Option_t *opt="") const override
Bool_t UpdateFrom(TGo4Parameter *rhs) override