AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONContourHandler Class Reference

Holder for MUON tracker contours. More...

#include <AliMUONContourHandler.h>

Inheritance diagram for AliMUONContourHandler:

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...
 
TObjArrayAllContourArray () const
 Get all the contours as an array. More...
 
AliMUONContourGetContour (const char *contourname) const
 
AliMpExMapGetTransformations () const
 Get detection element geometrical transformations. More...
 
void Print (Option_t *opt="") const
 

Private Member Functions

 AliMUONContourHandler (const AliMUONContourHandler &rhs)
 Not implemented. More...
 
AliMUONContourHandleroperator= (const AliMUONContourHandler &rhs)
 Not implemented. More...
 
AliMpExMapGenerateTransformations (Bool_t exploded)
 
TObjArrayCreateContourList (const TObjArray &manuContours)
 
void GenerateAllContours (const TObjArray &manuContours)
 

Private Attributes

AliMpExMapfTransformations
 transformations used to go from local to global coordinates More...
 
TMap * fAllContourMap
 all (i.e. manus, buspatches, detection elements, etc..) contours More...
 
TObjArrayfAllContourArray
 all contours, ordered by hierarchy level More...
 

Detailed Description

Holder for MUON tracker contours.

Class used to create contours of the muon tracker parts : manu, bus patches, detection elements, chambers.

Author
Laurent Aphecetche, Subatech

Definition at line 24 of file AliMUONContourHandler.h.

Constructor & Destructor Documentation

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.

AliMUONContourHandler::~AliMUONContourHandler ( )
virtual

Dtor

Definition at line 93 of file AliMUONContourHandler.cxx.

AliMUONContourHandler::AliMUONContourHandler ( const AliMUONContourHandler rhs)
private

Not implemented.

Member Function Documentation

Bool_t AliMUONContourHandler::Adopt ( AliMUONContour contour)

Adopt the given contour

Definition at line 103 of file AliMUONContourHandler.cxx.

Referenced by AliMUONPainterHelper::RegisterContour().

TObjArray* AliMUONContourHandler::AllContourArray ( ) const
inline

Get all the contours as an array.

Definition at line 36 of file AliMUONContourHandler.h.

Referenced by AliMUONPainterHelper::GetAllContoursAsArray().

TMap* AliMUONContourHandler::AllContourMap ( ) const
inline

Get all the contours as a map.

Definition at line 33 of file AliMUONContourHandler.h.

Referenced by AliMUONContourMakerTest::Exec().

TObjArray * AliMUONContourHandler::CreateContourList ( const TObjArray manuContours)
private

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

void AliMUONContourHandler::GenerateAllContours ( const TObjArray manuContours)
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.

AliMpExMap * AliMUONContourHandler::GenerateTransformations ( Bool_t  exploded)
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().

AliMpExMap* AliMUONContourHandler::GetTransformations ( ) const
inline

Get detection element geometrical transformations.

Definition at line 41 of file AliMUONContourHandler.h.

Referenced by AliMUONPainterHelper::Global2Local(), and AliMUONPainterHelper::Local2Global().

AliMUONContourHandler& AliMUONContourHandler::operator= ( const AliMUONContourHandler rhs)
private

Not implemented.

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

printout

Definition at line 342 of file AliMUONContourHandler.cxx.

Referenced by AliMUONPainterHelper::Print().

Member Data Documentation

TObjArray* AliMUONContourHandler::fAllContourArray
private

all contours, ordered by hierarchy level

Definition at line 60 of file AliMUONContourHandler.h.

Referenced by AllContourArray(), GenerateAllContours(), and ~AliMUONContourHandler().

TMap* AliMUONContourHandler::fAllContourMap
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().

AliMpExMap* AliMUONContourHandler::fTransformations
private

transformations used to go from local to global coordinates

Definition at line 58 of file AliMUONContourHandler.h.

Referenced by CreateContourList(), GetTransformations(), and ~AliMUONContourHandler().


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