KaliVeda
Toolkit for HIC analysis
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 
15  : KVDataPatch()
16 {
17  // Default constructor
18  SetName(ClassName());
19  SetTitle(Class()->GetTitle());
20 }
21 
22 
23 
25 
27 {
28  KVINDRAReconNuc* irn = dynamic_cast<KVINDRAReconNuc*>(n);
29  if (!irn) {
30  Fatal("ApplyToParticle", "Cannot apply this data patch to objects of class %s, only KVINDRAReconNuc objects", n->ClassName());
31  }
32  if (irn->GetRingNumber() == 1) {
33  //phoswich
34  irn->SetAMeasured(kFALSE);
35  }
36  if (!irn->IsAMeasured()) {
38  irn->SetZ(irn->GetZ());
39  }
40 }
41 
42 
43 
45 
47 {
48  std::cout << "Correct bad attribution of isotopic resolution & mass in 2nd campaign data" << std::endl;
49  std::cout << std::endl;
50  std::cout << "All particles identified in Phoswich detectors (Ring 1) were" << std::endl;
51  std::cout << "labelled as being isotopically identified." << std::endl;
52  std::cout << "Calculated masses were not consistent: several A for some Z" << std::endl;
53  std::cout << "We give single KVNucleus::kVedaMass A to all" << std::endl;
54 }
55 
56 
57 //____________________________________________________________________________//
58 
59 
constexpr Bool_t kFALSE
Correct mass identification in 2nd campaign data.
void ApplyToParticle(KVReconstructedNucleus *) override
void PrintPatchInfo() const override
Correction to be applied to reconstructed calibrated data.
Definition: KVDataPatch.h:55
Nuclei reconstructed from data measured in the INDRA array.
int GetRingNumber() const
void SetZ(Int_t z, Char_t mt=-1)
Definition: KVNucleus.cpp:700
void SetMassFormula(UChar_t mt)
Definition: KVNucleus.h:341
Int_t GetZ() const
Return the number of proton / atomic number.
Definition: KVNucleus.cpp:767
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)