]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMD1.cxx
Removing extra semicolons (FedoraCore3, gcc 3.4.2)
[u/mrichter/AliRoot.git] / FMD / AliFMD1.cxx
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 #include "AliFMD1.h"            // ALIFMD1_H 
25 #include "AliFMDRing.h"         // ALIFMDRING_H 
26 #include "TVirtualMC.h"         // ROOT_TVirtualMC
27 #include "AliLog.h"             // ALILOG_H
28
29
30 //____________________________________________________________________
31 ClassImp(AliFMD1)
32
33 //____________________________________________________________________
34 AliFMD1::AliFMD1() 
35   : AliFMDSubDetector(1) 
36 {
37   // Default constructor for the FMD1 sub-detector 
38 }
39
40 //____________________________________________________________________
41 AliFMD1::~AliFMD1() 
42 {
43   // Destructor - does nothing 
44 }
45
46 //____________________________________________________________________
47 void 
48 AliFMD1::SetupGeometry(Int_t airId, Int_t alId, Int_t /* cId */) 
49 {
50   // Setup the FMD1 sub-detector geometry 
51   // 
52   // Parameters:
53   // 
54   //     airId         Id # of the Air medium 
55   //     alId     Id # of the Aluminium medium 
56   // 
57   AliDebug(10, "\tDefining the geometry for FMD1");
58   fInnerHoneyLowR  = fInner->GetLowR() + 1;
59   fInnerHoneyHighR = fInner->GetHighR() + 1;
60   fOuterHoneyLowR  = 0;
61   fOuterHoneyHighR = 0;
62
63   Double_t par[3];
64   par[0] = fInner->GetLowR();
65   par[1] = fInnerHoneyHighR;
66   par[2] = fDz = (fInner->GetLegLength() 
67                   + fInner->GetSiThickness() 
68                   + fInner->GetPrintboardThickness() 
69                   + fInner->GetModuleSpacing() 
70                   + fHoneycombThickness) / 2;
71   fVolumeId = gMC->Gsvolu("FMD1", "TUBE", airId, par, 3);
72
73   // Rotate the full sub-detector 
74   gMC->Matrix(fRotationId, 270, 180, 90, 90, 180, 0); 
75
76   AliFMDSubDetector::SetupGeometry(airId, alId);
77 }
78
79 //____________________________________________________________________
80 void 
81 AliFMD1::Geometry(const char* mother, Int_t pbRotId, 
82                   Int_t idRotId, Double_t z) 
83 {
84   // Position the FMD1 sub-detector volume 
85   // 
86   // Parameters 
87   //
88   //     mother     name of the mother volume 
89   //     pbRotId    Printboard roation matrix ID 
90   //     idRotId    Identity rotation matrix ID 
91   //     z          Z position (not really used here, but passed down)
92   //
93   // The Z passed in isn't used. 
94   z = fInnerZ + fDz;
95   AliDebug(10, Form("\tPutting FMD1 in %s at z=%lf cm", mother, z));
96   gMC->Gspos("FMD1", 1, mother, 0, 0, z, fRotationId, "ONLY");
97
98   AliFMDSubDetector::Geometry("FMD1", pbRotId, idRotId, z);
99 }
100
101   
102
103 //____________________________________________________________________
104 //
105 // EOF
106 //