![]() |
AliRoot Core
v5-06-15 (45dab64)
|
Utility class for the painters display. More...
#include <AliMUONPainterHelper.h>
Public Member Functions | |
AliMUONPainterHelper () | |
virtual | ~AliMUONPainterHelper () |
TString | ChamberName (Int_t chamberId) const |
TString | StationName (Int_t stationId) const |
TString | DEName (Int_t detElemId) const |
TString | ManuName (Int_t manuId) const |
TString | BusPatchName (Int_t busPatchId) const |
TString | PCBName (Int_t pcbNumber) const |
TString | ChamberPathName (Int_t chamberId) const |
TString | StationPathName (Int_t stationId) const |
TString | DEPathName (Int_t detElemId) const |
TString | ManuPathName (Int_t detElemId, Int_t manuId) const |
TString | BusPatchPathName (Int_t busPatchId) const |
TString | PCBPathName (Int_t detElemId, Int_t pcbNumber) const |
Int_t | ColorFromValue (Double_t value, Double_t min, Double_t max) const |
AliMp::CathodType | GetCathodeType (Int_t detElemId, Int_t manuId) const |
AliMUONContour * | GetContour (const char *contourName, Bool_t explodedGeometry=kTRUE) const |
AliMUONContour * | GetContour (const TString &contourName) const |
Return a contour by name. More... | |
AliMpMotifPosition * | GetMotifPosition (Int_t detElemId, Int_t manuId) const |
AliMpPCB * | GetPCB (Int_t detElemId, AliMp::PlaneType planeType, Int_t pcbNumber) const |
AliMpPCB * | GetPCB (Int_t detElemId, AliMp::CathodType cathodType, Int_t pcbNumber) const |
AliMp::PlaneType | GetPlaneType (Int_t manuId) const |
const AliMpSector * | GetSector (Int_t detElemId, AliMp::PlaneType planeType) const |
const AliMpSlat * | GetSlat (Int_t detElemId, AliMp::PlaneType planeType) const |
const AliMpSlat * | GetSlat (Int_t detElemId, AliMp::CathodType cathodeType) const |
const AliMpSlat * | GetSlat (Int_t detElemId, Int_t manuId) const |
void | Local2Global (Int_t detElemId, Double_t xl, Double_t yl, Double_t zl, Double_t &xg, Double_t &yg, Double_t &zg) const |
void | Global2Local (Int_t detElemId, Double_t xg, Double_t yg, Double_t zg, Double_t &xl, Double_t &yl, Double_t &zl) const |
AliMUONContour * | MergeContours (const TObjArray &contours, const char *contourName, Bool_t explodedGeometry=kTRUE) |
virtual void | Print (Option_t *opt="") const |
void | RegisterContour (AliMUONContour *contour, Bool_t explodedView=kTRUE) |
TString | FormatValue (const char *name, Double_t value) const |
AliMUONPainterEnv * | Env () |
Return the environment. More... | |
TObjArray * | GetAllContoursAsArray (Bool_t explodedView=kTRUE) const |
Static Public Member Functions | |
static AliMUONPainterHelper * | Instance () |
Private Member Functions | |
AliMUONPainterHelper (const AliMUONPainterHelper &) | |
Not implemented. More... | |
AliMUONPainterHelper & | operator= (const AliMUONPainterHelper &) |
Not implemented. More... | |
AliMUONContourHandler * | Exploded () const |
AliMUONContourHandler * | Real () const |
Private Attributes | |
AliMUONPainterEnv * | fEnv |
resources More... | |
AliMUONContourHandler * | fReal |
contours in real coordinates More... | |
AliMUONContourHandler * | fExploded |
contours in exploded coordinates More... | |
Static Private Attributes | |
static AliMUONPainterHelper * | fgInstance |
global instance More... | |
Utility class for the painters display.
Helper class for painters
Definition at line 58 of file AliMUONPainterHelper.h.
AliMUONPainterHelper::AliMUONPainterHelper | ( | ) |
|
virtual |
dtor
Definition at line 112 of file AliMUONPainterHelper.cxx.
|
private |
Not implemented.
TString AliMUONPainterHelper::BusPatchName | ( | Int_t | busPatchId | ) | const |
Build a name for one buspatch
Definition at line 431 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONBusPatchPainter::AliMUONBusPatchPainter(), and BusPatchPathName().
TString AliMUONPainterHelper::BusPatchPathName | ( | Int_t | busPatchId | ) | const |
Build a name for one buspatch
Definition at line 495 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONBusPatchPainter::AliMUONBusPatchPainter().
TString AliMUONPainterHelper::ChamberName | ( | Int_t | chamberId | ) | const |
Build a name for one chamber
Definition at line 399 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter(), ChamberPathName(), and DEPathName().
TString AliMUONPainterHelper::ChamberPathName | ( | Int_t | chamberId | ) | const |
Build a name for one chamber
Definition at line 447 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONChamberPainter::AliMUONChamberPainter().
Int_t AliMUONPainterHelper::ColorFromValue | ( | Double_t | value, |
Double_t | min, | ||
Double_t | max | ||
) | const |
Convert a value into a color, fitting within a given range
Definition at line 320 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONPainterColorSlider::AliMUONPainterColorSlider(), AliMUONPainterMatrix::CreateCanvas(), AliMUONDEPainter::PaintArea(), AliMUONBusPatchPainter::PaintArea(), AliMUONPCBPainter::PaintArea(), AliMUONChamberPainter::PaintArea(), AliMUONManuPainter::PaintArea(), and AliMUONManuPadPainter::PaintArea().
TString AliMUONPainterHelper::DEName | ( | Int_t | detElemId | ) | const |
Build a name for one detection element
Definition at line 415 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONDEPainter::AliMUONDEPainter(), and DEPathName().
TString AliMUONPainterHelper::DEPathName | ( | Int_t | detElemId | ) | const |
Build a name for one detection element
Definition at line 463 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONDEPainter::AliMUONDEPainter(), BusPatchPathName(), ManuPathName(), and PCBPathName().
|
inline |
Return the environment.
Definition at line 122 of file AliMUONPainterHelper.h.
Referenced by AliMUONPainterMatrixFrame::ColorSliderDefaultButtonWasClicked(), AliMUONPainterMatrixFrame::ColorSliderSetDefaultButtonWasClicked(), AliMUONPainterDataSourceFrame::Env(), AliMUONMchViewApplication::Open(), AliMUONPainterDataSourceItem::SaveWithDialog(), AliMUONPainterInterfaceHelper::SetBackgroundColor(), AliMUONPainterMatrix::SetData(), and AliMUONPainterMatrix::SetDataRange().
|
private |
Create exploded contour handler
Definition at line 123 of file AliMUONPainterHelper.cxx.
Referenced by GetAllContoursAsArray(), GetContour(), Global2Local(), Local2Global(), and RegisterContour().
TString AliMUONPainterHelper::FormatValue | ( | const char * | name, |
Double_t | value | ||
) | const |
Format a double value to be displayed FIXME: should insure we have the right number of significant digits here...
Definition at line 513 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONPCBPainter::Describe(), AliMUONManuPainter::Describe(), AliMUONDEPainter::Describe(), AliMUONManuPadPainter::Describe(), AliMUONBusPatchPainter::Describe(), and AliMUONChamberPainter::Describe().
TObjArray * AliMUONPainterHelper::GetAllContoursAsArray | ( | Bool_t | explodedView = kTRUE | ) | const |
Get the contours in a specially arranged array (orderer by hierarchy level)
Definition at line 536 of file AliMUONPainterHelper.cxx.
AliMp::CathodType AliMUONPainterHelper::GetCathodeType | ( | Int_t | detElemId, |
Int_t | manuId | ||
) | const |
Get the cathode type of a given manu
Definition at line 161 of file AliMUONPainterHelper.cxx.
AliMUONContour * AliMUONPainterHelper::GetContour | ( | const char * | contourName, |
Bool_t | explodedGeometry = kTRUE |
||
) | const |
Get a contour by name
Definition at line 141 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), AliMUONManuPainter::AliMUONManuPainter(), and AliMUONPCBPainter::AliMUONPCBPainter().
|
inline |
Return a contour by name.
Definition at line 85 of file AliMUONPainterHelper.h.
Referenced by GetContour().
AliMpMotifPosition * AliMUONPainterHelper::GetMotifPosition | ( | Int_t | detElemId, |
Int_t | manuId | ||
) | const |
Get a given motif position
Definition at line 176 of file AliMUONPainterHelper.cxx.
AliMpPCB * AliMUONPainterHelper::GetPCB | ( | Int_t | detElemId, |
AliMp::PlaneType | planeType, | ||
Int_t | pcbNumber | ||
) | const |
Get a given PCB
Definition at line 200 of file AliMUONPainterHelper.cxx.
AliMpPCB * AliMUONPainterHelper::GetPCB | ( | Int_t | detElemId, |
AliMp::CathodType | cathodType, | ||
Int_t | pcbNumber | ||
) | const |
Get a given PCB
Definition at line 189 of file AliMUONPainterHelper.cxx.
AliMp::PlaneType AliMUONPainterHelper::GetPlaneType | ( | Int_t | manuId | ) | const |
Get the planeType of a given manu
Definition at line 211 of file AliMUONPainterHelper.cxx.
const AliMpSector * AliMUONPainterHelper::GetSector | ( | Int_t | detElemId, |
AliMp::PlaneType | planeType | ||
) | const |
Get a given sector
Definition at line 236 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONDEPainter::AliMUONDEPainter().
const AliMpSlat * AliMUONPainterHelper::GetSlat | ( | Int_t | detElemId, |
AliMp::PlaneType | planeType | ||
) | const |
Get a given slat
Definition at line 224 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONDEPainter::AliMUONDEPainter(), AliMUONPCBPainter::AliMUONPCBPainter(), and GetPCB().
const AliMpSlat * AliMUONPainterHelper::GetSlat | ( | Int_t | detElemId, |
AliMp::CathodType | cathodeType | ||
) | const |
Get a given slat
Definition at line 249 of file AliMUONPainterHelper.cxx.
const AliMpSlat * AliMUONPainterHelper::GetSlat | ( | Int_t | detElemId, |
Int_t | manuId | ||
) | const |
Get a given slat
Definition at line 260 of file AliMUONPainterHelper.cxx.
void AliMUONPainterHelper::Global2Local | ( | Int_t | detElemId, |
Double_t | xg, | ||
Double_t | yg, | ||
Double_t | zg, | ||
Double_t & | xl, | ||
Double_t & | yl, | ||
Double_t & | zl | ||
) | const |
Local to global transformation of coordinates
Definition at line 286 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONManuPadPainter::PadByPosition().
|
static |
Return the global and unique instance of this class
Definition at line 271 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), AliMUONManuPainter::AliMUONManuPainter(), AliMUONPainterColorSlider::AliMUONPainterColorSlider(), AliMUONPCBPainter::AliMUONPCBPainter(), AliMUONPainterMatrixFrame::ColorSliderDefaultButtonWasClicked(), AliMUONPainterMatrixFrame::ColorSliderSetDefaultButtonWasClicked(), AliMUONPainterMatrix::CreateCanvas(), AliMUONPCBPainter::Describe(), AliMUONManuPainter::Describe(), AliMUONDEPainter::Describe(), AliMUONBusPatchPainter::Describe(), AliMUONManuPadPainter::Describe(), AliMUONChamberPainter::Describe(), AliMUONPainterDataSourceFrame::Env(), AliMUONMchViewApplication::Open(), AliMUONManuPadPainter::PadByPosition(), AliMUONDEPainter::PaintArea(), AliMUONBusPatchPainter::PaintArea(), AliMUONPCBPainter::PaintArea(), AliMUONManuPainter::PaintArea(), AliMUONChamberPainter::PaintArea(), AliMUONManuPadPainter::PaintArea(), AliMUONManuPadPainter::PaintPad(), AliMUONPainterDataSourceItem::Save(), AliMUONPainterDataSourceItem::SaveWithDialog(), AliMUONPainterInterfaceHelper::SetBackgroundColor(), AliMUONPainterMatrix::SetData(), and AliMUONPainterMatrix::SetDataRange().
void AliMUONPainterHelper::Local2Global | ( | Int_t | detElemId, |
Double_t | xl, | ||
Double_t | yl, | ||
Double_t | zl, | ||
Double_t & | xg, | ||
Double_t & | yg, | ||
Double_t & | zg | ||
) | const |
Local to (exploded) global transformation of coordinates
Definition at line 303 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONDEPainter::AliMUONDEPainter(), AliMUONPCBPainter::AliMUONPCBPainter(), AliMUONManuPadPainter::PadByPosition(), and AliMUONManuPadPainter::PaintPad().
TString AliMUONPainterHelper::ManuName | ( | Int_t | manuId | ) | const |
Build a name for one manu
Definition at line 423 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONManuPainter::AliMUONManuPainter(), and ManuPathName().
TString AliMUONPainterHelper::ManuPathName | ( | Int_t | detElemId, |
Int_t | manuId | ||
) | const |
Build a name for one manu
Definition at line 487 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONManuPainter::AliMUONManuPainter().
AliMUONContour * AliMUONPainterHelper::MergeContours | ( | const TObjArray & | contours, |
const char * | contourName, | ||
Bool_t | explodedGeometry = kTRUE |
||
) |
Merge a set of contours (delegating to the contour maker)
Definition at line 340 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONBusPatchPainter::AliMUONBusPatchPainter(), AliMUONChamberPainter::AliMUONChamberPainter(), AliMUONDEPainter::AliMUONDEPainter(), and AliMUONPCBPainter::AliMUONPCBPainter().
|
private |
Not implemented.
TString AliMUONPainterHelper::PCBName | ( | Int_t | pcbNumber | ) | const |
Build a name for one pcb
Definition at line 439 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONPCBPainter::AliMUONPCBPainter(), and PCBPathName().
TString AliMUONPainterHelper::PCBPathName | ( | Int_t | detElemId, |
Int_t | pcbNumber | ||
) | const |
Build a name for one pcb
Definition at line 505 of file AliMUONPainterHelper.cxx.
Referenced by AliMUONPCBPainter::AliMUONPCBPainter().
|
virtual |
Printout
Definition at line 358 of file AliMUONPainterHelper.cxx.
|
private |
Create real contour handler
Definition at line 132 of file AliMUONPainterHelper.cxx.
Referenced by GetAllContoursAsArray().
void AliMUONPainterHelper::RegisterContour | ( | AliMUONContour * | contour, |
Bool_t | explodedView = kTRUE |
||
) |
contour is adopted by contourMaker
Definition at line 373 of file AliMUONPainterHelper.cxx.
Referenced by MergeContours().
TString AliMUONPainterHelper::StationName | ( | Int_t | stationId | ) | const |
Build a name for one station
Definition at line 407 of file AliMUONPainterHelper.cxx.
Referenced by ChamberPathName(), DEPathName(), and StationPathName().
TString AliMUONPainterHelper::StationPathName | ( | Int_t | stationId | ) | const |
Build a name for one station
Definition at line 455 of file AliMUONPainterHelper.cxx.
|
private |
resources
Definition at line 139 of file AliMUONPainterHelper.h.
Referenced by Env(), Instance(), and ~AliMUONPainterHelper().
|
mutableprivate |
contours in exploded coordinates
Definition at line 141 of file AliMUONPainterHelper.h.
Referenced by Exploded(), Print(), and ~AliMUONPainterHelper().
|
staticprivate |
global instance
Definition at line 137 of file AliMUONPainterHelper.h.
Referenced by Instance(), and ~AliMUONPainterHelper().
|
mutableprivate |
contours in real coordinates
Definition at line 140 of file AliMUONPainterHelper.h.
Referenced by GetContour(), Print(), Real(), RegisterContour(), and ~AliMUONPainterHelper().