23 #ifndef GW_LEVELSCHEME_H
24 #define GW_LEVELSCHEME_H
25 #define Gw_LevelScheme GW_LEVELSCHEME_H
62 class BaseLevelSchemeReader;
93 std::map <Int_t, TBits*> fCoincMap;
152 virtual void Browse(TBrowser *
b);
155 virtual void SetName(
const Char_t* name);
156 virtual const char*
GetName()
const;
171 TLatex*
NewText(
const char* msg);
174 TArrow*
NewArrow(Float_t x1, Float_t y1, Float_t x2, Float_t y2);
220 virtual Int_t
InitAGS(
const Char_t *filename, Option_t *opt =
"152Dy");
236 virtual Int_t
InitENSDF(
const Char_t *, Option_t *);
254 virtual Int_t
Import(
const Char_t *, Option_t *);
256 virtual void Clear(Option_t *opt =
"");
259 virtual void Draw(Option_t *opt =
"");
262 virtual void ls(Option_t* option =
"all")
const ;
268 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
TLatex & GetNameLatex()
to get Name latex object
TList & GetTextList()
to get the list of additional comments
void SetCCascade(Cascade *cascade)
set current cascade
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance to object.
virtual void ls(Option_t *option="all") const
list levels/links
A BaseLevelSchemeReader class to read level scheme files.
virtual TList * FindCLinkInCascade() const
Find the cascades that own the currengt link.
A cascade is a list of links.
virtual void Browse(TBrowser *b)
virtual Int_t InitAGS(const Char_t *filename, Option_t *opt="152Dy")
BETTER TO USE Import - To init this level scheme with a Radford AGS file.
virtual void Draw(Option_t *opt="")
to draw this level scheme
Level * NewLevel(const char *name)
create new level
const Link * GetCLink()
get current link
virtual TList * FindLinkInCascade(Link *link) const
Find the cascades that own that link.
void SetCLevel(Level *level)
set current level
const Cascade * GetCCascade()
get current cascade
virtual Int_t Import(const Char_t *, Option_t *)
to init this level scheme from an existing formatted file (ENSDF, Radware ..)
virtual void SetName(const Char_t *name)
set level scheme name.
Base class for a Log message.
virtual const char * GetName() const
Cascade * GetCurrentCascade()
get current cascade
const TList & GetLinks()
to get the list of links
virtual void Clear(Option_t *opt="")
header file for GwLogMessage.cpp
A link between two levels.
virtual const Char_t * GetReference() const
const TList & GetTexts()
to get the list of additional comments
TArrow * NewArrow(Float_t x1, Float_t y1, Float_t x2, Float_t y2)
create new arrow
virtual Int_t InitENSDF(const Char_t *, Option_t *)
BETTER TO USE Import - To init this level scheme with a ENSDF file.
Level * GetCurrentLevel()
get current level
const TList & GetCascades()
to get the list of cascades
header file for a general Level
void AddLevel(Level *level)
level scheme player pointer
void AddText(TLatex *latex)
Add text.
ClassDef(LevelScheme, 4)
log message
header file for a Cascade
void AddLink(Link *link)
Add link.
virtual void SortLevels(Bool_t order=kSortAscending)
Sort levels level.
Cascade * NewCascade(const char *name)
create new cascade
Link * NewLink(const char *name)
create new level
TLatex & GetRefLatex()
to get ref latex object
TList & GetLevelList()
to get the list of levels
const Level * GetCLevel()
get current level
void AddCascade(Cascade *Cascade)
Add cascade.
void AddArrow(TArrow *arrow)
Add arrow.
Link * GetCurrentLink()
get current link
const TList & GetLevels()
to get the list of levels
virtual void SetReference(const Char_t *)
set level scheme reference.
TList & GetCascadeList()
to get the list of cascades
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
to execute an event for this level scheme
virtual TBits * GetBitMap(Link *link)
get bit map coincidence above a given link
void SetCLink(Link *link)
set current link
BaseLSPlayer * GetPlayer(Option_t *opt="Graphical")
Get player.
virtual const TList * FindLink(Level *level) const
Find links attached to level.
TLatex * NewText(const char *msg)
create new text
virtual void FillMap()
Fill map of coincidence.
BaseLSPlayer to work on level scheme.
TList & GetLinkList()
to get the list of links
Base class describing a general level.