KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDataPatch_Camp2MassID.cpp
1//Created by KVClassFactory on Sat Jun 9 20:07:03 2018
2//Author: John Frankland,,,
3
4#include "KVDataPatch_Camp2MassID.h"
5#include "KVINDRAReconNuc.h"
6#include "TClass.h"
7
9
10
11
13
15 : KVDataPatch()
16{
17 // Default constructor
19 SetTitle(Class()->GetTitle());
20}
21
22
23
24
27
32
33
34
36
38{
39 KVINDRAReconNuc* irn = dynamic_cast<KVINDRAReconNuc*>(n);
40 if (!irn) {
41 Fatal("ApplyToParticle", "Cannot apply this data patch to objects of class %s, only KVINDRAReconNuc objects", n->ClassName());
42 }
43 if (irn->GetRingNumber() == 1) {
44 //phoswich
45 irn->SetAMeasured(kFALSE);
46 }
47 if (!irn->IsAMeasured()) {
49 irn->SetZ(irn->GetZ());
50 }
51}
52
53
54
56
58{
59 std::cout << "Correct bad attribution of isotopic resolution & mass in 2nd campaign data" << std::endl;
60 std::cout << std::endl;
61 std::cout << "All particles identified in Phoswich detectors (Ring 1) were" << std::endl;
62 std::cout << "labelled as being isotopically identified." << std::endl;
63 std::cout << "Calculated masses were not consistent: several A for some Z" << std::endl;
64 std::cout << "We give single KVNucleus::kVedaMass A to all" << std::endl;
65}
66
67
68//____________________________________________________________________________//
69
70
constexpr Bool_t kFALSE
Correct mass identification in 2nd campaign data.
virtual ~KVDataPatch_Camp2MassID()
Destructor.
virtual void PrintPatchInfo() const
void ApplyToParticle(KVReconstructedNucleus *)
Correction to be applied to reconstructed calibrated data.
Definition KVDataPatch.h:55
Nuclei reconstructed from data measured in the INDRA array.
UInt_t GetRingNumber(void) const
void SetZ(Int_t z, Char_t mt=-1)
void SetMassFormula(UChar_t mt)
Definition KVNucleus.h:345
Int_t GetZ() const
Return the number of proton / atomic number.
Nuclei reconstructed from data measured by a detector array .
virtual void SetAMeasured(Bool_t yes=kTRUE)
virtual Bool_t IsAMeasured() const
virtual void Fatal(const char *method, const char *msgfmt,...) const
RooCmdArg ClassName(const char *name)
gr SetName("gr")
const Int_t n
const char * Class
ClassImp(TPyArg)