KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDataPatch_Camp2MassID.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Sat Jun 9 20:07:03 2018
2 //Author: John Frankland,,,
3 
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 
24 
27 
29 {
30  // Destructor
31 }
32 
33 
34 
36 
38 {
39  KVINDRAReconNuc* irn = dynamic_cast<KVINDRAReconNuc*>(n);
40  if (irn->GetRingNumber() == 1) {
41  //phoswich
42  irn->SetAMeasured(kFALSE);
43  }
44  if (!irn->IsAMeasured()) {
46  irn->SetZ(irn->GetZ());
47  }
48 }
49 
50 
51 
53 
55 {
56  std::cout << "Correct bad attribution of isotopic resolution & mass in 2nd campaign data" << std::endl;
57  std::cout << std::endl;
58  std::cout << "All particles identified in Phoswich detectors (Ring 1) were" << std::endl;
59  std::cout << "labelled as being isotopically identified." << std::endl;
60  std::cout << "Calculated masses were not consistent: several A for some Z" << std::endl;
61  std::cout << "We give single KVNucleus::kVedaMass A to all" << std::endl;
62 }
63 
64 
65 //____________________________________________________________________________//
66 
67 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
const 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:54
Nuclei reconstructed from data measured in the INDRA array.
UInt_t GetRingNumber(void) const
void SetZ(Int_t z, Char_t mt=-1)
Definition: KVNucleus.cpp:704
void SetMassFormula(UChar_t mt)
Definition: KVNucleus.h:344
Int_t GetZ() const
Return the number of proton / atomic number.
Definition: KVNucleus.cpp:770
Nuclei reconstructed from data measured by a detector array .
virtual void SetAMeasured(Bool_t yes=kTRUE)
virtual Bool_t IsAMeasured() const
RooCmdArg ClassName(const char *name)
const Int_t n
gr SetName("gr")
const char * Class