]>
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 | ||
18 | ////////////////////////////////////////////////////////////////////////////// | |
19 | // | |
20 | // Concrete implementation of AliFMDSubDetector | |
21 | // | |
22 | // This implements the geometry for FMD3 | |
23 | // | |
24 | ////////////////////////////////////////////////////////////////////////////// | |
25 | #ifndef ALIFMD3_H | |
26 | # include "AliFMD3.h" | |
27 | #endif | |
28 | #ifndef ROOT_TVirtualMC | |
29 | # include <TVirtualMC.h> | |
30 | #endif | |
31 | #ifndef ALILOG_H | |
32 | # include "AliLog.h" | |
33 | #endif | |
34 | ||
35 | //____________________________________________________________________ | |
36 | ClassImp(AliFMD3); | |
37 | ||
38 | //____________________________________________________________________ | |
39 | AliFMD3::AliFMD3() | |
40 | : AliFMDSubDetector(3) | |
41 | {} | |
42 | ||
43 | //____________________________________________________________________ | |
44 | AliFMD3::~AliFMD3() | |
45 | {} | |
46 | ||
47 | //____________________________________________________________________ | |
48 | void | |
49 | AliFMD3::SetupGeometry(Int_t airId, Int_t kaptionId) | |
50 | { | |
51 | fInnerHoneyLowR = fInner->GetLowR() + 1; | |
52 | fInnerHoneyHighR = fInner->GetHighR() + 1; | |
53 | fOuterHoneyLowR = fOuter->GetLowR() + 1; | |
54 | fOuterHoneyHighR = fOuter->GetHighR() + 1; | |
55 | ||
56 | Double_t par[3]; | |
57 | par[0] = fInner->GetLowR(); | |
58 | par[1] = fOuterHoneyHighR; | |
59 | par[2] = fDz = (TMath::Abs(fInnerZ - fOuterZ) | |
60 | + fInner->GetSiThickness() | |
61 | + fInner->GetPrintboardThickness() | |
62 | + fInner->GetLegLength() | |
63 | + fInner->GetModuleSpacing() | |
64 | + fHoneycombThickness) / 2; | |
65 | fVolumeId = gMC->Gsvolu("FMD3", "TUBE", airId, par, 3); | |
66 | ||
67 | gMC->Matrix(fRotationId, 90, 0, 90, 90, 0, 0); | |
68 | //0, 180, 90, 90, 180, 0); | |
69 | ||
70 | AliFMDSubDetector::SetupGeometry(airId, kaptionId); | |
71 | } | |
72 | ||
73 | //____________________________________________________________________ | |
74 | void | |
75 | AliFMD3::Geometry(const char* mother, Int_t pbRotId, | |
76 | Int_t idRotId, Double_t z) | |
77 | { | |
78 | z = fInnerZ - fDz; | |
79 | gMC->Gspos("FMD3", 1, mother, 0, 0, z, fRotationId); | |
80 | ||
81 | AliFMDSubDetector::Geometry("FMD3", pbRotId, idRotId, z); | |
82 | } | |
83 | ||
84 | ||
85 | ||
86 | //____________________________________________________________________ | |
87 | // | |
88 | // EOF | |
89 | // |