12 #include "KVINDRADB1.h"
13 #include "KVINDRADBRun.h"
14 #include "KVDBParameterSet.h"
15 #include "KVRunListLine.h"
36 void KVINDRADB1::make_minimal_database()
40 SetRLCommentChar(GetDBEnv(
"Runlist.Comment")[0]);
41 if (!strcmp(GetDBEnv(
"Runlist.Separator"),
"<TAB>"))
42 SetRLSeparatorChar(
'\t');
44 SetRLSeparatorChar(GetDBEnv(
"Runlist.Separator")[0]);
45 GetLineReader()->SetFieldKeys(
"tape",
"run",
"events");
46 GetLineReader()->SetRunKeys(
"run",
"events");
47 ReadRunList(runlist_fullpath.
Data());
56 void KVINDRADB1::extend_minimal_database()
88 cout <<
"run_n = 0 ????????? line number =" << GetRLLineNumber() <<
90 GetLineReader()->Print();
105 tape = GetTape(tape_n);
112 KVError::Error(
this,
"GoodRunLine",
"No tape field ? run=%d", run_n);
136 KVError::Error(
this,
"GoodRunLine",
"No events field ? run=%d", run_n);
140 KVError::Error(
this,
"GoodRunLine",
"No FAR field ? run=%d", run_n);
144 KVError::Error(
this,
"GoodRunLine",
"No MFI field ? run=%d", run_n);
148 KVError::Error(
this,
"GoodRunLine",
"No blocs field ? run=%d", run_n);
152 KVError::Error(
this,
"GoodRunLine",
"No G. dir field ? run=%d", run_n);
156 KVError::Error(
this,
"GoodRunLine",
"No G. marq field ? run=%d", run_n);
160 KVError::Error(
this,
"GoodRunLine",
"No G. TM field ? run=%d", run_n);
164 KVError::Error(
this,
"GoodRunLine",
"No TM %% field ? run=%d", run_n);
166 run->
SetTrigger(GetRunListTrigger(
"Decl",
"M>=%d"));
168 KVError::Error(
this,
"GoodRunLine",
"No Decl field ? run=%d", run_n);
174 KVError::Error(
this,
"GoodRunLine",
"Run %d already exists", run_n);
static Bool_t SearchKVFile(const Char_t *name, TString &fullpath, const Char_t *kvsubdir="")
void SetComments(const KVString &comments)
void SetTrigger(Int_t trig)
virtual void SetScaler(const Char_t *name, Int_t val)
Database entry describing a data storage tape used to store raw data.
void AddRun(KVDBRun *run)
add run to list of runs stored on this tape
DataBase of parameters for 1st campaign of INDRA.
void GoodRunLine() override
Database entry for each run of an INDRA experiment.
void SetTMpercent(Float_t tmp)
void SetEvents(ULong64_t evt_number)
DataBase of parameters for an INDRA campaign.
void MakeCalibrationTables(KVExpDB *) override
Override base method in order to read ChIo pressures for each run.
static KVMultiDetArray * MakeMultiDetector(const Char_t *dataset_name, Int_t run=-1, TString classname="KVMultiDetArray", KVExpDB *db=nullptr)
Base class for reading runlists for experiments ,.
Bool_t HasFieldValue(const Char_t *) const
Float_t GetFloatField(const Char_t *)
Bool_t HasField(const Char_t *) const
INLINES_______________________________________________________________________________.
Int_t GetIntField(const Char_t *)
virtual const Char_t * GetField(const Char_t *) const
const char * Data() const
void Error(UserClass p, const char *location, const char *va_(fmt),...)