Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
25class TH1F;
26class TH2F;
27class TH3F;
28class TRandom3;
29class TCanvas;
30class TPBHistType;
31
32class TSelHist : public TSelector {
33public :
34
35 // Specific members
39 TH1F **fHist1D;//[fNHists]
40 TH2F **fHist2D;//[fNHists]
41 TH3F **fHist3D;//[fNHists]
46
47 TSelHist();
48 ~TSelHist() override;
49 Int_t Version() const override { return 2; }
50 void Begin(TTree *tree) override;
51 void SlaveBegin(TTree *tree) override;
52 Bool_t Process(Long64_t entry) override;
53 void SetOption(const char *option) override { fOption = option; }
54 void SetObject(TObject *obj) override { fObject = obj; }
55 void SetInputList(TList *input) override { fInput = input; }
56 TList *GetOutputList() const override { return fOutput; }
57 void SlaveTerminate() override;
58 void Terminate() override;
59
60 ClassDefOverride(TSelHist,0) //PROOF selector for CPU-intensive benchmark test
61};
62
63#endif
bool Bool_t
Definition RtypesCore.h:63
long long Long64_t
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
The Canvas class.
Definition TCanvas.h:23
1-D histogram with a float per channel (see TH1 documentation)
Definition TH1.h:621
2-D histogram with a float per channel (see TH1 documentation)
Definition TH2.h:307
3-D histogram with a float per channel (see TH1 documentation)
Definition TH3.h:317
A doubly linked list.
Definition TList.h:38
Mother of all ROOT objects.
Definition TObject.h:41
Random number generator class based on M.
Definition TRandom3.h:27
PROOF selector for CPU-intensive benchmark test.
Definition TSelHist.h:32
void SlaveBegin(TTree *tree) override
The SlaveBegin() function is called after the Begin() function.
Definition TSelHist.cxx:156
void SetOption(const char *option) override
Definition TSelHist.h:53
Bool_t Process(Long64_t entry) override
The Process() function is called for each entry in the tree (or possibly keyed object in the case of ...
Definition TSelHist.cxx:267
TSelHist()
Constructor.
Definition TSelHist.cxx:45
Int_t Version() const override
Definition TSelHist.h:49
void SlaveTerminate() override
The SlaveTerminate() function is called after all entries or objects have been processed.
Definition TSelHist.cxx:306
TList * GetOutputList() const override
Definition TSelHist.h:56
~TSelHist() override
Destructor.
Definition TSelHist.cxx:54
TCanvas * fCHist2D
Definition TSelHist.h:44
TH1F ** fHist1D
Definition TSelHist.h:39
void SetObject(TObject *obj) override
Definition TSelHist.h:54
void Begin(TTree *tree) override
The Begin() function is called at the start of the query.
Definition TSelHist.cxx:84
TH2F ** fHist2D
Definition TSelHist.h:40
TCanvas * fCHist3D
Definition TSelHist.h:45
TH3F ** fHist3D
Definition TSelHist.h:41
TRandom3 * fRandom
Definition TSelHist.h:42
TCanvas * fCHist1D
Definition TSelHist.h:43
Bool_t fDraw
Definition TSelHist.h:38
void Terminate() override
The Terminate() function is the last function to be called during a query.
Definition TSelHist.cxx:315
Int_t fNHists
Definition TSelHist.h:37
void SetInputList(TList *input) override
Definition TSelHist.h:55
TPBHistType * fHistType
Definition TSelHist.h:36
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition TSelector.h:31
TList * fInput
List of objects available during processing.
Definition TSelector.h:41
TString fOption
Option given to TTree::Process.
Definition TSelector.h:39
TSelectorList * fOutput
! List of objects created during processing
Definition TSelector.h:42
TObject * fObject
! Current object if processing object (vs. TTree)
Definition TSelector.h:40
A TTree represents a columnar dataset.
Definition TTree.h:79