KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDataPatch_E789_INDRANewCsICalib.h
1#ifndef __KVDATAPATCH_E789_INDRANEWCSICALIB_H
2#define __KVDATAPATCH_E789_INDRANEWCSICALIB_H
3
4#include "KVDataPatch.h"
5#include "KVEventReconstructor.h"
6
30 std::unique_ptr<KVEventReconstructor> fReconstructor;
31 std::unique_ptr<KVReconstructedEvent> fReconEvent;
32public:
40
42 TString dataseries, Int_t datareleasenumber, const TList*)
43 {
44 auto required = (dataset == "INDRAFAZIA.E789") && (datatype == "recon") && (dataseries == "1.12" || dataseries == "1.13");
45
46 if (required) {
50 fReconstructor.reset(new KVEventReconstructor(gMultiDetArray, fReconEvent.get()));
51 }
52 return required;
53 }
54
56 {
57 return false;
58 }
60 {
61 return true;
62 }
65 {
66 if (rnuc->InArray("INDRA") && rnuc->IsZMeasured() && (rnuc->GetZ() > 0) && rnuc->GetStoppingDetector()->IsType("CSI"))
67 correct_ecsi(rnuc);
68 }
69
70 void PrintPatchInfo() const;
71
72 ClassDef(KVDataPatch_E789_INDRANewCsICalib, 1) //Apply new CsI calibration for particles detected in INDRA
73};
74
75#endif
int Int_t
bool Bool_t
#define ClassDef(name, id)
virtual Bool_t IsType(const Char_t *typ) const
Definition KVBase.h:185
Apply new CsI calibration for particles detected in INDRA.
Bool_t IsRequired(TString dataset, TString datatype, Int_t, TString dataseries, Int_t datareleasenumber, const TList *)
std::unique_ptr< KVEventReconstructor > fReconstructor
std::unique_ptr< KVReconstructedEvent > fReconEvent
void ApplyToParticle(KVReconstructedNucleus *rnuc)
Correction to be applied to reconstructed calibrated data.
Definition KVDataPatch.h:55
Base class for event reconstruction from array data.
Int_t GetZ() const
Return the number of proton / atomic number.
Event containing KVReconstructedNucleus nuclei reconstructed from hits in detectors.
Nuclei reconstructed from data measured by a detector array .
virtual Bool_t IsZMeasured() const
Bool_t InArray(const TString &) const
Returns kTRUE if particle was detected in array with given name.
KVDetector * GetStoppingDetector() const
void SetDetector(int i, KVDetector *);
virtual void SetTitle(const char *title="")
const char * GetTitle() const override
static TClass * Class()
virtual void SetName(const char *name)
virtual const char * ClassName() const