GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FileStoreParameter.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,
22 Int_t compression,
23 Int_t autosave)
25 fiSplit(splitlevel), fiBufsize(bufsize),
26 fiCompression(compression), fiAutosavesize(autosave), fbOverwrite(1)
27{
28 SetTitle(name);
29}
30
32: TGo4EventStoreParameter("Default Go4 FileStore", GO4EV_FILE)
33{
34 SetTitle("Go4FileStore-Tree");
35}
36
40
41void TGo4FileStoreParameter::Print(Option_t *) const
42{
44 TGo4Status::PrintLine(" Split level: \t%d", fiSplit);
45 TGo4Status::PrintLine(" Buffer size: \t%d bytes", fiBufsize);
46 TGo4Status::PrintLine(" Compression level: \t%d", fiCompression);
47 TGo4Status::PrintLine(" Tree autosave at: \t%d bytes", fiAutosavesize);
48}
49
51{
52 auto filepar = dynamic_cast<TGo4FileStoreParameter*>(rhs);
53 if (!filepar) return kFALSE;
54
55 if(!TGo4EventStoreParameter::UpdateFrom(rhs)) return kFALSE;
56 SetSplitlevel(filepar->GetSplitlevel());
57 SetBufsize(filepar->GetBufsize());
58 SetCompression(filepar->GetCompression());
59 SetOverwriteMode(filepar->IsOverwriteMode());
60 SetAutosaveSize(filepar->GetAutosaveSize());
61 return kTRUE;
62}
@ GO4EV_FILE
void Print(Option_t *opt="") const override
Bool_t UpdateFrom(TGo4Parameter *rhs) override
update contents of parameter class with external object.
Int_t fbOverwrite
True if old filestore of same name shall be overwritten.
Int_t fiCompression
Compression level of the root file.
void SetOverwriteMode(Bool_t over=kTRUE)
void Print(Option_t *opt="") const override
void SetBufsize(Int_t bufsize)
Int_t fiAutosavesize
Autosave interval for the Tree.
void SetAutosaveSize(Int_t interval)
Int_t fiBufsize
Size of the root io buffer.
Int_t fiSplit
Splitlevel for Tree.
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.