AliRoot Core  edcc906 (edcc906)
AliFMDDetector Class Reference

Base class for the geometry description and parameters of the FMD sub detectors FMD1, FMD2, and FMD3. More...

#include <AliFMDDetector.h>

Inheritance diagram for AliFMDDetector:

Public Member Functions

 AliFMDDetector (Int_t id, AliFMDRing *inner, AliFMDRing *outer)
 
 AliFMDDetector (const AliFMDDetector &other)
 
AliFMDDetectoroperator= (const AliFMDDetector &other)
 
virtual ~AliFMDDetector ()
 
virtual void Init ()
 
virtual void InitTransformations ()
 
void SetId (Int_t x)
 
void SetInnerZ (Double_t x)
 
void SetOuterZ (Double_t x)
 
void SetInnerHoneyLowR (Double_t x)
 
void SetInnerHoneyHighR (Double_t x)
 
void SetOuterHoneyLowR (Double_t x)
 
void SetOuterHoneyHighR (Double_t x)
 
Int_t GetId () const
 
Double_t GetInnerZ () const
 
Double_t GetOuterZ () const
 
Double_t GetInnerHoneyLowR () const
 
Double_t GetInnerHoneyHighR () const
 
Double_t GetOuterHoneyLowR () const
 
Double_t GetOuterHoneyHighR () const
 
AliFMDRingGetInner () const
 
AliFMDRingGetOuter () const
 
AliFMDRingGetRing (Char_t id) const
 
Double_t GetRingZ (Char_t id) const
 
void Detector2XYZ (Char_t ring, UShort_t sector, UShort_t strip, Double_t &x, Double_t &y, Double_t &z) const
 
Bool_t XYZ2Detector (Double_t x, Double_t y, Double_t z, Char_t &ring, UShort_t &sector, UShort_t &strip) const
 
virtual void SetAlignableVolumes () const
 
TGeoMatrix * FindTransform (Char_t ring, UShort_t sector) const
 

Protected Member Functions

Bool_t HasAllTransforms (Char_t ring) const
 

Protected Attributes

Int_t fId
 
Double_t fInnerZ
 
Double_t fOuterZ
 
Double_t fInnerHoneyLowR
 
Double_t fInnerHoneyHighR
 
Double_t fOuterHoneyLowR
 
Double_t fOuterHoneyHighR
 
AliFMDRingfInner
 
AliFMDRingfOuter
 
TObjArrayfInnerTransforms
 
TObjArrayfOuterTransforms
 

Detailed Description

Base class for the geometry description and parameters of the FMD sub detectors FMD1, FMD2, and FMD3.

This class hold common parameters of the specific FMD detectors.

Definition at line 45 of file AliFMDDetector.h.

Constructor & Destructor Documentation

AliFMDDetector::AliFMDDetector ( Int_t  id,
AliFMDRing inner,
AliFMDRing outer 
)

Constructor

Parameters
idDetector number
innerPointer to inner ring geometry
outerPointer to inner outer geometry
Returns

Definition at line 54 of file AliFMDDetector.cxx.

AliFMDDetector::AliFMDDetector ( const AliFMDDetector other)

Copy CTOR

Parameters
otherObject to copy from.

Definition at line 83 of file AliFMDDetector.cxx.

virtual AliFMDDetector::~AliFMDDetector ( )
inlinevirtual

Definition at line 61 of file AliFMDDetector.h.

Member Function Documentation

void AliFMDDetector::Detector2XYZ ( Char_t  ring,
UShort_t  sector,
UShort_t  strip,
Double_t &  x,
Double_t &  y,
Double_t &  z 
) const

Translate detector coordinates (detector, ring, sector, strip) to spatial coordinates (x, y, z) in the master reference frame of ALICE. The member function uses the transformations previously obtained from the TGeoManager.

Parameters
ringRing id
sectorSector number
stripStrip number
xOn return, X coordinate
yOn return, Y coordinate
zOn return, Z coordinate

Definition at line 536 of file AliFMDDetector.cxx.

Referenced by AliFMDGeometry::Detector2XYZ(), and GetOuter().

TGeoMatrix * AliFMDDetector::FindTransform ( Char_t  ring,
UShort_t  sector 
) const

Get transformation matrix for a sector in a ring

