AliPhysics  a8afd6c (a8afd6c)
FastMonitor Struct Reference
Inheritance diagram for FastMonitor:

Public Types

enum  {
  kLogx = 0x01, kLogy = 0x02, kLogz = 0x04, kScale = 0x08,
  kNoStats = 0x10
}
 
enum  { kBitScale = (1<<17), kBitNoStats = (1<<16) }
 

Public Member Functions

 FastMonitor ()
 
 FastMonitor (TSelector *s, const TString &name)
 
 FastMonitor (const FastMonitor &m)
 
virtual ~FastMonitor ()
 
FastMonitoroperator= (const FastMonitor &m)
 
void Connect (Int_t freq=-1)
 
void Disconnect ()
 
void Register (TObject *descr, Bool_t proof=true)
 
void Register (const char *name, const char *title="", UInt_t flags=0, Bool_t proof=true)
 
void SetName (const char *name)
 
const char * GetName () const
 
void Feedback (TList *objs)
 
void Handle ()
 
Bool_t HandleTimer (TTimer *)
 

Static Public Member Functions

static Long_t ProofExec (const char *cmd=0)
 

Protected Member Functions

Bool_t SetupCanvas ()
 
void SetupDraw (Int_t i, const char *name, const char *option, UInt_t flags=0)
 
void DrawObject (TObject *o, Option_t *opt, Bool_t scale, Bool_t nostats, Bool_t same=false)
 
TVirtualPad * FindPad (const TString &name)
 
TObjectFindPadObject (const Char_t *padName, TCollection *l)
 

Protected Attributes

TString fName
 
TList fPaths
 
TCanvas * fCanvas
 
TSelector * fSelector
 
Int_t fNPads
 
TTimer * fTimer
 

Detailed Description

Definition at line 29 of file FastMonitor.C.

Member Enumeration Documentation

anonymous enum

Flags to pass

Enumerator
kLogx 
kLogy 
kLogz 
kScale 
kNoStats 

Definition at line 34 of file FastMonitor.C.

anonymous enum

Internal bits set on pads

Enumerator
kBitScale 
kBitNoStats 

Definition at line 44 of file FastMonitor.C.

Constructor & Destructor Documentation

FastMonitor::FastMonitor ( )
inline

Definition at line 64 of file FastMonitor.C.

FastMonitor::FastMonitor ( TSelector *  s,
const TString name 
)
inline

Constructor

Returns

Definition at line 82 of file FastMonitor.C.

FastMonitor::FastMonitor ( const FastMonitor m)
inline

Copy constructor

Definition at line 97 of file FastMonitor.C.

virtual FastMonitor::~FastMonitor ( )
inlinevirtual

Desctructor

Definition at line 113 of file FastMonitor.C.

Member Function Documentation

void FastMonitor::Connect ( Int_t  freq = -1)
inline

Connect to the source

Definition at line 136 of file FastMonitor.C.

Referenced by FastSim::Begin(), and FastAnalysis::SetupMonitor().

void FastMonitor::Disconnect ( )
inline

Disconnect from the source

Definition at line 169 of file FastMonitor.C.

Referenced by ~FastMonitor().

void FastMonitor::DrawObject ( TObject o,
Option_t opt,
Bool_t  scale,
Bool_t  nostats,
Bool_t  same = false 
)
inlineprotected

Draw an object.

Parameters
oObject to draw
optOptions
scaleScalar
nostatsDo not show stats
sameDraw on current canvas

Definition at line 361 of file FastMonitor.C.

Referenced by Feedback().

void FastMonitor::Feedback ( TList objs)
inline

Called when we get notified of

Parameters
objsList of monitored objects

Definition at line 227 of file FastMonitor.C.

Referenced by HandleTimer().

TVirtualPad* FastMonitor::FindPad ( const TString name)
inlineprotected

Find pad corresponding to an object

Parameters
nameName of object
Returns
Pointer to pad or null

Definition at line 425 of file FastMonitor.C.

TObject* FastMonitor::FindPadObject ( const Char_t padName,
TCollection l 
)
inlineprotected

