Class: TSelector

JSROOT. TSelector

new JSROOT.TSelector()

class to read data from TTree

Methods

call this function to abort processing

AddBranch(branch, name)

Add branch to the selector

Either branch name or branch itself should be specified Second parameter defines member name in the tgtobj If selector.AddBranch("px", "read_px") is called, branch will be read into selector.tgtobj.read_px member

Name Type Description
branch string

name of branch (or branch object itself}

name string

member name in tgtobj where data will be read

abstractBegin(tree)

function called before start processing

Name Type Description
tree object

tree object

abstractProcess(entry)

function called when next entry extracted from the tree

Name Type Description
entry number

read entry number

abstractTerminate(res)

function called at the very end of processing

Name Type Description
res boolean

true if all data were correctly processed