1 /**************************************************************************
2 * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //////////////////////////////////////////////////////////////////////////////
20 // Concrete implementation of AliFMDSubDetector
22 // This implements the geometry for FMD3
24 //////////////////////////////////////////////////////////////////////////////
28 #ifndef ROOT_TVirtualMC
29 # include <TVirtualMC.h>
35 # include "AliFMDRing.h"
38 //____________________________________________________________________
41 //____________________________________________________________________
43 : AliFMDSubDetector(3)
46 //____________________________________________________________________
50 //____________________________________________________________________
52 AliFMD3::SetupGeometry(Int_t airId, Int_t kaptionId)
54 fInnerHoneyLowR = fInner->GetLowR() + 1;
55 fInnerHoneyHighR = fInner->GetHighR() + 1;
56 fOuterHoneyLowR = fOuter->GetLowR() + 1;
57 fOuterHoneyHighR = fOuter->GetHighR() + 1;
60 par[0] = fInner->GetLowR();
61 par[1] = fOuterHoneyHighR;
62 par[2] = fDz = (TMath::Abs(fInnerZ - fOuterZ)
63 + fInner->GetSiThickness()
64 + fInner->GetPrintboardThickness()
65 + fInner->GetLegLength()
66 + fInner->GetModuleSpacing()
67 + fHoneycombThickness) / 2;
68 fVolumeId = gMC->Gsvolu("FMD3", "TUBE", airId, par, 3);
70 gMC->Matrix(fRotationId, 90, 0, 90, 90, 0, 0);
71 //0, 180, 90, 90, 180, 0);
73 AliFMDSubDetector::SetupGeometry(airId, kaptionId);
76 //____________________________________________________________________
78 AliFMD3::Geometry(const char* mother, Int_t pbRotId,
79 Int_t idRotId, Double_t z)
82 gMC->Gspos("FMD3", 1, mother, 0, 0, z, fRotationId);
84 AliFMDSubDetector::Geometry("FMD3", pbRotId, idRotId, z);
89 //____________________________________________________________________