Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TSelHist.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Sangsu Ryu 22/06/2010
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSelHist
13 #define ROOT_TSelHist
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TSelHist //
18 // PROOF selector for CPU-intensive benchmark test. //
19 // Events are generated and 1-D, 2-D, and/or 3-D histograms are filled. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include <TSelector.h>
24 
25 class TH1F;
26 class TH2F;
27 class TH3F;
28 class TRandom3;
29 class TCanvas;
30 class TPBHistType;
31 
32 class TSelHist : public TSelector {
33 public :
34 
35  // Specific members
36  TPBHistType *fHistType;
37  Int_t fNHists;
38  Bool_t fDraw;
39  TH1F **fHist1D;//[fNHists]
40  TH2F **fHist2D;//[fNHists]
41  TH3F **fHist3D;//[fNHists]
42  TRandom3 *fRandom;
43  TCanvas *fCHist1D;
44  TCanvas *fCHist2D;
45  TCanvas *fCHist3D;
46 
47  TSelHist();
48  virtual ~TSelHist();
49  virtual Int_t Version() const { return 2; }
50  virtual void Begin(TTree *tree);
51  virtual void SlaveBegin(TTree *tree);
52  virtual Bool_t Process(Long64_t entry);
53  virtual void SetOption(const char *option) { fOption = option; }
54  virtual void SetObject(TObject *obj) { fObject = obj; }
55  virtual void SetInputList(TList *input) { fInput = input; }
56  virtual TList *GetOutputList() const { return fOutput; }
57  virtual void SlaveTerminate();
58  virtual void Terminate();
59 
60  ClassDef(TSelHist,0) //PROOF selector for CPU-intensive benchmark test
61 };
62 
63 #endif