46 : fHistType(0), fNHists(16), fDraw(0), fHist1D(0), fHist2D(0), fHist3D(0),
47 fRandom(0), fCHist1D(0), fCHist2D(0), fCHist3D(0)
97 while ((obj = nxt())){
100 if (sinput.
Contains(
"PROOF_Benchmark_HistType")){
101 if ((
fHistType = dynamic_cast<TPBHistType *>(obj))) found_histtype =
kTRUE;
104 if (sinput.
Contains(
"PROOF_BenchmarkNHists")){
112 Error(
"Begin",
"PROOF_BenchmarkNHists not type TParameter<Int_t>*");
116 if (sinput.
Contains(
"PROOF_BenchmarkDraw")){
124 Error(
"Begin",
"PROOF_BenchmarkDraw not type TParameter<Int_t>*");
130 if (!found_histtype){
132 Warning(
"Begin",
"PROOF_Benchmark_HistType not found; using default: %d",
136 Warning(
"Begin",
"PROOF_BenchmarkNHists not found; using default: %d",
140 Warning(
"Begin",
"PROOF_BenchmarkDraw not found; using default: %d",
168 while ((obj = nxt())){
171 if (sinput.
Contains(
"PROOF_Benchmark_HistType")){
172 if ((
fHistType = dynamic_cast<TPBHistType *>(obj))) found_histtype =
kTRUE;
175 if (sinput.
Contains(
"PROOF_BenchmarkNHists")){
183 Error(
"SlaveBegin",
"PROOF_BenchmarkNHists not type TParameter"
188 if (sinput.
Contains(
"PROOF_BenchmarkDraw")){
196 Error(
"SlaveBegin",
"PROOF_BenchmarkDraw not type TParameter"
203 if (!found_histtype){
205 Warning(
"SlaveBegin",
"PROOF_Benchmark_HistType not found; using default: %d",
209 Warning(
"SlaveBegin",
"PROOF_BenchmarkNHists not found; using default: %d",
213 Warning(
"SlaveBegin",
"PROOF_BenchmarkDraw not found; using default: %d",
239 100, -3., 3., 100, -3., 3.);
328 fCHist1D =
new TCanvas(
"CHist1D",
"Proof TSelHist Canvas (1D)", 200, 10,
331 nside = (nside*nside <
fNHists) ? nside+1 : nside;
348 fCHist2D =
new TCanvas(
"CHist2D",
"Proof TSelHist Canvas (2D)", 200, 10,
351 nside = (nside*nside <
fNHists) ? nside+1 : nside;
368 fCHist3D =
new TCanvas(
"CHist3D",
"Proof TSelHist Canvas (3D)", 200, 10,
371 nside = (nside*nside <
fNHists) ? nside+1 : nside;
virtual const char * GetOption() const
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...
TObject * FindObject(const char *name) const
Find object using its name.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SlaveTerminate()
The SlaveTerminate() function is called after all entries or objects have been processed.
virtual void SlaveBegin(TTree *tree)
The SlaveBegin() function is called after the Begin() function.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Named parameter, streamable and storable.
virtual void Terminate()
The Terminate() function is the last function to be called during a query.
EHistType GetType() const
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)}
ClassImp(TSelHist) TSelHist
Constructor.
char * Form(const char *fmt,...)
Int_t Fill(Double_t)
Invalid Fill method.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
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 ...
virtual const char * GetName() const
Returns name of object.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
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)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
A TTree object has a header with a name and a title.
PROOF selector for CPU-intensive benchmark test.
const AParamType & GetVal() const
Double_t Sqrt(Double_t x)
virtual void Update()
Update canvas pad buffers.
Int_t Fill(Double_t)
Invalid Fill method.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.