ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TSelector
24 #include <TSelector.h>
25 #endif
26 
27 class TH1F;
28 class TH2F;
29 class TH3F;
30 class TRandom3;
31 class TCanvas;
32 class TPBHistType;
33 
34 class TSelHist : public TSelector {
35 public :
36 
37  // Specific members
41  TH1F **fHist1D;//[fNHists]
42  TH2F **fHist2D;//[fNHists]
43  TH3F **fHist3D;//[fNHists]
48 
49  TSelHist();
50  virtual ~TSelHist();
51  virtual Int_t Version() const { return 2; }
52  virtual void Begin(TTree *tree);
53  virtual void SlaveBegin(TTree *tree);
54  virtual Bool_t Process(Long64_t entry);
55  virtual void SetOption(const char *option) { fOption = option; }
56  virtual void SetObject(TObject *obj) { fObject = obj; }
57  virtual void SetInputList(TList *input) { fInput = input; }
58  virtual TList *GetOutputList() const { return fOutput; }
59  virtual void SlaveTerminate();
60  virtual void Terminate();
61 
62  ClassDef(TSelHist,0) //PROOF selector for CPU-intensive benchmark test
63 };
64 
65 #endif
virtual void Begin(TTree *tree)
The Begin() function is called at the start of the query.
Definition: TSelHist.cxx:83
TCanvas * fCHist3D
Definition: TSelHist.h:47
Random number generator class based on M.
Definition: TRandom3.h:29
TSelectorList * fOutput
Definition: TSelector.h:50
long long Long64_t
Definition: RtypesCore.h:69
3-D histogram with a float per channel (see TH1 documentation)}
Definition: TH3.h:272
TCanvas * fCHist1D
Definition: TSelHist.h:45
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:570
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void SlaveTerminate()
The SlaveTerminate() function is called after all entries or objects have been processed.
Definition: TSelHist.cxx:305
#define ClassDef(name, id)
Definition: Rtypes.h:254
Bool_t fDraw
Definition: TSelHist.h:40
virtual Int_t Version() const
Definition: TSelHist.h:51
virtual void SlaveBegin(TTree *tree)
The SlaveBegin() function is called after the Begin() function.
Definition: TSelHist.cxx:155
TString fOption
Definition: TSelector.h:47
TCanvas * fCHist2D
Definition: TSelHist.h:46
A doubly linked list.
Definition: TList.h:47
TObject * fObject
Definition: TSelector.h:48
virtual void Terminate()
The Terminate() function is the last function to be called during a query.
Definition: TSelHist.cxx:314
virtual void SetObject(TObject *obj)
Definition: TSelHist.h:56
TH3F ** fHist3D
Definition: TSelHist.h:43
2-D histogram with a float per channel (see TH1 documentation)}
Definition: TH2.h:256
TH2F ** fHist2D
Definition: TSelHist.h:42
virtual void SetOption(const char *option)
Definition: TSelHist.h:55
virtual TList * GetOutputList() const
Definition: TSelHist.h:58
Long64_t entry
virtual Bool_t Process(Long64_t entry)
The Process() function is called for each entry in the tree (or possibly keyed object in the case of ...
Definition: TSelHist.cxx:266
The Canvas class.
Definition: TCanvas.h:48
virtual ~TSelHist()
Destructor.
Definition: TSelHist.cxx:53
Mother of all ROOT objects.
Definition: TObject.h:58
Int_t fNHists
Definition: TSelHist.h:39
TList * fInput
Current object if processing object (vs. TTree)
Definition: TSelector.h:49
TPBHistType * fHistType
Definition: TSelHist.h:38
TH1F ** fHist1D
Definition: TSelHist.h:41
A TTree object has a header with a name and a title.
Definition: TTree.h:94
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:39
TObject * obj
TRandom3 * fRandom
Definition: TSelHist.h:44
virtual void SetInputList(TList *input)
Definition: TSelHist.h:57