3 #include <KVCalibratedSignal.h>
23 if (IsSimMode())
return GetEnergy();
25 if (!(GetDetectorSignalValue(
"TotLight") > 0))
return -1;
27 Int_t Z = nuc->GetZ();
28 Int_t A = nuc->GetA();
31 if (lum > -1) eloss = GetDetectorSignalValue(
"Energy",
Form(
"INPUT=%g,Z=%d,A=%d", lum, Z, A));
32 else eloss = GetDetectorSignalValue(
"Energy",
Form(
"Z=%d,A=%d", Z, A));
34 Info(
"GetCorrectedEnergy",
"Failed to invert Light-Energy calibration for %s with Z=%d A=%d LIGHT=%f",
35 GetName(), Z, A, GetDetectorSignalValue(
"TotLight"));
41 if (!GetDetectorSignal(
"TotLight")->IsRaw() && !GetDetectorSignal(
"TotLight")->GetStatus(
"LightIsGood"))
return -1.;
char * Form(const char *fmt,...)
Output signal from detector obtained by calibration.
CsI(Tl) scintillation detectors of the INDRA multidetector array.
Description of properties and kinematics of atomic nuclei.