AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONGeometryBuilder Class Reference

Manager class for geometry construction via geometry builders. More...

#include <AliMUONGeometryBuilder.h>

Inheritance diagram for AliMUONGeometryBuilder:

Public Member Functions

 AliMUONGeometryBuilder (AliModule *detector)
 
 AliMUONGeometryBuilder ()
 
virtual ~AliMUONGeometryBuilder ()
 
void AddBuilder (AliMUONVGeometryBuilder *geomBuilder)
 
void CreateGeometry ()
 
void CreateMaterials ()
 
void InitGeometry ()
 Initialize geometry. More...
 
void InitGeometry (const TString &svmapFileName)
 
void UpdateInternalGeometry ()
 
void WriteSVMaps ()
 Write sensitive volume maps. More...
 
void WriteSVMaps (const TString &fileName, Bool_t rebuild=true, Bool_t writeEnvelopes=true)
 
const AliMUONGeometryGetGeometry () const
 Return geometry parametrisation. More...
 
const AliMUONGeometryTransformerGetTransformer () const
 Return geometry transformer. More...
 
virtual Bool_t GetAlign () const
 Return option for reading transformations from a file. More...
 
virtual void SetAlign (Bool_t align=true)
 
virtual void SetAlign (const TString &fileName, Bool_t align=true)
 

Static Public Member Functions

static TGeoHMatrix Multiply (const TGeoMatrix &m1, const TGeoMatrix &m2)
 
static TGeoHMatrix Multiply (const TGeoMatrix &m1, const TGeoMatrix &m2, const TGeoMatrix &m3)
 
static TGeoHMatrix Multiply (const TGeoMatrix &m1, const TGeoMatrix &m2, const TGeoMatrix &m3, const TGeoMatrix &m4)
 

Protected Member Functions

 AliMUONGeometryBuilder (const AliMUONGeometryBuilder &right)
 Not implemented. More...
 
AliMUONGeometryBuilderoperator= (const AliMUONGeometryBuilder &right)
 Not implemented. More...
 

Private Member Functions

void PlaceVolume (const TString &name, const TString &mName, Int_t copyNo, const TGeoHMatrix &matrix, Int_t npar, Double_t *param, const char *only, Bool_t makeAssembly=false) const
 
void CreateGeometryWithTGeo ()
 
void CreateGeometryWithoutTGeo ()
 
void SetAlignToBuilder (AliMUONVGeometryBuilder *builder) const
 

Static Private Member Functions

static const TString & GetDefaultTransformFileName ()
 
static const TString & GetDefaultSVMapFileName ()
 
static const TString & GetOutFileNameExtension ()
 

Private Attributes

AliModule * fModule
 the AliRoot module More...
 
Bool_t fAlign
 option to read transformations from a file More...
 
TString fTransformFileName
 transformations file name More...
 
TString fSVMapFileName
 svmaps file name More...
 
TGeoCombiTrans fGlobalTransformation
 global transformation applied to the whole geometry More...
 
TObjArrayfGeometryBuilders
 list of Geometry Builders More...
 
AliMUONGeometryfGeometry
 geometry parametrisation More...
 

Detailed Description

Manager class for geometry construction via geometry builders.

Author
Ivana Hrivnacova, IPN Orsay

Definition at line 25 of file AliMUONGeometryBuilder.h.

Constructor & Destructor Documentation

AliMUONGeometryBuilder::AliMUONGeometryBuilder ( AliModule *  detector)

Standard constructor

Definition at line 142 of file AliMUONGeometryBuilder.cxx.

AliMUONGeometryBuilder::AliMUONGeometryBuilder ( )

Default constructor

Definition at line 168 of file AliMUONGeometryBuilder.cxx.

AliMUONGeometryBuilder::~AliMUONGeometryBuilder ( )
virtual

Destructor

Definition at line 182 of file AliMUONGeometryBuilder.cxx.

AliMUONGeometryBuilder::AliMUONGeometryBuilder ( const AliMUONGeometryBuilder right)
protected

Not implemented.

Member Function Documentation

void AliMUONGeometryBuilder::AddBuilder ( AliMUONVGeometryBuilder geomBuilder)

Add the geometry builder to the list

Definition at line 537 of file AliMUONGeometryBuilder.cxx.

Referenced by AliMUON::AddGeometryBuilder(), AliMUON::AliMUON(), and AliMUON::ResetGeometryBuilder().

void AliMUONGeometryBuilder::CreateGeometry ( )

Construct geometry using geometry builders.

Definition at line 555 of file AliMUONGeometryBuilder.cxx.

Referenced by AliMUONv1::CreateGeometry().

void AliMUONGeometryBuilder::CreateGeometryWithoutTGeo ( )
private

Construct geometry using geometry builders. Virtual modules/envelopes are not placed

Definition at line 373 of file AliMUONGeometryBuilder.cxx.

Referenced by CreateGeometry().

void AliMUONGeometryBuilder::CreateGeometryWithTGeo ( )
private

Construct geometry using geometry builders. Virtual modules/envelopes are placed as TGeoVolume assembly

Definition at line 263 of file AliMUONGeometryBuilder.cxx.

Referenced by CreateGeometry().

void AliMUONGeometryBuilder::CreateMaterials ( )

Construct materials specific to modules via builders

Definition at line 579 of file AliMUONGeometryBuilder.cxx.

Referenced by AliMUONv1::CreateMaterials().

Bool_t AliMUONGeometryBuilder::GetAlign ( ) const
inlinevirtual

Return option for reading transformations from a file.

Definition at line 117 of file AliMUONGeometryBuilder.h.

const TString & AliMUONGeometryBuilder::GetDefaultSVMapFileName ( )
staticprivate

< default svmaps file name

