4 #include "KVExpSetUpDB.h"
6 #include "KVMultiDetArray.h"
78 Info(
"Build",
"No informations on dataset runs available");
79 Info(
"Build",
"Dummy database runs numbered from 1 to 100 will be created");
80 for (
int i = 1; i <= 100; ++i) {
105 if (runinfos ==
"")
return;
107 Info(
"ReadScalerInfos",
"Reading scaler infos from %s", runinfos.Data());
108 TFile runinfos_file(runinfos);
111 while ((run = (
KVDBRun*)it_run())) {
115 for (
int i = 0; i < npar; i += 2) {
117 parname.Remove(parname.Index(
"_hi"), 3);
146 throw std::runtime_error(
"run infos file not found");
148 Info(
"FillRunsTable",
"Reading run infos from %s", runinfos.Data());
149 TFile runinfos_file(runinfos);
150 TIter it(runinfos_file.GetListOfKeys());
153 while ((run_key = (TKey*)it())) {
154 if (TString(run_key->GetClassName()) ==
"KVNameValueList") {
156 if (run_key->GetCycle() == runinfos_file.GetKey(run_key->GetName())->GetCycle()) {
virtual Int_t GetNumber() const
Description of an experimental run in database ,,.
void SetEvents(ULong64_t evt_number)
virtual void SetScaler64(const Char_t *name, ULong64_t val)
Set value for 64-bit scaler with the given name for this run.
void SetStartDate(const KVString &date)
void SetEndDate(const KVString &d)
TString GetFullPathToDataSetFile(const Char_t *filename)
Base class to describe database of an experiment ,,.
virtual void ReadComments()
virtual void ReadSystemList()
virtual KVSeqCollection * GetRuns() const
TString fDataSet
the name of the dataset to which this database is associated
Calibration database for experiments using coupled detector arrays.
KVExpSetUpDB()
Default constructor.
virtual ~KVExpSetUpDB()
Destructor.
Extended TList class which owns its objects by default.
virtual void MakeCalibrationTables(KVExpDB *)
static KVMultiDetArray * MakeMultiDetector(const Char_t *dataset_name, Int_t run=-1, TString classname="KVMultiDetArray")
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
KVNamedParameter * GetParameter(Int_t idx) const
return the parameter object with index idx
Int_t GetIntValue(const Char_t *name) const
Bool_t HasValue64bit(const Char_t *name) const
Int_t GetNpar() const
return the number of stored parameters
ULong64_t GetValue64bit(const Char_t *name) const
const Char_t * GetStringValue(const Char_t *name) const
virtual void Add(TObject *obj)