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