// Original Author: Rene Brun 05/02/97 // Modified for use in VEGA by D. Buskulic 21/03/03 #ifndef VEGA_VSelector #define VEGA_VSelector ////////////////////////////////////////////////////////////////////////// // // // VSelector // // // // A utility class for FrameChannel selections. // // // ////////////////////////////////////////////////////////////////////////// #ifndef ROOT_TObject #include "TObject.h" #endif #ifndef ROOT_TString #include "TString.h" #endif #include "FrameL.h" class VVirtualFrameChannel; class VSelector : public TObject { protected: Int_t mStatus; //Selector status TString mOption; //option given to VFrameChannel::Process TObject *mObject; //current object if processing object (vs. VFrameChannel) // TList *fInput; //list of objects available during processing (on PROOF) // TList *fOutput; //list of objects created during processing (on PROOF) public: VSelector(); virtual ~VSelector(); virtual void Init(VVirtualFrameChannel *) { } virtual void Begin(VVirtualFrameChannel *) { } virtual const char *GetOption() const { return mOption.Data();} virtual Int_t GetStatus() const {return mStatus;} virtual Bool_t ProcessCut(FrameH*) { return kTRUE; } virtual Bool_t ProcessFrame(FrameH*) { return kFALSE; } virtual Bool_t ProcessVect(int, FrVect** , FrVect* ) { return kFALSE; } virtual void SetOption(const char *option) { mOption = option; } virtual void SetObject(TObject *obj) { mObject = obj; } // virtual void SetInputList(TList *input) { mInput = input; } virtual void SetStatus(Int_t status) { mStatus = status;} // virtual TList *GetOutputList() const { return mOutput; } virtual void Terminate() { } static VSelector *GetSelector(const char *filename); ClassDef(VSelector,0) //A utility class for frame channel processing }; #endif