7 #include "KVDataBase.h"
9 #include "KVNumberList.h"
31 Bool_t
OpenCalibFile(
const Char_t* type, std::ifstream& fs)
const;
39 KVExpDB(
const Char_t* name,
const Char_t* title);
41 Bool_t
FindCalibFile(
const Char_t* type, TString& fullpath,
const TString& array_name =
"")
const;
58 UInt_t run_ranges[][2]);
60 UInt_t run_ranges[][2]);
106 virtual void Save(
const Char_t*);
108 virtual TString
GetDBEnv(
const Char_t*)
const;
146 AbstractMethod(
"Build");
Record folder for the database.
virtual Int_t GetNumber() const
Description of an experimental run in database ,,.
Database class used to store information on different colliding systems studied during an experiment....
virtual Bool_t AddRecord(KVDBRecord *add)
virtual void RemoveRecord(KVDBRecord *add)
Remove a KVDBRecord from the list of available records.
virtual KVDBRecord * GetRecord(const Char_t *rec_name) const
virtual KVSeqCollection * GetRecords() const
Simple cross-referenced database structure.
Base class to describe database of an experiment ,,.
KVNumberList fListOfRuns
list of all run numbers
void AddSystem(KVDBSystem *r)
virtual ~KVExpDB()
Destructor.
virtual KVDBSystem * GetSystem(const Char_t *system) const
virtual void ReadComments()
virtual void ReadSystemList()
KVDBTable * fRuns
table of runs
void SetDBType(const TString &s)
virtual void LinkRecordToRun(KVDBRecord *rec, Int_t run)
KVDBRun * GetDBRun(Int_t number) const
virtual KVSeqCollection * GetRuns() const
void RemoveSystem(KVDBSystem *s)
TString GetCalibFileName(const Char_t *type) const
TString GetDBType() const
virtual void LinkListToRunRanges(TList *list, UInt_t rr_number, UInt_t run_ranges[][2])
Link the records contained in the list to the set of runs (see LinkRecordToRunRanges).
KVDBTable * fSystems
table of systems
const KVNumberList & GetRunList() const
virtual void PrintRuns(KVNumberList &) const
ULong64_t GetTotalEvents(int first_run, int last_run=-1) const
virtual KVSeqCollection * GetSystems() const
virtual void Save(const Char_t *)
TString fDBType
used by GetDBEnv
virtual void LinkRecordToRunRanges(KVDBRecord *rec, UInt_t rr_number, UInt_t run_ranges[][2])
virtual void LinkListToRunRange(TList *list, const KVNumberList &nl)
Link the records contained in the list to the set of runs (see LinkRecordToRunRanges).
void WriteSystemsFile() const
KVExpDB()
Default constructor.
const Char_t * GetDataSetDir() const
void init()
default initialisations
virtual void WriteObjects(TFile *)
virtual void LinkRecordToRunRange(KVDBRecord *rec, UInt_t first_run, UInt_t last_run)
virtual void ReadObjects(TFile *)
TString fDataSetDir
the directory containing the dataset files
void SetDataSet(const TString &s)
void SetDataSetDir(const Char_t *d)
static KVExpDB * MakeDataBase(const Char_t *name, const Char_t *datasetdir)
void WriteRunListFile() const
virtual TString GetDBEnv(const Char_t *) const
Bool_t OpenCalibFile(const Char_t *type, std::ifstream &fs) const
TString fDataSet
the name of the dataset to which this database is associated
Bool_t FindCalibFile(const Char_t *type, TString &fullpath, const TString &array_name="") const
Strings used to represent a set of ranges of values.
void Add(Int_t)
Add value 'n' to the list.
KaliVeda extensions to ROOT collection classes.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....