GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TTransition.h
Go to the documentation of this file.
1 #ifndef TTRANSITION_H
2 #define TTRANSITION_H
3 
4 #include <cstdio>
5 #include "TObject.h"
6 #include "TString.h"
7 
8 class TTransition : public TObject {
9  friend class TNucleus;
10  public:
11  TTransition();
12  virtual ~TTransition();
13 
14  bool isSortable() const { return true; }
15  Int_t CompareIntensity(const TObject *obj) const;
16 
17  void Set(Double_t En,Double_t Intens=-1, Double_t EnUnc = -1, Double_t IntensUnc=-1) { fEnergy = En; fIntensity = Intens; fEnUncertainty = EnUnc; fIntUncertainty = IntensUnc;}
18  void SetEnergy(Double_t En) { fEnergy = En; }
19  void SetIntensity(Double_t Intensity) { fIntensity = Intensity; }
20  void SetEnUncertainty(Double_t Unc) { fEnUncertainty = Unc; }
21  void SetIntUncertainty(Double_t Unc) { fIntUncertainty = Unc; }
22 
23  Double_t GetEnergy() const { return fEnergy; }
24  Double_t GetIntensity() const { return fIntensity; }
25  Double_t GetEnUncertainty() const { return fEnUncertainty; }
26  Double_t GetIntUncertainty() const { return fIntUncertainty; }
27 
28  void Clear(Option_t *opt="");
29  void Print(Option_t *opt="") const;
30 
31  std::string PrintToString();
32 
33  protected:
34  Double_t fEnergy;
35  Double_t fIntensity;
36  Double_t fEnUncertainty;
37  Double_t fIntUncertainty;
38 
40 };
41 
42 #endif