AliRoot Core  3dc7879 (3dc7879)
AliMUONAttPainter Class Reference

Basic attributes shared by all painters. More...

#include <AliMUONAttPainter.h>

Inheritance diagram for AliMUONAttPainter:

Public Types

enum  EBits {
  kIsCathode0 = BIT(14), kIsCathode1 = BIT(15), kIsBendingPlane = BIT(16), kIsNonBendingPlane = BIT(17),
  kIsFrontView = BIT(18), kIsBackView = BIT(19), kIsCathodeAndPlaneMutuallyExclusive = BIT(20), kIsValid = BIT(21),
  kIsSinglePainter = BIT(22), kIsCathodeAndPlaneDisabled = BIT(23)
}
 Internal status bits. More...
 

Public Member Functions

 AliMUONAttPainter ()
 
virtual ~AliMUONAttPainter ()
 
virtual const char * GetName () const
 Return our name. More...
 
TString CathodeName () const
 
TString ViewPointName () const
 
TString PlaneName () const
 
Bool_t IsCathodeAndPlaneDisabled () const
 Whether cathode & plane are disabled. More...
 
Bool_t IsBendingPlane () const
 Whether we are representing bending plane. More...
 
Bool_t IsCathode0 () const
 Whether we are representing cathode 0. More...
 
Bool_t IsCathode1 () const
 Whether we are representing cathode 1. More...
 
Bool_t IsCathodeAndPlaneMutuallyExclusive () const
 Whether we can select both cathode and plane. More...
 
Bool_t IsCathodeDefined () const
 Whether we are defined by cathode. More...
 
Bool_t IsNonBendingPlane () const
 Whether we are representing non bending plane. More...
 
Bool_t IsPlaneDefined () const
 Whether we are defined by plane. More...
 
Bool_t IsValid () const
 Whether we are valid. More...
 
void Invert ()
 
Bool_t IsFrontView () const
 Whether the painter is to be represented from front (as seen from IP) More...
 
Bool_t IsBackView () const
 Whether the painter is to be represented from back (as seen from IP) More...
 
