1#ifndef GAMR_NUCLEUS_LEVELSCHEME_HH
2#define GAMR_NUCLEUS_LEVELSCHEME_HH
13 class State :
public TNamed,
public TAttLine {
26 void Paint(Option_t *option=
"");
45 { SetLineColor(color); SetFillColor(color); SetArrowSize(0.01); SetOption(
"|>");
fLabel =
new TText(); }
47 void Paint(Option_t *option =
"");
50 void Draw(Option_t *option =
"") { TArrow::Draw(option); }
67 void AddState(std::string name,
double energy, EColor color=kBlack) {
State state(name, energy, color);
fStates[name]=state; }
69 void AddTransition(std::string initState, std::string finState,
double energy,
double uncertainty, EColor color=kBlack) {
82 void Paint(Option_t *option=
"");
void py(TVirtualPad *canvas)
void px(TVirtualPad *canvas)
std::map< std::string, State > fStates
State * GetStateByIndex(int i)
std::vector< Transition > fTransitions
void PrintState(std::string name)
void SaveTable(std::string filename)
void Paint(Option_t *option="")
void AddState(std::string name, double energy, EColor color=kBlack)
void SetDrawRange(double eLow, double eHigh)
void AddTransition(std::string initState, std::string finState, double energy, double uncertainty, EColor color=kBlack)
Int_t DistancetoPrimitive(Int_t px, Int_t py)
State(std::string name, double energy, EColor color=kBlack)
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
bool operator==(const State &rhs) const
bool operator<(const State &rhs) const
void Paint(Option_t *option="")
Transition(State *initial, State *final, double energy, double uncertainty, EColor color)
void Paint(Option_t *option="")
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
bool operator<(const Transition &rhs) const
void Draw(Option_t *option="")
Int_t DistancetoPrimitive(Int_t px, Int_t py)