Parameters
ringRing id
sectorSector numberr
Returns
Matrix on success, 0 otherwise

Definition at line 510 of file AliFMDDetector.cxx.

Referenced by Detector2XYZ(), and GetOuter().

AliFMDRing* AliFMDDetector::GetInner ( ) const
inline
Double_t AliFMDDetector::GetInnerHoneyHighR ( ) const
inline
Returns
Outer radius of inner honeycomb

Definition at line 92 of file AliFMDDetector.h.

Referenced by AliFMDDetector(), AliFMDGeometryBuilder::DetectorGeometry(), and operator=().

Double_t AliFMDDetector::GetInnerHoneyLowR ( ) const
inline
Returns
Inner radius of inner honeycomb

Definition at line 90 of file AliFMDDetector.h.

Referenced by AliFMDDetector(), AliFMDGeometryBuilder::DetectorGeometry(), and operator=().

Double_t AliFMDDetector::GetInnerZ ( ) const
inline
AliFMDRing* AliFMDDetector::GetOuter ( ) const
inline
Double_t AliFMDDetector::GetOuterHoneyHighR ( ) const
inline
Returns
Outer radius of outer honeycomb

Definition at line 96 of file AliFMDDetector.h.

Referenced by AliFMDDetector(), AliFMDGeometryBuilder::DetectorGeometry(), AliFMD2::Init(), and operator=().

Double_t AliFMDDetector::GetOuterHoneyLowR ( ) const
inline
Returns
Inner radius of outer honeycomb

Definition at line 94 of file AliFMDDetector.h.

Referenced by AliFMDDetector(), AliFMDGeometryBuilder::DetectorGeometry(), and operator=().

Double_t AliFMDDetector::GetOuterZ ( ) const
inline
AliFMDRing * AliFMDDetector::GetRing ( Char_t  id) const
Double_t AliFMDDetector::GetRingZ ( Char_t  id) const
Parameters
idId of ring to get
Returns
Z position of ring or 0 on failure

Definition at line 493 of file AliFMDDetector.cxx.

Referenced by GetOuter(), and XYZ2Detector().

Bool_t AliFMDDetector::HasAllTransforms ( Char_t  ring) const
protected

Check if we have all transformations for a ring

Parameters
ringRing to check for
Returns
true if we got all transforms

Definition at line 145 of file AliFMDDetector.cxx.

Referenced by GetOuter(), and InitTransformations().

void AliFMDDetector::Init ( void  )
virtual

Initialize the geometry

Reimplemented in AliFMD3, AliFMD2, and AliFMD1.

Definition at line 130 of file AliFMDDetector.cxx.

Referenced by AliFMD1::Init(), AliFMD2::Init(), AliFMD3::Init(), and ~AliFMDDetector().

void AliFMDDetector::InitTransformations ( )
virtual

Find the transformations that correspond to modules of this detector, and store them in the arrays.

Definition at line 171 of file AliFMDDetector.cxx.

Referenced by AliFMDGeometry::InitTransformations(), and ~AliFMDDetector().

AliFMDDetector & AliFMDDetector::operator= ( const AliFMDDetector other)

Assignment operator

Parameters
otherObject to assign from
Returns
reference to this object

Definition at line 108 of file AliFMDDetector.cxx.

void AliFMDDetector::SetAlignableVolumes ( ) const
virtual

Declare alignable volumes

Definition at line 337 of file AliFMDDetector.cxx.

Referenced by GetOuter(), and AliFMDGeometry::SetAlignableVolumes().

void AliFMDDetector::SetId ( Int_t  x)
inline
Parameters
xDetector number

Definition at line 69 of file AliFMDDetector.h.

void AliFMDDetector::SetInnerHoneyHighR ( Double_t  x)
inline
Parameters
xOuter radius of inner honeycomb

Definition at line 77 of file AliFMDDetector.h.

Referenced by AliFMD3::AliFMD3(), AliFMDDetector(), AliFMD1::Init(), AliFMD2::Init(), Init(), and operator=().

void AliFMDDetector::SetInnerHoneyLowR ( Double_t  x)
inline
Parameters
xInner radius of inner honeycomb

Definition at line 75 of file AliFMDDetector.h.