Bool_t IsSinglePainter () const
 Whether we represent attributes of a single painter (if false, means it's a painter group) More...
 
void Print (Option_t *opt="") const
 
void SetCathode (Bool_t cath0, Bool_t cath1)
 
void SetPlane (Bool_t bending, Bool_t nonBending)
 
void SetSingle (Bool_t value)
 
void SetViewPoint (Bool_t front, Bool_t back)
 
void SetCathodeAndPlaneMutuallyExclusive (Bool_t value)
 
void SetValid (Bool_t value)
 
void SetCathodeAndPlaneDisabled (Bool_t value)
 

Private Member Functions

void SetName ()
 

Private Attributes

TString fName
 name of the attributes More...
 

Detailed Description

Basic attributes shared by all painters.

Basic attributes shared by all AliMUONVPainter objects

One basic attribute is "what side" of the detector part we are representing. Take the example of one full chamber. We can represent it as seen from the interaction point, i.e. showing all the "cathode0" of all detection elements.

Or we might want to see only the bending (or non bending) planes of all the detection elements.

This is governed by the SetCathode() and SetPlane() methods (and retrieved using IsCathodeDefined() and IsPlaneDefined() methods. In the first case above IsCathodeDefined() would be true and IsPlaneDefined() would be false. The second case would be the contrary.

Author
Laurent Aphecetche, Subatech

Definition at line 22 of file AliMUONAttPainter.h.

Member Enumeration Documentation

Internal status bits.

Enumerator
kIsCathode0 
kIsCathode1 
kIsBendingPlane 
kIsNonBendingPlane 
kIsFrontView 
kIsBackView 
kIsCathodeAndPlaneMutuallyExclusive 
kIsValid 
kIsSinglePainter 
kIsCathodeAndPlaneDisabled 

Definition at line 27 of file AliMUONAttPainter.h.

Constructor & Destructor Documentation

AliMUONAttPainter::AliMUONAttPainter ( )

ctor

Definition at line 47 of file AliMUONAttPainter.cxx.

AliMUONAttPainter::~AliMUONAttPainter ( )
virtual

dtor

Definition at line 59 of file AliMUONAttPainter.cxx.

Member Function Documentation

TString AliMUONAttPainter::CathodeName ( ) const

Return cathode name in short form

Definition at line 91 of file AliMUONAttPainter.cxx.

Referenced by GetName(), Print(), SetName(), and AliMUONAttPainterSelectorFrame::Update().

virtual const char* AliMUONAttPainter::GetName ( void  ) const
inlinevirtual
void AliMUONAttPainter::Invert ( )

Invert our cathode/plane states

Definition at line 104 of file AliMUONAttPainter.cxx.

Referenced by AliMUONVPainter::GetIROCManuList(), IsValid(), and AliMUONPainterMasterFrame::ShiftClicked().

Bool_t AliMUONAttPainter::IsBackView ( ) const
inline

Whether the painter is to be represented from back (as seen from IP)

Definition at line 86 of file AliMUONAttPainter.h.

Referenced by AliMUONPainterMatrix::UpdateAttributes(), and ViewPointName().

Bool_t AliMUONAttPainter::IsCathode1 ( ) const
inline

Whether we are representing cathode 1.

Definition at line 62 of file AliMUONAttPainter.h.

Referenced by CathodeName(), Invert(), IsCathodeDefined(), AliMUONPainterMatrix::UpdateAttributes(), and AliMUONDEPainter::Validate().

Bool_t AliMUONAttPainter::IsCathodeAndPlaneDisabled ( ) const
inline

Whether cathode & plane are disabled.

Definition at line 53 of file AliMUONAttPainter.h.

Referenced by AliMUONAttPainterSelectorFrame::Update(), and AliMUONPainterMatrix::UpdateAttributes().

Bool_t AliMUONAttPainter::IsCathodeAndPlaneMutuallyExclusive ( ) const
inline

Whether we can select both cathode and plane.

Definition at line 65 of file AliMUONAttPainter.h.

Referenced by Print(), and AliMUONPainterMatrix::UpdateAttributes().

Bool_t AliMUONAttPainter::IsFrontView ( ) const
inline

Whether the painter is to be represented from front (as seen from IP)

Definition at line 83 of file AliMUONAttPainter.h.

Referenced by AliMUONPainterMatrix::UpdateAttributes(), and ViewPointName().

Bool_t AliMUONAttPainter::IsNonBendingPlane ( ) const
inline

Whether we are representing non bending plane.

Definition at line 71 of file AliMUONAttPainter.h.

Referenced by Invert(), IsPlaneDefined(), PlaneName(), AliMUONPainterMatrix::UpdateAttributes(), and AliMUONBusPatchPainter::Validate().

Bool_t AliMUONAttPainter::IsSinglePainter ( ) const
inline

Whether we represent attributes of a single painter (if false, means it's a painter group)

Definition at line 90 of file AliMUONAttPainter.h.

Bool_t AliMUONAttPainter::IsValid ( ) const
inline
TString AliMUONAttPainter::PlaneName ( ) const

Return plane name in short form

Definition at line 127 of file AliMUONAttPainter.cxx.

Referenced by GetName(), Print(), SetName(), and AliMUONAttPainterSelectorFrame::Update().

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

Printout

Definition at line 149 of file AliMUONAttPainter.cxx.

Referenced by IsSinglePainter().

void AliMUONAttPainter::SetCathodeAndPlaneDisabled ( Bool_t  value)
void AliMUONAttPainter::SetCathodeAndPlaneMutuallyExclusive ( Bool_t  value)
void AliMUONAttPainter::SetName ( )
private
void AliMUONAttPainter::SetSingle ( Bool_t  value)

Set single status

Definition at line 192 of file AliMUONAttPainter.cxx.

Referenced by IsSinglePainter().

void AliMUONAttPainter::SetValid ( Bool_t  value)
TString AliMUONAttPainter::ViewPointName ( ) const

Return name of view point

Definition at line 139 of file AliMUONAttPainter.cxx.

Referenced by GetName(), Print(), and AliMUONAttPainterSelectorFrame::Update().

Member Data Documentation

TString AliMUONAttPainter::fName
private

name of the attributes

Definition at line 113 of file AliMUONAttPainter.h.

Referenced by GetName(), and SetName().


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