/usr/include/root/TSelectorEntries.h is in libroot-tree-treeplayer-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | // @(#)root/treeplayer:$Id$
// Author: Philippe Canal 09/06/2006
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT__TSelectorEntries
#define ROOT__TSelectorEntries
//////////////////////////////////////////////////////////////////////////
// //
// TSelectorEntries //
// //
// A specialized TSelector for TTree::GetEntries(selection) //
// The selection is passed either via the constructor or via //
// SetSelection. The number of entries passing the selection (or //
// at least one element of the arrays or collections used in the //
// selection is passing the slection) is stored in fSeletedRwos //
// which can be retrieved via GetSelectedRows. //
// See a usage example in TTreePlayer::GetEntries. //
// //
//////////////////////////////////////////////////////////////////////////
#include <TSelector.h>
class TTree;
class TTreeFormula;
class TSelectorEntries : public TSelector {
public :
TTree *fChain; //! pointer to the analyzed TTree or TChain
TTreeFormula *fSelect; // Pointer to selection formula
Long64_t fSelectedRows; // Number of selected entries
Bool_t fSelectMultiple; // true if selection has a variable index
TSelectorEntries(TTree *tree = 0, const char *selection = 0);
TSelectorEntries(const char *selection);
virtual ~TSelectorEntries();
virtual Int_t Version() const { return 2; }
virtual void Begin(TTree *tree);
virtual void SlaveBegin(TTree *tree);
virtual void Init(TTree *tree);
virtual Bool_t Notify();
virtual Bool_t Process(Long64_t entry);
virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0);
virtual Long64_t GetSelectedRows() const { return fSelectedRows; }
virtual void SetOption(const char *option) { fOption = option; }
virtual void SetObject(TObject *obj) { fObject = obj; }
virtual void SetSelection(const char *selection);
virtual TList *GetOutputList() const { return fOutput; }
virtual void SlaveTerminate();
virtual void Terminate();
ClassDef(TSelectorEntries,1); //A specialized TSelector for TTree::GetEntries(selection)
};
#endif
|