GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4FileStoreParameter.h
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#ifndef TGO4FILESTOREPARAMETER_H
15#define TGO4FILESTOREPARAMETER_H
16
18
23
24 public:
26
27 TGo4FileStoreParameter(const char *name,
28 Int_t splitlevel = 99,
29 Int_t bufsize = 32000,
30 Int_t compression = 5,
31 Int_t autosave = 10000);
32
34
35 void Print(Option_t *opt = "") const override;
36
38 Bool_t UpdateFrom(TGo4Parameter *rhs) override;
39
40 Int_t GetSplitlevel() const { return fiSplit; }
41 void SetSplitlevel(Int_t split) { fiSplit = split; }
42
43 Int_t GetBufsize() const { return fiBufsize; }
44 void SetBufsize(Int_t bufsize) { fiBufsize = bufsize; }
45
46 Int_t GetCompression() const { return fiCompression; }
47 void SetCompression(Int_t comp) { fiCompression = comp; }
48
49 Int_t GetAutosaveSize() const { return fiAutosavesize; }
50 void SetAutosaveSize(Int_t interval) { fiAutosavesize = interval; }
51
52 Int_t IsOverwriteMode() const { return fbOverwrite; }
53 void SetOverwriteMode(Bool_t over = kTRUE) { fbOverwrite = over ? 1 : 0; }
54
55 private:
56
58 Int_t fiSplit{99};
59
61 Int_t fiBufsize{64000};
62
64 Int_t fiCompression{5};
65
67 Int_t fiAutosavesize{10000};
68
72 Int_t fbOverwrite{1};
73
74 ClassDefOverride(TGo4FileStoreParameter,1)
75};
76
77#endif //TGO4FILESTOREPARAMETER_H
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.