]>
Commit | Line | Data |
---|---|---|
e118b27e | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, 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 | ||
d1cd2474 | 16 | // $Id$ |
17 | // | |
18 | // Class AliMUONSlatGeometryBuilder | |
19 | // ------------------------------- | |
20 | // Abstract base class for geometry construction per chamber. | |
21 | // | |
f4a7360f | 22 | |
2057e0cc | 23 | |
24 | ||
c10e6eaf | 25 | // This Builder is designed according to the enveloppe methode. The basic idea is to be able to allow moves |
26 | // of the slats on the support panels. | |
27 | // Those moves can be described with a simple set of parameters. The next step should be now to describe all | |
28 | // the slats and their places by a unique | |
29 | // class, which would make the SlatBuilder far more compact since now only three parameters can define a slat | |
30 | // and its position, like: | |
2057e0cc | 31 | // * Bool_t rounded_shape_slat |
32 | // * Float_t slat_length | |
33 | // * Float_t slat_number or Float_t slat_position | |
34 | ||
d1cd2474 | 35 | #include <TVirtualMC.h> |
ed6f6d60 | 36 | #include <TGeoBBox.h> |
37 | #include <TGeoVolume.h> | |
38 | #include <TGeoManager.h> | |
d1cd2474 | 39 | #include <TGeoMatrix.h> |
ed6f6d60 | 40 | #include <TGeoCompositeShape.h> |
41 | #include <TGeoTube.h> | |
42 | ||
30178c30 | 43 | #include <Riostream.h> |
d1cd2474 | 44 | |
e118b27e | 45 | #include "AliRun.h" |
46 | #include "AliLog.h" | |
47 | ||
d1cd2474 | 48 | #include "AliMUONSlatGeometryBuilder.h" |
49 | #include "AliMUON.h" | |
b7ef3c96 | 50 | #include "AliMUONConstants.h" |
e118b27e | 51 | #include "AliMUONGeometryModule.h" |
a432117a | 52 | #include "AliMUONGeometryEnvelopeStore.h" |
e516b01d | 53 | #include "AliMUONConstants.h" |
d1cd2474 | 54 | |
5398f946 | 55 | /// \cond CLASSIMP |
d1cd2474 | 56 | ClassImp(AliMUONSlatGeometryBuilder) |
5398f946 | 57 | /// \endcond |
d1cd2474 | 58 | |
59 | //______________________________________________________________________________ | |
60 | AliMUONSlatGeometryBuilder::AliMUONSlatGeometryBuilder(AliMUON* muon) | |
b7ef3c96 | 61 | : AliMUONVGeometryBuilder(4, 5, 6, 7, 8, 9), |
d1cd2474 | 62 | fMUON(muon) |
63 | { | |
64 | // Standard constructor | |
65 | ||
66 | } | |
67 | ||
68 | //______________________________________________________________________________ | |
69 | AliMUONSlatGeometryBuilder::AliMUONSlatGeometryBuilder() | |
70 | : AliMUONVGeometryBuilder(), | |
71 | fMUON(0) | |
72 | { | |
73 | // Default constructor | |
74 | } | |
75 | ||
d1cd2474 | 76 | //______________________________________________________________________________ |
77 | AliMUONSlatGeometryBuilder::~AliMUONSlatGeometryBuilder() { | |
78 | // | |
79 | } | |
80 | ||
d1cd2474 | 81 | // |
82 | // public methods | |
83 | // | |
84 | ||
85 | //______________________________________________________________________________ | |
86 | void AliMUONSlatGeometryBuilder::CreateGeometry() | |
87 | { | |
e516b01d | 88 | // CreateGeometry is the method containing all the informations concerning Stations 345 geometry. |
89 | // It includes description and placements of support panels and slats. | |
90 | // The code comes directly from what was written in AliMUONv1.cxx before, with modifications concerning | |
91 | // the use of Enveloppe method to place the Geant volumes. | |
92 | // Now, few changes would allow the creation of a Slat methode where slat could be described by few parameters, | |
93 | // and this builder would then be dedicated only to the | |
94 | // placements of the slats. Those modifications could shorten the Station 345 geometry by a non-negligeable factor... | |
d1cd2474 | 95 | |
e516b01d | 96 | Int_t *idtmed = fMUON->GetIdtmed()->GetArray()-1099; |
97 | ||
98 | Float_t angle; | |
99 | Float_t *dum=0; | |
100 | ||
101 | // define the id of tracking media: | |
102 | Int_t idAir = idtmed[1100]; // medium 1 | |
103 | Int_t idGas = idtmed[1108]; // medium 9 = Ar-CO2 gas (80%+20%) | |
104 | Int_t idCopper = idtmed[1110]; | |
105 | Int_t idG10 = idtmed[1111]; | |
106 | Int_t idCarbon = idtmed[1112]; | |
107 | Int_t idRoha = idtmed[1113]; | |
108 | Int_t idNomex = idtmed[1114]; // honey comb | |
109 | Int_t idNoryl = idtmed[1115]; | |
110 | Int_t idNomexB = idtmed[1116]; // bulk material | |
ed6f6d60 | 111 | |
112 | // Getting mediums for pannel support geometry | |
113 | TGeoMedium* kMedNomex = gGeoManager->GetMedium("MUON_Nomex"); | |
114 | TGeoMedium* kMedCarbon = gGeoManager->GetMedium("MUON_CARBON"); | |
e516b01d | 115 | |
116 | // sensitive area: 40*40 cm**2 | |
117 | const Float_t kSensLength = 40.; | |
118 | const Float_t kSensHeight = 40.; | |
1c334adf | 119 | const Float_t kSensWidth = AliMUONConstants::Pitch()*2;// 0.5 cm, according to TDR fig 2.120 |
e516b01d | 120 | const Int_t kSensMaterial = idGas; |
121 | // const Float_t kYoverlap = 1.5; | |
122 | ||
123 | // PCB dimensions in cm; width: 30 mum copper | |
124 | const Float_t kPcbLength = kSensLength; | |
125 | const Float_t kPcbHeight = 58.; // updated Ch. Finck | |
126 | const Float_t kPcbWidth = 0.003; | |
127 | const Int_t kPcbMaterial = idCopper; | |
128 | ||
129 | // Insulating material: 220 mum G10 fiber glued to pcb | |
130 | const Float_t kInsuLength = kPcbLength; | |
131 | const Float_t kInsuHeight = kPcbHeight; | |
132 | const Float_t kInsuWidth = 0.022; // updated Ch. Finck | |
133 | const Int_t kInsuMaterial = idG10; | |
134 | ||
135 | // Carbon fiber panels: 200mum carbon/epoxy skin | |
136 | const Float_t kCarbonWidth = 0.020; | |
137 | const Int_t kCarbonMaterial = idCarbon; | |
138 | ||
139 | // Nomex (honey comb) between the two panel carbon skins | |
140 | const Float_t kNomexLength = kSensLength; | |
141 | const Float_t kNomexHeight = kSensHeight; | |
142 | const Float_t kNomexWidth = 0.8; // updated Ch. Finck | |
143 | const Int_t kNomexMaterial = idNomex; | |
144 | ||
145 | // Bulk Nomex under panel sandwich Ch. Finck | |
146 | const Float_t kNomexBWidth = 0.025; | |
147 | const Int_t kNomexBMaterial = idNomexB; | |
148 | ||
149 | // Panel sandwich 0.02 carbon*2 + 0.8 nomex | |
150 | const Float_t kPanelLength = kSensLength; | |
151 | const Float_t kPanelHeight = kSensHeight; | |
152 | const Float_t kPanelWidth = 2 * kCarbonWidth + kNomexWidth; | |
153 | ||
f4a7360f | 154 | // Frame along the rounded (spacers) slats |
155 | const Float_t kRframeHeight = 2.00; | |
156 | ||
e516b01d | 157 | // spacer around the slat: 2 sticks along length,2 along height |
158 | // H: the horizontal ones | |
159 | const Float_t kHframeLength = kPcbLength; | |
160 | const Float_t kHframeHeight = 1.95; // updated Ch. Finck | |
161 | const Float_t kHframeWidth = kSensWidth; | |
162 | const Int_t kHframeMaterial = idNoryl; | |
163 | ||
164 | // V: the vertical ones; vertical spacers | |
165 | const Float_t kVframeLength = 2.5; | |
166 | const Float_t kVframeHeight = kSensHeight + kHframeHeight; | |
167 | const Float_t kVframeWidth = kSensWidth; | |
168 | const Int_t kVframeMaterial = idNoryl; | |
169 | ||
170 | // B: the horizontal border filled with rohacell: ok Ch. Finck | |
171 | const Float_t kBframeLength = kHframeLength; | |
172 | const Float_t kBframeHeight = (kPcbHeight - kSensHeight)/2. - kHframeHeight; | |
173 | const Float_t kBframeWidth = kHframeWidth; | |
174 | const Int_t kBframeMaterial = idRoha; | |
175 | ||
176 | // NULOC: 30 mum copper + 200 mum vetronite (same radiation length as 14mum copper) for electronics | |
177 | const Float_t kNulocLength = 2.5; | |
178 | const Float_t kNulocHeight = kBframeHeight; | |
179 | const Float_t kNulocWidth = 0.0030 + 0.0014; // equivalent copper width of vetronite; | |
180 | const Int_t kNulocMaterial = idCopper; | |
181 | ||
182 | // Slat parameters | |
183 | const Float_t kSlatHeight = kPcbHeight; | |
184 | const Float_t kSlatWidth = kSensWidth + 2.*(kPcbWidth + kInsuWidth + kPanelWidth | |
185 | + kNomexBWidth); //replaced rohacell with Nomex Ch. Finck | |
eb1c3e3a | 186 | // const Int_t kSlatMaterial = idAir; |
e516b01d | 187 | const Float_t kDslatLength = -1.25; // position of the slat respect to the beam plane (half vertical spacer) Ch. Finck |
188 | Float_t zSlat = AliMUONConstants::DzSlat();// implemented Ch. Finck | |
189 | Float_t dzCh = AliMUONConstants::DzCh(); | |
190 | ||
191 | Float_t spar[3]; | |
192 | Int_t i, j; | |
193 | Int_t detElemId; | |
194 | ||
195 | // the panel volume contains the nomex | |
196 | Float_t panelpar[3] = { kPanelLength/2., kPanelHeight/2., kPanelWidth/2. }; | |
197 | Float_t nomexpar[3] = { kNomexLength/2., kNomexHeight/2., kNomexWidth/2. }; | |
198 | Float_t twidth = kPanelWidth + kNomexBWidth; | |
199 | Float_t nomexbpar[3] = {kNomexLength/2., kNomexHeight/2.,twidth/2. };// bulk nomex | |
200 | ||
201 | // insulating material contains PCB-> gas | |
202 | twidth = 2*(kInsuWidth + kPcbWidth) + kSensWidth ; | |
203 | Float_t insupar[3] = {kInsuLength/2., kInsuHeight/2., twidth/2. }; | |
204 | twidth -= 2 * kInsuWidth; | |
205 | Float_t pcbpar[3] = {kPcbLength/2., kPcbHeight/2., twidth/2. }; | |
206 | Float_t senspar[3] = {kSensLength/2., kSensHeight/2., kSensWidth/2. }; | |
207 | Float_t theight = 2 * kHframeHeight + kSensHeight; | |
208 | Float_t hFramepar[3] = {kHframeLength/2., theight/2., kHframeWidth/2.}; | |
209 | Float_t bFramepar[3] = {kBframeLength/2., kBframeHeight/2., kBframeWidth/2.}; | |
210 | Float_t vFramepar[3] = {kVframeLength/2., kVframeHeight/2., kVframeWidth/2.}; | |
211 | Float_t nulocpar[3] = {kNulocLength/2., kNulocHeight/2., kNulocWidth/2.}; | |
212 | ||
213 | Float_t xx; | |
214 | Float_t xxmax = (kBframeLength - kNulocLength)/2.; | |
215 | Int_t index=0; | |
d1cd2474 | 216 | |
e516b01d | 217 | AliMUONChamber *iChamber, *iChamber1, *iChamber2; |
d12a7158 | 218 | |
e516b01d | 219 | Int_t* fStations = new Int_t[5]; |
220 | for (Int_t i=0; i<5; i++) fStations[i] = 1; | |
221 | fStations[2] = 1; | |
222 | ||
223 | if (fStations[2]) | |
d1cd2474 | 224 | { |
e516b01d | 225 | //******************************************************************** |
e118b27e | 226 | // Station 3 ** |
227 | //******************************************************************** | |
228 | // indices 1 and 2 for first and second chambers in the station | |
229 | // iChamber (first chamber) kept for other quanties than Z, | |
230 | // assumed to be the same in both chambers | |
e516b01d | 231 | |
e118b27e | 232 | iChamber = &fMUON->Chamber(4); |
e516b01d | 233 | iChamber1 = iChamber; |
e118b27e | 234 | iChamber2 = &fMUON->Chamber(5); |
d1cd2474 | 235 | |
b7ef3c96 | 236 | //GetGeometry(4)->SetDebug(kTRUE); |
237 | //GetGeometry(5)->SetDebug(kTRUE); | |
e118b27e | 238 | |
ed6f6d60 | 239 | |
240 | // Mother volume for each chamber in st3 are only defined if Dipole volue is there. | |
241 | // Outer excess and inner recess for mother volume radius | |
242 | // with respect to ROuter and RInner | |
243 | Float_t dMotherInner = AliMUONConstants::Rmin(2)-kRframeHeight; | |
244 | Float_t dMotherOutner= AliMUONConstants::Rmax(2)+kVframeLength + 37.0; | |
245 | // Additional 37 cm gap is needed to wrap the corners of the slats sin Rmax represent the maximum active radius of the chamber with 2pi phi acceptance | |
246 | Float_t tpar[3]; | |
247 | Double_t dstation = ( (-AliMUONConstants::DefaultChamberZ(5)) - | |
248 | (-AliMUONConstants::DefaultChamberZ(4)) ) /2.1; | |
249 | tpar[0] = dMotherInner; | |
250 | tpar[1] = dMotherOutner; | |
251 | tpar[2] = dstation; | |
6ffd4cb7 | 252 | if (!gAlice->GetModule("DIPO")) { |
6ffd4cb7 | 253 | gMC->Gsvolu("CH05", "TUBE", idAir, tpar, 3); |
254 | gMC->Gsvolu("CH06", "TUBE", idAir, tpar, 3); | |
6ffd4cb7 | 255 | } |
e516b01d | 256 | // volumes for slat geometry (xx=5,..,10 chamber id): |
257 | // Sxx0 Sxx1 Sxx2 Sxx3 --> Slat Mother volumes | |
258 | // SxxG --> Sensitive volume (gas) | |
259 | // SxxP --> PCB (copper) | |
260 | // SxxI --> Insulator (G10) | |
261 | // SxxC --> Carbon panel | |
262 | // SxxN --> Nomex comb | |
263 | // SxxX --> Nomex bulk | |
264 | // SxxH, SxxV --> Horizontal and Vertical frames (Noryl) | |
265 | // SB5x --> Volumes for the 35 cm long PCB | |
266 | // slat dimensions: slat is a MOTHER volume!!! made of air | |
267 | ||
268 | // only for chamber 5: slat 1 has a PCB shorter by 5cm! | |
269 | ||
270 | Float_t tlength = 35.; | |
271 | Float_t panelpar2[3] = { tlength/2., panelpar[1], panelpar[2]}; | |
272 | Float_t nomexpar2[3] = { tlength/2., nomexpar[1], nomexpar[2]}; | |
273 | Float_t nomexbpar2[3] = { tlength/2., nomexbpar[1], nomexbpar[2]}; | |
274 | Float_t insupar2[3] = { tlength/2., insupar[1], insupar[2]}; | |
275 | Float_t pcbpar2[3] = { tlength/2., pcbpar[1], pcbpar[2]}; | |
276 | Float_t senspar2[3] = { tlength/2., senspar[1], senspar[2]}; | |
277 | Float_t hFramepar2[3] = { tlength/2., hFramepar[1], hFramepar[2]}; | |
278 | Float_t bFramepar2[3] = { tlength/2., bFramepar[1], bFramepar[2]}; | |
279 | Float_t *dum=0; | |
280 | Float_t pcbDLength3 = (kPcbLength - tlength); | |
281 | ||
282 | const Int_t kNslats3 = 5; // number of slats per quadrant | |
283 | const Int_t kNPCB3[kNslats3] = {4, 4, 4, 3, 2}; // n PCB per slat | |
284 | const Float_t kXpos3[kNslats3] = {0., 0., 0., 0., 0.};//{31., 0., 0., 0., 0.}; | |
285 | const Float_t kYpos3[kNslats3] = {0, 37.8, 37.7, 37.3, 33.7}; | |
286 | Float_t slatLength3[kNslats3]; | |
287 | ||
288 | // create and position the slat (mother) volumes | |
289 | ||
290 | char idSlatCh5[5]; | |
291 | char idSlatCh6[5]; | |
292 | Float_t xSlat3; | |
293 | Float_t ySlat3 = 0; | |
294 | Float_t angle = 0.; | |
295 | Float_t spar2[3]; | |
296 | for (i = 0; i < kNslats3; i++){ | |
297 | ||
298 | slatLength3[i] = kPcbLength * kNPCB3[i] + 2.* kVframeLength; | |
299 | xSlat3 = slatLength3[i]/2. + kDslatLength + kXpos3[i]; | |
300 | ySlat3 += kYpos3[i]; | |
301 | ||
302 | spar[0] = slatLength3[i]/2.; | |
303 | spar[1] = kSlatHeight/2.; | |
304 | spar[2] = kSlatWidth/2.; | |
305 | // take away 5 cm from the first slat in chamber 5 | |
7ddb761c | 306 | if (i == 0 || i == 1 || i == 2) { // 1 pcb is shortened by 5cm |
e516b01d | 307 | spar2[0] = spar[0] - pcbDLength3/2.; |
308 | } else { | |
309 | spar2[0] = spar[0]; | |
310 | } | |
311 | spar2[1] = spar[1]; | |
312 | spar2[2] = spar[2]; | |
313 | Float_t dzCh3 = dzCh; | |
314 | Float_t zSlat3 = (i%2 ==0)? -zSlat : zSlat; // seems not that zSlat3 = zSlat4 & 5 refering to plan PQ7EN345-6 ? | |
315 | ||
e856ab99 | 316 | sprintf(idSlatCh5,"LA%d",i+kNslats3-1); |
eb1c3e3a | 317 | //gMC->Gsvolu(idSlatCh5,"BOX",kSlatMaterial,spar2,3); |
e856ab99 | 318 | detElemId = 509 - (i + kNslats3-1-4); |
e516b01d | 319 | GetEnvelopes(4)->AddEnvelope(idSlatCh5, detElemId, true, TGeoTranslation(xSlat3, ySlat3, -zSlat3 + dzCh3), |
320 | TGeoRotation("rot1",90,angle,90,90+angle,0,0) ); | |
321 | ||
322 | sprintf(idSlatCh5,"LA%d",3*kNslats3-2+i); | |
eb1c3e3a | 323 | //gMC->Gsvolu(idSlatCh5,"BOX",kSlatMaterial,spar2,3); |
e856ab99 | 324 | detElemId = 500 + (i + kNslats3-1-4); |
e516b01d | 325 | GetEnvelopes(4)->AddEnvelope(idSlatCh5, detElemId, true, TGeoTranslation(-xSlat3, ySlat3, zSlat3 - dzCh3), |
326 | TGeoRotation("rot2",90,180+angle,90,90+angle,180,0) ); | |
327 | ||
328 | if (i > 0) { | |
329 | sprintf(idSlatCh5,"LA%d",kNslats3-1-i); | |
eb1c3e3a | 330 | // gMC->Gsvolu(idSlatCh5,"BOX",kSlatMaterial,spar2,3); |
e856ab99 | 331 | detElemId = 509 + (i + kNslats3-1-4); |
e516b01d | 332 | GetEnvelopes(4)->AddEnvelope(idSlatCh5, detElemId, true, TGeoTranslation(xSlat3, -ySlat3, -zSlat3 + dzCh3), |
333 | TGeoRotation("rot3",90,angle,90,270+angle,180,0) ); | |
334 | ||
335 | sprintf(idSlatCh5,"LA%d",3*kNslats3-2-i); | |
eb1c3e3a | 336 | // gMC->Gsvolu(idSlatCh5,"BOX",kSlatMaterial,spar2,3); |
e856ab99 | 337 | detElemId = 518 - (i + kNslats3-1-4); |
e516b01d | 338 | GetEnvelopes(4)->AddEnvelope(idSlatCh5, detElemId, true, TGeoTranslation(-xSlat3, -ySlat3, zSlat3 - dzCh3), |
339 | TGeoRotation("rot4",90,180+angle,90,270+angle,0,0) ); | |
340 | } | |
341 | ||
342 | sprintf(idSlatCh6,"LB%d",kNslats3-1+i); | |
eb1c3e3a | 343 | // gMC->Gsvolu(idSlatCh6,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 344 | detElemId = 609 - (i + kNslats3-1-4); |
e516b01d | 345 | GetEnvelopes(5)->AddEnvelope(idSlatCh6, detElemId, true, TGeoTranslation(xSlat3, ySlat3, -zSlat3 + dzCh3), |
346 | TGeoRotation("rot5",90,angle,90,90+angle,0,0) ); | |
347 | sprintf(idSlatCh6,"LB%d",3*kNslats3-2+i); | |
eb1c3e3a | 348 | // gMC->Gsvolu(idSlatCh6,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 349 | detElemId = 600 + (i + kNslats3-1-4); |
e516b01d | 350 | GetEnvelopes(5)->AddEnvelope(idSlatCh6, detElemId, true, TGeoTranslation(-xSlat3, ySlat3, zSlat3 - dzCh3), |
351 | TGeoRotation("rot6",90,180+angle,90,90+angle,180,0) ); | |
352 | ||
353 | if (i > 0) { | |
354 | sprintf(idSlatCh6,"LB%d",kNslats3-1-i); | |
eb1c3e3a | 355 | //gMC->Gsvolu(idSlatCh6,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 356 | detElemId = 609 + (i + kNslats3-1-4); |
e516b01d | 357 | GetEnvelopes(5)->AddEnvelope(idSlatCh6, detElemId, true, TGeoTranslation(xSlat3, -ySlat3, -zSlat3 + dzCh3), |
358 | TGeoRotation("rot7",90,angle,90,270+angle,180,0) ); | |
359 | ||
360 | sprintf(idSlatCh6,"LB%d",3*kNslats3-2-i); | |
eb1c3e3a | 361 | //gMC->Gsvolu(idSlatCh6,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 362 | detElemId = 618 - (i + kNslats3-1-4); |
e516b01d | 363 | GetEnvelopes(5)->AddEnvelope(idSlatCh6, detElemId, true, TGeoTranslation(-xSlat3, -ySlat3, zSlat3 - dzCh3), |
364 | TGeoRotation("rot8",90,180+angle,90,270+angle,0,0) ); | |
365 | } | |
366 | } | |
d1cd2474 | 367 | |
e516b01d | 368 | // create the panel volume |
d1cd2474 | 369 | |
e516b01d | 370 | gMC->Gsvolu("S05C","BOX",kCarbonMaterial,panelpar,3); |
371 | gMC->Gsvolu("SB5C","BOX",kCarbonMaterial,panelpar2,3); | |
372 | gMC->Gsvolu("S06C","BOX",kCarbonMaterial,panelpar,3); | |
4846c3ab | 373 | |
e516b01d | 374 | // create the nomex volume (honey comb) |
d1cd2474 | 375 | |
e516b01d | 376 | gMC->Gsvolu("S05N","BOX",kNomexMaterial,nomexpar,3); |
377 | gMC->Gsvolu("SB5N","BOX",kNomexMaterial,nomexpar2,3); | |
378 | gMC->Gsvolu("S06N","BOX",kNomexMaterial,nomexpar,3); | |
4846c3ab | 379 | |
e516b01d | 380 | // create the nomex volume (bulk) |
381 | ||
382 | gMC->Gsvolu("S05X","BOX",kNomexBMaterial,nomexbpar,3); | |
383 | gMC->Gsvolu("SB5X","BOX",kNomexBMaterial,nomexbpar2,3); | |
384 | gMC->Gsvolu("S06X","BOX",kNomexBMaterial,nomexbpar,3); | |
d1cd2474 | 385 | |
e516b01d | 386 | // create the insulating material volume |
387 | ||
388 | gMC->Gsvolu("S05I","BOX",kInsuMaterial,insupar,3); | |
389 | gMC->Gsvolu("SB5I","BOX",kInsuMaterial,insupar2,3); | |
390 | gMC->Gsvolu("S06I","BOX",kInsuMaterial,insupar,3); | |
4846c3ab | 391 | |
e516b01d | 392 | // create the PCB volume |
d1cd2474 | 393 | |
e516b01d | 394 | gMC->Gsvolu("S05P","BOX",kPcbMaterial,pcbpar,3); |
395 | gMC->Gsvolu("SB5P","BOX",kPcbMaterial,pcbpar2,3); | |
396 | gMC->Gsvolu("S06P","BOX",kPcbMaterial,pcbpar,3); | |
d1cd2474 | 397 | |
e516b01d | 398 | // create the sensitive volumes, |
4846c3ab | 399 | |
e516b01d | 400 | gMC->Gsvolu("S05G","BOX",kSensMaterial,dum,0); |
401 | gMC->Gsvolu("S06G","BOX",kSensMaterial,dum,0); | |
d1cd2474 | 402 | |
e516b01d | 403 | // create the vertical frame volume |
d1cd2474 | 404 | |
e516b01d | 405 | gMC->Gsvolu("S05V","BOX",kVframeMaterial,vFramepar,3); |
406 | gMC->Gsvolu("S06V","BOX",kVframeMaterial,vFramepar,3); | |
d1cd2474 | 407 | |
e516b01d | 408 | // create the horizontal frame volume |
d1cd2474 | 409 | |
e516b01d | 410 | gMC->Gsvolu("S05H","BOX",kHframeMaterial,hFramepar,3); |
411 | gMC->Gsvolu("SB5H","BOX",kHframeMaterial,hFramepar2,3); | |
412 | gMC->Gsvolu("S06H","BOX",kHframeMaterial,hFramepar,3); | |
4846c3ab | 413 | |
e516b01d | 414 | // create the horizontal border volume |
d1cd2474 | 415 | |
e516b01d | 416 | gMC->Gsvolu("S05B","BOX",kBframeMaterial,bFramepar,3); |
417 | gMC->Gsvolu("SB5B","BOX",kBframeMaterial,bFramepar2,3); | |
418 | gMC->Gsvolu("S06B","BOX",kBframeMaterial,bFramepar,3); | |
4846c3ab | 419 | |
e516b01d | 420 | index = 0; |
421 | for (i = 0; i<kNslats3; i++){ | |
422 | for (Int_t quadrant = 1; quadrant <= 4; quadrant++) { | |
423 | ||
424 | if (i == 0 && quadrant == 2) continue; | |
425 | if (i == 0 && quadrant == 4) continue; | |
426 | ||
427 | sprintf(idSlatCh5,"LA%d",ConvertSlatNum(i,quadrant,kNslats3-1)); | |
428 | sprintf(idSlatCh6,"LB%d",ConvertSlatNum(i,quadrant,kNslats3-1)); | |
429 | Float_t xvFrame = (slatLength3[i] - kVframeLength)/2.; | |
430 | Float_t xvFrame2 = xvFrame; | |
431 | ||
432 | if (i == 0 || i == 1 || i == 2) xvFrame2 -= pcbDLength3/2.; | |
433 | ||
434 | // position the vertical frames | |
435 | if ( i > 2) { | |
436 | GetEnvelopes(4)->AddEnvelopeConstituent("S05V", idSlatCh5, | |
437 | (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
438 | GetEnvelopes(4)->AddEnvelopeConstituent("S05V", idSlatCh5, | |
439 | (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
440 | GetEnvelopes(5)->AddEnvelopeConstituent("S06V", idSlatCh6, | |
441 | (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
442 | GetEnvelopes(5)->AddEnvelopeConstituent("S06V", idSlatCh6, | |
443 | (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
444 | } | |
445 | ||
446 | if (i == 2) { | |
447 | GetEnvelopes(4)->AddEnvelopeConstituent("S05V", idSlatCh5, | |
448 | (2*i-1)*10+quadrant,TGeoTranslation(xvFrame2,0.,0.)); | |
449 | GetEnvelopes(4)->AddEnvelopeConstituent("S05V", idSlatCh5, | |
450 | (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
451 | GetEnvelopes(5)->AddEnvelopeConstituent("S06V", idSlatCh6, | |
452 | (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
453 | GetEnvelopes(5)->AddEnvelopeConstituent("S06V", idSlatCh6, | |
454 | (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
455 | } | |
456 | ||
457 | if (i == 0 || i == 1) { // no rounded spacer for the moment (Ch. Finck) | |
458 | GetEnvelopes(4)->AddEnvelopeConstituent("S05V", idSlatCh5, | |
459 | (2*i-1)*10+quadrant,TGeoTranslation(xvFrame2,0.,0.)); | |
460 | GetEnvelopes(5)->AddEnvelopeConstituent("S06V", idSlatCh6, | |
461 | (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
462 | } | |
463 | ||
464 | // position the panels and the insulating material | |
465 | for (j = 0; j < kNPCB3[i]; j++){ | |
466 | if (i == 1 && j == 0) continue; | |
467 | if (i == 0 && j == 0) continue; | |
468 | index++; | |
469 | Float_t xx = kSensLength * (-kNPCB3[i]/2. + j + 0.5); | |
470 | Float_t xx2 = xx - pcbDLength3/2.; | |
d1cd2474 | 471 | |
e516b01d | 472 | Float_t zPanel = spar[2] - nomexbpar[2]; |
473 | ||
474 | if ( (i == 0 || i == 1 || i == 2) && j == kNPCB3[i]-1) { // 1 pcb is shortened by 5cm | |
475 | GetEnvelopes(4)->AddEnvelopeConstituent("SB5X", idSlatCh5, 2*index-1,TGeoTranslation(xx2,0.,zPanel)); | |
476 | GetEnvelopes(4)->AddEnvelopeConstituent("SB5X", idSlatCh5, 2*index,TGeoTranslation(xx2,0.,-zPanel)); | |
477 | GetEnvelopes(4)->AddEnvelopeConstituent("SB5I", idSlatCh5, index,TGeoTranslation(xx2,0.,0.)); | |
478 | } else { | |
479 | GetEnvelopes(4)->AddEnvelopeConstituent("S05X", idSlatCh5, 2*index-1,TGeoTranslation(xx,0.,zPanel)); | |
480 | GetEnvelopes(4)->AddEnvelopeConstituent("S05X", idSlatCh5, 2*index,TGeoTranslation(xx,0.,-zPanel)); | |
481 | GetEnvelopes(4)->AddEnvelopeConstituent("S05I", idSlatCh5, index,TGeoTranslation(xx,0.,0.)); | |
482 | } | |
483 | GetEnvelopes(5)->AddEnvelopeConstituent("S06X", idSlatCh6, 2*index-1,TGeoTranslation(xx,0.,zPanel)); | |
484 | GetEnvelopes(5)->AddEnvelopeConstituent("S06X", idSlatCh6, 2*index,TGeoTranslation(xx,0.,-zPanel)); | |
485 | GetEnvelopes(5)->AddEnvelopeConstituent("S06I", idSlatCh6, index,TGeoTranslation(xx,0.,0.)); | |
d1cd2474 | 486 | |
e516b01d | 487 | } |
488 | } | |
489 | } | |
490 | ||
491 | // position the nomex volume inside the panel volume | |
492 | gMC->Gspos("S05N",1,"S05C",0.,0.,0.,0,"ONLY"); | |
493 | gMC->Gspos("SB5N",1,"SB5C",0.,0.,0.,0,"ONLY"); | |
494 | gMC->Gspos("S06N",1,"S06C",0.,0.,0.,0,"ONLY"); | |
4846c3ab | 495 | |
e516b01d | 496 | // position panel volume inside the bulk nomex material volume |
497 | gMC->Gspos("S05C",1,"S05X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
498 | gMC->Gspos("SB5C",1,"SB5X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
499 | gMC->Gspos("S06C",1,"S06X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
500 | ||
501 | // position the PCB volume inside the insulating material volume | |
502 | gMC->Gspos("S05P",1,"S05I",0.,0.,0.,0,"ONLY"); | |
503 | gMC->Gspos("SB5P",1,"SB5I",0.,0.,0.,0,"ONLY"); | |
504 | gMC->Gspos("S06P",1,"S06I",0.,0.,0.,0,"ONLY"); | |
4846c3ab | 505 | |
e516b01d | 506 | // position the horizontal frame volume inside the PCB volume |
507 | gMC->Gspos("S05H",1,"S05P",0.,0.,0.,0,"ONLY"); | |
508 | gMC->Gspos("SB5H",1,"SB5P",0.,0.,0.,0,"ONLY"); | |
509 | gMC->Gspos("S06H",1,"S06P",0.,0.,0.,0,"ONLY"); | |
4846c3ab | 510 | |
e516b01d | 511 | // position the sensitive volume inside the horizontal frame volume |
512 | gMC->Gsposp("S05G",1,"S05H",0.,0.,0.,0,"ONLY",senspar,3); | |
513 | gMC->Gsposp("S05G",1,"SB5H",0.,0.,0.,0,"ONLY",senspar2,3); | |
514 | gMC->Gsposp("S06G",1,"S06H",0.,0.,0.,0,"ONLY",senspar,3); | |
4846c3ab | 515 | |
516 | ||
e516b01d | 517 | // position the border volumes inside the PCB volume |
518 | Float_t yborder = ( kPcbHeight - kBframeHeight ) / 2.; | |
519 | gMC->Gspos("S05B",1,"S05P",0., yborder,0.,0,"ONLY"); | |
520 | gMC->Gspos("S05B",2,"S05P",0.,-yborder,0.,0,"ONLY"); | |
521 | gMC->Gspos("SB5B",1,"SB5P",0., yborder,0.,0,"ONLY"); | |
522 | gMC->Gspos("SB5B",2,"SB5P",0.,-yborder,0.,0,"ONLY"); | |
523 | ||
524 | gMC->Gspos("S06B",1,"S06P",0., yborder,0.,0,"ONLY"); | |
525 | gMC->Gspos("S06B",2,"S06P",0.,-yborder,0.,0,"ONLY"); | |
4846c3ab | 526 | |
e516b01d | 527 | // create the NULOC volume and position it in the horizontal frame |
528 | gMC->Gsvolu("S05E","BOX",kNulocMaterial,nulocpar,3); | |
529 | gMC->Gsvolu("S06E","BOX",kNulocMaterial,nulocpar,3); | |
530 | index = 0; | |
531 | Float_t xxmax2 = xxmax - pcbDLength3/2.; | |
532 | for (xx = -xxmax; xx <= xxmax; xx += 2*kNulocLength) { | |
533 | index++; | |
534 | gMC->Gspos("S05E",2*index-1,"S05B", xx, 0.,-kBframeWidth/2. + kNulocWidth/2, 0, "ONLY"); | |
535 | gMC->Gspos("S05E",2*index ,"S05B", xx, 0., kBframeWidth/2. - kNulocWidth/2, 0, "ONLY"); | |
536 | gMC->Gspos("S06E",2*index-1,"S06B", xx, 0.,-kBframeWidth/2. + kNulocWidth/2, 0, "ONLY"); | |
537 | gMC->Gspos("S06E",2*index ,"S06B", xx, 0., kBframeWidth/2.- kNulocWidth/2, 0, "ONLY"); | |
538 | if (xx > -xxmax2 && xx< xxmax2) { | |
539 | gMC->Gspos("S05E",2*index-1,"SB5B", xx, 0.,-kBframeWidth/2.+ kNulocWidth/2, 0, "ONLY"); | |
540 | gMC->Gspos("S05E",2*index ,"SB5B", xx, 0., kBframeWidth/2.- kNulocWidth/2, 0, "ONLY"); | |
541 | } | |
542 | } | |
543 | ||
544 | // position the volumes approximating the circular section of the pipe | |
545 | Float_t epsilon = 0.001; | |
546 | Int_t ndiv = 6; | |
547 | Int_t imax = 1; | |
548 | Double_t divpar[3]; | |
549 | Double_t dydiv = kSensHeight/ndiv; | |
550 | Double_t ydiv = (kSensHeight - dydiv)/2.; | |
b7ef3c96 | 551 | Double_t rmin = AliMUONConstants::Rmin(2);// Same radius for both chamber in St3 |
e516b01d | 552 | Double_t xdiv = 0.; |
553 | Float_t xvol; | |
554 | Float_t yvol; | |
555 | ||
556 | for (Int_t idiv = 0; idiv < ndiv; idiv++){ | |
557 | ydiv += dydiv; | |
558 | xdiv = 0.; | |
6f7aa53f | 559 | if (ydiv < rmin) xdiv = rmin * TMath::Sin( TMath::ACos((ydiv-dydiv/2.)/rmin) ); |
e516b01d | 560 | divpar[0] = (kPcbLength - xdiv)/2.; |
561 | divpar[1] = dydiv/2. - epsilon; | |
562 | divpar[2] = kSensWidth/2.; | |
563 | xvol = (kPcbLength + xdiv)/2.; | |
564 | yvol = ydiv; | |
565 | ||
566 | // Volumes close to the beam pipe for slat i=1 so 4 slats per chamber | |
567 | for (Int_t quadrant = 1; quadrant <= 4; quadrant++) { | |
568 | sprintf(idSlatCh5,"LA%d",ConvertSlatNum(1,quadrant,kNslats3-1)); | |
569 | sprintf(idSlatCh6,"LB%d",ConvertSlatNum(1,quadrant,kNslats3-1)); | |
570 | ||
571 | GetEnvelopes(4)->AddEnvelopeConstituentParam("S05G", idSlatCh5, quadrant*100+imax+4*idiv+1, | |
572 | TGeoTranslation(xvol-(kPcbLength * kNPCB3[1]/2.),yvol-kPcbLength,0.),3,divpar); | |
573 | ||
574 | GetEnvelopes(5)->AddEnvelopeConstituentParam("S06G", idSlatCh6, quadrant*100+imax+4*idiv+1, | |
575 | TGeoTranslation(xvol-(kPcbLength * kNPCB3[1]/2.),yvol-kPcbLength,0.),3,divpar); | |
576 | } | |
577 | } | |
578 | ||
579 | // Volumes close to the beam pipe for slat i=0 so 2 slats per chamber (central slat for station 3) | |
580 | // Gines Martinez, Subatech sep 04 | |
581 | // 9 box volumes are used to define the PCB closed to the beam pipe of the slat 122000SR1 of chamber 5 and 6 of St3 | |
582 | // Accordingly to plan PQ-LAT-SR1 of CEA-DSM-DAPNIA-SIS/BE ph HARDY 8-Oct-2002 | |
583 | // Rmin = 31.5 cm | |
b7ef3c96 | 584 | rmin = AliMUONConstants::Rmin(2); // Same radius for both chamber in St3 |
e516b01d | 585 | ndiv = 9; |
586 | dydiv = kSensHeight/ndiv; // Vertical size of the box volume approximating the rounded PCB | |
587 | ydiv = -kSensHeight/2 + dydiv/2.; // Initializing vertical position of the volume from bottom | |
588 | xdiv = 0.; // Initializing horizontal position of the box volumes | |
589 | ||
590 | for (Int_t idiv = 0; idiv < ndiv; idiv++){ | |
591 | xdiv = TMath::Abs( rmin * TMath::Sin( TMath::ACos(ydiv/rmin) ) ); | |
592 | divpar[0] = (kPcbLength - xdiv)/2.; // Dimension of the box volume | |
593 | divpar[1] = dydiv/2. - epsilon; | |
594 | divpar[2] = kSensWidth/2.; | |
595 | xvol = (kPcbLength + xdiv)/2.; //2D traslition for positionning of box volume | |
596 | yvol = ydiv; | |
597 | Int_t side; | |
598 | for (side = 1; side <= 2; side++) { | |
599 | sprintf(idSlatCh5,"LA%d",4); | |
600 | sprintf(idSlatCh6,"LB%d",4); | |
601 | if(side == 2) { | |
602 | sprintf(idSlatCh5,"LA%d",13); | |
603 | sprintf(idSlatCh6,"LB%d",13); | |
604 | } | |
605 | GetEnvelopes(4)->AddEnvelopeConstituentParam("S05G", idSlatCh5,500+side*100+imax+4*idiv+1, | |
606 | TGeoTranslation(xvol-(kPcbLength * kNPCB3[0]/2.),yvol,0.),3,divpar); | |
607 | ||
608 | GetEnvelopes(5)->AddEnvelopeConstituentParam("S06G", idSlatCh6,500+side*100+imax+4*idiv+1, | |
609 | TGeoTranslation(xvol-(kPcbLength * kNPCB3[0]/2.),yvol,0.),3,divpar); | |
610 | } | |
611 | ydiv += dydiv; // Going from bottom to top | |
612 | } | |
ed6f6d60 | 613 | |
614 | ||
615 | // | |
616 | //Geometry of the support pannel Verticla length 3.62m, horizontal length 1.62m, internal radius dMotherInner of CH05 and CH06 (F. Orsini, Saclay) | |
617 | //Carbon fiber of 0.3 mm thick (2 layers) and a central layer of Nomex of 15mm thick. | |
618 | Float_t nomexthickness = 1.5; | |
619 | Float_t carbonthickness = 0.03; | |
620 | Float_t supporthlength = 162.; | |
621 | Float_t supportvlength = 362.; | |
622 | // Generating the composite shape of the carbon and nomex pannels | |
623 | new TGeoBBox("shNomexBoxSt3",supporthlength/2., supportvlength/2. ,nomexthickness/2.+carbonthickness); | |
624 | new TGeoBBox("shCarbonBoxSt3",supporthlength/2., supportvlength/2. ,carbonthickness/2.); | |
625 | new TGeoTubeSeg("shNomexHoleSt3",0., dMotherInner, nomexthickness/2.+carbonthickness+0.001, -90. ,90.); | |
626 | new TGeoTubeSeg("shCarbonHoleSt3",0., dMotherInner, carbonthickness/2.+0.001, -90. ,90.); | |
627 | TGeoTranslation * trHoleSt3 = new TGeoTranslation("trHoleSt3",-supporthlength/2.,0.,0.); | |
628 | trHoleSt3->RegisterYourself(); | |
629 | TGeoCompositeShape * shNomexSupportSt3 = new TGeoCompositeShape("shNomexSupportSt3","shNomexBoxSt3-shNomexHoleSt3:trHoleSt3"); | |
630 | TGeoCompositeShape * shCarbonSupportSt3 = new TGeoCompositeShape("shCarbonSupportSt3","shCarbonBoxSt3-shCarbonHoleSt3:trHoleSt3"); | |
631 | ||
632 | // Generating Nomex and Carbon pannel volumes | |
633 | TGeoVolume * voNomexSupportSt3 = new TGeoVolume("S05S", shNomexSupportSt3, kMedNomex); | |
634 | TGeoVolume * voCarbonSupportSt3 = new TGeoVolume("S05K", shCarbonSupportSt3, kMedCarbon); | |
635 | TGeoTranslation *trCarbon1St3 = new TGeoTranslation("trCarbon1St3",0.,0., -(nomexthickness+carbonthickness)/2.); | |
636 | TGeoTranslation *trCarbon2St3 = new TGeoTranslation("trCarbon2St3",0.,0., (nomexthickness+carbonthickness)/2.); | |
637 | voNomexSupportSt3->AddNode(voCarbonSupportSt3,1,trCarbon1St3); | |
638 | voNomexSupportSt3->AddNode(voCarbonSupportSt3,2,trCarbon2St3); | |
639 | Float_t dzCh5 = dzCh; | |
640 | TGeoTranslation * trSupport1St3 = new TGeoTranslation("trSupport1St3", supporthlength/2., 0. , dzCh5); | |
641 | TGeoRotation * roSupportSt3 = new TGeoRotation("roSupportSt3",90.,180.,-90.); | |
642 | TGeoCombiTrans * coSupport2St3 = new TGeoCombiTrans(-supporthlength/2., 0., -dzCh5, roSupportSt3); | |
643 | if (!gAlice->GetModule("DIPO")) { | |
644 | gGeoManager->FindVolumeFast("CH05")->AddNode(voNomexSupportSt3,1,trSupport1St3); | |
645 | gGeoManager->FindVolumeFast("CH05")->AddNode(voNomexSupportSt3,2,coSupport2St3); | |
646 | gGeoManager->FindVolumeFast("CH06")->AddNode(voNomexSupportSt3,3,trSupport1St3); | |
647 | gGeoManager->FindVolumeFast("CH06")->AddNode(voNomexSupportSt3,4,coSupport2St3); | |
648 | } | |
649 | else { | |
650 | GetEnvelopes(4)->AddEnvelope("S05S", 0, 1, *trSupport1St3); | |
651 | GetEnvelopes(4)->AddEnvelope("S05S", 0, 2, *coSupport2St3); | |
652 | GetEnvelopes(5)->AddEnvelope("S05S", 0, 3, *trSupport1St3); | |
653 | GetEnvelopes(5)->AddEnvelope("S05S", 0, 4, *coSupport2St3); | |
654 | } | |
655 | // End of pannel support geometry | |
656 | ||
657 | // cout << "Geometry for Station 3...... done" << endl; | |
d1cd2474 | 658 | } |
659 | ||
e516b01d | 660 | if (fStations[3]) { |
d1cd2474 | 661 | |
662 | ||
e516b01d | 663 | // //******************************************************************** |
664 | // // Station 4 ** | |
665 | // //******************************************************************** | |
666 | // // indices 1 and 2 for first and second chambers in the station | |
667 | // // iChamber (first chamber) kept for other quanties than Z, | |
668 | // // assumed to be the same in both chambers | |
669 | // corrected geometry (JP. Cussonneau, Ch. Finck) | |
d1cd2474 | 670 | |
e118b27e | 671 | iChamber = &fMUON->Chamber(6); |
e516b01d | 672 | iChamber1 = iChamber; |
e118b27e | 673 | iChamber2 = &fMUON->Chamber(7); |
e516b01d | 674 | |
675 | const Int_t kNslats4 = 7; // number of slats per quadrant | |
676 | const Int_t kNPCB4[kNslats4] = {5, 6, 5, 5, 4, 3, 2}; // n PCB per slat | |
677 | const Float_t kXpos4[kNslats4] = {38.2, 0., 0., 0., 0., 0., 0.}; | |
678 | const Float_t kYpos41[kNslats4] = {0., 38.2, 34.40, 36.60, 29.3, 37.0, 28.6}; | |
679 | const Float_t kYpos42[kNslats4] = {0., 38.2, 37.85, 37.55, 29.4, 37.0, 28.6}; | |
680 | ||
681 | Float_t slatLength4[kNslats4]; | |
682 | ||
6ffd4cb7 | 683 | |
684 | // Mother volume for each chamber | |
685 | // Outer excess and inner recess for mother volume radius | |
686 | // with respect to ROuter and RInner | |
124dd59f | 687 | Float_t dMotherInner = AliMUONConstants::Rmin(3)-kRframeHeight; |
688 | // Additional 40 cm gap is needed to wrap the corners of the slats since Rmax represent the maximum active radius of the chamber with 2pi phi acceptance | |
689 | Float_t dMotherOutner= AliMUONConstants::Rmax(3)+kVframeLength + 40.0; | |
6ffd4cb7 | 690 | Float_t tpar[3]; |
b7ef3c96 | 691 | Double_t dstation = ( (-AliMUONConstants::DefaultChamberZ(7)) - |
2c9844e7 | 692 | (-AliMUONConstants::DefaultChamberZ(6)) ) /2.2; |
124dd59f | 693 | tpar[0] = dMotherInner; |
694 | tpar[1] = dMotherOutner; | |
6ffd4cb7 | 695 | tpar[2] = dstation; |
696 | gMC->Gsvolu("CH07", "TUBE", idAir, tpar, 3); | |
697 | gMC->Gsvolu("CH08", "TUBE", idAir, tpar, 3); | |
6ffd4cb7 | 698 | |
e516b01d | 699 | // create and position the slat (mother) volumes |
700 | ||
701 | char idSlatCh7[5]; | |
702 | char idSlatCh8[5]; | |
703 | Float_t xSlat4; | |
704 | Float_t ySlat41 = 0; | |
705 | Float_t ySlat42 = 0; | |
706 | ||
707 | angle = 0.; | |
708 | ||
709 | for (i = 0; i<kNslats4; i++){ | |
710 | slatLength4[i] = kPcbLength * kNPCB4[i] + 2. * kVframeLength; | |
711 | xSlat4 = slatLength4[i]/2. + kDslatLength + kXpos4[i]; | |
712 | ySlat41 += kYpos41[i]; | |
713 | ySlat42 += kYpos42[i]; | |
714 | ||
715 | spar[0] = slatLength4[i]/2.; | |
716 | spar[1] = kSlatHeight/2.; | |
717 | spar[2] = kSlatWidth/2.; | |
718 | Float_t dzCh4 = dzCh; | |
719 | Float_t zSlat4 = (i%2 ==0)? -zSlat : zSlat; | |
720 | ||
721 | sprintf(idSlatCh7,"LC%d",kNslats4-1+i); | |
eb1c3e3a | 722 | //gMC->Gsvolu(idSlatCh7,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 723 | detElemId = 713 - (i + kNslats4-1-6); |
e516b01d | 724 | GetEnvelopes(6)->AddEnvelope(idSlatCh7, detElemId, true, TGeoTranslation(xSlat4, ySlat41, -zSlat4 + dzCh4), |
725 | TGeoRotation("rot1",90,angle,90,90+angle,0,0) ); | |
726 | ||
727 | sprintf(idSlatCh7,"LC%d",3*kNslats4-2+i); | |
eb1c3e3a | 728 | //gMC->Gsvolu(idSlatCh7,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 729 | detElemId = 700 + (i + kNslats4-1-6); |
e516b01d | 730 | GetEnvelopes(6)->AddEnvelope(idSlatCh7, detElemId, true, TGeoTranslation(-xSlat4, ySlat41, zSlat4 - dzCh4), |
731 | TGeoRotation("rot2",90,180+angle,90,90+angle,180,0) ); | |
d1cd2474 | 732 | |
e516b01d | 733 | if (i > 0) { |
734 | sprintf(idSlatCh7,"LC%d",kNslats4-1-i); | |
eb1c3e3a | 735 | //gMC->Gsvolu(idSlatCh7,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 736 | detElemId = 713 + (i + kNslats4-1-6); |
e516b01d | 737 | GetEnvelopes(6)->AddEnvelope(idSlatCh7, detElemId, true, TGeoTranslation(xSlat4, -ySlat41, -zSlat4 + dzCh4), |
738 | TGeoRotation("rot3",90,angle,90,270+angle,180,0) ); | |
739 | ||
740 | sprintf(idSlatCh7,"LC%d",3*kNslats4-2-i); | |
e856ab99 | 741 | detElemId = 726 - (i + kNslats4-1-6); |
eb1c3e3a | 742 | //gMC->Gsvolu(idSlatCh7,"BOX",kSlatMaterial,spar,3); |
e516b01d | 743 | GetEnvelopes(6)->AddEnvelope(idSlatCh7, detElemId, true, |
744 | TGeoTranslation(-xSlat4, -ySlat41, zSlat4 - dzCh4), | |
745 | TGeoRotation("rot4",90,180+angle,90,270+angle,0,0) ); | |
746 | } | |
747 | ||
748 | sprintf(idSlatCh8,"LD%d",kNslats4-1+i); | |
eb1c3e3a | 749 | //gMC->Gsvolu(idSlatCh8,"BOX",kSlatMaterial,spar,3); |
e856ab99 | 750 | detElemId = 813 - (i + kNslats4-1-6); |
e516b01d | 751 | GetEnvelopes(7)->AddEnvelope(idSlatCh8, detElemId, true, TGeoTranslation(xSlat4, ySlat42, -zSlat4 + dzCh4), |
752 | TGeoRotation("rot5",90,angle,90,90+angle,0,0) ); | |
753 | ||
754 | sprintf(idSlatCh8,"LD%d",3*kNslats4-2+i); | |
e856ab99 | 755 | detElemId = 800 + (i + kNslats4-1-6); |
eb1c3e3a | 756 | //gMC->Gsvolu(idSlatCh8,"BOX",kSlatMaterial,spar,3); |
e516b01d | 757 | GetEnvelopes(7)->AddEnvelope(idSlatCh8, detElemId, true, TGeoTranslation(-xSlat4, ySlat42, zSlat4 - dzCh4), |
758 | TGeoRotation("rot6",90,180+angle,90,90+angle,180,0) ); | |
759 | if (i > 0) { | |
760 | sprintf(idSlatCh8,"LD%d",kNslats4-1-i); | |
e856ab99 | 761 | detElemId = 813 + (i + kNslats4-1-6); |
eb1c3e3a | 762 | //gMC->Gsvolu(idSlatCh8,"BOX",kSlatMaterial,spar,3); |
e516b01d | 763 | GetEnvelopes(7)->AddEnvelope(idSlatCh8, detElemId, true, TGeoTranslation(xSlat4, -ySlat42, -zSlat4 + dzCh4), |
764 | TGeoRotation("rot7",90,angle,90,270+angle,180,0) ); | |
765 | sprintf(idSlatCh8,"LD%d",3*kNslats4-2-i); | |
e856ab99 | 766 | detElemId = 826 - (i + kNslats4-1-6); |
eb1c3e3a | 767 | //gMC->Gsvolu(idSlatCh8,"BOX",kSlatMaterial,spar,3); |
e516b01d | 768 | GetEnvelopes(7)->AddEnvelope(idSlatCh8, detElemId, true, TGeoTranslation(-xSlat4, -ySlat42, zSlat4 - dzCh4), |
769 | TGeoRotation("rot8",90,180+angle,90,270+angle,0,0) ); | |
770 | } | |
771 | } | |
d1cd2474 | 772 | |
e516b01d | 773 | // create the panel volume |
d1cd2474 | 774 | |
e516b01d | 775 | gMC->Gsvolu("S07C","BOX",kCarbonMaterial,panelpar,3); |
776 | gMC->Gsvolu("S08C","BOX",kCarbonMaterial,panelpar,3); | |
d1cd2474 | 777 | |
e516b01d | 778 | // create the nomex volume |
d1cd2474 | 779 | |
e516b01d | 780 | gMC->Gsvolu("S07N","BOX",kNomexMaterial,nomexpar,3); |
781 | gMC->Gsvolu("S08N","BOX",kNomexMaterial,nomexpar,3); | |
d1cd2474 | 782 | |
d1cd2474 | 783 | |
e516b01d | 784 | // create the nomex volume (bulk) |
d1cd2474 | 785 | |
e516b01d | 786 | gMC->Gsvolu("S07X","BOX",kNomexBMaterial,nomexbpar,3); |
787 | gMC->Gsvolu("S08X","BOX",kNomexBMaterial,nomexbpar,3); | |
d1cd2474 | 788 | |
e516b01d | 789 | // create the insulating material volume |
790 | ||
791 | gMC->Gsvolu("S07I","BOX",kInsuMaterial,insupar,3); | |
792 | gMC->Gsvolu("S08I","BOX",kInsuMaterial,insupar,3); | |
793 | ||
794 | // create the PCB volume | |
795 | ||
796 | gMC->Gsvolu("S07P","BOX",kPcbMaterial,pcbpar,3); | |
797 | gMC->Gsvolu("S08P","BOX",kPcbMaterial,pcbpar,3); | |
d1cd2474 | 798 | |
e516b01d | 799 | // create the sensitive volumes, |
800 | ||
801 | gMC->Gsvolu("S07G","BOX",kSensMaterial,dum,0); | |
802 | gMC->Gsvolu("S08G","BOX",kSensMaterial,dum,0); | |
803 | ||
804 | // create the vertical frame volume | |
805 | ||
806 | gMC->Gsvolu("S07V","BOX",kVframeMaterial,vFramepar,3); | |
807 | gMC->Gsvolu("S08V","BOX",kVframeMaterial,vFramepar,3); | |
808 | ||
809 | // create the horizontal frame volume | |
810 | ||
811 | gMC->Gsvolu("S07H","BOX",kHframeMaterial,hFramepar,3); | |
812 | gMC->Gsvolu("S08H","BOX",kHframeMaterial,hFramepar,3); | |
813 | ||
814 | // create the horizontal border volume | |
815 | ||
816 | gMC->Gsvolu("S07B","BOX",kBframeMaterial,bFramepar,3); | |
817 | gMC->Gsvolu("S08B","BOX",kBframeMaterial,bFramepar,3); | |
818 | ||
819 | index = 0; | |
820 | for (i = 0; i < kNslats4; i++){ | |
821 | for (Int_t quadrant = 1; quadrant <= 4; quadrant++) { | |
822 | ||
823 | if (i == 0 && quadrant == 2) continue; | |
824 | if (i == 0 && quadrant == 4) continue; | |
825 | ||
826 | sprintf(idSlatCh7,"LC%d",ConvertSlatNum(i,quadrant,kNslats4-1)); | |
827 | sprintf(idSlatCh8,"LD%d",ConvertSlatNum(i,quadrant,kNslats4-1)); | |
828 | Float_t xvFrame = (slatLength4[i] - kVframeLength)/2.; | |
829 | ||
830 | // position the vertical frames | |
831 | if (i != 1) { | |
832 | GetEnvelopes(6)->AddEnvelopeConstituent("S07V", idSlatCh7, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
833 | GetEnvelopes(6)->AddEnvelopeConstituent("S07V", idSlatCh7, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
834 | GetEnvelopes(7)->AddEnvelopeConstituent("S08V", idSlatCh8, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
835 | GetEnvelopes(7)->AddEnvelopeConstituent("S08V", idSlatCh8, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
836 | } else { // no rounded spacer yet | |
837 | GetEnvelopes(6)->AddEnvelopeConstituent("S07V", idSlatCh7, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
838 | // GetEnvelopes(6)->AddEnvelopeConstituent("S07V", idSlatCh7, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
839 | GetEnvelopes(7)->AddEnvelopeConstituent("S08V", idSlatCh8, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
840 | // GetEnvelopes(7)->AddEnvelopeConstituent("S08V", idSlatCh8, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
841 | } | |
842 | // position the panels and the insulating material | |
843 | for (j = 0; j < kNPCB4[i]; j++){ | |
844 | if (i == 1 && j == 0) continue; | |
845 | index++; | |
846 | Float_t xx = kSensLength * (-kNPCB4[i]/2.+j+.5); | |
847 | ||
848 | Float_t zPanel = spar[2] - nomexbpar[2]; | |
849 | GetEnvelopes(6)->AddEnvelopeConstituent("S07X", idSlatCh7, 2*index-1,TGeoTranslation(xx,0.,zPanel)); | |
850 | GetEnvelopes(6)->AddEnvelopeConstituent("S07X", idSlatCh7, 2*index,TGeoTranslation(xx,0.,-zPanel)); | |
851 | GetEnvelopes(6)->AddEnvelopeConstituent("S07I", idSlatCh7, index,TGeoTranslation(xx,0.,0.)); | |
852 | GetEnvelopes(7)->AddEnvelopeConstituent("S08X", idSlatCh8, 2*index-1,TGeoTranslation(xx,0.,zPanel)); | |
853 | GetEnvelopes(7)->AddEnvelopeConstituent("S08X", idSlatCh8, 2*index,TGeoTranslation(xx,0.,-zPanel)); | |
854 | GetEnvelopes(7)->AddEnvelopeConstituent("S08I", idSlatCh8, index,TGeoTranslation(xx,0.,0.)); | |
855 | } | |
856 | } | |
857 | } | |
858 | ||
859 | // position the nomex volume inside the panel volume | |
860 | gMC->Gspos("S07N",1,"S07C",0.,0.,0.,0,"ONLY"); | |
861 | gMC->Gspos("S08N",1,"S08C",0.,0.,0.,0,"ONLY"); | |
862 | ||
863 | // position panel volume inside the bulk nomex material volume | |
864 | gMC->Gspos("S07C",1,"S07X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
865 | gMC->Gspos("S08C",1,"S08X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
866 | ||
867 | // position the PCB volume inside the insulating material volume | |
868 | gMC->Gspos("S07P",1,"S07I",0.,0.,0.,0,"ONLY"); | |
869 | gMC->Gspos("S08P",1,"S08I",0.,0.,0.,0,"ONLY"); | |
870 | ||
871 | // position the horizontal frame volume inside the PCB volume | |
872 | gMC->Gspos("S07H",1,"S07P",0.,0.,0.,0,"ONLY"); | |
873 | gMC->Gspos("S08H",1,"S08P",0.,0.,0.,0,"ONLY"); | |
874 | ||
875 | // position the sensitive volume inside the horizontal frame volume | |
876 | gMC->Gsposp("S07G",1,"S07H",0.,0.,0.,0,"ONLY",senspar,3); | |
877 | gMC->Gsposp("S08G",1,"S08H",0.,0.,0.,0,"ONLY",senspar,3); | |
878 | ||
879 | // position the border volumes inside the PCB volume | |
880 | Float_t yborder = ( kPcbHeight - kBframeHeight ) / 2.; | |
881 | gMC->Gspos("S07B",1,"S07P",0., yborder,0.,0,"ONLY"); | |
882 | gMC->Gspos("S07B",2,"S07P",0.,-yborder,0.,0,"ONLY"); | |
883 | gMC->Gspos("S08B",1,"S08P",0., yborder,0.,0,"ONLY"); | |
884 | gMC->Gspos("S08B",2,"S08P",0.,-yborder,0.,0,"ONLY"); | |
885 | ||
886 | // create the NULOC volume and position it in the horizontal frame | |
887 | ||
888 | gMC->Gsvolu("S07E","BOX",kNulocMaterial,nulocpar,3); | |
889 | gMC->Gsvolu("S08E","BOX",kNulocMaterial,nulocpar,3); | |
890 | index = 0; | |
891 | for (xx = -xxmax; xx <= xxmax; xx += 2*kNulocLength) { | |
892 | index++; | |
893 | gMC->Gspos("S07E",2*index-1,"S07B", xx, 0.,-kBframeWidth/2. + kNulocWidth/2, 0, "ONLY"); | |
894 | gMC->Gspos("S07E",2*index ,"S07B", xx, 0., kBframeWidth/2. - kNulocWidth/2, 0, "ONLY"); | |
895 | gMC->Gspos("S08E",2*index-1,"S08B", xx, 0.,-kBframeWidth/2. + kNulocWidth/2, 0, "ONLY"); | |
896 | gMC->Gspos("S08E",2*index ,"S08B", xx, 0., kBframeWidth/2. - kNulocWidth/2, 0, "ONLY"); | |
897 | } | |
898 | ||
899 | // position the volumes approximating the circular section of the pipe | |
900 | ||
901 | Float_t epsilon = 0.001; | |
902 | Int_t ndiv = 10; | |
903 | Int_t imax = 1; | |
904 | Double_t divpar[3]; | |
905 | Double_t dydiv = kSensHeight/ndiv; | |
906 | Double_t ydiv = (kSensHeight - dydiv)/2.; | |
b7ef3c96 | 907 | Float_t rmin = AliMUONConstants::Rmin(3); // Same radius for both chamber of St4 |
e516b01d | 908 | Float_t xdiv = 0.; |
909 | Float_t xvol; | |
910 | Float_t yvol; | |
911 | ||
912 | for (Int_t idiv = 0; idiv < ndiv; idiv++){ | |
913 | ydiv += dydiv; | |
914 | xdiv = 0.; | |
6f7aa53f | 915 | if (ydiv < rmin) xdiv = rmin * TMath::Sin( TMath::ACos((ydiv-dydiv/2.)/rmin) ); |
e516b01d | 916 | divpar[0] = (kPcbLength - xdiv)/2.; |
917 | divpar[1] = dydiv/2. - epsilon; | |
918 | divpar[2] = kSensWidth/2.; | |
919 | xvol = (kPcbLength + xdiv)/2.; | |
920 | yvol = ydiv ; | |
6296ba34 | 921 | |
e516b01d | 922 | for (Int_t quadrant = 1; quadrant <= 4; quadrant++) { |
923 | sprintf(idSlatCh7,"LC%d",ConvertSlatNum(1,quadrant,kNslats4-1)); | |
924 | sprintf(idSlatCh8,"LD%d",ConvertSlatNum(1,quadrant,kNslats4-1)); | |
6296ba34 | 925 | |
e516b01d | 926 | GetEnvelopes(6)->AddEnvelopeConstituentParam("S07G",idSlatCh7, quadrant*100+imax+4*idiv+1, |
927 | TGeoTranslation(xvol-kPcbLength * kNPCB4[1]/2.,yvol-kPcbLength,0.),3,divpar); | |
6296ba34 | 928 | |
e516b01d | 929 | GetEnvelopes(7)->AddEnvelopeConstituentParam("S08G", idSlatCh8, quadrant*100+imax+4*idiv+1, |
930 | TGeoTranslation(xvol-kPcbLength * kNPCB4[1]/2.,yvol-kPcbLength,0.),3,divpar); | |
931 | } | |
d12a7158 | 932 | } |
ed6f6d60 | 933 | |
934 | ||
935 | // | |
936 | //Geometry of the support pannel Verticla length 5.3m, horizontal length 2.6m, internal radius dMotherInner o CH07 and CH08 (F. Orsini, Saclay) | |
937 | //Carbon fiber of 0.3 mm thick (2 layers) and a central layer of Nomex of 15mm thick. | |
938 | Float_t nomexthickness = 1.5; | |
939 | Float_t carbonthickness = 0.03; | |
940 | Float_t supporthlength = 260.; | |
941 | Float_t supportvlength = 530.; | |
942 | // Generating the composite shape of the carbon and nomex pannels | |
943 | new TGeoBBox("shNomexBoxSt4",supporthlength/2., supportvlength/2. ,nomexthickness/2.+carbonthickness); | |
944 | new TGeoBBox("shCarbonBoxSt4",supporthlength/2., supportvlength/2. ,carbonthickness/2.); | |
945 | new TGeoTubeSeg("shNomexHoleSt4",0., dMotherInner, nomexthickness/2.+carbonthickness+0.001, -90. ,90.); | |
946 | new TGeoTubeSeg("shCarbonHoleSt4",0., dMotherInner, carbonthickness/2.+0.001, -90. ,90.); | |
947 | TGeoTranslation * trHoleSt4 = new TGeoTranslation("trHoleSt4",-supporthlength/2.,0.,0.); | |
948 | trHoleSt4->RegisterYourself(); | |
949 | TGeoCompositeShape * shNomexSupportSt4 = new TGeoCompositeShape("shNomexSupportSt4","shNomexBoxSt4-shNomexHoleSt4:trHoleSt4"); | |
950 | TGeoCompositeShape * shCarbonSupportSt4 = new TGeoCompositeShape("shCarbonSupportSt4","shCarbonBoxSt4-shCarbonHoleSt4:trHoleSt4"); | |
951 | ||
952 | // Generating Nomex and Carbon pannel volumes | |
953 | TGeoVolume * voNomexSupportSt4 = new TGeoVolume("S07S", shNomexSupportSt4, kMedNomex); | |
954 | TGeoVolume * voCarbonSupportSt4 = new TGeoVolume("S07K", shCarbonSupportSt4, kMedCarbon); | |
955 | TGeoTranslation *trCarbon1St4 = new TGeoTranslation("trCarbon1St4",0.,0., -(nomexthickness+carbonthickness)/2.); | |
956 | TGeoTranslation *trCarbon2St4 = new TGeoTranslation("trCarbon2St4",0.,0., (nomexthickness+carbonthickness)/2.); | |
957 | voNomexSupportSt4->AddNode(voCarbonSupportSt4,1,trCarbon1St4); | |
958 | voNomexSupportSt4->AddNode(voCarbonSupportSt4,2,trCarbon2St4); | |
959 | Float_t dzCh7 = dzCh; | |
960 | TGeoTranslation * trSupport1St4 = new TGeoTranslation("trSupport1St4", supporthlength/2., 0. , dzCh7); | |
961 | TGeoRotation * roSupportSt4 = new TGeoRotation("roSupportSt4",90.,180.,-90.); | |
962 | TGeoCombiTrans * coSupport2St4 = new TGeoCombiTrans(-supporthlength/2., 0., -dzCh7, roSupportSt4); | |
963 | gGeoManager->FindVolumeFast("CH07")->AddNode(voNomexSupportSt4,1,trSupport1St4); | |
964 | gGeoManager->FindVolumeFast("CH07")->AddNode(voNomexSupportSt4,2,coSupport2St4); | |
965 | gGeoManager->FindVolumeFast("CH08")->AddNode(voNomexSupportSt4,3,trSupport1St4); | |
966 | gGeoManager->FindVolumeFast("CH08")->AddNode(voNomexSupportSt4,4,coSupport2St4); | |
967 | // End of pannel support geometry | |
968 | ||
e516b01d | 969 | // cout << "Geometry for Station 4...... done" << endl; |
970 | ||
971 | } | |
d1cd2474 | 972 | |
e516b01d | 973 | if (fStations[4]) { |
6296ba34 | 974 | |
d1cd2474 | 975 | |
e516b01d | 976 | // //******************************************************************** |
977 | // // Station 5 ** | |
978 | // //******************************************************************** | |
979 | // // indices 1 and 2 for first and second chambers in the station | |
980 | // // iChamber (first chamber) kept for other quanties than Z, | |
981 | // // assumed to be the same in both chambers | |
982 | // corrected geometry (JP. Cussonneau, Ch. Finck) | |
983 | ||
e118b27e | 984 | iChamber = &fMUON->Chamber(8); |
e516b01d | 985 | iChamber1 = iChamber; |
e118b27e | 986 | iChamber2 = &fMUON->Chamber(9); |
d1cd2474 | 987 | |
e516b01d | 988 | const Int_t kNslats5 = 7; // number of slats per quadrant |
989 | const Int_t kNPCB5[kNslats5] = {5, 6, 6, 6, 5, 4, 3}; // n PCB per slat | |
990 | const Float_t kXpos5[kNslats5] = {38.2, 0., 0., 0., 0., 0., 0.}; | |
991 | const Float_t kYpos5[kNslats5] = {0., 38.2, 37.9, 37.6, 37.3, 37.05, 36.75}; | |
992 | Float_t slatLength5[kNslats5]; | |
993 | ||
6ffd4cb7 | 994 | // Mother volume for each chamber |
995 | // Outer excess and inner recess for mother volume radius | |
996 | // with respect to ROuter and RInner | |
124dd59f | 997 | Float_t dMotherInner = AliMUONConstants::Rmin(4)-kRframeHeight; |
998 | // Additional 40 cm gap is needed to wrap the corners of the slats since Rmax represent the maximum active radius of the chamber with 2pi phi acceptance | |
999 | Float_t dMotherOutner= AliMUONConstants::Rmax(4)+kVframeLength + 40.0; | |
6ffd4cb7 | 1000 | Float_t tpar[3]; |
b7ef3c96 | 1001 | Double_t dstation = ( (-AliMUONConstants::DefaultChamberZ(9)) - |
1002 | (-AliMUONConstants::DefaultChamberZ(8)) ) /2.3; | |
124dd59f | 1003 | tpar[0] = dMotherInner; |
1004 | tpar[1] = dMotherOutner; | |
6ffd4cb7 | 1005 | tpar[2] = dstation; |
1006 | gMC->Gsvolu("CH09", "TUBE", idAir, tpar, 3); | |
1007 | gMC->Gsvolu("CH10", "TUBE", idAir, tpar, 3); | |
6ffd4cb7 | 1008 | |
e516b01d | 1009 | // create and position the slat (mother) volumes |
1010 | ||
1011 | char idSlatCh9[5]; | |
1012 | char idSlatCh10[5]; | |
1013 | Float_t xSlat5; | |
1014 | Float_t ySlat5 = 0; | |
1015 | angle = 0.; | |
1016 | ||
1017 | for (i = 0; i < kNslats5; i++){ | |
1018 | ||
1019 | slatLength5[i] = kPcbLength * kNPCB5[i] + 2.* kVframeLength; | |
1020 | xSlat5 = slatLength5[i]/2. + kDslatLength + kXpos5[i]; | |
1021 | ySlat5 += kYpos5[i]; | |
1022 | ||
1023 | spar[0] = slatLength5[i]/2.; | |
1024 | spar[1] = kSlatHeight/2.; | |
1025 | spar[2] = kSlatWidth/2.; | |
1026 | ||
1027 | Float_t dzCh5 = dzCh; | |
1028 | Float_t zSlat5 = (i%2 ==0)? -zSlat : zSlat; | |
1029 | ||
1030 | sprintf(idSlatCh9,"LE%d",kNslats5-1+i); | |
e856ab99 | 1031 | detElemId = 913 - (i + kNslats5-1-6); |
eb1c3e3a | 1032 | //gMC->Gsvolu(idSlatCh9,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1033 | GetEnvelopes(8)->AddEnvelope(idSlatCh9, detElemId, true, TGeoTranslation(xSlat5, ySlat5, -zSlat5 + dzCh5), |
1034 | TGeoRotation("rot1",90,angle,90,90+angle,0,0) ); | |
1035 | ||
1036 | sprintf(idSlatCh9,"LE%d",3*kNslats5-2+i); | |
e856ab99 | 1037 | detElemId = 900 + (i + kNslats5-1-6); |
eb1c3e3a | 1038 | //gMC->Gsvolu(idSlatCh9,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1039 | GetEnvelopes(8)->AddEnvelope(idSlatCh9, detElemId, true, TGeoTranslation(-xSlat5, ySlat5, zSlat5 - dzCh5), |
1040 | TGeoRotation("rot2",90,180+angle,90,90+angle,180,0) ); | |
d1cd2474 | 1041 | |
e516b01d | 1042 | if (i > 0) { |
1043 | sprintf(idSlatCh9,"LE%d",kNslats5-1-i); | |
e856ab99 | 1044 | detElemId = 913 + (i + kNslats5-1-6); |
eb1c3e3a | 1045 | //gMC->Gsvolu(idSlatCh9,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1046 | GetEnvelopes(8)->AddEnvelope(idSlatCh9, detElemId, true, TGeoTranslation(xSlat5, -ySlat5, -zSlat5 + dzCh5), |
1047 | TGeoRotation("rot3",90,angle,90,270+angle,180,0) ); | |
1048 | ||
1049 | sprintf(idSlatCh9,"LE%d",3*kNslats5-2-i); | |
e856ab99 | 1050 | detElemId = 926 - (i + kNslats5-1-6); |
eb1c3e3a | 1051 | //gMC->Gsvolu(idSlatCh9,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1052 | GetEnvelopes(8)->AddEnvelope(idSlatCh9, detElemId, true, TGeoTranslation(-xSlat5, -ySlat5, zSlat5 - dzCh5), |
1053 | TGeoRotation("rot4",90,180+angle,90,270+angle,0,0) ); | |
1054 | } | |
1055 | ||
1056 | sprintf(idSlatCh10,"LF%d",kNslats5-1+i); | |
e856ab99 | 1057 | detElemId = 1013 - (i + kNslats5-1-6); |
eb1c3e3a | 1058 | //gMC->Gsvolu(idSlatCh10,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1059 | GetEnvelopes(9)->AddEnvelope(idSlatCh10, detElemId, true, TGeoTranslation(xSlat5, ySlat5, -zSlat5 + dzCh5), |
1060 | TGeoRotation("rot5",90,angle,90,90+angle,0,0) ); | |
1061 | ||
1062 | sprintf(idSlatCh10,"LF%d",3*kNslats5-2+i); | |
e856ab99 | 1063 | detElemId = 1000 + (i + kNslats5-1-6); |
eb1c3e3a | 1064 | //gMC->Gsvolu(idSlatCh10,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1065 | GetEnvelopes(9)->AddEnvelope(idSlatCh10, detElemId, true, TGeoTranslation(-xSlat5, ySlat5, zSlat5 - dzCh5), |
1066 | TGeoRotation("rot6",90,180+angle,90,90+angle,180,0) ); | |
1067 | ||
1068 | if (i > 0) { | |
1069 | sprintf(idSlatCh10,"LF%d",kNslats5-1-i); | |
e856ab99 | 1070 | detElemId = 1013 + (i + kNslats5-1-6); |
eb1c3e3a | 1071 | //gMC->Gsvolu(idSlatCh10,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1072 | GetEnvelopes(9)->AddEnvelope(idSlatCh10, detElemId, true, TGeoTranslation(xSlat5, -ySlat5, -zSlat5 + dzCh5), |
1073 | TGeoRotation("rot7",90,angle,90,270+angle,180,0) ); | |
1074 | sprintf(idSlatCh10,"LF%d",3*kNslats5-2-i); | |
e856ab99 | 1075 | detElemId = 1026 - (i + kNslats5-1-6); |
eb1c3e3a | 1076 | //gMC->Gsvolu(idSlatCh10,"BOX",kSlatMaterial,spar,3); |
e516b01d | 1077 | GetEnvelopes(9)->AddEnvelope(idSlatCh10, detElemId, true, TGeoTranslation(-xSlat5, -ySlat5, zSlat5 - dzCh5), |
1078 | TGeoRotation("rot8",90,180+angle,90,270+angle,0,0) ); | |
1079 | } | |
1080 | } | |
1081 | ||
1082 | // create the panel volume | |
d12a7158 | 1083 | |
e516b01d | 1084 | gMC->Gsvolu("S09C","BOX",kCarbonMaterial,panelpar,3); |
1085 | gMC->Gsvolu("S10C","BOX",kCarbonMaterial,panelpar,3); | |
1086 | ||
1087 | // create the nomex volume | |
1088 | ||
1089 | gMC->Gsvolu("S09N","BOX",kNomexMaterial,nomexpar,3); | |
1090 | gMC->Gsvolu("S10N","BOX",kNomexMaterial,nomexpar,3); | |
d1cd2474 | 1091 | |
d1cd2474 | 1092 | |
e516b01d | 1093 | // create the nomex volume (bulk) |
d1cd2474 | 1094 | |
e516b01d | 1095 | gMC->Gsvolu("S09X","BOX",kNomexBMaterial,nomexbpar,3); |
1096 | gMC->Gsvolu("S10X","BOX",kNomexBMaterial,nomexbpar,3); | |
d1cd2474 | 1097 | |
e516b01d | 1098 | // create the insulating material volume |
d1cd2474 | 1099 | |
e516b01d | 1100 | gMC->Gsvolu("S09I","BOX",kInsuMaterial,insupar,3); |
1101 | gMC->Gsvolu("S10I","BOX",kInsuMaterial,insupar,3); | |
c3b69531 | 1102 | |
e516b01d | 1103 | // create the PCB volume |
1104 | ||
1105 | gMC->Gsvolu("S09P","BOX",kPcbMaterial,pcbpar,3); | |
1106 | gMC->Gsvolu("S10P","BOX",kPcbMaterial,pcbpar,3); | |
d1cd2474 | 1107 | |
e516b01d | 1108 | // create the sensitive volumes, |
1109 | ||
1110 | gMC->Gsvolu("S09G","BOX",kSensMaterial,dum,0); | |
1111 | gMC->Gsvolu("S10G","BOX",kSensMaterial,dum,0); | |
1112 | ||
1113 | // create the vertical frame volume | |
1114 | ||
1115 | gMC->Gsvolu("S09V","BOX",kVframeMaterial,vFramepar,3); | |
1116 | gMC->Gsvolu("S10V","BOX",kVframeMaterial,vFramepar,3); | |
1117 | ||
1118 | // create the horizontal frame volume | |
1119 | ||
1120 | gMC->Gsvolu("S09H","BOX",kHframeMaterial,hFramepar,3); | |
1121 | gMC->Gsvolu("S10H","BOX",kHframeMaterial,hFramepar,3); | |
1122 | ||
1123 | // create the horizontal border volume | |
1124 | ||
1125 | gMC->Gsvolu("S09B","BOX",kBframeMaterial,bFramepar,3); | |
1126 | gMC->Gsvolu("S10B","BOX",kBframeMaterial,bFramepar,3); | |
1127 | ||
1128 | index = 0; | |
1129 | for (i = 0; i < kNslats5; i++){ | |
1130 | for (Int_t quadrant = 1; quadrant <= 4; quadrant++) { | |
1131 | ||
1132 | if (i == 0 && quadrant == 2) continue; | |
1133 | if (i == 0 && quadrant == 4) continue; | |
1134 | ||
1135 | sprintf(idSlatCh9,"LE%d",ConvertSlatNum(i,quadrant,kNslats5-1)); | |
1136 | sprintf(idSlatCh10,"LF%d",ConvertSlatNum(i,quadrant,kNslats5-1)); | |
1137 | Float_t xvFrame = (slatLength5[i] - kVframeLength)/2.; // ok | |
1138 | ||
1139 | // position the vertical frames (spacers) | |
1140 | if (i != 1) { | |
1141 | GetEnvelopes(8)->AddEnvelopeConstituent("S09V", idSlatCh9, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
1142 | GetEnvelopes(8)->AddEnvelopeConstituent("S09V", idSlatCh9, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
1143 | GetEnvelopes(9)->AddEnvelopeConstituent("S10V", idSlatCh10, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
1144 | GetEnvelopes(9)->AddEnvelopeConstituent("S10V", idSlatCh10, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
1145 | } else { // no rounded spacer yet | |
1146 | GetEnvelopes(8)->AddEnvelopeConstituent("S09V", idSlatCh9, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
1147 | // GetEnvelopes(8)->AddEnvelopeConstituent("S09V", idSlatCh9, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
1148 | GetEnvelopes(9)->AddEnvelopeConstituent("S10V", idSlatCh10, (2*i-1)*10+quadrant,TGeoTranslation(xvFrame,0.,0.)); | |
1149 | // GetEnvelopes(9)->AddEnvelopeConstituent("S10V", idSlatCh10, (2*i)*10+quadrant,TGeoTranslation(-xvFrame,0.,0.)); | |
1150 | } | |
1151 | ||
1152 | // position the panels and the insulating material | |
1153 | for (j = 0; j < kNPCB5[i]; j++){ | |
1154 | if (i == 1 && j == 0) continue; | |
1155 | index++; | |
1156 | Float_t xx = kSensLength * (-kNPCB5[i]/2.+j+.5); | |
1157 | ||
1158 | Float_t zPanel = spar[2] - nomexbpar[2]; | |
1159 | GetEnvelopes(8)->AddEnvelopeConstituent("S09X", idSlatCh9, 2*index-1,TGeoTranslation(xx,0.,zPanel)); | |
1160 | GetEnvelopes(8)->AddEnvelopeConstituent("S09X", idSlatCh9, 2*index,TGeoTranslation(xx,0.,-zPanel)); | |
1161 | GetEnvelopes(8)->AddEnvelopeConstituent("S09I", idSlatCh9, index,TGeoTranslation(xx,0.,0.)); | |
1162 | ||
1163 | GetEnvelopes(9)->AddEnvelopeConstituent("S10X", idSlatCh10, 2*index-1,TGeoTranslation(xx,0.,zPanel)); | |
1164 | GetEnvelopes(9)->AddEnvelopeConstituent("S10X", idSlatCh10, 2*index,TGeoTranslation(xx,0.,-zPanel)); | |
1165 | GetEnvelopes(9)->AddEnvelopeConstituent("S10I", idSlatCh10, index,TGeoTranslation(xx,0.,0.)); | |
1166 | } | |
1167 | } | |
1168 | } | |
1169 | ||
1170 | // position the nomex volume inside the panel volume | |
1171 | gMC->Gspos("S09N",1,"S09C",0.,0.,0.,0,"ONLY"); | |
1172 | gMC->Gspos("S10N",1,"S10C",0.,0.,0.,0,"ONLY"); | |
1173 | ||
1174 | // position panel volume inside the bulk nomex material volume | |
1175 | gMC->Gspos("S09C",1,"S09X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
1176 | gMC->Gspos("S10C",1,"S10X",0.,0.,kNomexBWidth/2.,0,"ONLY"); | |
1177 | ||
1178 | // position the PCB volume inside the insulating material volume | |
1179 | gMC->Gspos("S09P",1,"S09I",0.,0.,0.,0,"ONLY"); | |
1180 | gMC->Gspos("S10P",1,"S10I",0.,0.,0.,0,"ONLY"); | |
1181 | ||
1182 | // position the horizontal frame volume inside the PCB volume | |
1183 | gMC->Gspos("S09H",1,"S09P",0.,0.,0.,0,"ONLY"); | |
1184 | gMC->Gspos("S10H",1,"S10P",0.,0.,0.,0,"ONLY"); | |
1185 | ||
1186 | // position the sensitive volume inside the horizontal frame volume | |
1187 | gMC->Gsposp("S09G",1,"S09H",0.,0.,0.,0,"ONLY",senspar,3); | |
1188 | gMC->Gsposp("S10G",1,"S10H",0.,0.,0.,0,"ONLY",senspar,3); | |
1189 | ||
1190 | // position the border volumes inside the PCB volume | |
1191 | Float_t yborder = ( kPcbHeight - kBframeHeight ) / 2.; | |
1192 | gMC->Gspos("S09B",1,"S09P",0., yborder,0.,0,"ONLY"); | |
1193 | gMC->Gspos("S09B",2,"S09P",0.,-yborder,0.,0,"ONLY"); | |
1194 | gMC->Gspos("S10B",1,"S10P",0., yborder,0.,0,"ONLY"); | |
1195 | gMC->Gspos("S10B",2,"S10P",0.,-yborder,0.,0,"ONLY"); | |
1196 | ||
1197 | // // create the NULOC volume and position it in the horizontal frame | |
1198 | ||
1199 | gMC->Gsvolu("S09E","BOX",kNulocMaterial,nulocpar,3); | |
1200 | gMC->Gsvolu("S10E","BOX",kNulocMaterial,nulocpar,3); | |
1201 | index = 0; | |
1202 | for (xx = -xxmax; xx <= xxmax; xx += 2*kNulocLength) { | |
1203 | index++; | |
1204 | gMC->Gspos("S09E",2*index-1,"S09B", xx, 0.,-kBframeWidth/2. + kNulocWidth/2, 0, "ONLY"); | |
1205 | gMC->Gspos("S09E",2*index ,"S09B", xx, 0., kBframeWidth/2. - kNulocWidth/2, 0, "ONLY"); | |
1206 | gMC->Gspos("S10E",2*index-1,"S10B", xx, 0.,-kBframeWidth/2. + kNulocWidth/2, 0, "ONLY"); | |
1207 | gMC->Gspos("S10E",2*index ,"S10B", xx, 0., kBframeWidth/2. - kNulocWidth/2, 0, "ONLY"); | |
1208 | } | |
1209 | ||
d1cd2474 | 1210 | |
e516b01d | 1211 | // position the volumes approximating the circular section of the pipe |
1212 | Float_t epsilon = 0.001; | |
1213 | Int_t ndiv = 10; | |
1214 | Int_t imax = 1; | |
1215 | Double_t divpar[3]; | |
1216 | Double_t dydiv = kSensHeight/ndiv; | |
1217 | Double_t ydiv = (kSensHeight - dydiv)/2.; | |
b7ef3c96 | 1218 | Float_t rmin = AliMUONConstants::Rmin(4); |
e516b01d | 1219 | Float_t xdiv = 0.; |
1220 | Float_t xvol; | |
1221 | Float_t yvol; | |
1222 | ||
1223 | for (Int_t idiv = 0; idiv < ndiv; idiv++){ | |
1224 | ydiv += dydiv; | |
1225 | xdiv = 0.; | |
6f7aa53f | 1226 | if (ydiv < rmin) xdiv = rmin * TMath::Sin( TMath::ACos((ydiv-dydiv/2.)/rmin) ); |
e516b01d | 1227 | divpar[0] = (kPcbLength - xdiv)/2.; |
1228 | divpar[1] = dydiv/2. - epsilon; | |
1229 | divpar[2] = kSensWidth/2.; | |
1230 | xvol = (kPcbLength + xdiv)/2.; | |
1231 | yvol = ydiv; | |
1232 | ||
1233 | for (Int_t quadrant = 1; quadrant <= 4; quadrant++) { | |
1234 | sprintf(idSlatCh9,"LE%d",ConvertSlatNum(1,quadrant,kNslats5-1)); | |
1235 | sprintf(idSlatCh10,"LF%d",ConvertSlatNum(1,quadrant,kNslats5-1)); | |
1236 | ||
1237 | GetEnvelopes(8)->AddEnvelopeConstituentParam("S09G", idSlatCh9, quadrant*100+imax+4*idiv+1, | |
1238 | TGeoTranslation(xvol-kPcbLength * kNPCB5[1]/2.,yvol-kPcbLength,0.),3,divpar); | |
1239 | GetEnvelopes(9)->AddEnvelopeConstituentParam("S10G", idSlatCh10, quadrant*100+imax+4*idiv+1, | |
1240 | TGeoTranslation(xvol-kPcbLength * kNPCB5[1]/2.,yvol-kPcbLength,0.),3,divpar); | |
1241 | } | |
d1cd2474 | 1242 | } |
ed6f6d60 | 1243 | // |
1244 | //Geometry of the support pannel Verticla length 5.7m, horizontal length 2.6m, internal radius dMotherInner o CH09 and CH10 (F. Orsini, Saclay) | |
1245 | //Carbon fiber of 0.3 mm thick (2 layers) and a central layer of Nomex of 15mm thick. | |
1246 | Float_t nomexthickness = 1.5; | |
1247 | Float_t carbonthickness = 0.03; | |
1248 | Float_t supporthlength = 260.; | |
1249 | Float_t supportvlength = 570.; | |
1250 | // Generating the composite shape of the carbon and nomex pannels | |
1251 | new TGeoBBox("shNomexBoxSt5",supporthlength/2., supportvlength/2. ,nomexthickness/2.+carbonthickness); | |
1252 | new TGeoBBox("shCarbonBoxSt5",supporthlength/2., supportvlength/2. ,carbonthickness/2.); | |
1253 | new TGeoTubeSeg("shNomexHoleSt5",0., dMotherInner, nomexthickness/2.+carbonthickness+0.001, -90. ,90.); | |
1254 | new TGeoTubeSeg("shCarbonHoleSt5",0., dMotherInner, carbonthickness/2.+0.001, -90. ,90.); | |
1255 | TGeoTranslation * trHoleSt5 = new TGeoTranslation("trHoleSt5",-supporthlength/2.,0.,0.); | |
1256 | trHoleSt5->RegisterYourself(); | |
1257 | TGeoCompositeShape * shNomexSupportSt5 = new TGeoCompositeShape("shNomexSupportSt5","shNomexBoxSt5-shNomexHoleSt5:trHoleSt5"); | |
1258 | TGeoCompositeShape * shCarbonSupportSt5 = new TGeoCompositeShape("shCarbonSupportSt5","shCarbonBoxSt5-shCarbonHoleSt5:trHoleSt5"); | |
1259 | ||
1260 | // Generating Nomex and Carbon pannel volumes | |
1261 | TGeoVolume * voNomexSupportSt5 = new TGeoVolume("S09S", shNomexSupportSt5, kMedNomex); | |
1262 | TGeoVolume * voCarbonSupportSt5 = new TGeoVolume("S09K", shCarbonSupportSt5, kMedCarbon); | |
1263 | TGeoTranslation *trCarbon1St5 = new TGeoTranslation("trCarbon1St5",0.,0., -(nomexthickness+carbonthickness)/2.); | |
1264 | TGeoTranslation *trCarbon2St5 = new TGeoTranslation("trCarbon2St5",0.,0., (nomexthickness+carbonthickness)/2.); | |
1265 | voNomexSupportSt5->AddNode(voCarbonSupportSt5,1,trCarbon1St5); | |
1266 | voNomexSupportSt5->AddNode(voCarbonSupportSt5,2,trCarbon2St5); | |
1267 | Float_t dzCh9 = dzCh; | |
1268 | TGeoTranslation * trSupport1St5 = new TGeoTranslation("trSupport1St5", supporthlength/2., 0. , dzCh9); | |
1269 | TGeoRotation * roSupportSt5 = new TGeoRotation("roSupportSt5",90.,180.,-90.); | |
1270 | TGeoCombiTrans * coSupport2St5 = new TGeoCombiTrans(-supporthlength/2., 0., -dzCh9, roSupportSt5); | |
1271 | gGeoManager->FindVolumeFast("CH09")->AddNode(voNomexSupportSt5,1,trSupport1St5); | |
1272 | gGeoManager->FindVolumeFast("CH09")->AddNode(voNomexSupportSt5,2,coSupport2St5); | |
1273 | gGeoManager->FindVolumeFast("CH10")->AddNode(voNomexSupportSt5,3,trSupport1St5); | |
1274 | gGeoManager->FindVolumeFast("CH10")->AddNode(voNomexSupportSt5,4,coSupport2St5); | |
1275 | // End of pannel support geometry | |
1276 | ||
e516b01d | 1277 | // cout << "Geometry for Station 5...... done" << endl; |
1278 | ||
1279 | } | |
d1cd2474 | 1280 | } |
1281 | ||
1282 | ||
1283 | //______________________________________________________________________________ | |
1284 | void AliMUONSlatGeometryBuilder::SetTransformations() | |
1285 | { | |
2c9844e7 | 1286 | // Defines the transformations for the station345 chambers. |
d1cd2474 | 1287 | // --- |
eb1c3e3a | 1288 | |
1289 | if (gAlice->GetModule("DIPO")) { | |
1290 | // if DIPO is preset, the whole station will be placed in DDIP volume | |
1291 | SetMotherVolume(4, "DDIP"); | |
1292 | SetMotherVolume(5, "DDIP"); | |
1293 | SetVolume(4, "CH05", true); | |
1294 | SetVolume(5, "CH06", true); | |
1295 | } | |
1296 | else { | |
1297 | SetVolume(4, "CH05"); | |
1298 | SetVolume(5, "CH06"); | |
c0404a6c | 1299 | } |
1300 | ||
1301 | if (gAlice->GetModule("SHIL")) { | |
1302 | SetMotherVolume(6, "YOUT2"); | |
1303 | SetMotherVolume(7, "YOUT2"); | |
1304 | SetMotherVolume(8, "YOUT2"); | |
1305 | SetMotherVolume(9, "YOUT2"); | |
eb1c3e3a | 1306 | } |
c0404a6c | 1307 | |
eb1c3e3a | 1308 | SetVolume(6, "CH07"); |
1309 | SetVolume(7, "CH08"); | |
1310 | SetVolume(8, "CH09"); | |
1311 | SetVolume(9, "CH10"); | |
1312 | ||
2c9844e7 | 1313 | // Stations 345 are not perpendicular to the beam axis |
1314 | // See AliMUONConstants class | |
1315 | TGeoRotation st345inclination("rot99"); | |
1316 | st345inclination.RotateX(AliMUONConstants::St345Inclination()); | |
1317 | ||
b7ef3c96 | 1318 | Double_t zpos1= - AliMUONConstants::DefaultChamberZ(4); |
2c9844e7 | 1319 | SetTransformation(4, TGeoTranslation(0., 0., zpos1), st345inclination); |
b7ef3c96 | 1320 | |
1321 | zpos1= - AliMUONConstants::DefaultChamberZ(5); | |
2c9844e7 | 1322 | SetTransformation(5, TGeoTranslation(0., 0., zpos1), st345inclination); |
b7ef3c96 | 1323 | |
1324 | zpos1 = - AliMUONConstants::DefaultChamberZ(6); | |
2c9844e7 | 1325 | SetTransformation(6, TGeoTranslation(0., 0., zpos1), st345inclination); |
b7ef3c96 | 1326 | |
1327 | zpos1 = - AliMUONConstants::DefaultChamberZ(7); | |
2c9844e7 | 1328 | SetTransformation(7, TGeoTranslation(0., 0., zpos1), st345inclination ); |
b7ef3c96 | 1329 | |
1330 | zpos1 = - AliMUONConstants::DefaultChamberZ(8); | |
2c9844e7 | 1331 | SetTransformation(8, TGeoTranslation(0., 0., zpos1), st345inclination); |
b7ef3c96 | 1332 | |
1333 | zpos1 = - AliMUONConstants::DefaultChamberZ(9); | |
2c9844e7 | 1334 | SetTransformation(9, TGeoTranslation(0., 0., zpos1), st345inclination); |
d1cd2474 | 1335 | |
1336 | } | |
1337 | ||
1338 | //______________________________________________________________________________ | |
1339 | void AliMUONSlatGeometryBuilder::SetSensitiveVolumes() | |
1340 | { | |
1341 | // Defines the sensitive volumes for slat stations chambers. | |
1342 | // --- | |
1343 | ||
e118b27e | 1344 | GetGeometry(4)->SetSensitiveVolume("S05G"); |
1345 | GetGeometry(5)->SetSensitiveVolume("S06G"); | |
1346 | GetGeometry(6)->SetSensitiveVolume("S07G"); | |
1347 | GetGeometry(7)->SetSensitiveVolume("S08G"); | |
1348 | GetGeometry(8)->SetSensitiveVolume("S09G"); | |
1349 | GetGeometry(9)->SetSensitiveVolume("S10G"); | |
d1cd2474 | 1350 | } |
1351 | ||
1352 | //______________________________________________________________________________ | |
1353 | Int_t AliMUONSlatGeometryBuilder::ConvertSlatNum(Int_t numslat, Int_t quadnum, Int_t fspq) const | |
1354 | { | |
2057e0cc | 1355 | // On-line function establishing the correspondance between numslat (the slat number on a particular quadrant (numslat->0....4 for St3)) |
1356 | // and slatnum (the slat number on the whole panel (slatnum->1...18 for St3) | |
c10e6eaf | 1357 | numslat += 1; |
1358 | if (quadnum==2 || quadnum==3) | |
1359 | numslat += fspq; | |
1360 | else | |
1361 | numslat = fspq + 2-numslat; | |
1362 | numslat -= 1; | |
d1cd2474 | 1363 | |
c10e6eaf | 1364 | if (quadnum==3 || quadnum==4) numslat += 2*fspq+1; |
1365 | ||
1366 | return numslat; | |
d1cd2474 | 1367 | } |