23 if (fmt !=
"") SetFileFormat(fmt);
24 else SetFileFormat(
gEnv->
GetValue(
"DataSet.RunFileName.raw",
"run_%04d.dat%*"));
28 TFile f(
"runinfos.root",
"recreate");
29 GetRunInfos().Write();
66 if (
fReader->GetRunInfos().HasStringParameter(
"FileCreationTime")) {
70 while (
fReader->GetNextEvent()) ++events;
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char * Form(const char *fmt,...)
Bool_t ExtractDateFromFileName(const Char_t *name, KVDatime &date)
Int_t IsRunFileName(const Char_t *filename)
Extension of TDatime to handle various useful date formats.
void SetGanacqNarvalDate(const Char_t *GanacqDateString)
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
virtual void ls(Option_t *opt="") const
void SetValue(const Char_t *name, value_type value)
void SetValue64bit(const Char_t *name, ULong64_t)
static KVRawDataReader * OpenFile(const TString &type, const TString &filename)
Set up a list of runs from a directory containing data files.
TString fDataType
type of data (KVRawDataReader plugin name)
KVUniqueNameList fRunInfos
const Char_t * GetFileFormat()
unique_ptr< KVRawDataReader > fReader
Int_t ScanDirectory()
Return number of runs found.
const Char_t * GetRunDir()
Extension of ROOT TSystemDirectory class, handling browsing directories on disk.
virtual TList * GetListOfFiles() const
Extended ROOT TSystemFile with added info on file size etc.
const Char_t * GetDate() const
virtual void Add(TObject *obj)
const char * AsSQLString() const
virtual const char * GetValue(const char *name, const char *dflt) const
virtual const char * GetName() const
virtual const char * GetTitle() const
virtual void SetName(const char *name)
unsigned long long ULong64_t