AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTGeometryBuilder.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 
16 // $Id$
17 
18 //-----------------------------------------------------------------------------
23 // author Raphael Tieulent <raphael.tieulent@cern.ch>
24 //-----------------------------------------------------------------------------
25 
26 #include "TGeoVolume.h"
27 #include "TGeoManager.h"
28 
29 #include "AliLog.h"
30 
31 #include "AliMFTGeometryBuilder.h"
32 #include "AliMFTGeometry.h"
33 #include "AliMFTSegmentation.h"
34 #include "AliMFTHalfSegmentation.h"
35 #include "AliMFTHalf.h"
36 
37 
41 
42 //=============================================================================================
44 
46 TNamed(){
47 
48 }
49 
50 
51 //=============================================================================================
52 
54 
55 }
56 
57 
58 //=============================================================================================
61 
63 
64  AliMFTSegmentation * seg = mftGeo->GetSegmentation();
65 
66  TGeoVolume *volMFT = new TGeoVolumeAssembly("MFT");
67 
68  for (int iHalf=0; iHalf<2; iHalf++) {
69  AliMFTHalfSegmentation * halfSeg = seg->GetHalf(iHalf);
70  AliMFTHalf * halfMFT = new AliMFTHalf(halfSeg);
71  volMFT->AddNode(halfMFT->GetVolume(),iHalf,halfSeg->GetTransformation());
72  delete halfMFT;
73  }
74 
75 
77 
78  gGeoManager->GetVolume("ALIC")->AddNode(volMFT,0);
79 
80 }
TGeoCombiTrans * GetTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.
AliMFTHalfSegmentation * GetHalf(Int_t iHalf) const
Returns pointer to the segmentation of the half-MFT.
Class describing geometry of one half of the ALICE Muon Forward Tracker.
Definition: AliMFTHalf.h:23
AliMFTSegmentation * GetSegmentation() const
Returns pointer to the segmentation.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
TGeoVolumeAssembly * GetVolume()
Returns the Volume holding the Half-MFT.
Definition: AliMFTHalf.h:33
static AliMFTGeometry * Instance()
Retuns MFT Geometry singleton object.
Segmentation class for each half of the ALICE Muon Forward Tracker.
void BuildGeometry()
Build the MFT Geometry.
AliMFTGeometryBuilder()
Default constructor.
Class for the virtual segmentation of the ALICE Muon Forward Tracker.
Class describing MFT Geometry Builder.
Class Handling both Virutal Segmentation and Real Volumes.