Find an object in the list l which corresponds to a registered pad.

Parameters
padNamePad's name
lInput collection
Returns
The found object, or null

Definition at line 445 of file FastMonitor.C.

Referenced by Feedback().

const char* FastMonitor::GetName ( ) const
inline

Get the name of this object

Returns
Name

Definition at line 221 of file FastMonitor.C.

void FastMonitor::Handle ( )
inline

Function to handle connect signals

Definition at line 265 of file FastMonitor.C.

Bool_t FastMonitor::HandleTimer ( TTimer *  )
inline

Function to handle timer events

Definition at line 272 of file FastMonitor.C.

Referenced by Handle().

FastMonitor& FastMonitor::operator= ( const FastMonitor m)
inline

Assignment operator

Parameters
mObject to assign from
Returns
Reference to this

Definition at line 121 of file FastMonitor.C.

static Long_t FastMonitor::ProofExec ( const char *  cmd = 0)
inlinestatic

Execute a PROOF command. Short hand convinience

Parameters
cmdCommand, or empty string.
Returns
If cmd is empty, test if gProof is defined, other wise result of command.

Definition at line 56 of file FastMonitor.C.

Referenced by Connect(), Disconnect(), and Register().

void FastMonitor::Register ( TObject descr,
Bool_t  proof = true 
)
inline

Register an object. Note the object passed here is a descripter, that gives the name (descr->GetName()) and options (descr->GetTitle()) and the pad options (descr->GetUniqueID()) - not the actual object to draw.

Parameters
descr
proofIF true, register for Proof(Lite)

Definition at line 186 of file FastMonitor.C.

Referenced by FastMonitor(), FastSimMonitor::FastSimMonitor(), operator=(), and FastAnalysis::SetupMonitor().

void FastMonitor::Register ( const char *  name,
const char *  title = "",
UInt_t  flags = 0,
Bool_t  proof = true 
)
inline

Prepare a draw

Parameters
nameName (path) of object
titleDrawing options
flagsFlags
proofRegister for proof

Definition at line 198 of file FastMonitor.C.

void FastMonitor::SetName ( const char *  name)
inline

Set name of this object

Parameters
nameName

Definition at line 215 of file FastMonitor.C.

Bool_t FastMonitor::SetupCanvas ( )
inlineprotected

Setup canvas, and registered object

Definition at line 283 of file FastMonitor.C.

Referenced by Feedback().

void FastMonitor::SetupDraw ( Int_t  i,
const char *  name,
const char *  option,
UInt_t  flags = 0 
)
inlineprotected

Register a draw of a an object

Parameters
iPad number
nameName of object
optionDrawing option
flagsFlags
  • 0x1 Log(x)
  • 0x2 Log(y)
  • 0x4 Log(z)
  • 0x8 Scale to events and bin width

Definition at line 326 of file FastMonitor.C.

Referenced by SetupCanvas().

Member Data Documentation

TCanvas* FastMonitor::fCanvas
protected

Our canvas

Definition at line 479 of file FastMonitor.C.

Referenced by Feedback(), FindPad(), operator=(), SetupCanvas(), and SetupDraw().

TString FastMonitor::fName
protected

Our name

Definition at line 475 of file FastMonitor.C.

Referenced by GetName(), SetName(), and SetupCanvas().

Int_t FastMonitor::fNPads
protected

Number of pads registered

Definition at line 483 of file FastMonitor.C.

Referenced by Feedback(), and SetupCanvas().

TList FastMonitor::fPaths
protected

List of things to monitor

Definition at line 477 of file FastMonitor.C.

Referenced by FastMonitor(), operator=(), Register(), and SetupCanvas().

TSelector* FastMonitor::fSelector
protected

Possibly link to selector

Definition at line 481 of file FastMonitor.C.

Referenced by HandleTimer(), and operator=().

TTimer* FastMonitor::fTimer
protected

Possible timer

Definition at line 485 of file FastMonitor.C.

Referenced by Connect(), and Disconnect().


The documentation for this struct was generated from the following file: