]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMD1.cxx
Fixed a few problems
[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
18//////////////////////////////////////////////////////////////////////////////
19//
20// Concrete implementation of AliFMDSubDetector
21//
22// This implements the geometry for FMD1
23//
24//////////////////////////////////////////////////////////////////////////////
25#ifndef ALIFMD1_H
26# include "AliFMD1.h"
27#endif
0d0e6995 28#ifndef ALIFMDRING_H
29# include "AliFMDRing.h"
30#endif
4347b38f 31#ifndef ROOT_TVirtualMC
32# include <TVirtualMC.h>
33#endif
34#ifndef ALILOG_H
35# include "AliLog.h"
36#endif
37
38
39//____________________________________________________________________
40ClassImp(AliFMD1);
41
42//____________________________________________________________________
43AliFMD1::AliFMD1()
44 : AliFMDSubDetector(1)
45{}
46
47//____________________________________________________________________
48AliFMD1::~AliFMD1()
49{}
50
51//____________________________________________________________________
52void
53AliFMD1::SetupGeometry(Int_t airId, Int_t kaptionId)
54{
55 fInnerHoneyLowR = fInner->GetLowR() + 1;
56 fInnerHoneyHighR = fInner->GetHighR() + 1;
57 fOuterHoneyLowR = 0;
58 fOuterHoneyHighR = 0;
59
60 Double_t par[3];
61 par[0] = fInner->GetLowR();
62 par[1] = fInnerHoneyHighR;
63 par[2] = fDz = (fInner->GetLegLength()
64 + fInner->GetSiThickness()
65 + fInner->GetPrintboardThickness()
66 + fInner->GetModuleSpacing()
67 + fHoneycombThickness) / 2;
68 fVolumeId = gMC->Gsvolu("FMD1", "TUBE", airId, par, 3);
69
70 // Rotate the full sub-detector
71 gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0);
72
73 AliFMDSubDetector::SetupGeometry(airId, kaptionId);
74}
75
76//____________________________________________________________________
77void
78AliFMD1::Geometry(const char* mother, Int_t pbRotId,
79 Int_t idRotId, Double_t z)
80{
81 // The Z passed in isn't used.
82 z = fInnerZ + fDz;
83 gMC->Gspos("FMD1", 1, mother, 0, 0, z, fRotationId);
84
85 AliFMDSubDetector::Geometry("FMD1", pbRotId, idRotId, z);
86}
87
88
89
90//____________________________________________________________________
91//
92// EOF
93//