KaliVeda
1.15/7
Toolkit for HIC analysis
KVDataPatch_E789_INDRANewCsICalib.cpp
1
#include "KVDataPatch_E789_INDRANewCsICalib.h"
2
3
ClassImp(
KVDataPatch_E789_INDRANewCsICalib
)
4
5
6
10
void
KVDataPatch_E789_INDRANewCsICalib::correct_ecsi(
KVReconstructedNucleus
* n)
11
{
12
// Modify the CsI energy of the particle using the new calibrations.
13
// This may change both the energy of the particle and its status (calibrated/not calibrated/OK/not OK)
14
15
auto
grp_recon = fReconstructor->GetGroupReconstructor(n->
GetGroup
()->
GetNumber
());
16
17
n->
SetParameter
(
"DATAPATCH.E789_INDRANewCsICalib.APPLIED"
,
true
);
18
n->
SetParameter
(
"DATAPATCH.E789_INDRANewCsICalib.OLD_ECODE"
, n->
GetECode
());
19
n->
SetParameter
(
"DATAPATCH.E789_INDRANewCsICalib.OLD_ENERGY"
, n->
GetEnergy
());
20
n->
SetParameter
(
"DATAPATCH.E789_INDRANewCsICalib.OLD_CSI_ENERGY"
, n->
GetParameters
()->
GetDoubleValue
(
"INDRA.ECSI"
));
21
22
// re-do calibration of particle
23
grp_recon->CalibrateParticle(n);
24
25
// modify 'OK' status of particle
26
gMultiDetArray->
AcceptParticleForAnalysis
(n);
27
}
28
29
30
32
33
void
KVDataPatch_E789_INDRANewCsICalib::PrintPatchInfo
()
const
34
{
35
std::cout <<
"Correct CsI calibrations for INDRA\n\n"
;
36
37
std::cout <<
"Replaces the partial calibration of INDRA CsI detectors for rings 6-9 used in v1.12 and v1.13\n"
;
38
std::cout <<
"with a new calibration for all INDRA CsI detectors based on the 2nd INDRA campaign calibrations.\n\n"
;
39
40
std::cout <<
"Any particle to which this patch is applied will have parameters:\n\n"
;
41
std::cout <<
" DATAPATCH.E789_INDRANewCsICalib.APPLIED = true\n"
;
42
std::cout <<
" DATAPATCH.E789_INDRANewCsICalib.OLD_ECODE = [...]\n"
;
43
std::cout <<
" DATAPATCH.E789_INDRANewCsICalib.OLD_ENERGY = [...]\n"
;
44
std::cout <<
" DATAPATCH.E789_INDRANewCsICalib.OLD_CSI_ENERGY = [...]\n"
;
45
}
46
47
48
49
KVBase::GetNumber
UInt_t GetNumber() const
Definition:
KVBase.h:228
KVDataPatch_E789_INDRANewCsICalib
Apply new CsI calibration for particles detected in INDRA.
Definition:
KVDataPatch_E789_INDRANewCsICalib.h:28
KVDataPatch_E789_INDRANewCsICalib::PrintPatchInfo
void PrintPatchInfo() const override
Definition:
KVDataPatch_E789_INDRANewCsICalib.cpp:33
KVMultiDetArray::AcceptParticleForAnalysis
virtual void AcceptParticleForAnalysis(KVReconstructedNucleus *) const
Definition:
KVMultiDetArray.cpp:2327
KVNameValueList::GetDoubleValue
Double_t GetDoubleValue(const Char_t *name) const
Definition:
KVNameValueList.h:417
KVParticle::GetParameters
KVNameValueList * GetParameters() const
Definition:
KVParticle.h:818
KVParticle::GetEnergy
Double_t GetEnergy() const
Definition:
KVParticle.h:624
KVParticle::SetParameter
void SetParameter(const Char_t *name, ValType value) const
Definition:
KVParticle.h:822
KVReconstructedNucleus
Nuclei reconstructed from data measured by a detector array .
Definition:
KVReconstructedNucleus.h:33
KVReconstructedNucleus::GetECode
virtual Int_t GetECode() const
Definition:
KVReconstructedNucleus.h:194
KVReconstructedNucleus::GetGroup
KVGroup * GetGroup() const
Definition:
KVReconstructedNucleus.h:157
kaliveda.doxygen
src
indrafazia
analysis
KVDataPatch_E789_INDRANewCsICalib.cpp
Generated on Wed Oct 21 2026 13:15:58 for KaliVeda by
1.9.1