KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVINDRACodes.h
Go to the documentation of this file.
1 
4 #ifndef __KVINDRACODES__
5 #define __KVINDRACODES__
6 
7 #include "TObject.h"
8 #include "KVINDRACodeMask.h"
9 
42 
43  friend class KVINDRAReconNuc;
44 
45 private:
46  static Char_t fCodeGenIdent[14][120];
47  static Char_t fCodeGenCalib[8][120];
48  static UChar_t fIDCodes[14];
49  static UChar_t fECodes[8];
50  static UShort_t fIDBits[16];
51  static UChar_t fEBits[16];
52 
53 public:
54 
55  enum {
56  kIsoRes = BIT(14) //isotopic resolution achieved i.e. mass was measured
57  };
58 
59  KVINDRACodes();
60  virtual ~ KVINDRACodes() {}
61  const Char_t* GetIDStatus();
62  const Char_t* GetEStatus();
63 
64  static UShort_t VedaIDCodeToBitmask(UChar_t veda_id_code);
65  static UChar_t VedaECodeToBitmask(UChar_t veda_e_code);
66 
70  void SetVedaIDCode(UChar_t);
71  void SetVedaECode(UChar_t);
73  UChar_t GetECode();
74  void SetIDCode(UShort_t);
75  void SetECode(UChar_t);
76 
77 
78  void Clear(Option_t* opt = "");
79 
80  ClassDef(KVINDRACodes, 3) //Particle identification and calibration status (Veda6)
81 };
82 
83 #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:41
static Char_t fCodeGenCalib[8][120]
Definition: KVINDRACodes.h:47
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:46
virtual ~ KVINDRACodes()
Definition: KVINDRACodes.h:60
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:50
static UChar_t fEBits[16]
Definition: KVINDRACodes.h:51
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:49
static UChar_t fIDCodes[14]
Definition: KVINDRACodes.h:48
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.