4 #ifndef Gw_CorrelatedSpace
12 #ifndef Gw_BaseLSPlayer
16 #ifndef Gw_NuclearLevel
60 virtual void Draw(Option_t *opt =
"");
66 virtual void ShowGate(Option_t* opt =
"gate");
72 virtual void DrawProj(Option_t* opt =
"");
78 virtual void Project(Option_t* axis =
"x");
81 virtual void DoProject(Option_t* axis =
"x", Option_t* gateName =
"Gate",
82 Option_t* optFilter =
"reset", Option_t* optDraw =
"");
92 virtual void AddLink(Float_t strength = 100, Float_t errStrength = 1,
93 Float_t energy = 300, Float_t errEnergy = 1,
94 const Char_t* mult =
"E2" );
99 TString current = fPathtoSaveLS;
100 fPathtoSaveLS = newpath;
107 return fPathtoSaveLS.Data();
115 virtual void WriteLS(
const char* nameLS,
const char *path, Int_t write = TObject::kOverwrite);
118 virtual void AddFirstLevel(Float_t energy = 300, Float_t errEnergy = 1,
const Char_t* jp =
"0+", Option_t* opt =
"left");
121 virtual void AddLevel(Float_t energy = 300, Float_t errEnergy = 1,
const Char_t* dJp =
"0/1+");
124 virtual void AddGroundLevel(Int_t z = 66, Int_t a = 152, Option_t* opt =
"0/1+", Float_t energy = 0, Float_t errEnergy = 1);
127 virtual void AddArrow(Option_t* opt =
"|>");
130 virtual void AddText(
const Char_t* msg);
133 virtual void MakeCascade(
const Char_t* label =
"New");
136 virtual void DoJ1(Option_t* opt =
"AP")
const;
139 virtual void DoJ2(Option_t* opt =
"AP")
const;
151 virtual void MoveCascade(Float_t mv = 200, Bool_t lastLevel =
true);
179 Color_t unknown, Color_t selected);
257 virtual void AddLinkBetween(Float_t strength = 10, Float_t energy = 300,
258 Float_t errStrength = 1, Float_t errEnergy = 1);
261 virtual void AddLinkOnTop(Float_t strength = 10, Float_t energy = 300,
262 Float_t errStrength = 1, Float_t errEnergy = 1,
263 const Char_t* mult =
"E1");
266 virtual void InsertLink(Float_t strength = 10, Float_t errStrength = 1,
const Char_t* mult =
"E1");
275 Color_t fCascadeDefColor;
276 Color_t fCascadeSelColor;
278 Style_t fLevelKnownStyle;
279 Style_t fLevelTentStyle;
281 Color_t fLevelPlusColor;
282 Color_t fLevelMinusColor;
283 Color_t fLevelUnknownColor;
284 Color_t fLevelSelColor;
286 Float_t fLevelLabelsSize;
287 Color_t fLevelLabelsColor;
295 TString fPathtoSaveLS;
297 Char_t* fCSDefaultName;
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.
virtual void SetLevelMove(Bool_t move)
Disable/Enable move of levels.
virtual void PopupAddArrow()
Popup AddArrow menu.
virtual void AlignLinks()
Align selected links on level posistions in X.
static void DisableMove()
virtual void Project(Option_t *axis="x")
Project with CSManger.
virtual const char * GetPathtoSaveLS() const
get where are saved levelscheme
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.
virtual void SetCascadeColorPalette(Color_t def, Color_t selected)
set color palette for level
virtual void AddArrow(Option_t *opt="|>")
Add arrows to the LS between two selected levels.
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)
virtual void DoProject(Option_t *axis="x", Option_t *gateName="Gate", Option_t *optFilter="reset", Option_t *optDraw="")
Make gate, project and drawing.
Color_t GetCascadeDefColor()
virtual void AlignCascade()
Align selected cascade's levels/links respect to the first selected in X.
virtual EDefaultStyle GetDefaultStyle()
return default style
virtual void InsertLink(Measure< Float_t > strength)
insert a gamma link between two seleted levels
virtual void MakeCascade(const Char_t *label="New")
Make Cascade from selected links.
Float_t GetLevelLabelsColor()
Color_t GetCascadeSelColor()
virtual TString SetPathtoSaveLS(const char *newpath)
set where this should save the level scheme
virtual void AddLinkToCascade()
Add existing link to cascade.
virtual Bool_t IsLinkMovable()
virtual EDefaultColor GetDefaultColor()
return default color
header file for a NuclearLevel
virtual void SetLinkLabelsColor(Color_t color)
Set label color for levels.
virtual Bool_t IsLevelMovable()
virtual void DeSelect()
Deselect all objects.
Float_t GetLevelLabelsSize()
Color_t GetLevelSelColor()
virtual void SetLevelStylePalette(Color_t known, Color_t tentative)
set style palette for level
CSManager correlated spaces manager.
virtual const char * GetName() const
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.
header file for a GammaLink
virtual void DrawProj(Option_t *opt="")
Draw projection.
Color_t GetLevelUnknownColor()
virtual void PopupWriteLS()
Popup write LS menu.
Most of the methods relies on graphical approach for level scheme.
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) ...
template that defines a general Measure
virtual void SetLevelLabelsColor(Color_t color)
Set label color for levels.
virtual void Select()
Select all objects.
virtual void PopupAddGroundLevel()
Popup AddGroundLevel menu.
const char * GetCSDefaultName()
virtual Bool_t CheckPolarity(GammaLink &link)
Check multi-polarity.
virtual void SetLinkMove(Bool_t move)
Disable/Enable move of links.
virtual void PopupAddText()
Popup AddText menu.
virtual Int_t CollectGate(Option_t *opt="reset")
Collect gate on a histogram and add them to filter.
virtual void SetLevelVisLabel(const char *s="0000")
Set vis label for levels.
virtual void AddText(const Char_t *msg)
Add text to the LS at last mouse position.
virtual void SetLinkDefaultColor(Color_t col)
set color palette for link
virtual void ShowGate(Option_t *opt="gate")
Show gate on spectrum.
Color_t GetLevelKnownStyle()
virtual void SetLinkVisLabel(const char *s="000")
Set vis label for levels.
virtual void Draw(Option_t *opt="")
To draw this level scheme.
static Color_t GetDefaultColor()
virtual void SetLevelColorPalette(Color_t plus, Color_t minus, Color_t unknown, Color_t selected)
set color palette for level
static Float_t GetDefaultLabelSize()
static Bool_t IsMovable()
virtual void PopupAddLevel()
Popup AddLevel menu.
Color_t GetLevelTentStyle()
virtual void DrawProjTot(Option_t *opt="")
Draw projection total.
virtual void SetLevelLabelsSize(Float_t size)
Set label size for levels.
virtual void WriteLS(const char *nameLS, const char *path, Int_t write=TObject::kOverwrite)
Save level scheme.
virtual void PopupDoProject()
Popup DoProject menu.
virtual EDefaultColor GetDefaultColor()
return default color
virtual void AddLevel(Float_t energy=300, Float_t errEnergy=1, const Char_t *dJp="0/1+")
Add new level to the current cascade.
Color_t GetLevelPlusColor()
static Bool_t IsMovable()
virtual void AlignLevels()
Align selected levels respect to the first selected in X (does not affect the associated links) ...
virtual void UpdateDrawingOptions()
update drawing options color/style
virtual void DeleteLevel()
Delete current level.
virtual void SetLinkLabelsSize(Float_t size)
Set label size for levels.
virtual void DoJ1(Option_t *opt="AP") const
Do J1.
virtual void RegisterCS(const Char_t *fileName, const Char_t *name=CorrelatedSpace::GetDefaultName())
Register correlated space.
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.
virtual void DoJ2(Option_t *opt="AP") const
Do J2.
A GammaLink binds two nuclear levels.
virtual void PopupAddLink()
Popup AddLink menu.
LevelScheme * fLevelScheme
Color_t GetLevelMinusColor()
virtual void DeleteLink()
Delete current link.
static Color_t GetDefaultLabelColor()
BaseLSPlayer to work on level scheme.
static void DisableMove()
virtual void PopupAddFirstLevel()
Popup AddFirstLevel menu.
GLSPlayer(LevelScheme *levelScheme)