Referenced by AliFMD3::AliFMD3(), AliFMDDetector(), Init(), and operator=().

void AliFMDDetector::SetInnerZ ( Double_t  x)
inline
Parameters
xPosition of outer ring along z

Definition at line 71 of file AliFMDDetector.h.

Referenced by AliFMD1::AliFMD1(), AliFMD2::AliFMD2(), AliFMD3::AliFMD3(), AliFMDDetector(), and operator=().

void AliFMDDetector::SetOuterHoneyHighR ( Double_t  x)
inline
Parameters
xOuter radius of outer honeycomb

Definition at line 81 of file AliFMDDetector.h.

Referenced by AliFMD3::AliFMD3(), AliFMDDetector(), Init(), and operator=().

void AliFMDDetector::SetOuterHoneyLowR ( Double_t  x)
inline
Parameters
xInner radius of outer honeycomb

Definition at line 79 of file AliFMDDetector.h.

Referenced by AliFMD3::AliFMD3(), AliFMDDetector(), Init(), and operator=().

void AliFMDDetector::SetOuterZ ( Double_t  x)
inline
Parameters
xPosition of outer ring along z

Definition at line 73 of file AliFMDDetector.h.

Referenced by AliFMD2::AliFMD2(), AliFMD3::AliFMD3(), AliFMDDetector(), and operator=().

Bool_t AliFMDDetector::XYZ2Detector ( Double_t  x,
Double_t  y,
Double_t  z,
Char_t &  ring,
UShort_t &  sector,
UShort_t &  strip 
) const

Translate spatial coordinates (x,y,z) in the master reference frame of ALICE to the detector coordinates (detector, ring, sector, strip). Note, that if this method is to be used in reconstruction or the like, then the input z-coordinate should be corrected for the events interactions points z-coordinate, like

geom->XYZ2Detector(x,y,z-ipz,d,r,s,t);
Parameters
xX coordinate
yY coordinate
zZ coordinate
ringOn return, Ring id
sectorOn return, Sector number
stripOn return, Strip number
Returns
false of (x, y, z) is not within this detector.

Definition at line 582 of file AliFMDDetector.cxx.

Referenced by GetOuter(), and AliFMDGeometry::XYZ2Detector().

Member Data Documentation

Int_t AliFMDDetector::fId
protected
AliFMDRing* AliFMDDetector::fInner
protected
Double_t AliFMDDetector::fInnerHoneyHighR
protected

Definition at line 158 of file AliFMDDetector.h.

Referenced by GetInnerHoneyHighR(), and SetInnerHoneyHighR().

Double_t AliFMDDetector::fInnerHoneyLowR
protected

Definition at line 157 of file AliFMDDetector.h.

Referenced by GetInnerHoneyLowR(), and SetInnerHoneyLowR().

TObjArray* AliFMDDetector::fInnerTransforms
protected

Definition at line 163 of file AliFMDDetector.h.

Referenced by FindTransform(), HasAllTransforms(), InitTransformations(), and operator=().

Double_t AliFMDDetector::fInnerZ
protected

Definition at line 155 of file AliFMDDetector.h.

Referenced by AliFMD3::ConeR(), GetInnerZ(), AliFMD3::Init(), and SetInnerZ().

AliFMDRing* AliFMDDetector::fOuter
protected

Definition at line 162 of file AliFMDDetector.h.

Referenced by GetOuter(), Init(), InitTransformations(), operator=(), and SetAlignableVolumes().

Double_t AliFMDDetector::fOuterHoneyHighR
protected

Definition at line 160 of file AliFMDDetector.h.

Referenced by GetOuterHoneyHighR(), and SetOuterHoneyHighR().

Double_t AliFMDDetector::fOuterHoneyLowR
protected

Definition at line 159 of file AliFMDDetector.h.

Referenced by GetOuterHoneyLowR(), and SetOuterHoneyLowR().

TObjArray* AliFMDDetector::fOuterTransforms
protected

Definition at line 164 of file AliFMDDetector.h.

Referenced by FindTransform(), HasAllTransforms(), InitTransformations(), and operator=().

Double_t AliFMDDetector::fOuterZ
protected

Definition at line 156 of file AliFMDDetector.h.

Referenced by GetOuterZ(), and SetOuterZ().


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