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");
82 TH1D *hevt = 0, *hpck = 0;
87 if (!strcmp(o->
GetName(),
"PROOF_EventsHist")) {
88 hevt =
dynamic_cast<TH1D *
>(o);
89 }
else if (!strcmp(o->
GetName(),
"PROOF_PacketsHist")) {
90 hpck =
dynamic_cast<TH1D *
>(o);
91 }
else if (!strcmp(o->
GetName(),
"PROOF_ProcPcktHist")) {
92 hass =
dynamic_cast<TH1I *
>(o);
94 if (hevt && hpck && hass)
break;
96 if (!hevt && !hpck && !hass) {
97 Warning(
"Feedback",
"none of the requested histograms has been found!");
107 if (
gROOT->GetListOfCanvases())
109 if (cv && nh == 3 && !cv->GetPad(3))
SafeDelete(cv);
111 Int_t h = (nh == 3) ? 600 : 400;
115 Warning(
"Feedback",
"could not create canvas!");
118 PDB(kFeedback,2)
Info(
"Feedback",
"created canvas %s", cvnm.
Data());
123 PDB(kFeedback,2)
Info(
"Feedback",
"using canvas %s", cvnm.
Data());
virtual TVirtualPad * GetPad(Int_t subpadnumber) const =0
virtual void SetMaximum(Double_t maximum=-1111)
virtual TObject * FindObject(const char *name) const
Find an object in this collection using its name.
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
R__EXTERN TStyle * gStyle
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
const char * GetSessionTag() const
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * Data() const
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.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
TStatsFeedback(TProof *proof=0)
Constructor.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
~TStatsFeedback()
Destructor.
if object ctor succeeded but object should not be used
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
1-D histogram with an int per channel (see TH1 documentation)}
1-D histogram with a double per channel (see TH1 documentation)}
R__EXTERN TProof * gProof
virtual Int_t GetSize() const
virtual const char * GetName() const
Returns name of object.
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...
Utility class to display PROOF stats feedback histos during queries.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.