8#include "KVINDRAUpDater.h"
10#include "KVCalibrator.h"
12#include "KVDBParameterSet.h"
13#include "KVINDRADBRun.h"
14#include "KVIDGridManager.h"
15#include "KVDBChIoPressures.h"
62 cout <<
"Setting parameters of INDRA array for run " << run <<
":" <<
66 Error(
"SetParameters(UInt_t)",
"Run %u not found in database!", run);
75 if (!physics_parameters_only) {
125 cout <<
"--> Setting Trigger:" << endl;
145 Int_t ndet_absent = 0;
206 Info(
"KVINDRAUpDater",
"%d detecteurs absents", ndet_absent);
207 Info(
"KVINDRAUpDater",
"%d detecteurs ne fonctionnent pas", ndet_ooo);
208 Info(
"KVINDRAUpDater",
"%d parametres d acquisition ne fonctionnent pas", nacq_ooo);
233 cout <<
"--> Setting Gains:" << endl;
235 cout <<
" Setting gains for " << ndets <<
" detectors : " << endl;
236 for (
int i = 0; i < ndets; i++) {
241 cout <<
" " << kvd->
GetName() <<
" : G=" << kvd->
245 Error(
"SetGains",
"le detecteur %s n ext pas present", dbps->
GetName());
291 TIter next_ps(param_list);
294 Error(
"SetChIoPressures",
295 "fArray->GetListOfChIo() returns null list pointer");
298 cout <<
"--> Setting ChIo pressures" << endl;
299 TIter next_chio(chios);
301 cout <<
" Ring 2/3: " << kvps->
302 GetPressure(CHIO_2_3) <<
"mbar" << endl;
303 cout <<
" Ring 4/5: " << kvps->
304 GetPressure(CHIO_4_5) <<
"mbar" << endl;
305 cout <<
" Ring 6/7: " << kvps->
306 GetPressure(CHIO_6_7) <<
"mbar" << endl;
307 cout <<
" Ring 8/12: " << kvps->
308 GetPressure(CHIO_8_12) <<
"mbar" << endl;
309 cout <<
" Ring 13/17: " << kvps->
310 GetPressure(CHIO_13_17) <<
"mbar" << endl;
311 while ((kvd = (
KVChIo*) next_chio())) {
312 if (!strcmp(kvd->
GetType(),
"CI")) {
354 TIter next_ps(param_list);
362 str.Remove(str.Sizeof() - 4, 3);
365 Warning(
"SetChVoltParameters(UInt_t)",
"Dectector %s not found !",
370 Warning(
"SetChVoltParameters(UInt_t)",
371 "Calibrator %s %s not found !", kvps->
GetName(),
401 TIter next_ps(param_list);
415 Warning(
"SetVoltEnergyParameters(UInt_t)",
416 "Calibrator %s %s not found !", kvps->
GetName(),
479 TIter next_ps(param_list);
492 Warning(
"SetCsIGainCorrectionParameters",
493 "Cannot find detector associated with %s", dbps->
GetName());
514 if (param_list && param_list->
GetSize()) {
519 TIter next_ps(param_list);
526 Warning(
"SetLitEnergyCsIParameters(UInt_t)",
527 "Dectector %s not found !", str.Data());
531 Warning(
"SetLitEnergyCsIParameters(UInt_t)",
532 "Calibrator %s %s not found ! - it will be created",
545 param_list = kvrun->
GetLinks(
"Light-Energy CsI Z>1");
547 if (!param_list || !param_list->
GetSize()) {
556 TIter next_ps2(param_list);
561 Warning(
"SetLitEnergyCsIParameters(UInt_t)",
562 "Dectector %s not found !", str.Data());
566 Warning(
"SetLitEnergyCsIParameters(UInt_t)",
567 "Calibrator %s %s not found ! - it will be created",
762 cout <<
"--> Setting Si pulse height defect parameters (Moulton)" << endl;
770 Error(
"SetPHDs",
"TEnv::ReadFile != 0, cannot read PHD file");
791 Error(
"SetPHDs",
"File %s not found", phdfile.
Data());
void AbstractMethod(const char *method)
char * Form(const char *fmt,...)
static Bool_t SearchKVFile(const Char_t *name, TString &fullpath, const Char_t *kvsubdir="")
virtual const Char_t * GetType() const
Base class for all detector calibrations.
Int_t GetNumberParams() const
void SetParameter(int i, Double_t par_val) const
void SetStatus(Bool_t ready)
Ionisation chamber detectors of the INDRA multidetector array.
virtual Double_t GetPressure() const
virtual void SetPressure(Double_t P)
CsI(Tl) scintillation detectors of the INDRA multidetector array.
CHIO pressure parameters.
virtual Float_t GetPressure(UInt_t chio_number)
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 ,,.
Base class for detector geometry description.
void SetDetecting(Bool_t yes=kTRUE)
KVCalibrator * GetCalibrator(const Char_t *name, const Char_t *type) const
virtual Bool_t IsPresent() const
void SetGain(Double_t gain)
void SetPresent(Bool_t yes=kTRUE)
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
KVDBRun * GetDBRun(Int_t number) const
virtual TString GetDBEnv(const Char_t *) const
KVDetector * GetDetector(const Char_t *name) const
Return detector in this structure with given name.
const KVSeqCollection * GetDetectors() const
UInt_t GetRingNumber() const
Class implementing necessary methods for setting INDRA parameters for each run, using information sto...
virtual void SetVoltEnergyChIoSiParameters(KVDBRun *)
virtual void SetChIoPressures(KVDBRun *)
virtual void SetCalibParameters(KVDBRun*);
virtual void SetPHDs(KVDBRun *)
virtual void SetChVoltParameters(KVDBRun *)
virtual void SetPedestals(KVDBRun*);
virtual void SetGains(KVDBRun *)
virtual void SetTrigger(KVDBRun *)
virtual void SetCalibrationParameters(UInt_t);
void CheckStatusOfDetectors(KVDBRun *)
virtual void SetLitEnergyCsIParameters(KVDBRun *)
Setting Light- Energy CsI calibration parameters for Z=1.
virtual void SetParameters(UInt_t run, Bool_t physics_parameters_only=kFALSE)
virtual void SetCsIGainCorrectionParameters(KVDBRun *)
INDRA multidetector array geometry.
UChar_t GetTrigger() const
virtual void PHDSet(Bool_t yes=kTRUE)
void SetTrigger(UChar_t trig)
KVHashList * GetListOfChIo() const
Wrapper for TRefArray adding some functionality.
virtual Int_t GetSize() const
virtual KVBase * FindObject(const Char_t *name, const Char_t *type) const
KaliVeda extensions to ROOT collection classes.
Silicon detectors of the INDRA array.
void SetMoultonPHDParameters(Double_t a1, Double_t a2, Double_t b1, Double_t b2)
KVMultiDetArray * fArray
associated array
virtual void SetCalibrationParameters(UInt_t)
Set calibration parameters for this run.
virtual void SetIdentificationParameters(UInt_t)
virtual void SetTarget(KVDBRun *)
virtual const char * GetValue(const char *name, const char *dflt) const
virtual Int_t ReadFile(const char *fname, EEnvLevel level)
const char * GetName() const override
const char * GetTitle() const override
TObject * At(Int_t idx) const override
const char * Data() const