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