ProofSimple.h

Go to the documentation of this file.
00001 //////////////////////////////////////////////////////////
00002 //
00003 // Example of TSelector implementation to do generic
00004 // processing (filling a set of histograms in this case).
00005 // See tutorials/proof/runProof.C, option "simple", for an
00006 // example of how to run this selector.
00007 //
00008 //////////////////////////////////////////////////////////
00009 
00010 #ifndef ProofSimple_h
00011 #define ProofSimple_h
00012 
00013 #include <TSelector.h>
00014 
00015 class TH1F;
00016 class TRandom3;
00017 
00018 class ProofSimple : public TSelector {
00019 public :
00020 
00021    // Specific members
00022    Int_t            fNhist;
00023    TH1F           **fHist;//[fNhist]
00024    TRandom3        *fRandom;
00025 
00026    ProofSimple();
00027    virtual ~ProofSimple();
00028    virtual Int_t   Version() const { return 2; }
00029    virtual void    Begin(TTree *tree);
00030    virtual void    SlaveBegin(TTree *tree);
00031    virtual Bool_t  Process(Long64_t entry);
00032    virtual void    SetOption(const char *option) { fOption = option; }
00033    virtual void    SetObject(TObject *obj) { fObject = obj; }
00034    virtual void    SetInputList(TList *input) { fInput = input; }
00035    virtual TList  *GetOutputList() const { return fOutput; }
00036    virtual void    SlaveTerminate();
00037    virtual void    Terminate();
00038 
00039    ClassDef(ProofSimple,0);
00040 };
00041 
00042 #endif

Generated on Tue Jul 5 15:44:53 2011 for ROOT_528-00b_version by  doxygen 1.5.1