AliRoot Core  edcc906 (edcc906)
AliMUONDEPainter Class Reference

A painter for one detection element. More...

#include <AliMUONDEPainter.h>

Inheritance diagram for AliMUONDEPainter:

Public Member Functions

 AliMUONDEPainter ()
 
 AliMUONDEPainter (TRootIOCtor *ioCtor)
 
 AliMUONDEPainter (const AliMUONAttPainter &att, Int_t detElemId)
 
 AliMUONDEPainter (const AliMUONDEPainter &rhs)
 
AliMUONDEPainteroperator= (const AliMUONDEPainter &rhs)
 
virtual ~AliMUONDEPainter ()
 
virtual TObject * Clone (const char *="") const
 Clone this object. More...
 
void ComputeDataRange (const AliMUONVTrackerData &data, Int_t dataIndex, Double_t &dataMin, Double_t &dataMax) const
 
void Copy (TObject &object) const
 
Int_t DetElemId () const
 Return the ID of this detection element. More...
 
void PaintArea (const AliMUONVTrackerData &data, Int_t dataIndex, Double_t min, Double_t max)
 
TString Describe (const AliMUONVTrackerData &data, Int_t dataIndex, Double_t, Double_t)
 
virtual AliMUONAttPainter Validate (const AliMUONAttPainter &attributes) const
 Convert attributes so they are valid ones for us. More...
 
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...
 
virtual Bool_t IsIncluded () const
 Whether or not the part of the detector represented by this painter should be included in readout. More...
 
virtual void SetResponder (Int_t depth)
 
- 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)
 
const AliMUONAttPainterAttributes () const
 Get our attributes. More...
 
AliMUONVPainterDetach () const
 
virtual Bool_t CanBeDetached () const
 Whether this painter can be detached from the current view. More...
 
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
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
void GetTypes (TObjArray &types) const
 
AliMUONPainterGroupMotherGroup () const
 Return our mother group. More...
 
virtual TString NameAtPosition (Double_t, Double_t) const
 Return specific name at a given position, if needed. More...
 
AliMUONPainterGroupGroup (const char *type) const
 
AliMUONPainterGroupGroup (Int_t depth) const
 
virtual Bool_t HandleMouseMotion () const
 Whether we handle mouse motion or not. More...
 
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)
 
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 PaintOutline (Int_t color=-1, Int_t width=-1, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
 
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 DrawHistogramClone (Double_t *values=0x0) const
 
virtual void DrawInternalHistogram (Int_t dim) const
 
virtual void DrawInternalHistogramClone (Int_t dim) const
 
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 Attributes

Int_t fDetElemId
 our id 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

A painter for one detection element.

Painter for one detection element

It draws a given plane (bending or non bending) of a given detection element

Author
Laurent Aphecetche, Subatech

Definition at line 19 of file AliMUONDEPainter.h.

Constructor & Destructor Documentation

AliMUONDEPainter::AliMUONDEPainter ( )

default ctor

Definition at line 52 of file AliMUONDEPainter.cxx.

Referenced by Clone().

AliMUONDEPainter::AliMUONDEPainter ( TRootIOCtor *  ioCtor)

default streaming ctor

Definition at line 60 of file AliMUONDEPainter.cxx.

AliMUONDEPainter::AliMUONDEPainter ( const AliMUONAttPainter att,
Int_t  detElemId 
)

normal ctor

Definition at line 68 of file AliMUONDEPainter.cxx.

AliMUONDEPainter::AliMUONDEPainter ( const AliMUONDEPainter rhs)

copy ctor

Definition at line 183 of file AliMUONDEPainter.cxx.

AliMUONDEPainter::~AliMUONDEPainter ( )
virtual

dtor = nop

Definition at line 203 of file AliMUONDEPainter.cxx.

Member Function Documentation

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

Clone this object.

Definition at line 30 of file AliMUONDEPainter.h.

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

Compute the data range spanned by this detection element

Reimplemented from AliMUONVPainter.

Definition at line 210 of file AliMUONDEPainter.cxx.

Referenced by Clone().

void AliMUONDEPainter::Copy ( TObject &  object) const
virtual

Copy this to object

Reimplemented from AliMUONVPainter.

Definition at line 219 of file AliMUONDEPainter.cxx.

Referenced by AliMUONDEPainter(), Clone(), and operator=().

TString AliMUONDEPainter::Describe ( const AliMUONVTrackerData data,
Int_t  dataIndex,
Double_t  ,
Double_t   
)
virtual

Describe data at this detection element

Reimplemented from AliMUONVPainter.

Definition at line 228 of file AliMUONDEPainter.cxx.

Referenced by DetElemId().

Int_t AliMUONDEPainter::DetElemId ( ) const
inline

Return the ID of this detection element.

Definition at line 38 of file AliMUONDEPainter.h.

Referenced by AliMUONDEPainter().

void AliMUONDEPainter::FillManuList ( TObjArray manuList) const
virtual

Append (i.e. don't have the right to clear the array !) our list of manus to manuList.

Fill (append to) manu list

Append to manulist This is the default implementation, which just calls the FillManuList of all our children. Some derived class might need to override this in order to exclude some children from the fill.

Reimplemented from AliMUONVPainter.

Definition at line 242 of file AliMUONDEPainter.cxx.

Referenced by DetElemId().

Bool_t AliMUONDEPainter::IsIncluded ( ) const
virtual

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

whether this detection element is included in the readout or not

Implements AliMUONVPainter.

Definition at line 261 of file AliMUONDEPainter.cxx.

Referenced by DetElemId().

AliMUONDEPainter & AliMUONDEPainter::operator= ( const AliMUONDEPainter rhs)

assignment operator

Definition at line 192 of file AliMUONDEPainter.cxx.

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

Paint the area of this detection element

Reimplemented from AliMUONVPainter.

Definition at line 269 of file AliMUONDEPainter.cxx.

Referenced by DetElemId().

void AliMUONDEPainter::SetResponder ( Int_t  depth)
virtual

Select as responder the first group that has a given depth

Reimplemented from AliMUONVPainter.

Definition at line 338 of file AliMUONDEPainter.cxx.

Referenced by DetElemId().

AliMUONAttPainter AliMUONDEPainter::Validate ( const AliMUONAttPainter attributes) const
virtual

Convert attributes so they are valid ones for us.

Normalize attributes

Reimplemented from AliMUONVPainter.

Definition at line 287 of file AliMUONDEPainter.cxx.

Referenced by DetElemId().

Member Data Documentation

Int_t AliMUONDEPainter::fDetElemId
private

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