KaliVeda
Toolkit for HIC analysis
KVLifeTime.h
1 
4 #ifndef __KVLIFETIME_H
5 #define __KVLIFETIME_H
6 
7 #include "KVNuclData.h"
8 
16 class KVLifeTime : public KVNuclData {
17 
18 protected:
19  /*
20  TObject's bits can be used as flags, bits 0 - 13 and 24-31 are
21  reserved as global bits while bits 14 - 23 can be used in different
22  bit 14 used by KVNuclData class
23  */
24  enum EStatusBits {
25  kResonnance = BIT(15) //Is Resonnance MeV (1) / Is "Nucleus" s (0)
26  };
27 
28 
29  void init();
30 
31 public:
32  KVLifeTime();
33  KVLifeTime(const Char_t* name);
34  virtual ~KVLifeTime();
35 
36  void SetResonance(Bool_t resonnance)
37  {
41  SetBit(kResonnance, resonnance);
42  if (resonnance) fUnits = "MeV";
43  else fUnits = "s";
44  }
46  {
47  return TestBit(kResonnance);
48  }
49 
50  ClassDef(KVLifeTime, 1) //Simple class for storing life time information of nucleus
51 };
52 
53 #endif
bool Bool_t
char Char_t
#define ClassDef(name, id)
#define BIT(n)
Simple class to store lifetime information of nucleus.
Definition: KVLifeTime.h:16
void init()
Definition: KVLifeTime.cpp:47
KVLifeTime()
Default constructor.
Definition: KVLifeTime.cpp:26
Bool_t IsAResonance() const
Definition: KVLifeTime.h:45
void SetResonance(Bool_t resonnance)
Definition: KVLifeTime.h:36
virtual ~KVLifeTime()
Destructor.
Definition: KVLifeTime.cpp:38
Simple abstract class to store value related to nuclear data.
Definition: KVNuclData.h:18
TString fUnits
units (if any)
Definition: KVNuclData.h:22
void SetBit(UInt_t f)
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const