12 #include "KVDBRecord.h"
13 #include "KVDBSystem.h"
17 #include "KVNameValueList.h"
18 #include "KVDBRunFile.h"
68 throw std::runtime_error(
Form(
"<KVDBRun::GetRunFile>: no file for run_index_t %s",run_index.
as_string().
Data()));
77 throw std::runtime_error(
Form(
"<KVDBRun::GetRunFile>: no file for run_index_t %s",run_index.
as_string().
Data()));
124 not_bad += !rf->
IsBad();
163 if(!dbr->IsBad()) tot += dbr->GetEvents();
185 if(!dbr->IsBad()) tot += dbr->GetSize();
197 if(!dbr->IsBad()) tot += dbr->GetTime();
209 return GetScaler(
"Trigger multiplicity");
214 else return Form(
"xxx");
232 Set(
"Comments", comments);
247 KV__SET_INT(
name, val)
258 KV__SET_ULONG(
name, val)
269 KV__SET_DBL(param, val)
280 KV__SET_STR(param, val)
#define RQ_OBJECT(sender_class)
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
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
void SetBad(Bool_t is_bad=kTRUE)
Declare this runfile to be 'bad', i.e. not to be used for analysis.
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)
Set value for 64-bit scaler with the given name for this run.
KVNameValueList fParameters
list of named parameters for run
ULong64_t GetEvents() const
virtual ULong64_t GetScaler64(const Char_t *name) const
Get value of 64-bit scaler with the given name for this run.
const Char_t * GetSystemName() const
KVTarget * GetTarget() const
Return target used for this run (actually target of KVDBSystem associated to run)
KVDBRunFile * GetRunFile(int index)
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)
Set numerical (non-scaler) characteristic of run.
Bool_t IsMultiFile() const
Int_t GetNGoodRunFiles() const
const KVDBRunFile * GetRunFile(int index) const
Double_t Get(const Char_t *param) const
Get numerical (non-scaler) characteristic of run.
const KVDBRunFile & GetFirstFile() const
const Char_t * GetTriggerString() const
void BlockSignals(Bool_t yes=kTRUE)
const Char_t * GetStartDate() const
void SetTrigger(Int_t trig)
KVDBRunFile & GetLastFile()
virtual void ReadRunListLine(const KVString &)
const KVDBRunFile & GetLastFile() const
Int_t GetNRunFiles() const
void Set(const Char_t *param, const KVString &val)
Set characteristic of run.
KVDBRunFile & GetFirstFile()
virtual void UnsetSystem()
virtual Int_t GetScaler(const Char_t *name) const
Get value of scaler with the given name for this run.
const Char_t * GetString(const Char_t *param) const
Get characteristic of run.
const Char_t * GetComments() const
virtual void SetScaler(const Char_t *name, Int_t val)
Set value for the scaler with the given name for this run.
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
TObject * Last() 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