10#include "KVINDRADB_e416a.h"
11#include "KVDB_BIC_Pressures.h"
25 fBICPressures = AddTable(
"BIC Pressures",
"Pressures of BIC");
82 Error(
"ReadBICPressures()",
"Could not open file %s",
86 Info(
"ReadBICPressures()",
"Reading BIC pressures parameters...");
90 UInt_t run_ranges[MAX_NUM_RUN_RANGES][2];
99 Float_t pressure[3] = { 0, 0, 0 };
111 par_list->
Add(parset);
114 for (
int zz = 0; zz < 3; zz++) pressure[zz] = 0.;
120 if (sscanf(sline.
Data(),
"Run Range : %u %u", &frun, &lrun) != 2) {
122 "Bad format in line :\n%s\nUnable to read run range values",
127 run_ranges[rr_number][0] = frun;
128 run_ranges[rr_number][1] = lrun;
130 if (rr_number == MAX_NUM_RUN_RANGES) {
131 Error(
"ReadBICPressures",
"Too many run ranges (>%d)",
142 par_list->
Add(parset);
145 for (
int zz = 0; zz < 3; zz++) pressure[zz] = 0.;
159 read_pressure =
kTRUE;
161 if (chio ==
"BIC_1") pressure[0] = press.
Atof();
162 else if (chio ==
"BIC_2") pressure[1] = press.
Atof();
163 else if (chio ==
"BIC_3") pressure[2] = press.
Atof();
164 else read_pressure =
kFALSE;
virtual Bool_t AddRecord(KVDBRecord *add)
Database entry for BIC (Blocking Ionisation Chamber) pressures (experiment E416A)
virtual KVDBTable * GetTable(const Char_t *table) const
TString GetCalibFileName(const Char_t *type) 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).
Bool_t OpenCalibFile(const Char_t *type, std::ifstream &fs) const
virtual ~KVINDRADB_e416a()
Destructor.
virtual void ReadBICPressures()
DataBase of parameters for an INDRA campaign.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Clear(Option_t *option="") override
void Add(TObject *obj) override
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Error(const char *method, const char *msgfmt,...) const
virtual void Info(const char *method, const char *msgfmt,...) const
const char * Data() const
TObjArray * Tokenize(const TString &delim) const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
std::istream & ReadLine(std::istream &str, Bool_t skipWhite=kTRUE)