12 #include "KVDBRecord.h"
13 #include "KVDBSystem.h"
17 #include "KVNameValueList.h"
18 #include "KVDBRunFile.h"
19 #include "run_index_list.h"
79 throw std::runtime_error(
Form(
"<KVDBRun::GetRunFile>: no file for run_index_t %s", run_index.
as_string().
Data()));
88 throw std::runtime_error(
Form(
"<KVDBRun::GetRunFile>: no file for run_index_t %s", run_index.
as_string().
Data()));
129 if (!rf.IsBad())
return rf;
146 if (!rf.IsBad())
return rf;
166 not_bad += !rf->
IsBad();
205 if (!dbr->IsBad()) tot += dbr->GetEvents();
227 if (!dbr->IsBad()) tot += dbr->GetSize();
239 if (!dbr->IsBad()) tot += dbr->GetTime();
251 return GetScaler(
"Trigger multiplicity");
256 else return Form(
"xxx");
274 Set(
"Comments", comments);
289 KV__SET_INT(
name, val)
300 KV__SET_ULONG(
name, val)
311 KV__SET_DBL(param, val)
322 KV__SET_STR(param, val)
#define RQ_OBJECT(sender_class)
#define ClassDefOverride(name, id)
char * Form(const char *fmt,...)
Record folder for the database.
virtual void SetNumber(Int_t n)
A single raw data file associated with an experimental run ,,.
const Char_t * GetStartDate() const
run_index_t GetRunIndex() const
void SetBad(Bool_t is_bad=kTRUE)
const Char_t * GetEndDate() const
Description of an experimental run in database ,,.
void Print(Option_t *option="") const override
virtual void SetSystem(KVDBSystem *system)
Set system for run. Any previous system is unassociated (run will be removed from system's list)
virtual void SetScaler64(const Char_t *name, ULong64_t val)
KVNameValueList fParameters
cannot write run_index_list objects to disk!
ULong64_t GetEvents() const
virtual ULong64_t GetScaler64(const Char_t *name) const
const Char_t * GetSystemName() const
KVTarget * GetTarget() const
Return target used for this run (actually target of KVDBSystem associated to run)
std::optional< std::reference_wrapper< const KVDBRunFile > > GetFirstGoodFile() const
std::optional< std::reference_wrapper< const KVDBRunFile > > GetLastGoodFile() const
void AddRunFile(KVDBRunFile *rf)
const KVDBRunFile & GetRunFile(const run_index_t &run_index) const
void SetComments(const KVString &comments)
KVDBSystem * GetSystem() const
virtual void WriteRunListLine(std::ostream &, Char_t delim='|') const
const Char_t * GetEndDate() const
void SetNumber(Int_t n) override
Bool_t Has(const Char_t *param, Bool_t check_whitespace=kTRUE) const
void Set(const Char_t *param, Double_t val)
const run_index_list & GetRunIndexList() const
Bool_t IsMultiFile() const
Bool_t HasRunFile(const run_index_t &run_index) const
Int_t GetNGoodRunFiles() const
Double_t Get(const Char_t *param) const
const KVDBRunFile & GetFirstFile() const
const Char_t * GetTriggerString() const
void BlockSignals(Bool_t yes=kTRUE)
std::map< int, int > fRunIndexMap
const Char_t * GetStartDate() const
void SetTrigger(Int_t trig)
const KVDBRunFile * get_run_file(const run_index_t &run_index) const
KVDBRunFile & GetLastFile()
virtual void ReadRunListLine(const KVString &)
const KVDBRunFile & GetLastFile() const
Int_t GetNRunFiles() const
void Set(const Char_t *param, const KVString &val)
KVDBRunFile & GetFirstFile()
virtual void UnsetSystem()
KVDBRunFile * get_run_file(const run_index_t &run_index)
virtual Int_t GetScaler(const Char_t *name) const
const Char_t * GetString(const Char_t *param) const
const Char_t * GetComments() const
run_index_list fRunIndexList
virtual void SetScaler(const Char_t *name, Int_t val)
KVDBRunFile & GetRunFile(const run_index_t &run_index)
virtual void WriteRunListHeader(std::ostream &, Char_t delim='|') const
Write the version flag.
Database class used to store information on different colliding systems studied during an experiment....
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Bool_t HasStringParameter(const Char_t *name) const
Bool_t HasIntParameter(const Char_t *name) const
Bool_t HasDoubleParameter(const Char_t *name) const
TString GetTStringValue(const Char_t *name) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Calculation/correction of energy losses of particles through an experimental target.
const char * GetName() const override
Int_t GetEntries() const override
void Add(TObject *obj) override
const char * Data() const
Bool_t IsWhitespace() const
Specifies a runfile according to run number and file index ,.
TString as_string() const
int index(int no_index=-1) const
unsigned long long ULong64_t