103 out <<
"//--- tree viewer record"<<std::endl;
104 out <<
" tv_record = tv_session->AddRecord(kTRUE);"<<std::endl;
105 out <<
" tv_session->SetRecordName("<<quote<<
GetName()<<quote<<
");"<<std::endl;
106 out <<
" tv_record->fX = "<<quote<<
fX.
Data()<<quote<<
";"<<std::endl;
107 out <<
" tv_record->fY = "<<quote<<
fY.
Data()<<quote<<
";"<<std::endl;
108 out <<
" tv_record->fZ = "<<quote<<
fZ.
Data()<<quote<<
";"<<std::endl;
109 out <<
" tv_record->fCut = "<<quote<<
fCut.
Data()<<quote<<
";"<<std::endl;
110 out <<
" tv_record->fXAlias = "<<quote<<
fXAlias.
Data()<<quote<<
";"<<std::endl;
111 out <<
" tv_record->fYAlias = "<<quote<<
fYAlias.
Data()<<quote<<
";"<<std::endl;
112 out <<
" tv_record->fZAlias = "<<quote<<
fZAlias.
Data()<<quote<<
";"<<std::endl;
113 out <<
" tv_record->fCutAlias = "<<quote<<
fCutAlias.
Data()<<quote<<
";"<<std::endl;
114 out <<
" tv_record->fOption = "<<quote<<
fOption.
Data()<<quote<<
";"<<std::endl;
116 out <<
" tv_record->fScanRedirected = kTRUE;"<<std::endl;
118 out <<
" tv_record->fScanRedirected = kFALSE;"<<std::endl;
120 out <<
" tv_record->fCutEnabled = kTRUE;"<<std::endl;
122 out <<
" tv_record->fCutEnabled = kFALSE;"<<std::endl;
124 out <<
" tv_record->SetUserCode(\""<<
fUserCode.
Data()<<
"\");"<<std::endl;
126 out <<
" tv_record->SetAutoexec();"<<std::endl;
172 if (strlen(newrec->
GetY())) {
176 if (strlen(newrec->
GetX())) {
257 out<<
"//--- session object"<<std::endl;
258 out<<
" TTVSession* tv_session = new TTVSession(treeview);"<<std::endl;
259 out<<
" treeview->SetSession(tv_session);"<<std::endl;
265 out<<
"//--- Connect first record"<<std::endl;
266 out<<
" tv_session->First();"<<std::endl;
An array of clone (identical) objects.
TObject * RemoveAt(Int_t idx) override
Remove object at index idx.
void Delete(Option_t *option="") override
Clear the clones array.
TObject * UncheckedAt(Int_t i) const
friend class TClonesArray
const char * Data() const
This class represent entries that goes into the TreeViewer listview container.
void SetSmallPic(const TGPicture *spic)
Set small picture.
void SetExpression(const char *name, const char *alias, Bool_t cutType=kFALSE)
Set the true name, alias and type of the expression, then refresh it.
const char * GetTrueName()
I/O classes for TreeViewer session handling.
Bool_t MustExecuteCode() const
Bool_t fScanRedirected
Redirect switch.
TString fName
Name of this record.
Bool_t fCutEnabled
True if current cut is active.
TString fCutAlias
Cut alias.
void ExecuteUserCode()
Execute user-defined code.
const char * GetY() const
Bool_t HasUserCode() const
void SetName(const char *name="")
void SaveSource(std::ofstream &out)
Save the TTVRecord in a C++ macro file.
Bool_t fAutoexec
Autoexecute user code command.
void FormFrom(TTreeViewer *tv)
Populate members from treeviewer tv.
const char * GetX() const
virtual const char * GetName() const
Returns name of object.
TString fUserCode
Command executed when record is connected.
void PlugIn(TTreeViewer *tv)
Change treeviewer status to this record.
TTVRecord()
Default constructor.
TString fCut
Cut expression.
TString fOption
Graphic option.
const char * GetZ() const
I/O classes for TreeViewer session handling.
TTVSession(TTreeViewer *tv)
Constructor.
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.
TClonesArray * fList
List of TV records.
Int_t fCurrent
Index of current record.
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.
void SetCurrentRecord(Long64_t entry)
void SetHistogramTitle(const char *title)
Bool_t IsScanRedirected()
TTVLVEntry * ExpressionItem(Int_t index)
void SetScanRedirect(Bool_t mode)
void ActivateButtons(Bool_t first, Bool_t previous, Bool_t next, Bool_t last)
void SetGrOpt(const char *option)
void SetCutMode(Bool_t enabled=kTRUE)