Logo ROOT  
Reference Guide
TDrawFeedback.h
Go to the documentation of this file.
1 // @(#)root/proofplayer:$Id$
2 // Author: Maarten Ballintijn 28/10/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TDrawFeedback
13 #define ROOT_TDrawFeedback
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TDrawFeedback //
19 // //
20 // Utility class to draw objects in the feedback list during queries. //
21 // Draws histograms in separated canvases and user-defined objects via //
22 // Draw(). Users requiring advanced treatment should implement their //
23 // own version following this example. See also TStatsFeedback. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #include "TQObject.h"
28 #include "TObject.h"
29 
30 class TProof;
31 class TProof;
32 class THashList;
33 class TSeqCollection;
34 
35 class TDrawFeedback : public TObject, public TQObject {
36 private:
37  TString fName; // Identfier for this object
38  Bool_t fAll; //draw all or selected objects
39  THashList *fNames; //selected objects
40 
41 protected:
42  Option_t *fOption; //draw option
43  TProof *fProof; //handle to PROOF session
44 
45 public:
46  TDrawFeedback(TProof *proof = 0, TSeqCollection *names = 0);
48 
49  void Feedback(TList *objs);
50  const char *GetName() const { return fName.Data(); }
51  ULong_t Hash() const { return fName.Hash(); }
52  void SetOption(Option_t *option) { fOption = option; }
53 
54  ClassDef(TDrawFeedback,0) // Present PROOF query feedback
55 };
56 
57 #endif
TString::Data
const char * Data() const
Definition: TString.h:369
TDrawFeedback::fOption
Option_t * fOption
Definition: TDrawFeedback.h:42
TString::Hash
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.
Definition: TString.cxx:638
TDrawFeedback::~TDrawFeedback
~TDrawFeedback()
Destructor.
Definition: TDrawFeedback.cxx:80
TDrawFeedback::fName
TString fName
Definition: TDrawFeedback.h:37
TDrawFeedback::fAll
Bool_t fAll
Definition: TDrawFeedback.h:38
TString
Definition: TString.h:136
TDrawFeedback::Feedback
void Feedback(TList *objs)
Display feedback.
Definition: TDrawFeedback.cxx:93
bool
TQObject.h
TQObject
Definition: TQObject.h:48
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TDrawFeedback::TDrawFeedback
TDrawFeedback(TProof *proof=0, TSeqCollection *names=0)
Constructor.
Definition: TDrawFeedback.cxx:41
TDrawFeedback::fNames
THashList * fNames
Definition: TDrawFeedback.h:39
THashList
Definition: THashList.h:34
TDrawFeedback::fProof
TProof * fProof
Definition: TDrawFeedback.h:43
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TSeqCollection
Definition: TSeqCollection.h:28
TDrawFeedback::Hash
ULong_t Hash() const
Return hash value for this object.
Definition: TDrawFeedback.h:51
TObject.h
TDrawFeedback::SetOption
void SetOption(Option_t *option)
Definition: TDrawFeedback.h:52
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TDrawFeedback::GetName
const char * GetName() const
Returns name of object.
Definition: TDrawFeedback.h:50
TProof
Definition: TProof.h:316
TDrawFeedback
Definition: TDrawFeedback.h:35
TList
Definition: TList.h:44