KaliVeda
Toolkit for HIC analysis
KVINDRACodes.h
1 #ifndef __KVINDRACODES__
2 #define __KVINDRACODES__
3 
4 #include "TObject.h"
5 #include "KVINDRACodeMask.h"
6 
44 
45  friend class KVINDRAReconNuc;
46 
47 private:
48  static Char_t fCodeGenIdent[14][120];
49  static Char_t fCodeGenCalib[8][120];
50  static UChar_t fIDCodes[14];
51  static UChar_t fECodes[8];
52  static UShort_t fIDBits[16];
53  static UChar_t fEBits[16];
54 
55 public:
56 
57  enum {
58  kIsoRes = BIT(14) //isotopic resolution achieved i.e. mass was measured
59  };
60 
61  KVINDRACodes();
62  virtual ~ KVINDRACodes() {}
63  const Char_t* GetIDStatus();
64  const Char_t* GetEStatus();
65 
66  static UShort_t VedaIDCodeToBitmask(UChar_t veda_id_code);
67  static UChar_t VedaECodeToBitmask(UChar_t veda_e_code);
68 
72  void SetVedaIDCode(UChar_t);
73  void SetVedaECode(UChar_t);
75  UChar_t GetECode();
76  void SetIDCode(UShort_t);
77  void SetECode(UChar_t);
78 
79 
80  void Clear(Option_t* opt = "") override;
81 
82  ClassDefOverride(KVINDRACodes, 3) //Particle identification and calibration status (Veda6)
83 };
84 
85 #endif
unsigned short UShort_t
unsigned char UChar_t
char Char_t
const char Option_t
#define BIT(n)
[OBSOLETE] Identification code structure for INDRA data
ClassDefOverride(KVINDRACodeMask, 1)
[OBSOLETE] Identification code structure for INDRA data
Definition: KVINDRACodes.h:43
static Char_t fCodeGenCalib[8][120]
Definition: KVINDRACodes.h:49
static UChar_t VedaECodeToBitmask(UChar_t veda_e_code)
const Char_t * GetEStatus()
Give an explanation for the calibration code.
void SetIDCode(UShort_t)
Set ID code - the argument given is one of the EVedaCodes or EIDCodes bitmasks.
UChar_t GetECode()
Returns energy calibration code in the form of EVedaCodes or EIDCodes bitmask.
static Char_t fCodeGenIdent[14][120]
Definition: KVINDRACodes.h:48
virtual ~ KVINDRACodes()
Definition: KVINDRACodes.h:62
UChar_t GetVedaECode()
Returns VEDA6 energy calibration code.
UChar_t GetVedaIDCode()
Returns VEDA6 identification code.
void Clear(Option_t *opt="") override
resets all id subcodes.
void SetVedaECode(UChar_t)
Set E code - the argument given is the old VEDA6 code number.
static UShort_t fIDBits[16]
Definition: KVINDRACodes.h:52
static UChar_t fEBits[16]
Definition: KVINDRACodes.h:53
UChar_t GetCodeIndex(UShort_t)
const Char_t * GetIDStatus()
Give an explanation for the ID code.
static UChar_t fECodes[8]
Definition: KVINDRACodes.h:51
static UChar_t fIDCodes[14]
Definition: KVINDRACodes.h:50
void SetECode(UChar_t)
Set E code - the argument given is one of the EVedaCodes or EIDCodes bitmasks.
static UShort_t VedaIDCodeToBitmask(UChar_t veda_id_code)
UShort_t GetIDCode()
Returns identification code in the form of EVedaCodes or EIDCodes bitmask.
void SetVedaIDCode(UChar_t)
Set ID code - the argument given is the old VEDA6 code number.
Nuclei reconstructed from data measured in the INDRA array.