12#ifndef ROOT_TTVSession
13#define ROOT_TTVSession
54 const char *
GetX()
const {
return fX;}
55 const char *
GetY()
const {
return fY;}
56 const char *
GetZ()
const {
return fZ;}
63 void SetX(
const char *
x =
"",
const char *xal =
"-empty-") {
fX =
x;
fXAlias = xal;}
64 void SetY(
const char *
y =
"",
const char *yal =
"-empty-") {
fY =
y;
fYAlias = yal;}
65 void SetZ(
const char *z =
"",
const char *zal =
"-empty-") {
fZ = z;
fZAlias = zal;}
#define ClassDef(name, id)
An array of clone (identical) objects.
Mother of all ROOT objects.
I/O classes for TreeViewer session handling.
void SetX(const char *x="", const char *xal="-empty-")
Bool_t MustExecuteCode() const
void SetOption(const char *option="")
Bool_t fScanRedirected
Redirect switch.
TString fName
Name of this record.
void SetUserCode(const char *code, Bool_t autoexec=kTRUE)
Bool_t fCutEnabled
True if current cut is active.
TString fCutAlias
Cut alias.
void ExecuteUserCode()
Execute user-defined code.
const char * GetY() const
void SetZ(const char *z="", const char *zal="-empty-")
Bool_t HasUserCode() const
void SetName(const char *name="")
void SaveSource(std::ofstream &out)
Save the TTVRecord in a C++ macro file.
void SetRC(Bool_t redirect=kFALSE, Bool_t cut=kTRUE)
Bool_t fAutoexec
Autoexecute user code command.
void FormFrom(TTreeViewer *tv)
Populate members from treeviewer tv.
const char * GetX() const
void SetY(const char *y="", const char *yal="-empty-")
virtual const char * GetName() const
Returns name of object.
TString fUserCode
Command executed when record is connected.
void SetAutoexec(Bool_t autoexec=kTRUE)
const char * GetUserCode() const
void PlugIn(TTreeViewer *tv)
Change treeviewer status to this record.
TTVRecord()
Default constructor.
TString fCut
Cut expression.
TString fOption
Graphic option.
void SetCut(const char *cut="", const char *cal="-empty-")
const char * GetZ() const
I/O classes for TreeViewer session handling.
void SaveSource(std::ofstream &out)
Save the TTVSession in a C++ macro file.
TTVRecord * GetRecord(Int_t i)
Return record at index i.
TTreeViewer * fViewer
Associated tree viewer.
void SetRecordName(const char *name)
Set record name.
void Show(TTVRecord *rec)
Display record rec.
virtual const char * GetName() const
Returns name of object.
TClonesArray * fList
List of TV records.
Int_t fCurrent
Index of current record.
void SetName(const char *name)
TString fName
Name of this session.
void RemoveLastRecord()
Remove current record from list.
TTVRecord * AddRecord(Bool_t fromFile=kFALSE)
Add a record.
void UpdateRecord(const char *name)
Updates current record according to new X, Y, Z settings.
Int_t fRecords
Number of records.
A graphic user interface designed to handle ROOT trees and to take advantage of TTree class features.