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());
134 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)
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
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
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
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.
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)}
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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
Return the capacity of the collection, i.e.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const