![]() |
AliRoot Core
da88d91 (da88d91)
|
Basic attributes shared by all painters. More...
#include <AliMUONAttPainter.h>
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... | |
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.
Definition at line 22 of file AliMUONAttPainter.h.
Internal status bits.
Enumerator | |
---|---|
kIsCathode0 | |
kIsCathode1 | |
kIsBendingPlane | |
kIsNonBendingPlane | |
kIsFrontView | |
kIsBackView | |
kIsCathodeAndPlaneMutuallyExclusive | |
kIsValid | |
kIsSinglePainter | |
kIsCathodeAndPlaneDisabled |
Definition at line 27 of file AliMUONAttPainter.h.
AliMUONAttPainter::AliMUONAttPainter | ( | ) |
ctor
Definition at line 47 of file AliMUONAttPainter.cxx.
|
virtual |
dtor
Definition at line 59 of file AliMUONAttPainter.cxx.
TString AliMUONAttPainter::CathodeName | ( | ) | const |
Return cathode name in short form
Definition at line 91 of file AliMUONAttPainter.cxx.
Referenced by Print(), SetName(), and AliMUONAttPainterSelectorFrame::Update().
|
inlinevirtual |
Return our name.
Definition at line 44 of file AliMUONAttPainter.h.
Referenced by AliMUONVPainter::ContourName(), AliMUONTrackerDataHistogrammer::CreateHisto(), AliMUONPainterMatrix::NameIt(), AliMUONPainterMatrix::Print(), and AliMUONPainterMatrix::SetName().
void AliMUONAttPainter::Invert | ( | ) |
Invert our cathode/plane states
Definition at line 104 of file AliMUONAttPainter.cxx.
Referenced by AliMUONVPainter::GetIROCManuList(), and AliMUONPainterMasterFrame::ShiftClicked().
|
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().
|
inline |
Whether we are representing bending plane.
Definition at line 56 of file AliMUONAttPainter.h.
Referenced by AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONDEPainter::AliMUONDEPainter(), AliMUONPCBPainter::AliMUONPCBPainter(), Invert(), IsPlaneDefined(), PlaneName(), AliMUONPainterMatrix::UpdateAttributes(), AliMUONDEPainter::Validate(), AliMUONManuPainter::Validate(), and AliMUONBusPatchPainter::Validate().
|
inline |
Whether we are representing cathode 0.
Definition at line 59 of file AliMUONAttPainter.h.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), CathodeName(), Invert(), IsCathodeDefined(), AliMUONPainterMatrix::UpdateAttributes(), AliMUONDEPainter::Validate(), AliMUONBusPatchPainter::Validate(), and AliMUONManuPainter::Validate().
|
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().
|
inline |
Whether cathode & plane are disabled.
Definition at line 53 of file AliMUONAttPainter.h.
Referenced by AliMUONAttPainterSelectorFrame::Update(), and AliMUONPainterMatrix::UpdateAttributes().
|
inline |
Whether we can select both cathode and plane.
Definition at line 65 of file AliMUONAttPainter.h.
Referenced by Print(), and AliMUONPainterMatrix::UpdateAttributes().
|
inline |
Whether we are defined by cathode.
Definition at line 68 of file AliMUONAttPainter.h.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), Invert(), Print(), AliMUONAttPainterSelectorFrame::Update(), AliMUONPainterMatrix::UpdateAttributes(), AliMUONDEPainter::Validate(), AliMUONBusPatchPainter::Validate(), AliMUONManuPainter::Validate(), and AliMUONChamberPainter::Validate().
|
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().
|
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().
|
inline |
Whether we are defined by plane.
Definition at line 74 of file AliMUONAttPainter.h.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), Invert(), Print(), AliMUONAttPainterSelectorFrame::Update(), AliMUONPainterMatrix::UpdateAttributes(), AliMUONDEPainter::Validate(), AliMUONBusPatchPainter::Validate(), AliMUONManuPainter::Validate(), and AliMUONChamberPainter::Validate().
|
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.
|
inline |
Whether we are valid.
Definition at line 77 of file AliMUONAttPainter.h.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), Print(), SetName(), AliMUONBusPatchPainter::Validate(), and AliMUONPainterMatrix::Validate().
TString AliMUONAttPainter::PlaneName | ( | ) | const |
Return plane name in short form
Definition at line 127 of file AliMUONAttPainter.cxx.
Referenced by Print(), SetName(), and AliMUONAttPainterSelectorFrame::Update().
void AliMUONAttPainter::Print | ( | Option_t * | opt = "" | ) | const |
Printout
Definition at line 149 of file AliMUONAttPainter.cxx.
void AliMUONAttPainter::SetCathode | ( | Bool_t | cath0, |
Bool_t | cath1 | ||
) |
Set our cathode states
Definition at line 172 of file AliMUONAttPainter.cxx.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), AliMUONAttPainterSelectorFrame::CathodeClicked(), AliMUONPainterDataSourceFrame::CreatePedestalCanvases(), AliMUONMchViewApplication::GenerateStartupMatrix(), Invert(), AliMUONAttPainterSelectorFrame::PlaneClicked(), AliMUONPainterMatrix::UpdateAttributes(), AliMUONDEPainter::Validate(), AliMUONManuPainter::Validate(), and AliMUONBusPatchPainter::Validate().
void AliMUONAttPainter::SetCathodeAndPlaneDisabled | ( | Bool_t | value | ) |
Set cathode & plane disable flag
Definition at line 229 of file AliMUONAttPainter.cxx.
Referenced by AliMUONVPainter::Copy(), AliMUONVPainter::GetIROCManuList(), AliMUONPainterMasterFrame::ShiftClicked(), and AliMUONPainterMatrix::UpdateAttributes().
void AliMUONAttPainter::SetCathodeAndPlaneMutuallyExclusive | ( | Bool_t | value | ) |
Set mutually exclusive flag
Definition at line 211 of file AliMUONAttPainter.cxx.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), AliMUONPainterMatrix::UpdateAttributes(), and AliMUONDEPainter::Validate().
|
private |
Build our name
Definition at line 65 of file AliMUONAttPainter.cxx.
Referenced by Invert(), SetCathode(), SetCathodeAndPlaneDisabled(), SetCathodeAndPlaneMutuallyExclusive(), SetPlane(), SetSingle(), SetValid(), and SetViewPoint().
void AliMUONAttPainter::SetPlane | ( | Bool_t | bending, |
Bool_t | nonBending | ||
) |
Set our plane states
Definition at line 182 of file AliMUONAttPainter.cxx.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), AliMUONMchViewApplication::AliMUONMchViewApplication(), AliMUONAttPainterSelectorFrame::CathodeClicked(), AliMUONPainterDataSourceFrame::CreatePedestalCanvases(), AliMUONMchViewApplication::GenerateStartupMatrix(), Invert(), AliMUONAttPainterSelectorFrame::PlaneClicked(), AliMUONPainterMatrix::UpdateAttributes(), AliMUONDEPainter::Validate(), AliMUONManuPainter::Validate(), and AliMUONBusPatchPainter::Validate().
void AliMUONAttPainter::SetSingle | ( | Bool_t | value | ) |
Set single status
Definition at line 192 of file AliMUONAttPainter.cxx.
void AliMUONAttPainter::SetValid | ( | Bool_t | value | ) |
Set valid flag
Definition at line 220 of file AliMUONAttPainter.cxx.
Referenced by AliMUONDEPainter::Validate(), AliMUONManuPainter::Validate(), AliMUONBusPatchPainter::Validate(), and AliMUONChamberPainter::Validate().
void AliMUONAttPainter::SetViewPoint | ( | Bool_t | front, |
Bool_t | back | ||
) |
Set view point
Definition at line 201 of file AliMUONAttPainter.cxx.
Referenced by AliMUONPainterDataSourceFrame::CreatePedestalCanvases(), AliMUONMchViewApplication::GenerateStartupMatrix(), AliMUONPainterMatrix::UpdateAttributes(), and AliMUONAttPainterSelectorFrame::ViewClicked().
TString AliMUONAttPainter::ViewPointName | ( | ) | const |
Return name of view point
Definition at line 139 of file AliMUONAttPainter.cxx.
Referenced by Print(), and AliMUONAttPainterSelectorFrame::Update().
|
private |
name of the attributes
Definition at line 113 of file AliMUONAttPainter.h.