![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Holder for MUON tracker contours. More...
#include <AliMUONContourHandler.h>
Public Member Functions | |
AliMUONContourHandler (Bool_t explodedView=kTRUE) | |
virtual | ~AliMUONContourHandler () |
Bool_t | Adopt (AliMUONContour *contour) |
TMap * | AllContourMap () const |
Get all the contours as a map. More... | |
TObjArray * | AllContourArray () const |
Get all the contours as an array. More... | |
AliMUONContour * | GetContour (const char *contourname) const |
AliMpExMap * | GetTransformations () const |
Get detection element geometrical transformations. More... | |
void | Print (Option_t *opt="") const |
Private Member Functions | |
AliMUONContourHandler (const AliMUONContourHandler &rhs) | |
Not implemented. More... | |
AliMUONContourHandler & | operator= (const AliMUONContourHandler &rhs) |
Not implemented. More... | |
AliMpExMap * | GenerateTransformations (Bool_t exploded) |
TObjArray * | CreateContourList (const TObjArray &manuContours) |
void | GenerateAllContours (const TObjArray &manuContours) |
Private Attributes | |
AliMpExMap * | fTransformations |
transformations used to go from local to global coordinates More... | |
TMap * | fAllContourMap |
all (i.e. manus, buspatches, detection elements, etc..) contours More... | |
TObjArray * | fAllContourArray |
all contours, ordered by hierarchy level More... | |
Holder for MUON tracker contours.
Class used to create contours of the muon tracker parts : manu, bus patches, detection elements, chambers.
Definition at line 24 of file AliMUONContourHandler.h.
AliMUONContourHandler::AliMUONContourHandler | ( | Bool_t | explodedView = kTRUE | ) |
ctor. If explodedView=kTRUE, we generate views that will look fine in 2D (i.e. won't show overlaps of DE as in reality) Use kFALSE if you want realistic geometry, though.
IMPORTANT : as we many MUON classes, this one cannot work before you've loaded the mapping in memory (see e.g. AliMpCDB::LoadDDLStore)
Definition at line 61 of file AliMUONContourHandler.cxx.
|
virtual |
Dtor
Definition at line 93 of file AliMUONContourHandler.cxx.
|
private |
Not implemented.
Bool_t AliMUONContourHandler::Adopt | ( | AliMUONContour * | contour | ) |
Adopt the given contour
Definition at line 103 of file AliMUONContourHandler.cxx.
Referenced by AliMUONPainterHelper::RegisterContour().
|
inline |
Get all the contours as an array.
Definition at line 36 of file AliMUONContourHandler.h.
Referenced by AliMUONPainterHelper::GetAllContoursAsArray().
|
inline |
Get all the contours as a map.
Definition at line 33 of file AliMUONContourHandler.h.
Referenced by AliMUONContourMakerTest::Exec().
Create an array of maps of contour names
Assyming that key is something like station#/chamber#/de#/buspatch#/manu# the idea here is to put one TMap for each level in mapArray :
mapArray[0].key = station0 mapArray[0].value = map of strings { station0/chamber0, station0/chamber1 }
Then each entry in mapArray will be converted into a contour by merging its children (e.g. station0 contour will be made from the merging of station0/chamber0 and station0/chamber1 in the example above).
Definition at line 117 of file AliMUONContourHandler.cxx.
Referenced by GenerateAllContours().
|
private |
From a map of manu contours, generate the compound contours (bp, de, etc...) by merging them. Note that manuContours should NOT be the owner of its contours, as they are adopted by the array returned by this method.
Definition at line 191 of file AliMUONContourHandler.cxx.
|
private |
Generate geometric transformations to be used to compute the contours If exploded=kFALSE then we generate real transformations, otherwise we generate tweaked ones that look fine on screen.
Definition at line 277 of file AliMUONContourHandler.cxx.
AliMUONContour * AliMUONContourHandler::GetContour | ( | const char * | contourname | ) | const |
Get a given contour
Definition at line 334 of file AliMUONContourHandler.cxx.
Referenced by Adopt(), AliMUONPainterHelper::GetContour(), and AliMUONPainterHelper::RegisterContour().
|
inline |
Get detection element geometrical transformations.
Definition at line 41 of file AliMUONContourHandler.h.
Referenced by AliMUONPainterHelper::Global2Local(), and AliMUONPainterHelper::Local2Global().
|
private |
Not implemented.
void AliMUONContourHandler::Print | ( | Option_t * | opt = "" | ) | const |
printout
Definition at line 342 of file AliMUONContourHandler.cxx.
Referenced by AliMUONPainterHelper::Print().
|
private |
all contours, ordered by hierarchy level
Definition at line 60 of file AliMUONContourHandler.h.
Referenced by AllContourArray(), GenerateAllContours(), and ~AliMUONContourHandler().
|
private |
all (i.e. manus, buspatches, detection elements, etc..) contours
Definition at line 59 of file AliMUONContourHandler.h.
Referenced by Adopt(), AllContourMap(), GenerateAllContours(), GetContour(), Print(), and ~AliMUONContourHandler().
|
private |
transformations used to go from local to global coordinates
Definition at line 58 of file AliMUONContourHandler.h.
Referenced by CreateContourList(), GetTransformations(), and ~AliMUONContourHandler().