45 : fHistType(0), fNHists(16), fDraw(0), fHist1D(0), fHist2D(0), fHist3D(0),
46 fRandom(0), fCHist1D(0), fCHist2D(0), fCHist3D(0)
96 while ((obj = nxt())){
99 if (sinput.
Contains(
"PROOF_Benchmark_HistType")){
100 if ((
fHistType = dynamic_cast<TPBHistType *>(obj))) found_histtype =
kTRUE;
103 if (sinput.
Contains(
"PROOF_BenchmarkNHists")){
111 Error(
"Begin",
"PROOF_BenchmarkNHists not type TParameter<Int_t>*");
115 if (sinput.
Contains(
"PROOF_BenchmarkDraw")){
123 Error(
"Begin",
"PROOF_BenchmarkDraw not type TParameter<Int_t>*");
129 if (!found_histtype){
131 Warning(
"Begin",
"PROOF_Benchmark_HistType not found; using default: %d",
135 Warning(
"Begin",
"PROOF_BenchmarkNHists not found; using default: %d",
139 Warning(
"Begin",
"PROOF_BenchmarkDraw not found; using default: %d",
167 while ((obj = nxt())){
170 if (sinput.
Contains(
"PROOF_Benchmark_HistType")){
171 if ((
fHistType = dynamic_cast<TPBHistType *>(obj))) found_histtype =
kTRUE;
174 if (sinput.
Contains(
"PROOF_BenchmarkNHists")){
182 Error(
"SlaveBegin",
"PROOF_BenchmarkNHists not type TParameter" 187 if (sinput.
Contains(
"PROOF_BenchmarkDraw")){
195 Error(
"SlaveBegin",
"PROOF_BenchmarkDraw not type TParameter" 202 if (!found_histtype){
204 Warning(
"SlaveBegin",
"PROOF_Benchmark_HistType not found; using default: %d",
208 Warning(
"SlaveBegin",
"PROOF_BenchmarkNHists not found; using default: %d",
212 Warning(
"SlaveBegin",
"PROOF_BenchmarkDraw not found; using default: %d",
238 100, -3., 3., 100, -3., 3.);
327 fCHist1D =
new TCanvas(
"CHist1D",
"Proof TSelHist Canvas (1D)", 200, 10,
330 nside = (nside*nside <
fNHists) ? nside+1 : nside;
347 fCHist2D =
new TCanvas(
"CHist2D",
"Proof TSelHist Canvas (2D)", 200, 10,
350 nside = (nside*nside <
fNHists) ? nside+1 : nside;
367 fCHist3D =
new TCanvas(
"CHist3D",
"Proof TSelHist Canvas (3D)", 200, 10,
370 nside = (nside*nside <
fNHists) ? nside+1 : nside;
379 if (
fHist3D[i]) printf(
"fHist3D[%d] found\n", i);
virtual void Begin(TTree *tree)
The Begin() function is called at the start of the query.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
Random number generator class based on M.
3-D histogram with a float per channel (see TH1 documentation)}
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
TObject * FindObject(const char *name) const
Find object using its name.
virtual void SlaveTerminate()
The SlaveTerminate() function is called after all entries or objects have been processed.
virtual const char * GetOption() const
virtual void SlaveBegin(TTree *tree)
The SlaveBegin() function is called after the Begin() function.
EHistType GetType() const
Named parameter, streamable and storable.
virtual void Terminate()
The Terminate() function is the last function to be called during a query.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetFillColor(Color_t fcolor)
2-D histogram with a float per channel (see TH1 documentation)}
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
char * Form(const char *fmt,...)
Int_t Fill(Double_t)
Invalid Fill method.
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 ...
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual ~TSelHist()
Destructor.
Mother of all ROOT objects.
TList * fInput
Current object if processing object (vs. TTree)
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
virtual void Add(TObject *obj)
A TTree object has a header with a name and a title.
const AParamType & GetVal() const
Double_t Sqrt(Double_t x)
virtual void Update()
Update canvas pad buffers.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
virtual const char * GetName() const
Returns name of object.
Int_t Fill(Double_t)
Invalid Fill method.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.