]>
Commit | Line | Data |
---|---|---|
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 | //____________________________________________________________________ | |
925e6570 | 31 | ClassImp(AliFMD1) |
4347b38f | 32 | |
33 | //____________________________________________________________________ | |
34 | AliFMD1::AliFMD1() | |
35 | : AliFMDSubDetector(1) | |
b9ced2a3 | 36 | { |
37 | // Default constructor for the FMD1 sub-detector | |
38 | } | |
4347b38f | 39 | |
40 | //____________________________________________________________________ | |
41 | AliFMD1::~AliFMD1() | |
b9ced2a3 | 42 | { |
43 | // Destructor - does nothing | |
44 | } | |
4347b38f | 45 | |
46 | //____________________________________________________________________ | |
47 | void | |
3513ea13 | 48 | AliFMD1::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 | // |
824466d5 | 57 | AliDebug(10, "\tDefining the geometry for FMD1"); |
4347b38f | 58 | fInnerHoneyLowR = fInner->GetLowR() + 1; |
59 | fInnerHoneyHighR = fInner->GetHighR() + 1; | |
60 | fOuterHoneyLowR = 0; | |
61 | fOuterHoneyHighR = 0; | |
62 | ||
63 | Double_t par[3]; | |
64 | par[0] = fInner->GetLowR(); | |
65 | par[1] = fInnerHoneyHighR; | |
66 | par[2] = fDz = (fInner->GetLegLength() | |
67 | + fInner->GetSiThickness() | |
68 | + fInner->GetPrintboardThickness() | |
69 | + fInner->GetModuleSpacing() | |
70 | + fHoneycombThickness) / 2; | |
71 | fVolumeId = gMC->Gsvolu("FMD1", "TUBE", airId, par, 3); | |
72 | ||
73 | // Rotate the full sub-detector | |
74 | gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0); | |
75 | ||
3513ea13 | 76 | AliFMDSubDetector::SetupGeometry(airId, alId); |
4347b38f | 77 | } |
78 | ||
79 | //____________________________________________________________________ | |
80 | void | |
81 | AliFMD1::Geometry(const char* mother, Int_t pbRotId, | |
82 | Int_t idRotId, Double_t z) | |
83 | { | |
b9ced2a3 | 84 | // Position the FMD1 sub-detector volume |
85 | // | |
86 | // Parameters | |
87 | // | |
88 | // mother name of the mother volume | |
89 | // pbRotId Printboard roation matrix ID | |
90 | // idRotId Identity rotation matrix ID | |
91 | // z Z position (not really used here, but passed down) | |
92 | // | |
4347b38f | 93 | // The Z passed in isn't used. |
94 | z = fInnerZ + fDz; | |
824466d5 | 95 | AliDebug(10, Form("\tPutting FMD1 in %s at z=%lf cm", mother, z)); |
96 | gMC->Gspos("FMD1", 1, mother, 0, 0, z, fRotationId, "ONLY"); | |
4347b38f | 97 | |
98 | AliFMDSubDetector::Geometry("FMD1", pbRotId, idRotId, z); | |
99 | } | |
100 | ||
101 | ||
102 | ||
103 | //____________________________________________________________________ | |
104 | // | |
105 | // EOF | |
106 | // |