AliFMDGeometry Class Reference
[Basic classes]

#include <AliFMDGeometry.h>

Collaboration diagram for AliFMDGeometry:

Collaboration graph
[legend]
List of all members.

Detailed Description

Singleton object of FMD geometry descriptions and parameters. This class is a singleton that handles the geometry parameters of the FMD detectors.

The actual code is done by various separate classes. Below is diagram showing the relationship between the various FMD classes that handles the geometry

                                  +------------+ 
                               +- | AliFMDRing |
    			   2   |  +------------+
         +----------------+<>--+        |				
         | AliFMDGeometry |             ^                       	
         +----------------+<>--+        V 1..2                     	
              		   3   | +----------------+ 		
               		       +-| AliFMDDetector | 		
                		 +----------------+		
                                        ^
                                        |
                          +-------------+-------------+
                          |             |             |	      
                     +---------+   +---------+   +---------+
                     | AliFMD1 |   | AliFMD2 |   | AliFMD3 |
                     +---------+   +---------+   +---------+
         
    

Definition at line 77 of file AliFMDGeometry.h.

Public Member Functions

virtual void Init ()
virtual void InitTransformations ()
AliFMDRingGetInner () const
AliFMDRingGetOuter () const
AliFMD1GetFMD1 () const
AliFMD2GetFMD2 () const
AliFMD3GetFMD3 () const
AliFMDDetectorGetDetector (Int_t i) const
AliFMDRingGetRing (Char_t i) const
void Disable (Int_t i)
void Enable (Int_t i)
Double_t GetSiDensity () const
void Detector2XYZ (UShort_t detector, 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, UShort_t &detector, Char_t &ring, UShort_t &sector, UShort_t &strip) const
void Build ()
Int_t GetDetectorOff () const
Int_t GetModuleOff () const
Int_t GetRingOff () const
Int_t GetSectorOff () const
void SetDetectorOff (Int_t off)
void SetModuleOff (Int_t off)
void SetRingOff (Int_t off)
void SetSectorOff (Int_t off)
Bool_t IsActive (Int_t vol) const
void SetActive (Int_t *active, Int_t n)
void AddActive (Int_t id)
void SetBuilder (AliFMDGeometryBuilder *b)
void ExtractGeomInfo ()
void SetDetailed (Bool_t det)
Bool_t IsDetailed () const
void UseAssembly (Bool_t ass)
virtual void GetGlobal (const AliRecPoint *p, TVector3 &pos, TMatrixF &mat) const
virtual void GetGlobal (const AliRecPoint *p, TVector3 &pos) const
virtual Bool_t Impact (const TParticle *particle) const

Static Public Member Functions

static AliFMDGeometryInstance ()

Protected Member Functions

 AliFMDGeometry ()
 AliFMDGeometry (const AliFMDGeometry &other)
AliFMDGeometryoperator= (const AliFMDGeometry &other)
virtual ~AliFMDGeometry ()
 ClassDef (AliFMDGeometry, 1)

Protected Attributes

Bool_t fIsInitialized
AliFMDRingfInner
AliFMDRingfOuter
AliFMD1fFMD1
AliFMD2fFMD2
AliFMD3fFMD3
Bool_t fUseFMD1
Bool_t fUseFMD2
Bool_t fUseFMD3
AliFMDGeometryBuilderfBuilder
Int_t fDetectorOff
Int_t fModuleOff
Int_t fRingOff
Int_t fSectorOff
TArrayI fActive
Bool_t fDetailed
Bool_t fUseAssembly

Static Protected Attributes

static AliFMDGeometryfgInstance


Constructor & Destructor Documentation

AliFMDGeometry::AliFMDGeometry  )  [protected]
 

CTOR

AliFMDGeometry::AliFMDGeometry const AliFMDGeometry other  )  [protected]
 

Copy CTOR

Parameters:
other To copy from

virtual AliFMDGeometry::~AliFMDGeometry  )  [inline, protected, virtual]
 

Definition at line 222 of file AliFMDGeometry.h.


Member Function Documentation

void AliFMDGeometry::AddActive Int_t  id  ) 
 

Parameters:
id Register volume id to be active

void AliFMDGeometry::Build  ) 
 

