47 if (selection && selection[0]) {
94 const char *selection = selectObj ? selectObj->
GetTitle() :
"";
96 if (strlen(selection)) {
111 return fChain ?
fChain->GetTree()->GetEntry(entry, getall) : 0;
155 if (
fSelect->EvalInstance(0) ) {
166 if (!ndata)
return true;
171 if (
fSelect->EvalInstance(0)) {
174 for (
Int_t i=1;i<ndata;i++) {
175 if (
fSelect->EvalInstance(i)) {
196 cselection =
new TNamed(
"selection",
"");
222 Error(
"Terminate",
"fSelectedRows is missing in fOutput");
int Int_t
Signed integer 4 bytes (int).
long long Long64_t
Portable signed long integer 8 bytes.
The TNamed class is the base class for all named ROOT classes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual const char * GetTitle() const
Returns title of object.
TObject()
TObject constructor.
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.