Definition at line 65 of file AliMUONGeometryBuilder.cxx.

const TString & AliMUONGeometryBuilder::GetDefaultTransformFileName ( )
staticprivate

< default transformations file name

Definition at line 57 of file AliMUONGeometryBuilder.cxx.

const AliMUONGeometry * AliMUONGeometryBuilder::GetGeometry ( ) const
inline

Return geometry parametrisation.

Definition at line 108 of file AliMUONGeometryBuilder.h.

Referenced by AliMUON::GetGeometry().

const TString & AliMUONGeometryBuilder::GetOutFileNameExtension ( )
staticprivate

< default output file name extension

Definition at line 73 of file AliMUONGeometryBuilder.cxx.

Referenced by WriteSVMaps().

const AliMUONGeometryTransformer * AliMUONGeometryBuilder::GetTransformer ( ) const
inline

Return geometry transformer.

Definition at line 113 of file AliMUONGeometryBuilder.h.

Referenced by MUONGenerateGeometryData().

void AliMUONGeometryBuilder::InitGeometry ( )
inline

Initialize geometry.

Definition at line 99 of file AliMUONGeometryBuilder.h.

Referenced by AliMUONv1::Init().

void AliMUONGeometryBuilder::InitGeometry ( const TString &  svmapFileName)

Initialize geometry

Definition at line 595 of file AliMUONGeometryBuilder.cxx.

TGeoHMatrix AliMUONGeometryBuilder::Multiply ( const TGeoMatrix &  m1,
const TGeoMatrix &  m2,
const TGeoMatrix &  m3 
)
static

Temporary fix for problem with matrix multiplication in Root 5.02/00

Definition at line 97 of file AliMUONGeometryBuilder.cxx.

TGeoHMatrix AliMUONGeometryBuilder::Multiply ( const TGeoMatrix &  m1,
const TGeoMatrix &  m2,
const TGeoMatrix &  m3,
const TGeoMatrix &  m4 
)
static

Temporary fix for problem with matrix multiplication in Root 5.02/00

Definition at line 116 of file AliMUONGeometryBuilder.cxx.

AliMUONGeometryBuilder& AliMUONGeometryBuilder::operator= ( const AliMUONGeometryBuilder right)
protected

Not implemented.

void AliMUONGeometryBuilder::PlaceVolume ( const TString &  name,
const TString &  mName,
Int_t  copyNo,
const TGeoHMatrix &  matrix,
Int_t  npar,
Double_t *  param,
const char *  only,
Bool_t  makeAssembly = false 
) const
private

Place the volume specified by name with the given transformation matrix

Definition at line 195 of file AliMUONGeometryBuilder.cxx.

Referenced by CreateGeometryWithoutTGeo(), and CreateGeometryWithTGeo().

void AliMUONGeometryBuilder::SetAlign ( Bool_t  align = true)
virtual

Set the option for alignement

Definition at line 652 of file AliMUONGeometryBuilder.cxx.

Referenced by AliMUON::SetAlign().

void AliMUONGeometryBuilder::SetAlign ( const TString &  fileName,
Bool_t  align = true 
)
virtual

Set the option for alignement and the transformations file name

Definition at line 668 of file AliMUONGeometryBuilder.cxx.

void AliMUONGeometryBuilder::SetAlignToBuilder ( AliMUONVGeometryBuilder builder) const
private

Set align option to all geometry modules associated with the builder

Definition at line 520 of file AliMUONGeometryBuilder.cxx.

Referenced by AddBuilder(), and SetAlign().

void AliMUONGeometryBuilder::UpdateInternalGeometry ( )

Update geometry after applying mis-alignment: reload transformations in geometry builder.

Definition at line 622 of file AliMUONGeometryBuilder.cxx.

Referenced by AliMUONv1::UpdateInternalGeometry().

void AliMUONGeometryBuilder::WriteSVMaps ( )
inline

Write sensitive volume maps.

Definition at line 103 of file AliMUONGeometryBuilder.h.

Referenced by MUONGenerateGeometryData().

void AliMUONGeometryBuilder::WriteSVMaps ( const TString &  fileName,
Bool_t  rebuild = true,
Bool_t  writeEnvelopes = true 
)

Write sensitive volume maps into files per builder

Definition at line 631 of file AliMUONGeometryBuilder.cxx.

Member Data Documentation

Bool_t AliMUONGeometryBuilder::fAlign
private

option to read transformations from a file

Definition at line 84 of file AliMUONGeometryBuilder.h.

Referenced by CreateGeometry(), CreateGeometryWithoutTGeo(), CreateGeometryWithTGeo(), GetAlign(), InitGeometry(), SetAlign(), and SetAlignToBuilder().

TObjArray* AliMUONGeometryBuilder::fGeometryBuilders
private
TGeoCombiTrans AliMUONGeometryBuilder::fGlobalTransformation
private

global transformation applied to the whole geometry

Definition at line 88 of file AliMUONGeometryBuilder.h.

Referenced by AddBuilder(), AliMUONGeometryBuilder(), CreateGeometryWithoutTGeo(), CreateGeometryWithTGeo(), and PlaceVolume().

AliModule* AliMUONGeometryBuilder::fModule
private

the AliRoot module

Definition at line 83 of file AliMUONGeometryBuilder.h.

Referenced by PlaceVolume().

TString AliMUONGeometryBuilder::fSVMapFileName
private

svmaps file name

Definition at line 87 of file AliMUONGeometryBuilder.h.

Referenced by InitGeometry(), and WriteSVMaps().

TString AliMUONGeometryBuilder::fTransformFileName
private

transformations file name

Definition at line 86 of file AliMUONGeometryBuilder.h.

Referenced by CreateGeometryWithoutTGeo(), CreateGeometryWithTGeo(), and SetAlign().


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