10 #include "KVINDRAUpDater_e475s.h"
12 #include "KVDetector.h"
13 #include "KVCalibrator.h"
14 #include "KVDBParameterSet.h"
16 #include "KVSilicon_e475s.h"
17 #include "KVChIo_e475s.h"
18 #include "KVCsI_e475s.h"
19 #include "KVEBYEDAT_ACQParam.h"
20 #include "KVINDRADB.h"
68 cout <<
"Setting calibration parameters of INDRA array for run " << run <<
":" <<
72 Error(
"SetParameters(UInt_t)",
"Run %u not found in database!", run);
76 TIter next(fArray->GetDetectors());
78 while ((kvd = (KVDetector*) next())) {
79 if (kvd->InheritsFrom(
"KVSiLi") || kvd->InheritsFrom(
"KVSi75")) {
80 if (kvd->GetListOfCalibrators())
81 kvd->RemoveCalibrators();
82 kvd->SetCalibrators();
85 if (kvd->GetListOfCalibrators()) {
86 kvd->RemoveCalibrators();
87 TIter lacq(kvd->GetACQParamList());
95 SetCalibParameters(kvrun);
118 TIter next_ps(param_list);
126 if (gIndra->
GetDetector(str.
Data())->InheritsFrom(
"KVSilicon_e475s")) {
127 ((KVSilicon_e475s*)gIndra->
GetDetector(str.
Data()))->SetCalibrator(kvps);
129 else if (gIndra->
GetDetector(str.
Data())->InheritsFrom(
"KVChIo_e475s")) {
132 else if (gIndra->
GetDetector(str.
Data())->InheritsFrom(
"KVCsI_e475s")) {
136 Warning(
"SetCalibParameters(KVDBRun*)",
137 "Calibrator %s %s not found ! ",
163 TIter next_ps(param_list);
172 det->SetPedestal(kvps->
GetTitle(), pied_value);
To store calibration parameters in a database ,.
Double_t GetParameter(UShort_t i=0) const
virtual KVRList * GetLinks(const Char_t *key) const
Returns the list of records linked to this record in table "key".
Description of an experimental run in database ,,.
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
KVINDRADBRun * GetRun(Int_t run) const
Sets run parameters for INDRA_e475s dataset.
void SetCalibrationParameters(UInt_t)
void SetPedestals(KVDBRun *)
virtual ~KVINDRAUpDater_e475s()
Destructor.
void SetCalibParameters(KVDBRun *run)
KVINDRADetector * GetDetector(const Char_t *name) const override
Wrapper for TRefArray adding some functionality.
Int_t GetSize() const override
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
const char * GetName() const override
const char * GetTitle() const override
const char * Data() const