45 fOwnInput(false), fChain(tree), fSelect(nullptr), fSelectedRows(0), fSelectMultiple(false)
47 if (selection && selection[0]) {
56 fOwnInput(false), fChain(nullptr), fSelect(nullptr), fSelectedRows(0), fSelectMultiple(false)
94 const char *selection = selectObj ? selectObj->
GetTitle() :
"";
96 if (strlen(selection)) {
166 if (!ndata)
return true;
174 for (
Int_t i=1;i<ndata;i++) {
196 cselection =
new TNamed(
"selection",
"");
222 Error(
"Terminate",
"fSelectedRows is missing in fOutput");
long long Long64_t
Portable signed long integer 8 bytes.
TObject * FindObject(const char *name) const override
Find object using its name.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual const char * GetTitle() const
Returns title of object.
const AParamType & GetVal() const
bool Notify() override
This function is called at the first entry of a new tree in a chain.
~TSelectorEntries() override
Destructor.
TTree * fChain
! Pointer to the analyzed TTree or TChain
void Begin(TTree *tree) override
The Begin() function is called at the start of the query.
TSelectorEntries(TTree *tree=nullptr, const char *selection=nullptr)
Default, constructor.
void SlaveTerminate() override
The SlaveTerminate() function is called after all entries or objects.
TTreeFormula * fSelect
Pointer to selection formula.
bool fOwnInput
True if we created the input list.
virtual void SetSelection(const char *selection)
Set the selection expression.
bool fSelectMultiple
True if selection has a variable index.
void Init(TTree *tree) override
The Init() function is called when the selector needs to initialize a new tree or chain.
Long64_t fSelectedRows
Number of selected entries.
void SlaveBegin(TTree *tree) override
The SlaveBegin() function is called after the Begin() function.
void Terminate() override
The Terminate() function is the last function to be called during a query.
Int_t GetEntry(Long64_t entry, Int_t getall=0) override
Read entry.
bool Process(Long64_t entry) override
The Process() function is called for each entry in the tree to be processed.
Named scalar type, based on Long64_t, streamable, storable and mergeable.
virtual void SetStatus(Long64_t status)
TList * fInput
List of objects available during processing.
TSelectorList * fOutput
! List of objects created during processing
const char * GetOption() const override
A TTree represents a columnar dataset.
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
virtual TTree * GetTree() const