#ifndef ROOT_TEveTreeTools
#define ROOT_TEveTreeTools
#include "TSelectorDraw.h"
#include "TEventList.h"
class TEveSelectorToEventList : public TSelectorDraw
{
TEveSelectorToEventList(const TEveSelectorToEventList&);
TEveSelectorToEventList& operator=(const TEveSelectorToEventList&);
protected:
TEventList* fEvList;
TList fInput;
public:
TEveSelectorToEventList(TEventList* evl, const Text_t* sel);
virtual Int_t Version() const { return 1; }
virtual Bool_t Process(Long64_t entry);
ClassDef(TEveSelectorToEventList, 1);
};
class TEvePointSelector;
class TEvePointSelectorConsumer
{
public:
enum ETreeVarType_e { kTVT_XYZ, kTVT_RPhiZ };
protected:
ETreeVarType_e fSourceCS;
public:
TEvePointSelectorConsumer(ETreeVarType_e cs=kTVT_XYZ) :fSourceCS(cs) {}
virtual ~TEvePointSelectorConsumer() {}
virtual void InitFill(Int_t ) {}
virtual void TakeAction(TEvePointSelector*) = 0;
ETreeVarType_e GetSourceCS() const { return fSourceCS; }
void SetSourceCS(ETreeVarType_e cs) { fSourceCS = cs; }
ClassDef(TEvePointSelectorConsumer, 1);
};
class TEvePointSelector : public TSelectorDraw
{
TEvePointSelector(const TEvePointSelector&);
TEvePointSelector& operator=(const TEvePointSelector&);
protected:
TTree *fTree;
TEvePointSelectorConsumer *fConsumer;
TString fVarexp;
TString fSelection;
TString fSubIdExp;
Int_t fSubIdNum;
TList fInput;
public:
TEvePointSelector(TTree* t=0, TEvePointSelectorConsumer* c=0,
const Text_t* vexp="", const Text_t* sel="");
virtual ~TEvePointSelector() {}
virtual Long64_t Select(const Text_t* selection=0);
virtual Long64_t Select(TTree* t, const Text_t* selection=0);
virtual void TakeAction();
TTree* GetTree() const { return fTree; }
void SetTree(TTree* t) { fTree = t; }
TEvePointSelectorConsumer* GetConsumer() const { return fConsumer; }
void SetConsumer(TEvePointSelectorConsumer* c) { fConsumer = c; }
const Text_t* GetVarexp() const { return fVarexp; }
void SetVarexp(const Text_t* v) { fVarexp = v; }
const Text_t* GetSelection() const { return fSelection; }
void SetSelection(const Text_t* s) { fSelection = s; }
const Text_t* GetSubIdExp() const { return fSubIdExp; }
void SetSubIdExp(const Text_t* s) { fSubIdExp = s; }
Int_t GetSubIdNum() const { return fSubIdNum; }
ClassDef(TEvePointSelector, 1);
};
#endif
Last change: Wed Jun 25 08:37:34 2008
Last generated: 2008-06-25 08:37
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.