]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMD1.cxx
Added AliFMD3Support class
[u/mrichter/AliRoot.git] / FMD / AliFMD1.cxx
CommitLineData
4347b38f 1/**************************************************************************
2 * Copyright(c) 2004, 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
b9ced2a3 18//____________________________________________________________________
4347b38f 19//
20// Concrete implementation of AliFMDSubDetector
21//
22// This implements the geometry for FMD1
23//
e802be3e 24#include "AliFMD1.h" // ALIFMD1_H
25#include "AliFMDRing.h" // ALIFMDRING_H
26#include "TVirtualMC.h" // ROOT_TVirtualMC
27#include "AliLog.h" // ALILOG_H
4347b38f 28
29
30//____________________________________________________________________
31ClassImp(AliFMD1);
32
33//____________________________________________________________________
34AliFMD1::AliFMD1()
35 : AliFMDSubDetector(1)
b9ced2a3 36{
37 // Default constructor for the FMD1 sub-detector
38}
4347b38f 39
40//____________________________________________________________________
41AliFMD1::~AliFMD1()
b9ced2a3 42{
43 // Destructor - does nothing
44}
4347b38f 45
46//____________________________________________________________________
47void
3513ea13 48AliFMD1::SetupGeometry(Int_t airId, Int_t alId, Int_t /* cId */)
4347b38f 49{
b9ced2a3 50 // Setup the FMD1 sub-detector geometry
51 //
52 // Parameters:
53 //
54 // airId Id # of the Air medium
3513ea13 55 // alId Id # of the Aluminium medium
b9ced2a3 56 //
4347b38f 57 fInnerHoneyLowR = fInner->GetLowR() + 1;
58 fInnerHoneyHighR = fInner->GetHighR() + 1;
59 fOuterHoneyLowR = 0;
60 fOuterHoneyHighR = 0;
61
62 Double_t par[3];
63 par[0] = fInner->GetLowR();
64 par[1] = fInnerHoneyHighR;
65 par[2] = fDz = (fInner->GetLegLength()
66 + fInner->GetSiThickness()
67 + fInner->GetPrintboardThickness()
68 + fInner->GetModuleSpacing()
69 + fHoneycombThickness) / 2;
70 fVolumeId = gMC->Gsvolu("FMD1", "TUBE", airId, par, 3);
71
72 // Rotate the full sub-detector
73 gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0);
74
3513ea13 75 AliFMDSubDetector::SetupGeometry(airId, alId);
4347b38f 76}
77
78//____________________________________________________________________
79void
80AliFMD1::Geometry(const char* mother, Int_t pbRotId,
81 Int_t idRotId, Double_t z)
82{
b9ced2a3 83 // Position the FMD1 sub-detector volume
84 //
85 // Parameters
86 //
87 // mother name of the mother volume
88 // pbRotId Printboard roation matrix ID
89 // idRotId Identity rotation matrix ID
90 // z Z position (not really used here, but passed down)
91 //
4347b38f 92 // The Z passed in isn't used.
93 z = fInnerZ + fDz;
94 gMC->Gspos("FMD1", 1, mother, 0, 0, z, fRotationId);
95
96 AliFMDSubDetector::Geometry("FMD1", pbRotId, idRotId, z);
97}
98
99
100
101//____________________________________________________________________
102//
103// EOF
104//