Make the geometry. This delegates to AliFMDGeometryBuilder

AliFMDGeometry::ClassDef AliFMDGeometry  ,
[protected]
 

void AliFMDGeometry::Detector2XYZ UShort_t  detector,
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:
detector Detector number
ring Ring id
sector Sector number
strip Strip number
x On return, X coordinate
y On return, Y coordinate
z On return, Z coordinate

void AliFMDGeometry::Disable Int_t  i  ) 
 

Parameters:
i IF true, disable sub-detector i

void AliFMDGeometry::Enable Int_t  i  ) 
 

Parameters:
i IF true, enable sub-detector i

void AliFMDGeometry::ExtractGeomInfo  ) 
 

Extract informaton from TGeoManager

AliFMDDetector* AliFMDGeometry::GetDetector Int_t  i  )  const
 

Get description of a sub-detector

Parameters:
i Sub-detector #
Returns:
Description of sub-detector, or 0

Int_t AliFMDGeometry::GetDetectorOff  )  const [inline]
 

Returns:
Get detector offset in paths

Definition at line 148 of file AliFMDGeometry.h.

AliFMD1* AliFMDGeometry::GetFMD1  )  const [inline]
 

Returns:
Get FMD1 description

Definition at line 91 of file AliFMDGeometry.h.

AliFMD2* AliFMDGeometry::GetFMD2  )  const [inline]
 

Returns:
Get FMD2 description

Definition at line 93 of file AliFMDGeometry.h.

AliFMD3* AliFMDGeometry::GetFMD3  )  const [inline]
 

Returns:
Get FMD3 description

Definition at line 95 of file AliFMDGeometry.h.

virtual void AliFMDGeometry::GetGlobal const AliRecPoint *  p,
TVector3 &  pos
const [virtual]
 

Get global coordinates cooresponding to a rec point.

Parameters:
p Reconstructed point.
pos On return, the position

virtual void AliFMDGeometry::GetGlobal const AliRecPoint *  p,
TVector3 &  pos,
TMatrixF &  mat
const [virtual]
 

Get global coordinates cooresponding to a rec point.

Parameters:
p Reconstructed point.
pos On return, the position
mat On return, the material at post

AliFMDRing* AliFMDGeometry::GetInner  )  const [inline]
 

Returns:
Get inner description

Definition at line 87 of file AliFMDGeometry.h.

Int_t AliFMDGeometry::GetModuleOff  )  const [inline]
 

Returns:
Get sensor offset in paths

Definition at line 150 of file AliFMDGeometry.h.

AliFMDRing* AliFMDGeometry::GetOuter  )  const [inline]
 

Returns:
Get outer description

Definition at line 89 of file AliFMDGeometry.h.

AliFMDRing* AliFMDGeometry::GetRing Char_t  i  )  const
 

Get description of a ring

Parameters:
i Ring id
Returns:
Description of ring, or 0

Int_t AliFMDGeometry::GetRingOff  )  const [inline]
 

Returns:
Get ring offset in paths

Definition at line 152 of file AliFMDGeometry.h.

Int_t AliFMDGeometry::GetSectorOff  )  const [inline]
 

Returns:
Get ring sector in paths

Definition at line 154 of file AliFMDGeometry.h.

Double_t AliFMDGeometry::GetSiDensity  )  const [inline]
 

Returns:
Density $ \rho$ of silicon

Definition at line 109 of file AliFMDGeometry.h.

virtual Bool_t AliFMDGeometry::Impact const TParticle *  particle  )  const [virtual]
 

Check if particle will hit an active detector element. Note done yet.

Parameters:
particle Track
Returns:
true if particle will hit this detector

virtual void AliFMDGeometry::Init  )  [virtual]
 

Initialize

virtual void AliFMDGeometry::InitTransformations  )  [virtual]
 

Initialize transforms

static AliFMDGeometry* AliFMDGeometry::Instance  )  [static]
 

Returns:
Singleton

Bool_t AliFMDGeometry::IsActive Int_t  vol  )  const
 

Check if volume vol is marked as active

Parameters:
vol Volume ID
Returns:
true if vol is declared active

Bool_t AliFMDGeometry::IsDetailed  )  const [inline]
 

Returns:
true if geometry is detailed

