Most of the methods relies on graphical approach for level scheme. More...
#include <GLSPlayer.h>
Public Types | |
enum | EDrawStyle { kRadware, kEnsdf, kUnknown } |
Public Member Functions | |
virtual void | AddArrow (Option_t *opt="|>") |
Add arrows to the LS between two selected levels. More... | |
virtual void | AddFirstLevel (Float_t energy=300, Float_t errEnergy=1, const Char_t *jp="0+", Option_t *opt="left") |
Add first level to a new cascade beside the current cascade. More... | |
virtual void | AddGroundLevel (Int_t z=66, Int_t a=152, Option_t *opt="0/1+", Float_t energy=0, Float_t errEnergy=1) |
Add ground state level. More... | |
virtual void | AddLevel (Float_t energy=300, Float_t errEnergy=1, const Char_t *dJp="0/1+") |
Add new level to the current cascade. More... | |
virtual void | AddLink (Float_t strength=100, Float_t errStrength=1, Float_t energy=300, Float_t errEnergy=1, const Char_t *mult="E2") |
Add link with selected link/level. More... | |
virtual void | AddLinkOnTop (Measure< Float_t > strength, Measure< Float_t > energy) |
Add gamma link on the top of a band by selected a link or a link. More... | |
virtual void | AddLinkToCascade () |
Add existing link to cascade. More... | |
virtual void | AddText (const Char_t *msg) |
Add text to the LS at last mouse position. More... | |
virtual void | AlignCascade () |
Align selected cascade's levels/links respect to the first selected in X. More... | |
virtual void | AlignLevels () |
Align selected levels respect to the first selected in X (does not affect the associated links) More... | |
virtual void | AlignLinks () |
Align selected links on level posistions in X. More... | |
virtual Int_t | CollectCascades (Option_t *o="") |
Collect selected cascades. More... | |
virtual Int_t | CollectGate (Option_t *opt="reset") |
Collect gate on a histogram and add them to filter. More... | |
virtual Int_t | CollectLevels (Option_t *o="") |
Collect selected leveks. More... | |
virtual Int_t | CollectLinks (Option_t *o="") |
Collect selected links. More... | |
Bool_t | Connect (TCanvas *c=0x0) |
Connect the Canvas to this to collect events. More... | |
virtual void | Delete (Option_t *) |
Intercept Delete. More... | |
virtual void | DeleteLevel () |
Delete current level. More... | |
virtual void | DeleteLink () |
Delete current link. More... | |
virtual void | DeSelect () |
Deselect all objects. More... | |
Bool_t | Disconnect (TCanvas *c=0x0) |
Connect the Canvas to this to collect events. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Compute distance to object. More... | |
virtual void | DoJ1 (Option_t *opt="AP") const |
Do J1. More... | |
virtual void | DoJ2 (Option_t *opt="AP") const |
Do J2. More... | |
virtual void | DoProject (Option_t *axis="x", Option_t *gateName="Gate", Option_t *optFilter="reset", Option_t *optDraw="") |
Make gate, project and drawing. More... | |
virtual void | DoStyle (EDrawStyle style) |
do style More... | |
virtual void | Draw (Option_t *opt="") |
To draw this level scheme. More... | |
virtual void | DrawProj (Option_t *opt="") |
Draw projection. More... | |
virtual void | DrawProjTot (Option_t *opt="") |
Draw projection total. More... | |
Color_t | GetCascadeDefColor () |
Color_t | GetCascadeSelColor () |
const char * | GetCSDefaultName () |
Color_t | GetLevelKnownStyle () |
Float_t | GetLevelLabelsColor () |
Float_t | GetLevelLabelsSize () |
Color_t | GetLevelMinusColor () |
Color_t | GetLevelPlusColor () |
virtual LevelScheme * | GetLevelScheme () |
Get current liks. More... | |
Color_t | GetLevelSelColor () |
Color_t | GetLevelTentStyle () |
Color_t | GetLevelUnknownColor () |
Color_t | GetLinkColor () |
const char * | GetLSName () |
virtual const char * | GetPathtoSaveLS () const |
get where are saved levelscheme More... | |
virtual Cascade * | GetSelectedLinks () |
Get current links. More... | |
GLSPlayer (LevelScheme *levelScheme) | |
void | HandleMovement (Int_t eventType, Int_t eventX, Int_t eventY, TObject *select) |
Handle Movement. More... | |
virtual Int_t | ImportLevelScheme (const Char_t *, Option_t *) |
to init this level scheme from an existing formatted file (ENSDF, Radware ..) More... | |
virtual void | InsertLink (Measure< Float_t > strength) |
insert a gamma link between two seleted levels More... | |
virtual Bool_t | IsDrawStyle (EDrawStyle style) |
get style More... | |
virtual Bool_t | IsLevelMovable () |
virtual Bool_t | IsLinkMovable () |
virtual void | MakeCascade (const Char_t *label="New") |
Make Cascade from selected links. More... | |
virtual void | MoveCascade (Float_t mv=200, Bool_t lastLevel=true) |
Move all levels/link (extra line) from a casacde (excluded last level if lastLevel = false) More... | |
virtual void | PopupAddArrow () |
Popup AddArrow menu. More... | |
virtual void | PopupAddFirstLevel () |
Popup AddFirstLevel menu. More... | |
virtual void | PopupAddGroundLevel () |
Popup AddGroundLevel menu. More... | |
virtual void | PopupAddLevel () |
Popup AddLevel menu. More... | |
virtual void | PopupAddLink () |
Popup AddLink menu. More... | |
virtual void | PopupAddText () |
Popup AddText menu. More... | |
virtual void | PopupDoProject () |
Popup DoProject menu. More... | |
virtual void | PopupWriteLS () |
Popup write LS menu. More... | |
virtual void | Project (Option_t *axis="x") |
Project with CSManger. More... | |
virtual Int_t | ReadAGS (const Char_t *filename, Option_t *opt="152Dy") |
for backward compatibility More... | |
virtual Int_t | ReadENSDF (const Char_t *, Option_t *) |
for backward compatibility More... | |
virtual void | RegisterCS (const Char_t *fileName, const Char_t *name=CorrelatedSpace::GetDefaultName()) |
Register correlated space. More... | |
virtual void | Select () |
Select all objects. More... | |
virtual void | SetCascadeColorPalette (Color_t def, Color_t selected) |
set color palette for level More... | |
virtual void | SetDrawStyle (EDrawStyle style) |
set style More... | |
virtual void | SetLevelColorPalette (Color_t plus, Color_t minus, Color_t unknown, Color_t selected) |
set color palette for level More... | |
virtual void | SetLevelLabelsColor (Color_t color) |
Set label color for levels. More... | |
virtual void | SetLevelLabelsSize (Float_t size) |
Set label size for levels. More... | |
virtual void | SetLevelMove (Bool_t move) |
Disable/Enable move of levels. More... | |
virtual void | SetLevelStylePalette (Color_t known, Color_t tentative) |
set style palette for level More... | |
virtual void | SetLevelVisLabel (const char *s="0000") |
Set vis label for levels. More... | |
virtual void | SetLinkDefaultColor (Color_t col) |
set color palette for link More... | |
virtual void | SetLinkLabelsColor (Color_t color) |
Set label color for levels. More... | |
virtual void | SetLinkLabelsSize (Float_t size) |
Set label size for levels. More... | |
virtual void | SetLinkMove (Bool_t move) |
Disable/Enable move of links. More... | |
virtual void | SetLinkVisLabel (const char *s="000") |
Set vis label for levels. More... | |
virtual TString | SetPathtoSaveLS (const char *newpath) |
set where this should save the level scheme More... | |
virtual void | ShowGate (Option_t *opt="gate") |
Show gate on spectrum. More... | |
virtual void | WriteLS (const char *nameLS, const char *path, Int_t write=TObject::kOverwrite) |
Save level scheme. More... | |
virtual | ~GLSPlayer () |
Static Public Member Functions | |
static Float_t * | GetDefaultSize () |
Get default size. More... | |
static Int_t | GetDefaultToggleColor () |
get default color for axis toggle More... | |
static Float_t | GetDefaultWidth () |
Get default width. More... | |
static Float_t | GetXAxis (Float_t xmin, Float_t xmax) |
Get position of axis in X. More... | |
static Float_t | GetXMax (Float_t xRmin, Float_t xRmax) |
static Float_t | GetXMin (Float_t xRmin, Float_t xRmax) |
Get size from range. More... | |
static Float_t | GetXRmax (Float_t xmin, Float_t xmax) |
static Float_t | GetXRmin (Float_t xmin, Float_t xmax) |
Get range from size. More... | |
static Float_t | GetYLabels (Float_t ymin, Float_t ymax) |
Get position of labels in Y. More... | |
static Float_t | GetYMax (Float_t yRmin, Float_t yRmax) |
static Float_t | GetYMin (Float_t yRmin, Float_t yRmax) |
static Float_t | GetYRmax (Float_t ymin, Float_t ymax) |
static Float_t | GetYRmin (Float_t ymin, Float_t ymax) |
static void | SetDefaultSize (Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax) |
set default size for level scheme More... | |
static void | SetDefaultToggleColor (Int_t color) |
set default color for axis toggle More... | |
static void | SetDefaultWidth (Float_t width) |
set default widths More... | |
Protected Member Functions | |
virtual void | AddLinkBetween (Float_t strength=10, Float_t energy=300, Float_t errStrength=1, Float_t errEnergy=1) |
Add gamma link on the top of any selected link (under progress) More... | |
virtual void | AddLinkOnTop (Float_t strength=10, Float_t energy=300, Float_t errStrength=1, Float_t errEnergy=1, const Char_t *mult="E1") |
Add gamma link on the top of the selected link. More... | |
virtual Bool_t | CheckPolarity (GammaLink &link) |
Check multi-polarity. More... | |
ClassDef (BaseLSPlayer, 0) | |
log message More... | |
TList & | GetCascadeList () |
Cascade * | GetCurrentCascade () |
Level * | GetCurrentLevel () |
Link * | GetCurrentLink () |
virtual Int_t | GetLastX () |
set/get fLastX/fLastY More... | |
virtual Int_t | GetLastY () |
TList & | GetLevelList () |
TList & | GetLinkList () |
TLatex & | GetNameLatex () |
virtual void | InsertLink (Float_t strength=10, Float_t errStrength=1, const Char_t *mult="E1") |
insert a gamma link between two seleted levels More... | |
virtual void | Print (Option_t *) const |
Print out. More... | |
virtual void | SetLastXY (Int_t lastX, Int_t lastY) |
virtual void | SetTipText (TObject *select) |
set text for tool tip info More... | |
virtual void | UpdateDrawingOptions () |
update drawing options color/style More... | |
Protected Attributes | |
LSaxis * | fAxis |
Color_t | fCColorSelectedLink |
TContextMenu * | fContextMenu |
EDrawStyle | fDrawStyle |
pointer on level scheme More... | |
TGToolTip * | fInfoTip |
Bool_t | fIsLSSelected |
Bool_t | fIsOnAxis |
Bool_t | fIsTipsOn |
LevelScheme * | fLevelScheme |
LogMessage | fLog |
TList * | fNucleiList |
pointer to the selected levels More... | |
Float_t | fPositionLabels |
TList * | fSelectedCascades |
pointer to the selected levels More... | |
Cascade * | fSelectedLevels |
pointer to the selected links More... | |
Cascade * | fSelectedLinks |
Static Protected Attributes | |
static Float_t | fgDefaultSize [] = {28000, 32000, 0, 6000} |
size of the level scheme per default More... | |
static Int_t | fgDefaultToggleColor = 24 |
default color of axis when toggle is on More... | |
static Float_t | fgDefaultWidth = 600 |
default width for level, box etc... More... | |
Most of the methods relies on graphical approach for level scheme.
A level scheme could be read from a file (radware or ensdf) or a level could be built from scratch.
Setting attributes as color style labels for cascade, level and link are available via menus.
Dedicated actions could be performed: Cascade::DoJ1(2): selected a cascade and the moment is calculated and plot onto a canvas. Link::DoGate: from selected links, draw gates onto a existing spectrum.
Direct actions are possible via the LS menu: AddGroundLevel: put the ground level in an empty level scheme for a given (Z,A), AddLink: this method put a link on the top by selecting a link or insert a link by selecting two levels, AddLevel: this method put a level on the top of a selected level, AddFirstLevel: add the first level on a new cascade.
The labels inherited from TLatex class are all editable. The objects as link, level and cascade have menus to set individually their attributes (colors, styles, names, etc...) by clicking. By default these objects could not be moved, SetMovable as true for moving in menu.
Definition at line 53 of file GLSPlayer.h.