AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterHelper Class Reference

Utility class for the painters display. More...

#include <AliMUONPainterHelper.h>

Inheritance diagram for AliMUONPainterHelper:

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
 
AliMUONContourGetContour (const char *contourName, Bool_t explodedGeometry=kTRUE) const
 
AliMUONContourGetContour (const TString &contourName) const
 Return a contour by name. More...
 
AliMpMotifPositionGetMotifPosition (Int_t detElemId, Int_t manuId) const
 
AliMpPCBGetPCB (Int_t detElemId, AliMp::PlaneType planeType, Int_t pcbNumber) const
 
AliMpPCBGetPCB (Int_t detElemId, AliMp::CathodType cathodType, Int_t pcbNumber) const
 
AliMp::PlaneType GetPlaneType (Int_t manuId) const
 
const AliMpSectorGetSector (Int_t detElemId, AliMp::PlaneType planeType) const
 
const AliMpSlatGetSlat (Int_t detElemId, AliMp::PlaneType planeType) const
 
const AliMpSlatGetSlat (Int_t detElemId, AliMp::CathodType cathodeType) const
 
const AliMpSlatGetSlat (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
 
AliMUONContourMergeContours (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
 
AliMUONPainterEnvEnv ()
 Return the environment. More...
 
TObjArrayGetAllContoursAsArray (Bool_t explodedView=kTRUE) const
 

Static Public Member Functions

static AliMUONPainterHelperInstance ()
 

Private Member Functions

 AliMUONPainterHelper (const AliMUONPainterHelper &)
 Not implemented. More...
 
AliMUONPainterHelperoperator= (const AliMUONPainterHelper &)
 Not implemented. More...
 
AliMUONContourHandlerExploded () const
 
AliMUONContourHandlerReal () const
 

Private Attributes

AliMUONPainterEnvfEnv
 resources More...
 
AliMUONContourHandlerfReal
 contours in real coordinates More...
 
AliMUONContourHandlerfExploded
 contours in exploded coordinates More...
 

Static Private Attributes

static AliMUONPainterHelperfgInstance
 global instance More...
 

Detailed Description

Utility class for the painters display.

Helper class for painters

Author
Laurent Aphecetche, Subatech

Definition at line 58 of file AliMUONPainterHelper.h.

Constructor & Destructor Documentation

AliMUONPainterHelper::AliMUONPainterHelper ( )

ctor

Definition at line 91 of file AliMUONPainterHelper.cxx.

Referenced by Instance().

AliMUONPainterHelper::~AliMUONPainterHelper ( )
virtual

dtor

Definition at line 112 of file AliMUONPainterHelper.cxx.

AliMUONPainterHelper::AliMUONPainterHelper ( const AliMUONPainterHelper )
private

Not implemented.

Member Function Documentation

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
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().

AliMUONContourHandler * AliMUONPainterHelper::Exploded ( ) const
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
AliMUONContour* AliMUONPainterHelper::GetContour ( const TString &  contourName) const
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
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().

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
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 
)
AliMUONPainterHelper& AliMUONPainterHelper::operator= ( const AliMUONPainterHelper )
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().

void AliMUONPainterHelper::Print ( Option_t *  opt = "") const
virtual

Printout

Definition at line 358 of file AliMUONPainterHelper.cxx.

AliMUONContourHandler * AliMUONPainterHelper::Real ( ) const
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.

Member Data Documentation

AliMUONPainterEnv* AliMUONPainterHelper::fEnv
private

resources

Definition at line 139 of file AliMUONPainterHelper.h.

Referenced by Env(), Instance(), and ~AliMUONPainterHelper().

AliMUONContourHandler* AliMUONPainterHelper::fExploded
mutableprivate

contours in exploded coordinates

Definition at line 141 of file AliMUONPainterHelper.h.

Referenced by Exploded(), Print(), and ~AliMUONPainterHelper().

AliMUONPainterHelper * AliMUONPainterHelper::fgInstance
staticprivate

global instance

Definition at line 137 of file AliMUONPainterHelper.h.

Referenced by Instance(), and ~AliMUONPainterHelper().

AliMUONContourHandler* AliMUONPainterHelper::fReal
mutableprivate

contours in real coordinates

Definition at line 140 of file AliMUONPainterHelper.h.

Referenced by GetContour(), Print(), Real(), RegisterContour(), and ~AliMUONPainterHelper().


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