AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterMatrix Class Reference

A matrix of AliMUONVPainter. More...

#include <AliMUONPainterMatrix.h>

Inheritance diagram for AliMUONPainterMatrix:

Public Member Functions

 AliMUONPainterMatrix (const char *basename="", Int_t nx=1, Int_t ny=1)
 
virtual ~AliMUONPainterMatrix ()
 
void Adopt (AliMUONVPainter *painter)
 Adopt a painter in this matrix. More...
 
AliMUONPainterMatrixClone (const AliMUONAttPainter &attributes) const
 
void Connect (const char *sourceMethod, const char *destClassName, void *destObject, const char *destMethod)
 
const AliMUONAttPainterAttributes () const
 Get our attributes. More...
 
void ComputeDataRange ()
 Compute the data range for this matrix. More...
 
void GetDataRange (Double_t &dataMin, Double_t &dataMax) const
 Get the data range for this matrix. More...
 
virtual const char * GetName () const
 Get matrix name. More...
 
const char * Basename () const
 Base name (short name) More...
 
const char * Whatname () const
 
void GetTypes (TObjArray &types) const
 
Int_t Nx () const
 Number of painters to arrange in x-direction. More...
 
Int_t Ny () const
 Number of painters to arrange in y-direction. More...
 
AliMUONVPainterPainter (Int_t index) const
 Get a painter. More...
 
void Print (Option_t *opt="") const
 Printout. More...
 
AliMUONVTrackerDataData () const
 
TString DataPattern () const
 
Int_t DataIndex () const
 
void SetData (const char *pattern, AliMUONVTrackerData *d, Int_t indexInData)
 
void SetDataRange (Double_t min, Double_t max)
 Force a given data range for all painter groups belonging to this matrix. More...
 
void SetOutlined (const char *pattern, Bool_t value)
 
void SetResponder (const char *pattern)
 
Int_t Size () const
 Number of painters (should be <= Nx*Ny) More...
 
AliMUONAttPainter Validate (const AliMUONAttPainter &att) const
 Normalize attributes. More...
 
void Draw (Option_t *opt="")
 
TCanvas * CreateCanvas (Int_t x=0, Int_t y=0, Int_t w=-1, Int_t h=-1)
 

Static Public Member Functions

static std::string NameIt (const char *what, const char *basename, const AliMUONAttPainter &att)
 

Private Member Functions

 AliMUONPainterMatrix (const AliMUONPainterMatrix &rhs)
 Not implemented. More...
 
AliMUONPainterMatrixoperator= (const AliMUONPainterMatrix &rhs)
 Not implemented. More...
 
void SetName ()
 
void UpdateAttributes ()
 

Private Attributes

TString fBasename
 base name of that matrix More...
 
TString fWhatname
 data name More...
 
Int_t fNx
 number of rows More...
 
Int_t fNy
 number of columns More...
 
TObjArrayfPainters
 painters in that matrix More...
 
AliMUONAttPainter fAttributes
 attributes of our painter(s) More...
 
TString fName
 our name More...
 

Detailed Description

A matrix of AliMUONVPainter.

Matrix of AliMUONVPainter

Author
Laurent Aphecetche, Subatech

Definition at line 31 of file AliMUONPainterMatrix.h.

Constructor & Destructor Documentation

AliMUONPainterMatrix::AliMUONPainterMatrix ( const char *  basename = "",
Int_t  nx = 1,
Int_t  ny = 1 
)

ctor

Definition at line 50 of file AliMUONPainterMatrix.cxx.

Referenced by Clone().

AliMUONPainterMatrix::~AliMUONPainterMatrix ( )
virtual

dtor

Definition at line 71 of file AliMUONPainterMatrix.cxx.

AliMUONPainterMatrix::AliMUONPainterMatrix ( const AliMUONPainterMatrix rhs)
private

Not implemented.

Member Function Documentation

void AliMUONPainterMatrix::Adopt ( AliMUONVPainter painter)
const AliMUONAttPainter& AliMUONPainterMatrix::Attributes ( ) const
inline

Get our attributes.

Definition at line 48 of file AliMUONPainterMatrix.h.

Referenced by AliMUONPainterMasterFrame::UpdateAttributes().

const char* AliMUONPainterMatrix::Basename ( ) const
inline

Base name (short name)

Definition at line 60 of file AliMUONPainterMatrix.h.

Referenced by AliMUONPainterMasterFrame::AttributesChanged(), and Clone().

AliMUONPainterMatrix * AliMUONPainterMatrix::Clone ( const AliMUONAttPainter attributes) const

Clone with given attributes

Definition at line 89 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMasterFrame::AttributesChanged().

void AliMUONPainterMatrix::ComputeDataRange ( )

Compute the data range for this matrix.

Compute the data range spanned by the painters in this matrix

Definition at line 125 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMatrixFrame::DataRangeAutoRequested(), and AliMUONPainterMatrixFrame::UpdateDataRange().

void AliMUONPainterMatrix::Connect ( const char *  sourceMethod,
const char *  destClassName,
void *  destObject,
const char *  destMethod 
)

Connect our painters

Definition at line 165 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMasterFrame::ShowPainterMatrix().

TCanvas * AliMUONPainterMatrix::CreateCanvas ( Int_t  x = 0,
Int_t  y = 0,
Int_t  w = -1,
Int_t  h = -1 
)

Generate a canvas to show the painter matrix.

Layout is the following :


| title describing what is plotted |

painter themselves color
range

