Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TFile.h
Go to the documentation of this file.
1// @(#)root/io:$Id$
2// Author: Rene Brun 28/11/94
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TFile
13#define ROOT_TFile
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TFile //
19// //
20// ROOT file. //
21// //
22//////////////////////////////////////////////////////////////////////////
23
24#include <atomic>
25#include <string>
26#include <cstdint>
27
28#include "Compression.h"
29#include "TDirectoryFile.h"
30#include "TUrl.h"
32#include <optional>
33
34// Not a part of TFile interface; provide a forward declaration instead of #include.
35// #ifndef R__LESS_INCLUDES
36// #include "TMap.h"
37// #endif
38
39#ifdef R__USE_IMT
40#include <mutex>
41#endif
42
43class TMap;
44class TFree;
45class TArrayC;
46class TArchiveFile;
47class TFileOpenHandle;
48class TFileCacheRead;
49class TFileCacheWrite;
50class TProcessID;
51class TStopwatch;
52class TFilePrefetch;
53
54namespace ROOT::Detail {
61
62 std::uint64_t fAddr = 0;
64 std::uint32_t fLen = 0;
65
66 // these are only valid for Keys
74 std::string fClassName;
75 std::string fKeyName;
76 std::string fKeyTitle;
77
78 TKeyMapNode() = default;
79 TKeyMapNode(std::uint64_t addr, EType type, std::uint32_t len = 0) : fAddr(addr), fType(type), fLen(len) {}
80};
81
84
85public:
86 class TIterator {
88 std::optional<TKeyMapNode> fCur;
89 std::uint64_t fCurAddr;
90
91 std::optional<TKeyMapNode> Next();
92
93 void Advance()
94 {
95 fCur = Next();
96 // If we encounter an error key, skip to the end of the file so we don't try reading additional ones.
97 if (!fCur || fCur->fType == TKeyMapNode::kError)
98 fCurAddr = -1;
99 }
100
101 public:
103 using iterator_category = std::input_iterator_tag;
104 using difference_type = std::ptrdiff_t;
108
109 TIterator(TFile *file, std::uint64_t addr);
110
112 {
113 Advance();
114 return *this;
115 }
116 reference operator*() { return fCur.value(); }
117 pointer operator->() { return fCur ? &*fCur : nullptr; }
118 bool operator!=(const iterator &rh) const { return !(*this == rh); }
119 bool operator==(const iterator &rh) const { return fFile == rh.fFile && fCurAddr == rh.fCurAddr; }
120 };
121
122 explicit TKeyMapIterable(TFile *file) : fFile(file) {}
123
124 TIterator begin() const { return TIterator(fFile, 0); }
125 TIterator end() const { return TIterator(fFile, (std::uint64_t) -1); }
126};
127
128} // namespace ROOT::Detail
129
130class TFile : public TDirectoryFile {
131 friend class TDirectoryFile;
132 friend class TFilePrefetch;
134// TODO: We need to make sure only one TBasket is being written at a time
135// if we are writing multiple baskets in parallel.
136#ifdef R__USE_IMT
137 friend class TBasket;
138#endif
139
140public:
141 /// Asynchronous open request status
144 /// Open timeout constants
146
147 /// TTreeCache flushing semantics
149
150protected:
151 Double_t fSumBuffer{0}; ///<Sum of buffer sizes of objects written so far
152 Double_t fSum2Buffer{0}; ///<Sum of squares of buffer sizes of objects written so far
153 Long64_t fBytesWrite{0}; ///<Number of bytes written to this file
154 Long64_t fBytesRead{0}; ///<Number of bytes read from this file
155 Long64_t fBytesReadExtra{0}; ///<Number of extra bytes (overhead) read by the readahead buffer
156 Long64_t fBEGIN{0}; ///<First used byte in file
157 Long64_t fEND{0}; ///<Last used byte in file
158 Long64_t fSeekFree{0}; ///<Location on disk of free segments structure
159 Long64_t fSeekInfo{0}; ///<Location on disk of StreamerInfo record
160 Int_t fD{-1}; ///<File descriptor
161 Int_t fVersion{0}; ///<File format version
162 Int_t fCompress{0}; ///<Compression level and algorithm
163 Int_t fNbytesFree{0}; ///<Number of bytes for free segments structure
164 Int_t fNbytesInfo{0}; ///<Number of bytes for StreamerInfo record
165 Int_t fWritten{0}; ///<Number of objects written so far
166 Int_t fNProcessIDs{0}; ///<Number of TProcessID written to this file
167 Int_t fReadCalls{0}; ///<Number of read calls ( not counting the cache calls )
168 TString fRealName; ///<Effective real file name (not original url)
169 TString fOption; ///<File options
170 Char_t fUnits{0}; ///<Number of bytes for file pointers
171 TList *fFree{nullptr}; ///<Free segments linked list table
172 TArrayC *fClassIndex{nullptr}; ///<!Index of TStreamerInfo classes written to this file
173 TObjArray *fProcessIDs{nullptr}; ///<!Array of pointers to TProcessIDs
174 Long64_t fOffset{0}; ///<!Seek offset cache
175 TArchiveFile *fArchive{nullptr}; ///<!Archive file from which we read this file
176 TFileCacheRead *fCacheRead{nullptr}; ///<!Pointer to the read cache (if any)
177 TMap *fCacheReadMap{nullptr}; ///<!Pointer to the read cache (if any)
178 TFileCacheWrite *fCacheWrite{nullptr}; ///<!Pointer to the write cache (if any)
179 Long64_t fArchiveOffset{0}; ///<!Offset at which file starts in archive
180 Bool_t fIsArchive{kFALSE}; ///<!True if this is a pure archive file
181 Bool_t fNoAnchorInName{kFALSE}; ///<!True if we don't want to force the anchor to be appended to the file name
182 Bool_t fIsRootFile{kTRUE}; ///<!True is this is a ROOT file, raw file otherwise
183 Bool_t fInitDone{kFALSE}; ///<!True if the file has been initialized
184 Bool_t fMustFlush{kTRUE}; ///<!True if the file buffers must be flushed
185 Bool_t fIsPcmFile{kFALSE}; ///<!True if the file is a ROOT pcm file.
186 TFileOpenHandle *fAsyncHandle{nullptr}; ///<!For proper automatic cleanup
187 EAsyncOpenStatus fAsyncOpenStatus{kAOSNotAsync}; ///<!Status of an asynchronous open request
188 TUrl fUrl; ///<!URL of file
189
190 TList *fInfoCache{nullptr}; ///<!Cached list of the streamer infos in this file
191 TList *fOpenPhases{nullptr}; ///<!Time info about open phases
192
193 bool fGlobalRegistration = true; ///<! if true, bypass use of global lists
194
195#ifdef R__USE_IMT
196 std::mutex fWriteMutex; ///<!Lock for writing baskets / keys into the file.
197#endif
198 static ROOT::Internal::RConcurrentHashColl fgTsSIHashes; ///<!TS Set of hashes built from read streamer infos
199
200 static TList *fgAsyncOpenRequests; //List of handles for pending open requests
201
202 static TString fgCacheFileDir; ///<Directory where to locally stage files
203 static Bool_t fgCacheFileDisconnected; ///<Indicates, we trust in the files in the cache dir without stat on the cached file
204 static Bool_t fgCacheFileForce; ///<Indicates, to force all READ to CACHEREAD
205 static UInt_t fgOpenTimeout; ///<Timeout for open operations in ms - 0 corresponds to blocking i/o
206 static Bool_t fgOnlyStaged ; ///<Before the file is opened, it is checked, that the file is staged, if not, the open fails
207
208 static std::atomic<Long64_t> fgBytesWrite; ///<Number of bytes written by all TFile objects
209 static std::atomic<Long64_t> fgBytesRead; ///<Number of bytes read by all TFile objects
210 static std::atomic<Long64_t> fgFileCounter; ///<Counter for all opened files
211 static std::atomic<Int_t> fgReadCalls; ///<Number of bytes read from all TFile objects
212 static Int_t fgReadaheadSize; ///<Readahead buffer size
213 static Bool_t fgReadInfo; ///<if true (default) ReadStreamerInfo is called when opening a file
214
216 virtual void Init(Bool_t create);
218 Int_t ReadBufferViaCache(char *buf, Int_t len);
219 Int_t WriteBufferViaCache(const char *buf, Int_t len);
220
221 ////////////////////////////////////////////////////////////////////////////////
222 /// \brief Simple struct of the return value of GetStreamerInfoListImpl
228
230
231 // Interface to basic system I/O routines
232 virtual Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode);
233 virtual Int_t SysClose(Int_t fd);
234 virtual Int_t SysRead(Int_t fd, void *buf, Int_t len);
235 virtual Int_t SysWrite(Int_t fd, const void *buf, Int_t len);
237 virtual Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime);
238 virtual Int_t SysSync(Int_t fd);
239
240 // Interface for text-based TDirectory I/O
241 virtual Long64_t DirCreateEntry(TDirectory*) { return 0; }
242 virtual Int_t DirReadKeys(TDirectory*) { return 0; }
243 virtual void DirWriteKeys(TDirectory*) {}
244 virtual void DirWriteHeader(TDirectory*) {}
245
246private:
247 TFile(const TFile &) = delete; //Files cannot be copied
248 void operator=(const TFile &) = delete;
249
251 static TFile *OpenFromCache(const char *name, Option_t * = "",
253 Int_t netopt = 0);
254
255public:
256 /// TFile status bits. BIT(13) is taken up by TObject
258 // Produce files forward compatible with (unpatched) version older than
259 // v6.30 by recording the internal bits kIsOnHeap and kNotDeleted; Older
260 // releases were not explicitly setting those bits to the correct value
261 // but instead used verbatim the value stored in the file.
262 // Note that to avoid a circular dependency, this value is used
263 // hard coded in TObject.cxx.
272 // Set this bit to block an unwanted automatic call to TTree::ChangeFile
273 // e.g. during TFileMerger operations (bypassing any set MaxTreeSize)
274 // This is a transient bit and has no relevance for I/O.
276 };
277 enum ERelativeTo { kBeg = 0, kCur = 1, kEnd = 2 };
278 enum { kStartBigFile = 2000000000 };
279 /// File type
281// clang++ <v20 (-Wshadow) complains about shadowing TSystem.h global enum ESendRecvOptions. Let's silence warning:
282#if defined(__clang__) && __clang_major__ < 20
283#pragma clang diagnostic push
284#pragma clang diagnostic ignored "-Wshadow"
285#endif
287#if defined(__clang__) && __clang_major__ < 20
288#pragma clang diagnostic pop
289#endif
290 kLocal = 1, kNet = 2, kWeb = 3, kFile = 4, kMerge = 5 };
291
292 TFile();
294 ~TFile() override;
295
296 void Close(Option_t *option="") override; // *MENU*
297 void Copy(TObject &) const override { MayNotUse("Copy(TObject &)"); }
298 virtual Bool_t Cp(const char *dst, Bool_t progressbar = kTRUE,UInt_t bufsize = 1000000);
299 virtual TKey* CreateKey(TDirectory* mother, const TObject* obj, const char* name, Int_t bufsize);
300 virtual TKey* CreateKey(TDirectory* mother, const void* obj, const TClass* cl,
301 const char* name, Int_t bufsize);
302 static TFile *&CurrentFile(); // Return the current file for this thread.
303 void Delete(const char *namecycle="") override;
304 void Draw(Option_t *option="") override;
305 virtual void DrawMap(const char *keys="*",Option_t *option=""); // *MENU*
306 void FillBuffer(char *&buffer) override;
307 virtual void Flush();
308 TArchiveFile *GetArchive() const { return fArchive; }
310 Int_t GetBestBuffer() const;
311 virtual Int_t GetBytesToPrefetch() const;
312 TFileCacheRead *GetCacheRead(const TObject* tree = nullptr) const;
314 TArrayC *GetClassIndex() const { return fClassIndex; }
319 virtual Long64_t GetEND() const { return fEND; }
320 virtual Int_t GetErrno() const;
321 virtual void ResetErrno() const;
322 Int_t GetFd() const { return fD; }
323 virtual const TUrl *GetEndpointUrl() const { return &fUrl; }
325 TList *GetListOfFree() const { return fFree; }
326 virtual Int_t GetNfree() const { return fFree->GetSize(); }
327 virtual Int_t GetNProcessIDs() const { return fNProcessIDs; }
328 Option_t *GetOption() const override { return fOption.Data(); }
329 virtual Long64_t GetBytesRead() const { return fBytesRead; }
330 virtual Long64_t GetBytesReadExtra() const { return fBytesReadExtra; }
331 virtual Long64_t GetBytesWritten() const;
332 virtual Int_t GetReadCalls() const { return fReadCalls; }
333 Int_t GetVersion() const { return fVersion; }
334 Int_t GetRecordHeader(char *buf, Long64_t first, Int_t maxbytes,
336 virtual Int_t GetNbytesInfo() const {return fNbytesInfo;}
337 virtual Int_t GetNbytesFree() const {return fNbytesFree;}
338 virtual TString GetNewUrl() { return ""; }
340 virtual Long64_t GetSeekFree() const {return fSeekFree;}
341 virtual Long64_t GetSeekInfo() const {return fSeekInfo;}
342 virtual Long64_t GetSize() const;
343 virtual TList *GetStreamerInfoList() final; // Note: to override behavior, please override GetStreamerInfoListImpl
346 virtual Bool_t IsArchive() const { return fIsArchive; }
347 Bool_t IsBinary() const { return TestBit(kBinaryFile); }
348 Bool_t IsRaw() const { return !fIsRootFile; }
349 virtual Bool_t IsOpen() const;
350 void ls(Option_t *option="") const override;
351 virtual void MakeFree(Long64_t first, Long64_t last);
352 virtual void MakeProject(const char *dirname, const char *classes="*",
353 Option_t *option="new"); // *MENU*
354
355 /// Traverses all TKeys in the TFile and returns information about them.
357
358 virtual void Map(Option_t *opt); // *MENU*
359 virtual void Map() { Map(""); }; // *MENU*
360 virtual Bool_t Matches(const char *name);
361 virtual Bool_t MustFlush() const {return fMustFlush;}
362 void Paint(Option_t *option="") override;
363 void Print(Option_t *option="") const override;
365 virtual Bool_t ReadBuffer(char *buf, Int_t len);
366 virtual Bool_t ReadBuffer(char *buf, Long64_t pos, Int_t len);
367 virtual Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf);
368 virtual void ReadFree();
370 virtual void ReadStreamerInfo();
371 virtual Int_t Recover();
372 virtual Int_t ReOpen(Option_t *mode);
373 virtual void Seek(Long64_t offset, ERelativeTo pos = kBeg);
374 virtual void SetCacheRead(TFileCacheRead *cache, TObject *tree = nullptr, ECacheAction action = kDisconnect);
375 virtual void SetCacheWrite(TFileCacheWrite *cache);
379 virtual void SetEND(Long64_t last) { fEND = last; }
380 virtual void SetOffset(Long64_t offset, ERelativeTo pos = kBeg);
381 virtual void SetOption(Option_t *option=">") { fOption = option; }
383 virtual void ShowStreamerInfo();
384 Int_t Sizeof() const override;
385 void SumBuffer(Int_t bufsize);
386 virtual Bool_t WriteBuffer(const char *buf, Int_t len);
387 Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsize=0) override;
388 Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsize=0) const override;
389 virtual void WriteFree();
390 virtual void WriteHeader();
391 virtual UShort_t WriteProcessID(TProcessID *pid);
392 virtual void WriteStreamerInfo();
393
394 static TFileOpenHandle
395 *AsyncOpen(const char *name, Option_t *option = "",
397 Int_t netopt = 0);
398 static TFile *Open(const char *name, Option_t *option = "",
400 Int_t netopt = 0);
401 static TFile *Open(TFileOpenHandle *handle);
402
403 static EFileType GetType(const char *name, Option_t *option = "", TString *prefix = nullptr);
404
405 static EAsyncOpenStatus GetAsyncOpenStatus(const char *name);
406 static EAsyncOpenStatus GetAsyncOpenStatus(TFileOpenHandle *handle);
407 static const TUrl *GetEndpointUrl(const char *name);
408
409 static Long64_t GetFileBytesRead();
411 static Int_t GetFileReadCalls();
412 static Int_t GetReadaheadSize();
413
414 static void SetFileBytesRead(Long64_t bytes = 0);
415 static void SetFileBytesWritten(Long64_t bytes = 0);
416 static void SetFileReadCalls(Int_t readcalls = 0);
417 static void SetReadaheadSize(Int_t bufsize = 256000);
420
421 static Long64_t GetFileCounter();
422 static void IncrementFileCounter();
423
426 static const char *GetCacheFileDir();
428 static Bool_t Cp(const char *src, const char *dst, Bool_t progressbar = kTRUE,
429 UInt_t buffersize = 1000000);
430
431 static UInt_t SetOpenTimeout(UInt_t timeout); // in ms
432 static UInt_t GetOpenTimeout(); // in ms
434 static Bool_t GetOnlyStaged();
435
436 ClassDefOverride(TFile,8) //ROOT file
437};
438
439#define gFile (TFile::CurrentFile())
440
441/**
442\class TFileOpenHandle
443\ingroup IO
444Class holding info about the file being opened
445*/
446class TFileOpenHandle : public TNamed {
447
448friend class TFile;
449
450private:
451 TString fOpt; ///< Options
452 Int_t fCompress{0}; ///< Compression level and algorithm
453 Int_t fNetOpt{0}; ///< Network options
454 TFile *fFile{nullptr}; ///< TFile instance of the file being opened
455
456 TFileOpenHandle(TFile *f) : TNamed("",""), fOpt(""), fCompress(ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault),
457 fNetOpt(0), fFile(f) { }
458 TFileOpenHandle(const char *n, const char *o, const char *t, Int_t cmp,
459 Int_t no) : TNamed(n,t), fOpt(o), fCompress(cmp),
460 fNetOpt(no), fFile(nullptr) { }
463
464 TFile *GetFile() const { return fFile; }
465
466public:
467 ~TFileOpenHandle() override { }
468
469 Bool_t Matches(const char *name);
470
471 const char *GetOpt() const { return fOpt; }
472 Int_t GetCompress() const { return fCompress; }
473 Int_t GetNetOpt() const { return fNetOpt; }
474};
475
476//______________________________________________________________________________
478{
479 return (fCompress < 0) ? -1 : fCompress / 100;
480}
481
482//______________________________________________________________________________
484{
485 return (fCompress < 0) ? -1 : fCompress % 100;
486}
487
488//______________________________________________________________________________
490{
491 return (fCompress < 0) ? -1 : fCompress;
492}
493
494#endif
#define f(i)
Definition RSha256.hxx:104
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
bool Bool_t
Boolean (0=false, 1=true) (bool)
Definition RtypesCore.h:77
unsigned short UShort_t
Unsigned Short integer 2 bytes (unsigned short)
Definition RtypesCore.h:54
int Int_t
Signed integer 4 bytes (int)
Definition RtypesCore.h:59
short Version_t
Class version identifier (short)
Definition RtypesCore.h:79
char Char_t
Character 1 byte (char)
Definition RtypesCore.h:51
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
Definition RtypesCore.h:68
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
Definition RtypesCore.h:60
float Float_t
Float 4 bytes (float)
Definition RtypesCore.h:71
short Short_t
Signed Short integer 2 bytes (short)
Definition RtypesCore.h:53
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
long long Long64_t
Portable signed long integer 8 bytes.
Definition RtypesCore.h:83
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
const char Option_t
Option string (const char)
Definition RtypesCore.h:80
#define BIT(n)
Definition Rtypes.h:91
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t bytes
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
char name[80]
Definition TGX11.cxx:110
std::optional< TKeyMapNode > fCur
Definition TFile.h:88
std::optional< TKeyMapNode > Next()
Definition TFile.cxx:1628
bool operator!=(const iterator &rh) const
Definition TFile.h:118
TIterator(TFile *file, std::uint64_t addr)
Definition TFile.cxx:1621
std::input_iterator_tag iterator_category
Definition TFile.h:103
bool operator==(const iterator &rh) const
Definition TFile.h:119
TIterator begin() const
Definition TFile.h:124
TKeyMapIterable(TFile *file)
Definition TFile.h:122
TIterator end() const
Definition TFile.h:125
This class is a thread-safe associative collection connecting a 256 bits digest/hash to a collection ...
Class describing an archive file containing multiple sub-files, like a ZIP or TAR archive.
Array of chars or bytes (8 bits per element).
Definition TArrayC.h:27
Manages buffers for branches of a Tree.
Definition TBasket.h:34
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:84
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
A ROOT file is structured in Directories (like a file system).
Describe directory structure in memory.
Definition TDirectory.h:45
A cache when reading files over the network.
A cache when writing files over the network.
Class holding info about the file being opened.
Definition TFile.h:446
TFile * fFile
TFile instance of the file being opened.
Definition TFile.h:454
Int_t fNetOpt
Network options.
Definition TFile.h:453
TFileOpenHandle(TFile *f)
Definition TFile.h:456
TString fOpt
Options.
Definition TFile.h:451
TFileOpenHandle(const char *n, const char *o, const char *t, Int_t cmp, Int_t no)
Definition TFile.h:458
Int_t GetNetOpt() const
Definition TFile.h:473
TFileOpenHandle & operator=(const TFileOpenHandle &)=delete
TFile * GetFile() const
Definition TFile.h:464
Int_t fCompress
Compression level and algorithm.
Definition TFile.h:452
const char * GetOpt() const
Definition TFile.h:471
TFileOpenHandle(const TFileOpenHandle &)=delete
Bool_t Matches(const char *name)
Return kTRUE if this async request matches the open request specified by 'url'.
Definition TFile.cxx:4474
~TFileOpenHandle() override
Definition TFile.h:467
Int_t GetCompress() const
Definition TFile.h:472
The prefetching mechanism uses two classes (TFilePrefetch and TFPBlock) to prefetch in advance a bloc...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Definition TFile.h:130
static std::atomic< Long64_t > fgBytesRead
Number of bytes read by all TFile objects.
Definition TFile.h:161
Int_t fReadCalls
Number of read calls ( not counting the cache calls )
Definition TFile.h:167
static void SetFileBytesWritten(Long64_t bytes=0)
Definition TFile.cxx:4295
static Bool_t fgCacheFileForce
Indicates, to force all READ to CACHEREAD.
Definition TFile.h:204
Long64_t fBytesRead
Number of bytes read from this file.
Definition TFile.h:154
virtual Long64_t GetSeekFree() const
Definition TFile.h:340
virtual TProcessID * ReadProcessID(UShort_t pidf)
The TProcessID with number pidf is read from this file.
Definition TFile.cxx:1981
void ls(Option_t *option="") const override
List file contents.
Definition TFile.cxx:1446
ROOT::Detail::TKeyMapIterable WalkTKeys()
Traverses all TKeys in the TFile and returns information about them.
Definition TFile.cxx:1616
virtual void Seek(Long64_t offset, ERelativeTo pos=kBeg)
Seek to a specific position in the file. Pos it either kBeg, kCur or kEnd.
Definition TFile.cxx:2304
static Bool_t GetOnlyStaged()
Returns staged only flag.
Definition TFile.cxx:4438
static void IncrementFileCounter()
Definition TFile.cxx:4304
static Bool_t ShrinkCacheFileDir(Long64_t shrinkSize, Long_t cleanupInteval=0)
Try to shrink the cache to the desired size.
Definition TFile.cxx:4350
Long64_t fSeekFree
Location on disk of free segments structure.
Definition TFile.h:158
static Int_t fgReadaheadSize
Readahead buffer size.
Definition TFile.h:212
void FillBuffer(char *&buffer) override
Encode file output buffer.
Definition TFile.cxx:1159
Double_t fSum2Buffer
Sum of squares of buffer sizes of objects written so far.
Definition TFile.h:152
static void SetReadaheadSize(Int_t bufsize=256000)
Definition TFile.cxx:4289
static Bool_t fgCacheFileDisconnected
Indicates, we trust in the files in the cache dir without stat on the cached file.
Definition TFile.h:203
const TList * GetStreamerInfoCache()
Returns the cached list of StreamerInfos used in this file.
Definition TFile.cxx:1355
Int_t GetVersion() const
Definition TFile.h:333
static Bool_t GetReadStreamerInfo()
If the streamerinfos are to be read at file opening.
Definition TFile.cxx:3418
TArchiveFile * fArchive
!Archive file from which we read this file
Definition TFile.h:175
virtual Int_t SysSync(Int_t fd)
Interface to system fsync. All arguments like in POSIX fsync().
Definition TFile.cxx:4236
virtual Long64_t DirCreateEntry(TDirectory *)
Definition TFile.h:241
virtual Int_t ReOpen(Option_t *mode)
Reopen a file with a different access mode.
Definition TFile.cxx:2192
virtual void ReadStreamerInfo()
Read the list of StreamerInfo from this file.
Definition TFile.cxx:3281
virtual Bool_t Matches(const char *name)
Return kTRUE if 'url' matches the coordinates of this file.
Definition TFile.cxx:4450
Bool_t IsBinary() const
Definition TFile.h:347
Bool_t IsRaw() const
Definition TFile.h:348
virtual void SetCacheRead(TFileCacheRead *cache, TObject *tree=nullptr, ECacheAction action=kDisconnect)
Set a pointer to the read cache.
Definition TFile.cxx:2395
TArrayC * fClassIndex
!Index of TStreamerInfo classes written to this file
Definition TFile.h:172
static Long64_t GetFileBytesWritten()
Static function returning the total number of bytes written to all files.
Definition TFile.cxx:4267
virtual InfoListRet GetStreamerInfoListImpl(bool lookupSICache)
See documentation of GetStreamerInfoList for more details.
Definition TFile.cxx:1365
Int_t GetCompressionSettings() const
Definition TFile.h:489
static void SetReadStreamerInfo(Bool_t readinfo=kTRUE)
Specify if the streamerinfos must be read at file opening.
Definition TFile.cxx:3408
Bool_t fNoAnchorInName
!True if we don't want to force the anchor to be appended to the file name
Definition TFile.h:181
virtual Int_t DirReadKeys(TDirectory *)
Definition TFile.h:242
static void SetFileBytesRead(Long64_t bytes=0)
Definition TFile.cxx:4292
TArrayC * GetClassIndex() const
Definition TFile.h:314
Long64_t fSeekInfo
Location on disk of StreamerInfo record.
Definition TFile.h:159
void Paint(Option_t *option="") override
Paint all objects in the file.
Definition TFile.cxx:1728
TList * GetListOfFree() const
Definition TFile.h:325
Int_t GetBestBuffer() const
Return the best buffer size of objects on this file.
Definition TFile.cxx:1172
TList * fOpenPhases
!Time info about open phases
Definition TFile.h:191
virtual void SetCompressionLevel(Int_t level=ROOT::RCompressionSetting::ELevel::kUseMin)
See comments for function SetCompressionSettings.
Definition TFile.cxx:2349
TFileCacheWrite * GetCacheWrite() const
Return a pointer to the current write cache.
Definition TFile.cxx:1268
static void SetFileReadCalls(Int_t readcalls=0)
Definition TFile.cxx:4298
static TString fgCacheFileDir
Directory where to locally stage files.
Definition TFile.h:202
virtual Int_t SysRead(Int_t fd, void *buf, Int_t len)
Interface to system read. All arguments like in POSIX read().
Definition TFile.cxx:4190
Int_t fVersion
File format version.
Definition TFile.h:161
void Print(Option_t *option="") const override
Print all objects in the file.
Definition TFile.cxx:1736
static std::atomic< Long64_t > fgFileCounter
Counter for all opened files.
Definition TFile.h:163
virtual EAsyncOpenStatus GetAsyncOpenStatus()
Definition TFile.h:215
static UInt_t GetOpenTimeout()
Returns open timeout (in ms).
Definition TFile.cxx:4418
void Copy(TObject &) const override
Copy this to obj.
Definition TFile.h:297
static void CpProgress(Long64_t bytesread, Long64_t size, TStopwatch &watch)
Print file copy progress.
Definition TFile.cxx:4660
Long64_t GetArchiveOffset() const
Definition TFile.h:309
static Bool_t fgOnlyStaged
Before the file is opened, it is checked, that the file is staged, if not, the open fails.
Definition TFile.h:206
virtual Int_t GetNProcessIDs() const
Definition TFile.h:327
Bool_t fMustFlush
!True if the file buffers must be flushed
Definition TFile.h:184
TUrl fUrl
!URL of file
Definition TFile.h:188
Int_t WriteBufferViaCache(const char *buf, Int_t len)
Write buffer via cache.
Definition TFile.cxx:2549
static Long64_t GetFileBytesRead()
Static function returning the total number of bytes read from all files.
Definition TFile.cxx:4258
Int_t ReadBufferViaCache(char *buf, Int_t len)
Read buffer via cache.
Definition TFile.cxx:1919
void operator=(const TFile &)=delete
virtual TKey * CreateKey(TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize)
Creates key for object and converts data to buffer.
Definition TFile.cxx:1055
virtual void Map()
Definition TFile.h:359
virtual void WriteFree()
Write FREE linked list on the file.
Definition TFile.cxx:2573
static Int_t GetReadaheadSize()
Static function returning the readahead buffer size.
Definition TFile.cxx:4283
~TFile() override
File destructor.
Definition TFile.cxx:566
virtual Bool_t ReadBuffers(char *buf, Long64_t *pos, Int_t *len, Int_t nbuf)
Read the nbuf blocks described in arrays pos and len.
Definition TFile.cxx:1851
static Long64_t GetFileCounter()
Definition TFile.cxx:4301
TMap * fCacheReadMap
!Pointer to the read cache (if any)
Definition TFile.h:177
Long64_t fBEGIN
First used byte in file.
Definition TFile.h:156
virtual UShort_t WriteProcessID(TProcessID *pid)
Check if the ProcessID pidd is already in the file, if not, add it and return the index number in the...
Definition TFile.cxx:3439
virtual void MakeProject(const char *dirname, const char *classes="*", Option_t *option="new")
Generate source code necessary to access the objects stored in the file.
Definition TFile.cxx:2756
Long64_t fArchiveOffset
!Offset at which file starts in archive
Definition TFile.h:179
EOpenTimeOut
Open timeout constants.
Definition TFile.h:145
@ kInstantTimeout
Definition TFile.h:145
@ kEternalTimeout
Definition TFile.h:145
Int_t fNbytesInfo
Number of bytes for StreamerInfo record.
Definition TFile.h:164
virtual Long64_t GetSize() const
Returns the current file size.
Definition TFile.cxx:1336
Int_t GetFd() const
Definition TFile.h:322
virtual Bool_t IsOpen() const
Returns kTRUE in case file is open and kFALSE if file is not open.
Definition TFile.cxx:1458
TFileOpenHandle * fAsyncHandle
!For proper automatic cleanup
Definition TFile.h:186
static Bool_t SetOnlyStaged(Bool_t onlystaged)
Sets only staged flag.
Definition TFile.cxx:4428
virtual Int_t GetReadCalls() const
Definition TFile.h:332
virtual Bool_t Cp(const char *dst, Bool_t progressbar=kTRUE, UInt_t bufsize=1000000)
Allows to copy this file to the dst URL.
Definition TFile.cxx:4688
virtual TString GetNewUrl()
Definition TFile.h:338
Int_t Write(const char *name=nullptr, Int_t opt=0, Int_t bufsize=0) override
Write memory objects to this file.
Definition TFile.cxx:2466
virtual Long64_t GetBytesRead() const
Definition TFile.h:329
virtual Int_t GetErrno() const
Method returning errno.
Definition TFile.cxx:1235
virtual void SetCompressionSettings(Int_t settings=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault)
Used to specify the compression level and algorithm.
Definition TFile.cxx:2368
Int_t GetCompressionLevel() const
Definition TFile.h:483
static Bool_t fgReadInfo
if true (default) ReadStreamerInfo is called when opening a file
Definition TFile.h:213
virtual void Init(Bool_t create)
Initialize a TFile object.
Definition TFile.cxx:616
TFile(const TFile &)=delete
Long64_t GetRelOffset() const
Definition TFile.h:339
virtual void SetReadCalls(Int_t readcalls=0)
Definition TFile.h:382
static TFileOpenHandle * AsyncOpen(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Submit an asynchronous open request.
Definition TFile.cxx:4035
virtual void SetCacheWrite(TFileCacheWrite *cache)
Set a pointer to the write cache.
Definition TFile.cxx:2418
TString fOption
File options.
Definition TFile.h:169
virtual Int_t GetNfree() const
Definition TFile.h:326
virtual Long64_t GetEND() const
Definition TFile.h:319
virtual Bool_t WriteBuffer(const char *buf, Int_t len)
Write a buffer to the file.
Definition TFile.cxx:2506
void SumBuffer(Int_t bufsize)
Increment statistics for buffer sizes of objects in this file.
Definition TFile.cxx:2447
static const char * GetCacheFileDir()
Get the directory where to locally stage/cache remote files.
Definition TFile.cxx:4338
EAsyncOpenStatus
Asynchronous open request status.
Definition TFile.h:142
@ kAOSSuccess
Definition TFile.h:143
@ kAOSNotAsync
Definition TFile.h:142
@ kAOSInProgress
Definition TFile.h:143
@ kAOSFailure
Definition TFile.h:142
virtual void WriteStreamerInfo()
Write the list of TStreamerInfo as a single object in this file The class Streamer description for al...
Definition TFile.cxx:3468
virtual Long64_t GetBytesWritten() const
Return the total number of bytes written so far to the file.
Definition TFile.cxx:4250
ERelativeTo
Definition TFile.h:277
@ kCur
Definition TFile.h:277
@ kBeg
Definition TFile.h:277
@ kEnd
Definition TFile.h:277
virtual Long64_t GetSeekInfo() const
Definition TFile.h:341
Int_t fCompress
Compression level and algorithm.
Definition TFile.h:162
virtual Int_t GetNbytesFree() const
Definition TFile.h:337
virtual Bool_t IsArchive() const
Definition TFile.h:346
static TFile *& CurrentFile()
Return the current ROOT file if any.
Definition TFile.cxx:1075
virtual void SetEND(Long64_t last)
Definition TFile.h:379
virtual void SetCompressionAlgorithm(Int_t algorithm=ROOT::RCompressionSetting::EAlgorithm::kUseGlobal)
See comments for function SetCompressionSettings.
Definition TFile.cxx:2335
virtual const TUrl * GetEndpointUrl() const
Definition TFile.h:323
Int_t fNbytesFree
Number of bytes for free segments structure.
Definition TFile.h:163
Int_t fD
File descriptor.
Definition TFile.h:160
virtual void ResetErrno() const
Method resetting the errno.
Definition TFile.cxx:1243
Int_t Sizeof() const override
Return the size in bytes of the file header.
Definition TFile.cxx:2427
Bool_t FlushWriteCache()
Flush the write cache if active.
Definition TFile.cxx:1147
virtual void IncrementProcessIDs()
Definition TFile.h:345
Bool_t fIsPcmFile
!True if the file is a ROOT pcm file.
Definition TFile.h:185
TFileCacheRead * fCacheRead
!Pointer to the read cache (if any)
Definition TFile.h:176
virtual Int_t SysClose(Int_t fd)
Interface to system close. All arguments like in POSIX close().
Definition TFile.cxx:4181
TFile()
File default Constructor.
Definition TFile.cxx:200
Char_t fUnits
Number of bytes for file pointers.
Definition TFile.h:170
TObjArray * fProcessIDs
!Array of pointers to TProcessIDs
Definition TFile.h:173
static EFileType GetType(const char *name, Option_t *option="", TString *prefix=nullptr)
Resolve the file type as a function of the protocol field in 'name'.
Definition TFile.cxx:4505
virtual void SetOption(Option_t *option=">")
Definition TFile.h:381
EFileType
File type.
Definition TFile.h:280
@ kWeb
Definition TFile.h:290
@ kDefault
Definition TFile.h:286
@ kLocal
Definition TFile.h:290
@ kMerge
Definition TFile.h:290
@ kNet
Definition TFile.h:290
@ kFile
Definition TFile.h:290
virtual void ShowStreamerInfo()
Show the StreamerInfo of all classes written to this file.
Definition TFile.cxx:3426
virtual Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
Interface to system lseek.
Definition TFile.cxx:4209
virtual Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
Return file stat information.
Definition TFile.cxx:4227
virtual Long64_t GetBytesReadExtra() const
Definition TFile.h:330
virtual Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Interface to system open. All arguments like in POSIX open().
Definition TFile.cxx:4165
ECacheAction
TTreeCache flushing semantics.
Definition TFile.h:148
@ kDoNotDisconnect
Definition TFile.h:148
@ kDisconnect
Definition TFile.h:148
static UInt_t SetOpenTimeout(UInt_t timeout)
Sets open timeout time (in ms). Returns previous timeout value.
Definition TFile.cxx:4408
virtual void ReadFree()
Read the FREE linked list.
Definition TFile.cxx:1955
static ROOT::Internal::RConcurrentHashColl fgTsSIHashes
!TS Set of hashes built from read streamer infos
Definition TFile.h:198
Long64_t fBytesReadExtra
Number of extra bytes (overhead) read by the readahead buffer.
Definition TFile.h:155
Long64_t fBytesWrite
Number of bytes written to this file.
Definition TFile.h:153
TArchiveFile * GetArchive() const
Definition TFile.h:308
Bool_t fIsRootFile
!True is this is a ROOT file, raw file otherwise
Definition TFile.h:182
virtual void Flush()
Synchronize a file's in-memory and on-disk states.
Definition TFile.cxx:1130
virtual void DirWriteKeys(TDirectory *)
Definition TFile.h:243
TList * fFree
Free segments linked list table.
Definition TFile.h:171
virtual Bool_t ReadBufferAsync(Long64_t offs, Int_t len)
Definition TFile.cxx:4879
std::mutex fWriteMutex
!Lock for writing baskets / keys into the file.
Definition TFile.h:196
void Delete(const char *namecycle="") override
Delete Objects or/and keys in the current directory.
Definition TFile.cxx:1087
Bool_t fInitDone
!True if the file has been initialized
Definition TFile.h:183
virtual void DrawMap(const char *keys="*", Option_t *option="")
Draw map of objects in this file.
Definition TFile.cxx:1117
virtual void DirWriteHeader(TDirectory *)
Definition TFile.h:244
virtual void MakeFree(Long64_t first, Long64_t last)
Mark unused bytes on the file.
Definition TFile.cxx:1473
TFileCacheWrite * fCacheWrite
!Pointer to the write cache (if any)
Definition TFile.h:178
TString fRealName
Effective real file name (not original url)
Definition TFile.h:168
virtual void SetOffset(Long64_t offset, ERelativeTo pos=kBeg)
Set position from where to start reading.
Definition TFile.cxx:2283
Long64_t fOffset
!Seek offset cache
Definition TFile.h:174
static std::atomic< Long64_t > fgBytesWrite
Number of bytes written by all TFile objects.
Definition TFile.h:162
virtual Int_t GetNbytesInfo() const
Definition TFile.h:336
TList * fInfoCache
!Cached list of the streamer infos in this file
Definition TFile.h:190
virtual Bool_t MustFlush() const
Definition TFile.h:361
virtual Int_t GetBytesToPrefetch() const
Max number of bytes to prefetch.
Definition TFile.cxx:4893
static UInt_t fgOpenTimeout
Timeout for open operations in ms - 0 corresponds to blocking i/o.
Definition TFile.h:205
Long64_t fEND
Last used byte in file.
Definition TFile.h:157
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Definition TFile.cxx:3765
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
Definition TFile.cxx:4310
EAsyncOpenStatus fAsyncOpenStatus
!Status of an asynchronous open request
Definition TFile.h:187
bool fGlobalRegistration
! if true, bypass use of global lists
Definition TFile.h:193
Double_t fSumBuffer
Sum of buffer sizes of objects written so far.
Definition TFile.h:151
Bool_t fIsArchive
!True if this is a pure archive file
Definition TFile.h:180
TObjArray * GetListOfProcessIDs() const
Definition TFile.h:324
void Close(Option_t *option="") override
Close a file.
Definition TFile.cxx:958
Int_t GetCompressionAlgorithm() const
Definition TFile.h:477
static std::atomic< Int_t > fgReadCalls
Number of bytes read from all TFile objects.
Definition TFile.h:164
virtual Int_t Recover()
Attempt to recover file if not correctly closed.
Definition TFile.cxx:2078
virtual TList * GetStreamerInfoList() final
Read the list of TStreamerInfo objects written to this file.
Definition TFile.cxx:1434
virtual void WriteHeader()
Write File Header.
Definition TFile.cxx:2645
EStatusBits
TFile status bits. BIT(13) is taken up by TObject.
Definition TFile.h:257
@ kRecovered
Definition TFile.h:265
@ kReproducible
Definition TFile.h:271
@ kDevNull
Definition TFile.h:267
@ kCancelTTreeChangeRequest
Definition TFile.h:275
@ kHasReferences
Definition TFile.h:266
@ kRedirected
Definition TFile.h:270
@ k630forwardCompatibility
Definition TFile.h:264
@ kWriteError
Definition TFile.h:268
@ kBinaryFile
Definition TFile.h:269
@ kStartBigFile
Definition TFile.h:278
static TFile * OpenFromCache(const char *name, Option_t *="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Open a file for reading through the file cache.
Definition TFile.cxx:3550
Int_t fNProcessIDs
Number of TProcessID written to this file.
Definition TFile.h:166
Int_t fWritten
Number of objects written so far.
Definition TFile.h:165
Int_t GetRecordHeader(char *buf, Long64_t first, Int_t maxbytes, Int_t &nbytes, Int_t &objlen, Int_t &keylen)
Read the logical record header starting at a certain postion.
Definition TFile.cxx:1290
virtual Bool_t ReadBuffer(char *buf, Int_t len)
Read a buffer from the file.
Definition TFile.cxx:1800
Float_t GetCompressionFactor()
Return the file compression factor.
Definition TFile.cxx:1191
virtual Int_t SysWrite(Int_t fd, const void *buf, Int_t len)
Interface to system write. All arguments like in POSIX write().
Definition TFile.cxx:4198
static Int_t GetFileReadCalls()
Static function returning the total number of read calls from all files.
Definition TFile.cxx:4275
TFileCacheRead * GetCacheRead(const TObject *tree=nullptr) const
Return a pointer to the current read cache.
Definition TFile.cxx:1251
Option_t * GetOption() const override
Definition TFile.h:328
static TList * fgAsyncOpenRequests
Definition TFile.h:200
Service class for TFile.
Definition TFree.h:27
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Definition TKey.h:28
A doubly linked list.
Definition TList.h:38
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition TMap.h:40
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
An array of TObjects.
Definition TObjArray.h:31
Mother of all ROOT objects.
Definition TObject.h:42
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition TObject.h:204
void MayNotUse(const char *method) const
Use this method to signal that a method (defined in a base class) may not be called in a derived clas...
Definition TObject.cxx:1151
A TProcessID identifies a ROOT job in a unique way in time and space.
Definition TProcessID.h:74
Stopwatch class.
Definition TStopwatch.h:28
Basic string class.
Definition TString.h:138
const char * Data() const
Definition TString.h:384
This class represents a WWW compatible URL.
Definition TUrl.h:33
const Int_t n
Definition legend1.C:16
Special implementation of ROOT::RRangeCast for TCollection, including a check that the cast target ty...
Definition TObject.h:392
std::string fClassName
Definition TFile.h:74
std::uint64_t fAddr
Definition TFile.h:62
std::uint32_t fLen
Definition TFile.h:64
TKeyMapNode(std::uint64_t addr, EType type, std::uint32_t len=0)
Definition TFile.h:79
Version_t fKeyVersion
Definition TFile.h:67
std::string fKeyName
Definition TFile.h:75
std::string fKeyTitle
Definition TFile.h:76
@ kUseGlobal
Use the global compression algorithm.
Definition Compression.h:93
@ kUseCompiledDefault
Use the compile-time default setting.
Definition Compression.h:53
@ kUseMin
Compression level reserved when we are not sure what to use (1 is for the fastest compression)
Definition Compression.h:72
Simple struct of the return value of GetStreamerInfoListImpl.
Definition TFile.h:223
Int_t fReturnCode
Definition TFile.h:225
ROOT::Internal::RConcurrentHashColl::HashValue fHash
Definition TFile.h:226
TList * fList
Definition TFile.h:224
th1 Draw()