42 if (proof == 0) proof =
gProof;
46 Error(
"TStatsFeedback",
"no valid proof session found");
53 if (!(proof->Connect(
"Feedback(TList*)",
"TStatsFeedback",
54 this,
"Feedback(TList*)"))) {
55 Error(
"TStatsFeedback",
"Connect() failed");
79 TH1D *hevt = 0, *hpck = 0;
84 if (!strcmp(o->
GetName(),
"PROOF_EventsHist")) {
85 hevt =
dynamic_cast<TH1D *
>(o);
86 }
else if (!strcmp(o->
GetName(),
"PROOF_PacketsHist")) {
87 hpck =
dynamic_cast<TH1D *
>(o);
88 }
else if (!strcmp(o->
GetName(),
"PROOF_ProcPcktHist")) {
89 hass =
dynamic_cast<TH1I *
>(o);
91 if (hevt && hpck && hass)
break;
93 if (!hevt && !hpck && !hass) {
94 Warning(
"Feedback",
"none of the requested histograms has been found!");
104 if (
gROOT->GetListOfCanvases())
106 if (cv && nh == 3 && !cv->GetPad(3))
SafeDelete(cv);
108 Int_t h = (nh == 3) ? 600 : 400;
112 Warning(
"Feedback",
"could not create canvas!");
115 PDB(kFeedback,2)
Info(
"Feedback",
"created canvas %s", cvnm.
Data());
120 PDB(kFeedback,2)
Info(
"Feedback",
"using canvas %s", cvnm.
Data());
131 hevt->SetFillColor(
kGreen);
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual TVirtualPad * GetPad(Int_t subpadnumber) const =0
virtual void SetMaximum(Double_t maximum=-1111)
R__EXTERN TStyle * gStyle
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
Sequenceable collection abstract base class.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
void Feedback(TList *objs)
Display feedback.
const char * GetSessionTag() const
TVirtualPad is an abstract base class for the Pad and Canvas classes.
void Error(const char *location, const char *msgfmt,...)
~TStatsFeedback()
Destructor.
if object ctor succeeded but object should not be used
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
tomato 1-D histogram with an int per channel (see TH1 documentation)}
tomato 1-D histogram with a double per channel (see TH1 documentation)}
R__EXTERN TProof * gProof
This class controls a Parallel ROOT Facility, PROOF, cluster.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
Mother of all ROOT objects.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
virtual TObject * FindObject(const char *name) const
Find an object in this collection using its name.
Utility class to display PROOF stats feedback histos during queries.
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const