KaliVeda
1.14/2
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDataPatch_E789_INDRANewCsICalib.cpp
1
#include "KVDataPatch_E789_INDRANewCsICalib.h"
2
3
ClassImp
(
KVDataPatch_E789_INDRANewCsICalib
)
4
5
6
9
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
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
Definition
KVDataPatch_E789_INDRANewCsICalib.cpp:33
KVMultiDetArray::AcceptParticleForAnalysis
virtual void AcceptParticleForAnalysis(KVReconstructedNucleus *) const
Definition
KVMultiDetArray.cpp:3936
KVReconstructedNucleus
Nuclei reconstructed from data measured by a detector array .
Definition
KVReconstructedNucleus.h:33
n
const Int_t n
ClassImp
ClassImp(TPyArg)
kaliveda.doxygen
indrafazia
analysis
KVDataPatch_E789_INDRANewCsICalib.cpp
Generated on Wed Oct 23 2024 12:45:18 for KaliVeda by
1.9.8