Definition at line 182 of file AliFMDGeometry.h.

AliFMDGeometry& AliFMDGeometry::operator= const AliFMDGeometry other  )  [protected]
 

Assignment operator

Parameters:
other To assig from
Returns:
reference to this.

void AliFMDGeometry::SetActive Int_t *  active,
Int_t  n
 

Set active volumes

Parameters:
active Active volume id array
n elements of active

void AliFMDGeometry::SetBuilder AliFMDGeometryBuilder b  )  [inline]
 

Set an external geometry builder

Parameters:
b Geometry builder

Definition at line 175 of file AliFMDGeometry.h.

void AliFMDGeometry::SetDetailed Bool_t  det  )  [inline]
 

Whether we are to use a detailed geometry or not

Parameters:
det if true, make a detailed geometry.

Definition at line 180 of file AliFMDGeometry.h.

void AliFMDGeometry::SetDetectorOff Int_t  off  )  [inline]
 

Parameters:
off Detector off-set set in geometry path

Definition at line 156 of file AliFMDGeometry.h.

void AliFMDGeometry::SetModuleOff Int_t  off  )  [inline]
 

Parameters:
off Module off-set set in geometry path

Definition at line 158 of file AliFMDGeometry.h.

void AliFMDGeometry::SetRingOff Int_t  off  )  [inline]
 

Parameters:
off Ring off-set set in geometry path

Definition at line 160 of file AliFMDGeometry.h.

void AliFMDGeometry::SetSectorOff Int_t  off  )  [inline]
 

Parameters:
off Sectord off-set set in geometry path

Definition at line 162 of file AliFMDGeometry.h.

void AliFMDGeometry::UseAssembly Bool_t  ass  )  [inline]
 

Parameters:
ass Whether to use assemblies or not

Definition at line 184 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::XYZ2Detector Double_t  x,
Double_t  y,
Double_t  z,
UShort_t &  detector,
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:
x X coordinate
y Y coordinate
z Z coordinate
detector On return, Detector number
ring On return, Ring id
sector On return, Sector number
strip On return, Strip number
Returns:
false of (x, y, z) is not within this detector.


Member Data Documentation

TArrayI AliFMDGeometry::fActive [protected]
 

Definition at line 229 of file AliFMDGeometry.h.

AliFMDGeometryBuilder* AliFMDGeometry::fBuilder [protected]
 

Definition at line 224 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::fDetailed [protected]
 

Definition at line 230 of file AliFMDGeometry.h.

Int_t AliFMDGeometry::fDetectorOff [protected]
 

Definition at line 225 of file AliFMDGeometry.h.

AliFMD1* AliFMDGeometry::fFMD1 [protected]
 

Definition at line 206 of file AliFMDGeometry.h.

AliFMD2* AliFMDGeometry::fFMD2 [protected]
 

Definition at line 207 of file AliFMDGeometry.h.

AliFMD3* AliFMDGeometry::fFMD3 [protected]
 

Definition at line 208 of file AliFMDGeometry.h.

AliFMDGeometry* AliFMDGeometry::fgInstance [static, protected]
 

Definition at line 212 of file AliFMDGeometry.h.

AliFMDRing* AliFMDGeometry::fInner [protected]
 

Definition at line 204 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::fIsInitialized [protected]
 

Definition at line 203 of file AliFMDGeometry.h.

Int_t AliFMDGeometry::fModuleOff [protected]
 

Definition at line 226 of file AliFMDGeometry.h.

AliFMDRing* AliFMDGeometry::fOuter [protected]
 

Definition at line 205 of file AliFMDGeometry.h.

Int_t AliFMDGeometry::fRingOff [protected]
 

Definition at line 227 of file AliFMDGeometry.h.

Int_t AliFMDGeometry::fSectorOff [protected]
 

Definition at line 228 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::fUseAssembly [protected]
 

Definition at line 231 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::fUseFMD1 [protected]
 

Definition at line 209 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::fUseFMD2 [protected]
 

Definition at line 210 of file AliFMDGeometry.h.

Bool_t AliFMDGeometry::fUseFMD3 [protected]
 

Definition at line 211 of file AliFMDGeometry.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 17:11:22 2006 for ALICE FMD Off-line by  doxygen 1.4.6