42 if (proof == 0) proof =
gProof;
46 Error(
"TStatsFeedback",
"no valid proof session found");
53 if (!(proof->Connect(
"Feedback(TList *objs)",
"TStatsFeedback",
54 this,
"Feedback(TList *objs)"))) {
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());
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.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
R__EXTERN TStyle * gStyle
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
ClassImp(TStatsFeedback) TStatsFeedback
Constructor.
const char * GetSessionTag() const
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
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 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.
void Error(const char *location, const char *msgfmt,...)
~TStatsFeedback()
Destructor.
virtual void SetFillColor(Color_t fcolor)
1-D histogram with a 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.
const char Int_t const char TProof * proof
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.