KaliVeda
Toolkit for HIC analysis
KVRunListCreator.h
1 #ifndef __KVRunListCreator_H
2 #define __KVRunListCreator_H
3 
4 #include "KVUniqueNameList.h"
5 #include "TString.h"
6 #include "KVRawDataReader.h"
7 
15 
19 
21  std::unique_ptr<KVRawDataReader> fReader;
22 
23 public:
24 
25  KVRunListCreator(const TString& dir, const TString& datatype = "", const TString& fmt = "");
26  virtual ~KVRunListCreator() {}
27 
28  const Char_t* GetRunDir()
29  {
30  return fRunSheetDir;
31  }
32  void SetRunDir(const Char_t* dir)
33  {
34  fRunSheetDir = dir;
35  }
37  {
38  return fFileFormat;
39  }
40  void SetFileFormat(const Char_t* fmt)
41  {
42  fFileFormat = fmt;
43  }
46  {
47  return fRunInfos;
48  }
49 
50  ClassDef(KVRunListCreator, 0)//Set up a list of runs from a directory containing data files
51 };
52 
53 #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()
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
std::unique_ptr< KVRawDataReader > fReader
TString fFileFormat
format string for run file names
Optimised list in which named objects can only be placed once.