KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVRunListCreator.h
Go to the documentation of this file.
1 #ifndef __KVRunListCreator_H
2 #define __KVRunListCreator_H
3 
4 #include "KVUniqueNameList.h"
5 #include "TString.h"
6 #include "KVRawDataReader.h"
7 
14 
18 
20  unique_ptr<KVRawDataReader> fReader;
21 
22 public:
23 
24  KVRunListCreator(const TString& dir, const TString& datatype = "", const TString& fmt = "");
25  virtual ~KVRunListCreator() {}
26 
27  const Char_t* GetRunDir()
28  {
29  return fRunSheetDir;
30  }
31  void SetRunDir(const Char_t* dir)
32  {
33  fRunSheetDir = dir;
34  }
36  {
37  return fFileFormat;
38  }
39  void SetFileFormat(const Char_t* fmt)
40  {
41  fFileFormat = fmt;
42  }
45  {
46  return fRunInfos;
47  }
48 
49  ClassDef(KVRunListCreator, 0)//Set up a list of runs from a directory containing data files
50 };
51 
52 #endif
int Int_t
char Char_t
#define ClassDef(name, id)
Set up a list of runs from a directory containing data files.
TString fDataType
type of data (KVRawDataReader plugin name)
KVUniqueNameList fRunInfos
virtual ~KVRunListCreator()
const Char_t * GetFileFormat()
unique_ptr< KVRawDataReader > fReader
void SetFileFormat(const Char_t *fmt)
KVRunListCreator(const TString &dir, const TString &datatype="", const TString &fmt="")
TString fRunSheetDir
full path to directory holding runs
void SetRunDir(const Char_t *dir)
Int_t ScanDirectory()
Return number of runs found.
const Char_t * GetRunDir()
const KVUniqueNameList & GetRunInfos() const
TString fFileFormat
format string for run file names
Optimised list in which named objects can only be placed once.