KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDataPatch_E789_INDRANewCsICalib.cpp
1#include "KVDataPatch_E789_INDRANewCsICalib.h"
2
4
5
6
9
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
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
Apply new CsI calibration for particles detected in INDRA.
virtual void AcceptParticleForAnalysis(KVReconstructedNucleus *) const
Nuclei reconstructed from data measured by a detector array .
const Int_t n
ClassImp(TPyArg)