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 FMD1
24 //////////////////////////////////////////////////////////////////////////////
29 # include "AliFMDRing.h"
31 #ifndef ROOT_TVirtualMC
32 # include <TVirtualMC.h>
39 //____________________________________________________________________
42 //____________________________________________________________________
44 : AliFMDSubDetector(1)
47 //____________________________________________________________________
51 //____________________________________________________________________
53 AliFMD1::SetupGeometry(Int_t airId, Int_t kaptionId)
55 fInnerHoneyLowR = fInner->GetLowR() + 1;
56 fInnerHoneyHighR = fInner->GetHighR() + 1;
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);
70 // Rotate the full sub-detector
71 gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0);
73 AliFMDSubDetector::SetupGeometry(airId, kaptionId);
76 //____________________________________________________________________
78 AliFMD1::Geometry(const char* mother, Int_t pbRotId,
79 Int_t idRotId, Double_t z)
81 // The Z passed in isn't used.
83 gMC->Gspos("FMD1", 1, mother, 0, 0, z, fRotationId);
85 AliFMDSubDetector::Geometry("FMD1", pbRotId, idRotId, z);
90 //____________________________________________________________________