7 #include "KVDataBase.h"
9 #include "KVNumberList.h"
10 #include "run_index.h"
71 int index_multiplier = 1;
72 bool with_index_multiplier =
false;
73 bool raw_files_have_index =
false;
74 mutable std::map<int, run_index_t> fMapGlobRunFileNumberToRunIndex;
75 bool minimal_db =
false;
78 virtual void ReadSystemList();
79 virtual void ReadComments();
82 void refill_list_of_runs()
90 fListOfRuns.
Add(
r->GetNumber());
93 void read_beams_targets_reactions();
95 virtual void make_minimal_database()
99 virtual void extend_minimal_database()
138 fListOfRuns.
Add(
r->GetNumber());
161 const_cast<KVExpDB*
>(
this)->refill_list_of_runs();
229 make_minimal_database();
235 extend_minimal_database();
242 extend_minimal_database();
246 KVError::Warning(
this,
"CompleteDataBase",
"Called for a non-minimal database: ignored");
256 return raw_files_have_index;
260 return with_index_multiplier;
264 return index_multiplier;
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
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
Record folder for the database.
A single raw data file associated with an experimental run ,,.
Description of an experimental run in database ,,.
KVDBRunFile & GetRunFile(const run_index_t &run_index)
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 ,,.
void AddSystem(KVDBSystem *r)
run_index_t GetRunIndexFromGlobalRunFileNumber(int glob_runfile) const
virtual ~KVExpDB()
Destructor.
virtual KVDBSystem * GetSystem(const Char_t *system) const
void SetDBType(const TString &s)
void Build(bool minimal=false)
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).
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 *)
const KVDBRunFile & GetDBRunFile(const run_index_t &r) const
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
KVDBRunFile & GetDBRunFile(const run_index_t &r)
KVExpDB()
Default constructor.
const Char_t * GetDataSetDir() const
virtual void WriteObjects(TFile *)
virtual void LinkRecordToRunRange(KVDBRecord *rec, UInt_t first_run, UInt_t last_run)
Int_t GetIndexMultiplier() const
run_index_list SetRunIndexListFromString(const TString &, bool interpret_run_number_as_whole_run=false) const
virtual void ReadObjects(TFile *)
void SetDataSet(const TString &s)
Bool_t HasIndexMultiplier() const
void SetDataSetDir(const Char_t *d)
void WriteRunListFile() const
virtual TString GetDBEnv(const Char_t *) const
static KVExpDB * MakeDataBase(const Char_t *name, const Char_t *datasetdir, Bool_t minimal=false)
Bool_t HasRawFilesWithIndex() const
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....
void AbstractMethod(const char *method) const
List of runfiles specified by run number and file index ,.
Specifies a runfile according to run number and file index ,.
unsigned long long ULong64_t
void Warning(UserClass p, const char *location, const char *va_(fmt),...)