Class: TSelector

JSROOT. TSelector

new JSROOT.TSelector()

Class to read data from TTree

Instance of TSelector can be used to access TTree data

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 If second parameter not specified, branch name (here "px") will be used If branch object specified as first parameter and second parameter missing, then member like "br0", "br1" and so on will be assigned

Name Type Description
branch string | Object

name of branch (or branch object itself}

name string optional

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

abstractShowProgress(progress)

function called during TTree processing

Name Type Description
progress number

current value between 0 and 1

abstractTerminate(res)

function called at the very end of processing

Name Type Description
res boolean

true if all data were correctly processed