AliRoot Core  edcc906 (edcc906)
AliMUONManuPadPainter Class Reference

Painter for the pads of one manu. More...

#include <AliMUONManuPadPainter.h>

Inheritance diagram for AliMUONManuPadPainter:

Public Member Functions

 AliMUONManuPadPainter (TRootIOCtor *ioCtor)
 
 AliMUONManuPadPainter ()
 
 AliMUONManuPadPainter (const AliMUONVPainter &mother, Int_t detElemId, Int_t manuId)
 
virtual ~AliMUONManuPadPainter ()
 
virtual TObject * Clone (const char *="") const
 Clone ourselves. More...
 
virtual void ComputeDataRange (const AliMUONVTrackerData &data, Int_t dataIndex, Double_t &dataMin, Double_t &dataMax) const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Bool_t HandleMouseMotion () const
 We advertise that we do handle mouse movement. More...
 
TString NameAtPosition (Double_t x, Double_t y) const
 Return specific name at a given position, if needed. More...
 
virtual TString Describe (const AliMUONVTrackerData &data, Int_t dataIndex, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
 
void PaintArea (const AliMUONVTrackerData &data, Int_t dataIndex, Double_t min, Double_t max)
 
void PaintOutline (Int_t color=-1, Int_t width=-1, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
 
Bool_t CanBeDetached () const
 Whether this painter can be detached from the current view. More...
 
virtual void DrawHistogramClone (Double_t *values=0x0) const
 
virtual Bool_t IsIncluded () const
 Whether or not the part of the detector represented by this painter should be included in readout. More...
 
- Public Member Functions inherited from AliMUONVPainter
 AliMUONVPainter (TRootIOCtor *)
 
 AliMUONVPainter (const char *type="")
 
 AliMUONVPainter (const AliMUONVPainter &rhs)
 
AliMUONVPainteroperator= (const AliMUONVPainter &rhs)
 
virtual ~AliMUONVPainter ()
 
void Add (AliMUONVPainter *painter)
 Add a painter to our list of children. We adopt this painter (i.e. we become owner). More...
 
AliMpArea Area () const
 Return the area containing this painter. More...
 
virtual void SetAttributes (const AliMUONAttPainter &attributes)
 
virtual AliMUONAttPainter Validate (const AliMUONAttPainter &attributes) const
 Convert attributes so they are valid ones for us. More...
 
const AliMUONAttPainterAttributes () const
 Get our attributes. More...
 
virtual void Copy (TObject &object) const
 
AliMUONVPainterDetach () const
 
virtual Bool_t IsValid () const
 Whether we are valid or not. More...
 
void Invalidate ()
 Mark us as not valid. More...
 
Int_t Depth () const
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *opt="")
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
AliMUONContourContour () const
 Return the contour representing the outline of this object. More...
 
virtual const char * GetName () const
 Get our name. More...
 
virtual TString Name () const
 Get our name. More...
 
virtual TString PathName () const
 Get our path name (aka fullname) More...
 
virtual TString ContourName () const
 
void GetTypes (TObjArray &types) const
 
AliMUONPainterGroupMotherGroup () const
 Return our mother group. More...
 
AliMUONPainterGroupGroup (const char *type) const
 
AliMUONPainterGroupGroup (Int_t depth) const
 
Bool_t IsResponder () const
 
Bool_t IsInside (Double_t x, Double_t y) const
 
AliMUONVPainterMother () const
 Return our mother (0 if we're the top node) More...
 
virtual void Paint (Option_t *opt="")
 
virtual void Print (Option_t *opt="") const
 
AliMUONPainterGroupPlotterGroup () const
 Return the plotter group. More...
 
AliMUONPainterGroupResponderGroup () const
 Return the responder group. More...
 
void SetContour (AliMUONContour *contour)
 Set out contour. More...
 
void SetData (const char *pattern, AliMUONVTrackerData *data, Int_t dataIndex)
 
void SetLine (Int_t depth, Int_t lineColor, Int_t lineWidth)
 
void SetMotherGroup (AliMUONPainterGroup *group)
 Set our mother group. More...
 
void SetMother (AliMUONVPainter *painter)
 
void SetOutlined (const char *pattern, Bool_t flag)
 
virtual void SetResponder (const char *pattern)
 
virtual void SetResponder (Int_t depth)
 
void SetVisible (const char *pattern, Bool_t flag)
 
const char * Type () const
 Return our type (e.g. PCB, Chamber, DE, MANU, etc...) More...
 
void Clicked (AliMUONVPainter *painter, Double_t *pos)
 
void ShiftClicked (AliMUONVPainter *painter, Double_t *pos)
 
void DoubleClicked (AliMUONVPainter *painter, Double_t *pos)
 
virtual void PaintArea (Int_t fillColor)
 
TVirtualPad * Pad () const
 Get the pad in which we are plotted. More...
 
Int_t GetLineColor () const
 Get our line color. More...
 
Int_t GetLineWidth () const
 Get our line width. More...
 
void SetLineColor (Int_t lineColor)
 Set our line color. More...
 
void SetLineWidth (Int_t lineWidth)
 Set our line width. More...
 
void SetName (const char *name)
 Set our name. More...
 
void SetPathName (const char *pathName)
 Set our path name (aka fullname) More...
 
Int_t ID0 () const
 Get our first ID. More...
 
Int_t ID1 () const
 Get our second ID. More...
 
void SetID (Int_t id0, Int_t id1)
 Set our IDs. More...
 
void UpdateGroupsFrom (const AliMUONVPainter &painter)
 
AliMUONVPainterMaster () const
 
virtual void DrawHistogram (Double_t *values=0x0) const
 
void DrawHistogram0 () const
 To avoid getting a popup asking for the parameter in the GUI... More...
 
void DrawHistogramClone0 () const
 To avoid getting a popup asking for the parameter in the GUI... More...
 
virtual void DrawInternalHistogram (Int_t dim) const
 
virtual void DrawInternalHistogramClone (Int_t dim) const
 
virtual void FillManuList (TObjArray &manuList) const
 Append (i.e. don't have the right to clear the array !) our list of manus to manuList. More...
 
void DrawInternalHistogramClone0 ()
 
void DrawInternalHistogramClone1 ()
 SL. More...
 
void DrawInternalHistogramClone2 ()
 SL. More...
 
void DrawInternalHistogramClone3 ()
 SL. More...
 
void DrawInternalHistogramClone4 ()
 SL. More...
 
void DrawInternalHistogramClone5 ()
 SL. More...
 
void DrawInternalHistogramClone6 ()
 SL. More...
 
void DrawInternalHistogramClone7 ()
 SL. More...
 
void DrawInternalHistogramClone8 ()
 SL. More...
 
void DrawInternalHistogramClone9 ()
 SL. More...
 
Bool_t IsExcluded () const
 Whether or not the part of the detector represented by this painter should be excluded from readout. More...
 
virtual void Include ()
 
virtual void Exclude ()
 

Private Member Functions

void BackupStyle ()
 
void RestoreStyle ()
 
AliMpPad PadByPosition (Double_t x, Double_t y) const
 
void PaintPad (const AliMpPad &pad) const
 

Private Attributes

Int_t fDetElemId
 our detection element id More...
 
Int_t fManuId
 our manu id More...
 
Int_t fLineColorBck
 line color for backup More...
 
Int_t fLineWidthBck
 line width for backup More...
 
Int_t fFillColorBck
 fill color for backup More...
 
Int_t fFillStyleBck
 fill style for backup More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliMUONVPainter
static void PixelToPad (Int_t px, Int_t py, Double_t &x, Double_t &y)
 
static AliMUONVPainterCreatePainter (const char *className, const AliMUONAttPainter &att, Int_t id1, Int_t id2)
 
- Protected Member Functions inherited from AliMUONVPainter
virtual TCollection * Children () const
 
void CreateGroups ()
 
AliMUONVTrackerDataInteractiveReadOutConfig () const
 
- Protected Attributes inherited from AliMUONVPainter
TH1 * fHistogram
 ! histogram More...
 
TMap * fPainterGroups
 map of groups More...
 
AliMUONPainterGroupfResponderGroup
 the responder group More...
 

Detailed Description

Painter for the pads of one manu.

Painter for the pads of one manu

Author
Laurent Aphecetche, Subatech

Definition at line 22 of file AliMUONManuPadPainter.h.

Constructor & Destructor Documentation

AliMUONManuPadPainter::AliMUONManuPadPainter ( TRootIOCtor *  ioCtor)

ctor

Definition at line 63 of file AliMUONManuPadPainter.cxx.

AliMUONManuPadPainter::AliMUONManuPadPainter ( )

ctor

Definition at line 50 of file AliMUONManuPadPainter.cxx.

Referenced by Clone().

AliMUONManuPadPainter::AliMUONManuPadPainter ( const AliMUONVPainter mother,
Int_t  detElemId,
Int_t  manuId 
)

ctor

Definition at line 76 of file AliMUONManuPadPainter.cxx.

AliMUONManuPadPainter::~AliMUONManuPadPainter ( )
virtual

dtor

Definition at line 95 of file AliMUONManuPadPainter.cxx.

Member Function Documentation

void AliMUONManuPadPainter::BackupStyle ( )
private

Remember line and fill style values

Definition at line 102 of file AliMUONManuPadPainter.cxx.

Referenced by CanBeDetached(), PaintArea(), and PaintOutline().

Bool_t AliMUONManuPadPainter::CanBeDetached ( ) const
inlinevirtual

Whether this painter can be detached from the current view.

Reimplemented from AliMUONVPainter.

Definition at line 59 of file AliMUONManuPadPainter.h.

virtual TObject* AliMUONManuPadPainter::Clone ( const char *  = "") const
inlinevirtual

Clone ourselves.

Definition at line 33 of file AliMUONManuPadPainter.h.

void AliMUONManuPadPainter::ComputeDataRange ( const AliMUONVTrackerData data,
Int_t  dataIndex,
Double_t &  dataMin,
Double_t &  dataMax 
) const
virtual

Compute data range spanned by this manu pads

Reimplemented from AliMUONVPainter.

Definition at line 114 of file AliMUONManuPadPainter.cxx.

Referenced by Clone().

TString AliMUONManuPadPainter::Describe ( const AliMUONVTrackerData data,
Int_t  dataIndex,
Double_t  x = FLT_MAX,
Double_t  y = FLT_MAX 
)
virtual

Describe data at given location

Reimplemented from AliMUONVPainter.

Definition at line 172 of file AliMUONManuPadPainter.cxx.

Referenced by HandleMouseMotion().

void AliMUONManuPadPainter::DrawHistogramClone ( Double_t *  values = 0x0) const
virtual

Draw histogram for pad at (values[0],values[1])

Reimplemented from AliMUONVPainter.

Definition at line 195 of file AliMUONManuPadPainter.cxx.

Referenced by CanBeDetached().

char * AliMUONManuPadPainter::GetObjectInfo ( Int_t  px,
Int_t  py 
) const
virtual

Get object info

Reimplemented from AliMUONVPainter.

Definition at line 138 of file AliMUONManuPadPainter.cxx.

Referenced by Clone().

virtual Bool_t AliMUONManuPadPainter::HandleMouseMotion ( ) const
inlinevirtual

We advertise that we do handle mouse movement.

Reimplemented from AliMUONVPainter.

Definition at line 42 of file AliMUONManuPadPainter.h.

Bool_t AliMUONManuPadPainter::IsIncluded ( ) const
virtual

Whether or not the part of the detector represented by this painter should be included in readout.

whether this manu is included in the readout or not

Implements AliMUONVPainter.

Definition at line 164 of file AliMUONManuPadPainter.cxx.

Referenced by CanBeDetached().

TString AliMUONManuPadPainter::NameAtPosition ( Double_t  ,
Double_t   
) const
virtual

Return specific name at a given position, if needed.

Specific name, dependent on the position within this painter

Reimplemented from AliMUONVPainter.

Definition at line 146 of file AliMUONManuPadPainter.cxx.

Referenced by HandleMouseMotion().

AliMpPad AliMUONManuPadPainter::PadByPosition ( Double_t  x,
Double_t  y 
) const
private

Find the pad at given exploded-position (x,y)

Definition at line 326 of file AliMUONManuPadPainter.cxx.

Referenced by CanBeDetached(), Describe(), DrawHistogramClone(), NameAtPosition(), and PaintOutline().

void AliMUONManuPadPainter::PaintArea ( const AliMUONVTrackerData data,
Int_t  dataIndex,
Double_t  min,
Double_t  max 
)
virtual

Paint area of this manu pads according to the data

Reimplemented from AliMUONVPainter.

Definition at line 222 of file AliMUONManuPadPainter.cxx.

Referenced by HandleMouseMotion().

void AliMUONManuPadPainter::PaintOutline ( Int_t  color = -1,
Int_t  width = -1,
Double_t  x = FLT_MAX,
Double_t  y = FLT_MAX 
)
virtual

Paint the outline of our pads

Reimplemented from AliMUONVPainter.

Definition at line 284 of file AliMUONManuPadPainter.cxx.

Referenced by HandleMouseMotion().

void AliMUONManuPadPainter::PaintPad ( const AliMpPad pad) const
private

Definition at line 266 of file AliMUONManuPadPainter.cxx.

Referenced by CanBeDetached(), PaintArea(), and PaintOutline().

void AliMUONManuPadPainter::RestoreStyle ( )
private

Restore line and fill style values

Definition at line 344 of file AliMUONManuPadPainter.cxx.

Referenced by CanBeDetached(), PaintArea(), and PaintOutline().

Member Data Documentation

Int_t AliMUONManuPadPainter::fDetElemId
private

our detection element id

Definition at line 73 of file AliMUONManuPadPainter.h.

Referenced by ComputeDataRange(), Describe(), DrawHistogramClone(), IsIncluded(), PadByPosition(), PaintArea(), PaintOutline(), and PaintPad().

Int_t AliMUONManuPadPainter::fFillColorBck
private

fill color for backup

Definition at line 77 of file AliMUONManuPadPainter.h.

Referenced by BackupStyle(), and RestoreStyle().

Int_t AliMUONManuPadPainter::fFillStyleBck
private

fill style for backup

Definition at line 78 of file AliMUONManuPadPainter.h.

Referenced by BackupStyle(), and RestoreStyle().

Int_t AliMUONManuPadPainter::fLineColorBck
private

line color for backup

Definition at line 75 of file AliMUONManuPadPainter.h.

Referenced by BackupStyle(), and RestoreStyle().

Int_t AliMUONManuPadPainter::fLineWidthBck
private

line width for backup

Definition at line 76 of file AliMUONManuPadPainter.h.

Referenced by BackupStyle(), and RestoreStyle().

Int_t AliMUONManuPadPainter::fManuId
private

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