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 #include "AliFMD1.h" // ALIFMD1_H
25 #include "AliFMDRing.h" // ALIFMDRING_H
26 #include "TVirtualMC.h" // ROOT_TVirtualMC
27 #include "AliLog.h" // ALILOG_H
30 //____________________________________________________________________
33 //____________________________________________________________________
35 : AliFMDSubDetector(1)
37 // Default constructor for the FMD1 sub-detector
40 //____________________________________________________________________
43 // Destructor - does nothing
46 //____________________________________________________________________
48 AliFMD1::SetupGeometry(Int_t airId, Int_t kaptionId)
50 // Setup the FMD1 sub-detector geometry
54 // airId Id # of the Air medium
55 // kaptionId Id # of the Aluminium medium
57 fInnerHoneyLowR = fInner->GetLowR() + 1;
58 fInnerHoneyHighR = fInner->GetHighR() + 1;
63 par[0] = fInner->GetLowR();
64 par[1] = fInnerHoneyHighR;
65 par[2] = fDz = (fInner->GetLegLength()
66 + fInner->GetSiThickness()
67 + fInner->GetPrintboardThickness()
68 + fInner->GetModuleSpacing()
69 + fHoneycombThickness) / 2;
70 fVolumeId = gMC->Gsvolu("FMD1", "TUBE", airId, par, 3);
72 // Rotate the full sub-detector
73 gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0);
75 AliFMDSubDetector::SetupGeometry(airId, kaptionId);
78 //____________________________________________________________________
80 AliFMD1::Geometry(const char* mother, Int_t pbRotId,
81 Int_t idRotId, Double_t z)
83 // Position the FMD1 sub-detector volume
87 // mother name of the mother volume
88 // pbRotId Printboard roation matrix ID
89 // idRotId Identity rotation matrix ID
90 // z Z position (not really used here, but passed down)
92 // The Z passed in isn't used.
94 gMC->Gspos("FMD1", 1, mother, 0, 0, z, fRotationId);
96 AliFMDSubDetector::Geometry("FMD1", pbRotId, idRotId, z);
101 //____________________________________________________________________