Definition at line 178 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterDataSourceFrame::CreatePedestalCanvases(), and AliMUONPainterMatrixFrame::SaveAs().

TString AliMUONPainterMatrix::DataPattern ( ) const

Return our data pattern

Definition at line 375 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMasterFrame::AttributesChanged(), and AliMUONPainterMasterFrame::ShiftClicked().

void AliMUONPainterMatrix::Draw ( Option_t *  opt = "")

Append our painters to the current pad

Definition at line 393 of file AliMUONPainterMatrix.cxx.

Referenced by CreateCanvas().

void AliMUONPainterMatrix::GetDataRange ( Double_t &  dataMin,
Double_t &  dataMax 
) const

Get the data range for this matrix.

Get the data range spanned by the painters in this matrix

Definition at line 315 of file AliMUONPainterMatrix.cxx.

Referenced by CreateCanvas(), AliMUONPainterMatrixFrame::DataRangeAutoRequested(), and AliMUONPainterMatrixFrame::UpdateDataRange().

void AliMUONPainterMatrix::GetTypes ( TObjArray types) const

Get the types of the painters in this matrix

Definition at line 339 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMatrixFrame::CreateButtons(), AliMUONPainterPlotSelector::Update(), and AliMUONPainterMatrixFrame::UpdateInterface().

std::string AliMUONPainterMatrix::NameIt ( const char *  what,
const char *  basename,
const AliMUONAttPainter att 
)
static
Int_t AliMUONPainterMatrix::Nx ( ) const
inline

Number of painters to arrange in x-direction.

Definition at line 67 of file AliMUONPainterMatrix.h.

Referenced by Clone(), Draw(), and AliMUONPainterMatrixFrame::Use().

Int_t AliMUONPainterMatrix::Ny ( ) const
inline

Number of painters to arrange in y-direction.

Definition at line 70 of file AliMUONPainterMatrix.h.

Referenced by Clone(), Draw(), and AliMUONPainterMatrixFrame::Use().

AliMUONPainterMatrix& AliMUONPainterMatrix::operator= ( const AliMUONPainterMatrix rhs)
private

Not implemented.

void AliMUONPainterMatrix::Print ( Option_t *  opt = "") const

Printout.

Printout

Definition at line 446 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterRegistry::Print().

void AliMUONPainterMatrix::SetData ( const char *  pattern,
AliMUONVTrackerData d,
Int_t  indexInData 
)
void AliMUONPainterMatrix::SetDataRange ( Double_t  min,
Double_t  max 
)

Force a given data range for all painter groups belonging to this matrix.

Set the data range

Definition at line 500 of file AliMUONPainterMatrix.cxx.

Referenced by ComputeDataRange(), AliMUONPainterDataSourceFrame::CreateFullTracker(), AliMUONPainterMatrixFrame::DataRangeWasChanged(), and SetData().

void AliMUONPainterMatrix::SetName ( )
private

Build our name

Definition at line 527 of file AliMUONPainterMatrix.cxx.

Referenced by SetData(), and UpdateAttributes().

void AliMUONPainterMatrix::SetOutlined ( const char *  pattern,
Bool_t  value 
)

Calls SetOutlined for all our painters

Definition at line 561 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMatrixFrame::OutlineButtonWasClicked().

void AliMUONPainterMatrix::SetResponder ( const char *  pattern)

Calls SetResponder for all our painters

Definition at line 573 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMatrixFrame::ResponderButtonWasClicked().

Int_t AliMUONPainterMatrix::Size ( ) const
void AliMUONPainterMatrix::UpdateAttributes ( )
private

Update our attributes (using our painters' attributes)

Definition at line 592 of file AliMUONPainterMatrix.cxx.

Referenced by Adopt().

AliMUONAttPainter AliMUONPainterMatrix::Validate ( const AliMUONAttPainter att) const

Normalize attributes.

Normalize attributes

Definition at line 640 of file AliMUONPainterMatrix.cxx.

Referenced by AliMUONPainterMasterFrame::AttributesChanged().

const char* AliMUONPainterMatrix::Whatname ( ) const
inline

Member Data Documentation

AliMUONAttPainter AliMUONPainterMatrix::fAttributes
private

attributes of our painter(s)

Definition at line 120 of file AliMUONPainterMatrix.h.

Referenced by Attributes(), Print(), SetName(), and UpdateAttributes().

TString AliMUONPainterMatrix::fBasename
private

base name of that matrix

Definition at line 115 of file AliMUONPainterMatrix.h.

Referenced by Basename(), Print(), and SetName().

TString AliMUONPainterMatrix::fName
private

our name

Definition at line 121 of file AliMUONPainterMatrix.h.

Referenced by GetName(), and SetName().

Int_t AliMUONPainterMatrix::fNx
private

number of rows

Definition at line 117 of file AliMUONPainterMatrix.h.

Referenced by Nx(), and Print().

Int_t AliMUONPainterMatrix::fNy
private

number of columns

Definition at line 118 of file AliMUONPainterMatrix.h.

Referenced by Ny(), and Print().

TObjArray* AliMUONPainterMatrix::fPainters
private

painters in that matrix

Definition at line 119 of file AliMUONPainterMatrix.h.

Referenced by Adopt(), Painter(), Size(), and ~AliMUONPainterMatrix().

TString AliMUONPainterMatrix::fWhatname
private

data name

Definition at line 116 of file AliMUONPainterMatrix.h.

Referenced by Print(), SetData(), SetName(), and Whatname().


The documentation for this class was generated from the following files: