#include <TSystem.h>
#include <TVirtualMC.h>
-
+#include <TString.h>
+#include <TGeoManager.h>
#include "AliFRAMEv2.h"
#include "AliMagF.h"
#include "AliRun.h"
#include "AliConst.h"
#include "AliMC.h"
#include "AliLog.h"
+#include "AliTrackReference.h"
ClassImp(AliFRAMEv2)
+
//_____________________________________________________________________________
-AliFRAMEv2::AliFRAMEv2()
+AliFRAMEv2::AliFRAMEv2():
+ fHoles(0)
{
// Constructor
- SetHoles(0);
}
//_____________________________________________________________________________
AliFRAMEv2::AliFRAMEv2(const char *name, const char *title)
- : AliFRAME(name,title)
+ : AliFRAME(name,title),
+ fHoles(0)
{
// Constructor
- SetHoles(0);
}
-
//___________________________________________
void AliFRAMEv2::CreateGeometry()
{
//
// Constants
const Float_t kEps = 0.01;
- const Int_t kAir = idtmed[2004];
- const Int_t kSteel = idtmed[2064];
+ const Int_t kAir = idtmed[2004];
+ const Int_t kSteel = idtmed[2064];
- const Float_t krad2deg = 180./TMath::Pi();
- const Float_t kdeg2rad = 1./krad2deg;
-
- Float_t iFrH = 114.40;
- Float_t ringH = 4.00;
- Float_t ringW = 10.00;
- Float_t longH = 5.39;
- Float_t longW = 6.00;
+ const Float_t krad2deg = 180. / TMath::Pi();
+ const Float_t kdeg2rad = 1. / krad2deg;
+
+ Float_t iFrH = 118.66; // Height of inner frame
+ Float_t ringH = 6.00; // Height of the ring bars
+ Float_t ringW = 9.00; // Width of the ring bars in z
+ Float_t longH = 6.00;
+ Float_t longW = 4.00;
Float_t dwl = 3.14;
Float_t dwh = 0.96;
ppgon[3] = 2.;
ppgon[4] = -376.;
ppgon[5] = 280.;
- ppgon[6] = 421.;
+ ppgon[6] = 415.7;
ppgon[7] = -ppgon[4];
ppgon[8] = ppgon[5];
ppgon[9] = ppgon[6];
gMC->Gsvolu("B077", "PGON", kAir, ppgon, 10);
-
-// gMC->Gsvolu("B077", "TUBE", kAir, ptube, 3);
gMC->Gspos("B077", 1, "ALIC", 0., 0., 0., 0, "ONLY");
//
// Reference plane for TRD
ppgon[9] = ppgon[6];
gMC->Gsvolu("BREF", "PGON", kAir, ppgon, 10);
gMC->Gspos("BREF", 1, "B077", 0., 0., 0., 0, "ONLY");
+ gGeoManager->GetVolume("BREF")->SetVisibility(kFALSE);
//
// The outer Frame
//
- Float_t dol = 8.75;
- Float_t doh = 5.;
- Float_t ds = 0.35;
+ Float_t dol = 4.;
+ Float_t doh = 4.;
+ Float_t ds = 0.63;
//
// Mother volume
//
ppgon[3] = 2.;
ppgon[4] = -350.;
- ppgon[5] = 399.;
- ppgon[6] = 420.7122;
-
+ ppgon[5] = 401.35;
+ ppgon[6] = 415.6;
+
ppgon[7] = -ppgon[4];
ppgon[8] = ppgon[5];
ppgon[9] = ppgon[6];
//
// longitudinal bars
//
-// 170x200x5
+// 80 x 80 x 6.3
//
pbox[0] = dol;
pbox[1] = doh;
gMC->Gsvolu("B080", "BOX", kSteel, pbox, 3);
- gMC->Gspos("B080", 1, "B077", 286.01, 0., 0., 0, "ONLY");
- gMC->Gspos("B080", 2, "B077", -286.01, 0., 0., 0, "ONLY");
+ gMC->Gspos("B080", 1, "B077", 285.3, 0., 0., 0, "ONLY");
+ gMC->Gspos("B080", 2, "B077", -285.3, 0., 0., 0, "ONLY");
//
// Diagonal bars (1)
AliMatrix(idrotm[2018], 0.0, 0.0, 90.0, 50.0, 90.0, 140.0);
AliMatrix(idrotm[2019], 180.0, 0.0, 90.0, 130.0, 90.0, 220.0);
- AliMatrix(idrotm[2020], 180.0, 0.0, 90.0, 50.0, 90.0, 320.0);
- AliMatrix(idrotm[2021], 180.0, 0.0, 90.0, 150.0, 90.0, 60.0);
- AliMatrix(idrotm[2022], 180.0, 0.0, 90.0, 30.0, 90.0, 120.0);
+ AliMatrix(idrotm[2020], 180.0, 0.0, 90.0, 50.0, 90.0, 320.0);
+ AliMatrix(idrotm[2021], 180.0, 0.0, 90.0, 150.0, 90.0, 60.0);
+ AliMatrix(idrotm[2022], 180.0, 0.0, 90.0, 30.0, 90.0, 120.0);
AliMatrix(idrotm[2023], 180.0, 0.0, 90.0, 170.0, 90.0, 260.0);
AliMatrix(idrotm[2024], 180.0, 0.0, 90.0, 190.0, 90.0, 100.0);
- AliMatrix(idrotm[2025], 180.0, 0.0, 90.0, 350.0, 90.0, 80.0);
- AliMatrix(idrotm[2026], 180.0, 0.0, 90.0, 10.0, 90.0, 280.0);
+ AliMatrix(idrotm[2025], 180.0, 0.0, 90.0, 350.0, 90.0, 80.0);
+ AliMatrix(idrotm[2026], 180.0, 0.0, 90.0, 10.0, 90.0, 280.0);
- AliMatrix(idrotm[2027], 0.0, 0.0, 90.0, 50.0, 90.0, 320.0);
- AliMatrix(idrotm[2028], 0.0, 0.0, 90.0, 150.0, 90.0, 60.0);
- AliMatrix(idrotm[2029], 0.0, 0.0, 90.0, 30.0, 90.0, 120.0);
- AliMatrix(idrotm[2030], 0.0, 0.0, 90.0, 10.0, 90.0, 280.0);
- AliMatrix(idrotm[2031], 0.0, 0.0, 90.0, 170.0, 90.0, 260.0);
- AliMatrix(idrotm[2032], 0.0, 0.0, 90.0, 190.0, 90.0, 100.0);
- AliMatrix(idrotm[2033], 0.0, 0.0, 90.0, 350.0, 90.0, 80.0);
+ AliMatrix(idrotm[2027], 0.0, 0.0, 90.0, 50.0, 90.0, 320.0);
+ AliMatrix(idrotm[2028], 0.0, 0.0, 90.0, 150.0, 90.0, 60.0);
+ AliMatrix(idrotm[2029], 0.0, 0.0, 90.0, 30.0, 90.0, 120.0);
+ AliMatrix(idrotm[2030], 0.0, 0.0, 90.0, 10.0, 90.0, 280.0);
+ AliMatrix(idrotm[2031], 0.0, 0.0, 90.0, 170.0, 90.0, 260.0);
+ AliMatrix(idrotm[2032], 0.0, 0.0, 90.0, 190.0, 90.0, 100.0);
+ AliMatrix(idrotm[2033], 0.0, 0.0, 90.0, 350.0, 90.0, 80.0);
- Float_t rd = 410.56;
+ Float_t rd = 405.5;
dz = (dymodU[1]+dymodU[0])/2.;
Float_t dz2 = (dymodU[1]+dymodU[2])/2.;
gMC->Gspos("BM49", 7, "B076", dx, -dy, 0., idrotm[2025], "ONLY");
gMC->Gspos("BM49", 8, "B076", -dx, -dy, 0., idrotm[2024], "ONLY");
-
+//
// The internal frame
//
//
//
// Mother Volumes
//
- ptrd1[0] = 50.18;
- ptrd1[1] = 70.35;
- ptrd1[2] = 375.5;
- ptrd1[3] = 57.2;
+
+ ptrd1[0] = 49.8;
+ ptrd1[1] = 70.7;
+ ptrd1[2] = 376.0; // CBL 4/4/08
+ ptrd1[3] = iFrH / 2.;
- Float_t r = 341.8;
- Float_t rout1 = 410.564;
- Float_t rout2 = 415.2;
- char* module[18];
-// Position of Holes for PHOS (P) and RICH (R) starting at 6h
-// P P P - - R R R - - - - - - - - P P
- Int_t mod[18] = {0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1};
+ Float_t r = 342.0;
+ Float_t rout1 = 405.5;
+ Float_t rout2 = 411.5;
+ TString module[18];
for (i = 0; i < 18; i++) {
+
// Create volume i
- char name[6];
- sprintf(name, "BSEGMO%d", i);
+ char name[16];
+ Int_t mod = i + 13;
+ if (mod > 17) mod -= 18;
+ sprintf(name, "BSEGMO%d", mod);
gMC->Gsvolu(name, "TRD1", kAir, ptrd1, 4);
+ gGeoManager->GetVolume(name)->SetVisibility(kFALSE);
+
module[i] = name;
// Place volume i
- Float_t phi = i * 20.;
- Float_t phi2 = 270 + phi;
+ Float_t phi1 = i * 20.;
+ Float_t phi2 = 270 + phi1;
if (phi2 >= 360.) phi2 -= 360.;
- dx = TMath::Sin(phi*kdeg2rad)*r;
- dy = -TMath::Cos(phi*kdeg2rad)*r;
+ dx = TMath::Sin(phi1*kdeg2rad)*r;
+ dy = -TMath::Cos(phi1*kdeg2rad)*r;
- AliMatrix(idrotm[2034+i], 90.0, phi, 0., 0., 90., phi2);
+ AliMatrix(idrotm[2034+i], 90.0, phi1, 0., 0., 90., phi2);
gMC->Gspos(name, 1, "B077", dx, dy, 0., idrotm[2034+i], "ONLY");
+
//
// Position elements of outer Frame
//
- dx = TMath::Sin(phi*kdeg2rad)*rout1;
- dy = -TMath::Cos(phi*kdeg2rad)*rout1;
+ dx = TMath::Sin(phi1*kdeg2rad)*rout1;
+ dy = -TMath::Cos(phi1*kdeg2rad)*rout1;
for (j = 0; j < 3; j++)
{
dz = dymodU[j];
gMC->Gspos("B042", 6*i+2*j+2, "B076", dx, dy, -dz, idrotm[2034+i], "ONLY");
}
- phi = i*20.+10;
- phi2 = 270+phi;
- AliMatrix(idrotm[2052+i], 90.0, phi, 90., phi2, 0., 0.);
+ phi1 = i*20.+10;
+ phi2 = 270+phi1;
+ AliMatrix(idrotm[2052+i], 90.0, phi1, 90., phi2, 0., 0.);
- dx = TMath::Sin(phi*kdeg2rad)*rout2;
- dy = -TMath::Cos(phi*kdeg2rad)*rout2;
+ dx = TMath::Sin(phi1*kdeg2rad)*rout2;
+ dy = -TMath::Cos(phi1*kdeg2rad)*rout2;
gMC->Gspos("B033", i+1, "B076", dx, dy, 0., idrotm[2052+i], "ONLY");
//
}
// Internal Frame rings
//
//
-// new specs: 40x100x6 for inner rings
-// 30x135x6 for front and rear rings
+// new specs: 40x90x60 for inner rings
+// 30x135x60 for front and rear rings
//
// currently no distinction between front/rear and inner rings
//
//
//
- pbox[0] = 50.;
- pbox[1] = ringW/2.;
- pbox[2] = ringH/2.;
+ ptrd1[0] = 287. * TMath::Sin(10.* kdeg2rad) - 2.;
+ ptrd1[1] = 293. * TMath::Sin(10.* kdeg2rad) - 2.;
+ ptrd1[2] = ringW/2.;
+ ptrd1[3] = ringH/2.;
- gMC->Gsvolu("B072", "BOX ", kSteel, pbox, 3);
+ gMC->Gsvolu("B072", "TRD1", kSteel, ptrd1, 4);
- pbox[1] = pbox[1] - 0.6;
- pbox[2] = pbox[2] - 0.6;
- gMC->Gsvolu("B073", "BOX ", kAir, pbox, 3);
+ ptrd1[0] = 287.5 * TMath::Sin(10. * kdeg2rad) - 2.;
+ ptrd1[1] = 292.5 * TMath::Sin(10. * kdeg2rad) - 2.;
+ ptrd1[2] = ringW / 2. - 0.5;
+ ptrd1[3] = ringH / 2. - 0.5;
+
+ gMC->Gsvolu("B073", "TRD1", kAir, ptrd1, 4);
gMC->Gspos("B073", 1, "B072", 0., 0., 0., 0, "ONLY");
// Web frame 0-degree
// h x w x s = 60x40x4
// (attention: element is are half bars, "U" shaped)
//
- dz = 106.2;
+ dz = 114.5;
d = 2.*dwl;
h = dymodU[0]-dymodL[0];
dq = h*h+dz*dz;
gMC->Gspos("B064", 1, "B063", 0.0, -0.2, 0., 0, "ONLY");
- h = 106.2;
+ h = 114.5;
d = 2.*dwl;
dz = dymodU[1]-dymodL[1];
dq = h*h+dz*dz;
pbox[0] = dwh;
pbox[1] = dwl;
- pbox[2] = (iFrH-ringH-longH)/2.;
+ pbox[2] = 114.5 / 2.;
gMC->Gsvolu("B263", "BOX ", kSteel, pbox, 3);
pbox[0] = dwh-0.2;
pbox[1] = dwl-0.4;
AliMatrix(idrotm[2071], 100.0, 0.0, 90.0, 270.0, 10.0, 0.0);
AliMatrix(idrotm[2072], 100.0, 0.0, 90.0, 90.0, 10.0, 0.0);
AliMatrix(idrotm[2073], 100.0, 180.0, 90.0, 270.0, 10.0, 180.0);
- AliMatrix(idrotm[2074], 100.0, 180.0, 90.0, 90.0, 10.0, 180.0);
+ AliMatrix(idrotm[2074], 100.0, 180.0, 90.0, 90.0, 10.0, 180.0);
//
AliMatrix(idrotm[2075], 10.0, 0.0, 80.0, 180.0, 90.0, 90.0);
AliMatrix(idrotm[2076], 10.0, 0.0, 80.0, 180.0, 90.0, 270.0);
AliMatrix(idrotm[2084], 170.0, 180.0, 90.0, 90.0, 80.0, 180.0);
AliMatrix(idrotm[2085], 90.0, 180.0, 90.0, 90.0, 0.0, 0.0);
//
- AliMatrix(idrotm[2086], 90.0, 90.0, 100.0, 0., 170.0, 180.0);
- AliMatrix(idrotm[2087], 90.0, 90.0, 100.0, 0., 10.0, 0.0);
- AliMatrix(idrotm[2088], 90.0, 90.0, 80.0, 0., 170.0, 0.0);
- AliMatrix(idrotm[2089], 90.0, 90.0, 80.0, 0., -10.0, 0.0);
-
+ AliMatrix(idrotm[2086], 90.0, 90.0, 100.0, 0., 170.0, 180.0);
+ AliMatrix(idrotm[2087], 90.0, 90.0, 100.0, 0., 10.0, 0.0);
+ AliMatrix(idrotm[2088], 90.0, 90.0, 80.0, 0., 170.0, 0.0);
+ AliMatrix(idrotm[2089], 90.0, 90.0, 80.0, 0., -10.0, 0.0);
+//
+ AliMatrix(idrotm[2090], 90.0, 0.0, 0.0, 0., 90.0, 90.0);
+ AliMatrix(idrotm[2091], 0.0, 0.0, 90.0, 90., 90.0, 0.0);
//
// web frame diagonal (outer)
//
- h = 106.2;
+ h = 114.5;
d = 2.*dwl;
dz = dymodL[2]-dymodU[1]-dwl;
dq = h*h+dz*dz;
dz = -iFrH/2.+ringH/2.+kEps;
+ Float_t dz0 = 3. - 0.2;
+ Float_t dx0 = 60.82 - 1.0;
- for (i = 0; i< 18; i++)
+ for (jmod = 0; jmod< 18; jmod++)
{
// ring bars
- for (jmod = 0; jmod<3; jmod++) {
- gMC->Gspos("B072", 6*i+jmod+1, module[jmod], 0, dymodL[mod[i]], dz, 0, "ONLY");
- gMC->Gspos("B072", 6*i+jmod+4, module[jmod], 0, -dymodL[mod[i]], dz, idrotm[2070], "ONLY");
+ for (i = 0; i < 3; i++) {
+ gMC->Gspos("B072", 6*jmod+i+1, module[jmod], 0, dymodL[i], dz, 0, "ONLY");
+ gMC->Gspos("B072", 6*jmod+i+4, module[jmod], 0, -dymodL[i], dz, idrotm[2070], "ONLY");
// 0-deg web
- if (mod[i] == 2) {
- gMC->Gspos("B263", 12*i+jmod+1, module[jmod], 60.0732, dymodU[2], 4.6669, idrotm[2072], "ONLY");
- gMC->Gspos("B263", 12*i+jmod+4, module[jmod], 60.0732, -dymodU[2], 4.6669, idrotm[2071], "ONLY");
- gMC->Gspos("B263", 12*i+jmod+7, module[jmod], -60.0732, dymodU[2], 4.6669, idrotm[2074], "ONLY");
- gMC->Gspos("B263", 12*i+jmod+10, module[jmod], -60.0732, -dymodU[2], 4.6669, idrotm[2073], "ONLY");
+ if (i == 2) {
+ gMC->Gspos("B263", 4*jmod+1, module[jmod], dx0, dymodU[2], dz0, idrotm[2072], "ONLY");
+ gMC->Gspos("B263", 4*jmod+2, module[jmod], dx0, -dymodU[2], dz0, idrotm[2071], "ONLY");
+ gMC->Gspos("B263", 4*jmod+3, module[jmod], -dx0, dymodU[2], dz0, idrotm[2074], "ONLY");
+ gMC->Gspos("B263", 4*jmod+4, module[jmod], -dx0, -dymodU[2], dz0, idrotm[2073], "ONLY");
}
}
}
// outer diagonal web
dy = (dymodU[0]+dymodL[0])/2.;
+
+
for (jmod = 0; jmod < 18; jmod++) {
- gMC->Gspos("B063", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2086], "ONLY");
- gMC->Gspos("B063", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2087], "ONLY");
- gMC->Gspos("B063", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2088], "ONLY");
- gMC->Gspos("B063", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2089], "ONLY");
+ gMC->Gspos("B063", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2086], "ONLY");
+ gMC->Gspos("B063", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2087], "ONLY");
+ gMC->Gspos("B063", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2088], "ONLY");
+ gMC->Gspos("B063", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2089], "ONLY");
}
dy = (dymodU[1]+dymodL[1])/2.;
for (jmod = 0; jmod < 18; jmod++) {
- gMC->Gspos("B163", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2080], "ONLY");
- gMC->Gspos("B163", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2079], "ONLY");
- gMC->Gspos("B163", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2082], "ONLY");
- gMC->Gspos("B163", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2081], "ONLY");
+ gMC->Gspos("B163", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2080], "ONLY");
+ gMC->Gspos("B163", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2079], "ONLY");
+ gMC->Gspos("B163", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2082], "ONLY");
+ gMC->Gspos("B163", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2081], "ONLY");
}
dy = (dymodL[2]+dymodU[1])/2.-dwl/2.;
for (jmod = 0; jmod < 18; jmod++) {
- gMC->Gspos("B065", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2076], "ONLY");
- gMC->Gspos("B065", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2075], "ONLY");
- gMC->Gspos("B065", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2078], "ONLY");
- gMC->Gspos("B065", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2077], "ONLY");
+ gMC->Gspos("B065", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2076], "ONLY");
+ gMC->Gspos("B065", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2075], "ONLY");
+ gMC->Gspos("B065", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2078], "ONLY");
+ gMC->Gspos("B065", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2077], "ONLY");
}
dy = (dymodL[1]+dymodU[0])/2.;
for (jmod = 0; jmod < 18; jmod++) {
- gMC->Gspos("B067", 4*jmod+1, module[jmod], 60.0732, dy, 4.6669, idrotm[2076], "ONLY");
- gMC->Gspos("B067", 4*jmod+2, module[jmod], 60.0732, -dy, 4.6669, idrotm[2075], "ONLY");
- gMC->Gspos("B067", 4*jmod+3, module[jmod], -60.0732, dy, 4.6669, idrotm[2078], "ONLY");
- gMC->Gspos("B067", 4*jmod+4, module[jmod], -60.0732, -dy, 4.6669, idrotm[2077], "ONLY");
+ gMC->Gspos("B067", 4*jmod+1, module[jmod], dx0, dy, dz0, idrotm[2076], "ONLY");
+ gMC->Gspos("B067", 4*jmod+2, module[jmod], dx0, -dy, dz0, idrotm[2075], "ONLY");
+ gMC->Gspos("B067", 4*jmod+3, module[jmod], -dx0, dy, dz0, idrotm[2078], "ONLY");
+ gMC->Gspos("B067", 4*jmod+4, module[jmod], -dx0, -dy, dz0, idrotm[2077], "ONLY");
}
// longitudinal bars (TPC rails attached)
gMC->Gsvolu("BA62", "TRAP", kAir, ptrap, 11);
gMC->Gspos("BA62", 1, "BA59", 0.0, 0.0, -0.15, 0, "ONLY");
- dz = -iFrH/2.+ringH+longH/2.;
+ dz = -iFrH/2. + longH/2.;
for (jmod = 0; jmod < 18; jmod++) {
- gMC->Gspos("BA59", 2*jmod+1, module[jmod], 49.6476, 0.0, dz, idrotm[2084], "ONLY");
- gMC->Gspos("BA59", 2*jmod+2, module[jmod], -49.6476, 0.0, dz, idrotm[2083], "ONLY");
+ gMC->Gspos("BA59", 2*jmod+1, module[jmod], 49.31, 0.0, dz, idrotm[2084], "ONLY");
+ gMC->Gspos("BA59", 2*jmod+2, module[jmod], -49.31, 0.0, dz, idrotm[2083], "ONLY");
}
+
+
//
+// Thermal shield
//
-// Spacer between TRD and TOF modules
- ptrap[0] = 0.99;
- ptrap[1] = 10.00;
- ptrap[2] = 0.00;
- ptrap[3] = 350.00;
- ptrap[4] = 0.9;
- ptrap[5] = ptrap[4];
- ptrap[6] = 0;
- ptrap[7] = ptrap[3];
- ptrap[8] = ptrap[4];
- ptrap[9] = ptrap[4];
- ptrap[10] = 0;
- gMC->Gsvolu("B056", "TRAP", kSteel, ptrap, 11);
- for (jmod = 0; jmod < 18; jmod++) {
- gMC->Gspos("B056", 2*jmod+1, module[jmod], 61.9607, 0.0, 27.2, 0 , "ONLY");
- gMC->Gspos("B056", 2*jmod+2, module[jmod], -61.9607, 0.0, 27.2, idrotm[2085], "ONLY");
- }
+
+ Float_t dyM = 99.0 - 1.;
+ MakeHeatScreen("M", dyM, idrotm[2090], idrotm[2091]);
+ Float_t dyAM = 119.5 - 5.;
+ MakeHeatScreen("AM", dyAM, idrotm[2090], idrotm[2091]);
+ Float_t dyA = 128.0 - 4.;
+ MakeHeatScreen("A" , dyA, idrotm[2090], idrotm[2091]);
+
+//
+//
+//
+ dz = -57.2 + 0.6;
+ for (i = 0; i < 18; i++) {
+
+ char nameMo[16];
+ sprintf(nameMo, "BSEGMO%d",i);
+ // M
+ gMC->Gspos("BTSH_M" , i+1 , nameMo, 0., 0., dz, 0, "ONLY");
+ // AM, CM
+ dy = dymodL[0] + dyAM / 2. + 4.5;
+ gMC->Gspos("BTSH_AM", i+ 1, nameMo, 0., dy, dz, 0, "ONLY");
+ gMC->Gspos("BTSH_AM", i+19, nameMo, 0., -dy, dz, 0, "ONLY");
+ // A, C
+ dy = dymodL[1] + dyA / 2. + 6.0;
+ gMC->Gspos("BTSH_A" , i+ 1, nameMo, 0., dy, dz, 0, "ONLY");
+ gMC->Gspos("BTSH_A" , i+19, nameMo, 0., -dy, dz, 0, "ONLY");
+}
+
//
// TRD mother volumes
//
- ptrd1[0] = 49.8065;
- ptrd1[1] = 63.0060;
- ptrd1[2] = 375.5;
- ptrd1[3] = 37.43;
-
-// ptrd1[0] = 49.8065;
-// ptrd1[1] = 62.8535;
-// ptrd1[2] = 375.5;
-// ptrd1[3] = 37.;
+ ptrd1[0] = 47.4405; // CBL 28/6/2006
+ ptrd1[1] = 61.1765; // CBL
+ ptrd1[2] = 375.5; // CBL
+ ptrd1[3] = 38.95; // CBL
for (i = 0; i < 18; i++) {
- char nameCh[6];
+ char nameCh[16];
sprintf(nameCh, "BTRD%d",i);
- char nameMo[6];
+ char nameMo[16];
sprintf(nameMo, "BSEGMO%d",i);
gMC->Gsvolu(nameCh, "TRD1", kAir, ptrd1, 4);
- gMC->Gspos(nameCh, 1, nameMo, 0., 0., -10.37, 0, "ONLY");
+ gGeoManager->GetVolume(nameCh)->SetVisibility(kFALSE);
+ gMC->Gspos(nameCh, 1, nameMo, 0., 0., -12.62, 0, "ONLY"); // CBL 28/6/2006
}
//
// TOF mother volumes
//
- ptrd1[0] = 63.2061;
- ptrd1[1] = 68.3192;
- ptrd1[2] = 375.5;
- ptrd1[3] = 14.5;
+ ptrd1[0] = 62.2500;
+ ptrd1[1] = 67.3631;
+ ptrd1[2] = 373.6;
+ ptrd1[3] = 14.525; //AdC
for (i = 0; i < 18; i++) {
- char nameCh[6];
+ char nameCh[16];
sprintf(nameCh, "BTOF%d",i);
- char nameMo[6];
+ char nameMo[16];
sprintf(nameMo, "BSEGMO%d",i);
gMC->Gsvolu(nameCh, "TRD1", kAir, ptrd1, 4);
- gMC->Gspos(nameCh, 1, nameMo, 0., 0., 42.69, 0, "ONLY");
+ gGeoManager->GetVolume(nameCh)->SetVisibility(kFALSE);
+ gMC->Gspos(nameCh, 1, nameMo, 0., 0., 43.525, 0, "ONLY"); //AdC
}
//
gMC->Gspos("BRS2", 1, "BRS1", 0., -27.5+3.75, 0., 0, "ONLY");
gMC->Gspos("BRS2", 2, "BRS1", 0., 27.5-3.75, 0., 0, "ONLY");
gMC->Gspos("BRS3", 1, "BRS1", 0., 0., 0., 0, "ONLY");
- gMC->Gspos("BRS1", 1, "ALIC", -430.-3., -180., 0., 0, "ONLY");
- gMC->Gspos("BRS1", 2, "ALIC", 430.+3., -180., 0., 0, "ONLY");
+ gMC->Gspos("BRS1", 1, "ALIC", -430.-3., -190., 0., 0, "ONLY");
+ gMC->Gspos("BRS1", 2, "ALIC", 430.+3., -190., 0., 0, "ONLY");
rbox[0] = 3.0;
- rbox[1] = 145./2.;
+ rbox[1] = 145./4.;
rbox[2] = 25.0;
gMC->Gsvolu("BRS4", "BOX", kSteel, rbox, 3);
- gMC->Gspos("BRS4", 1, "ALIC", 430.+3., -180.+55./2.+rbox[1], 224., 0, "ONLY");
- gMC->Gspos("BRS4", 2, "ALIC", 430.+3., -180.+55./2.+rbox[1], -224., 0, "ONLY");
- gMC->Gspos("BRS4", 3, "ALIC", -430.-3., -180.+55./2.+rbox[1], 224., 0, "ONLY");
- gMC->Gspos("BRS4", 4, "ALIC", -430.-3., -180.+55./2.+rbox[1], -224., 0, "ONLY");
+ gMC->Gspos("BRS4", 1, "ALIC", 430.+3., -190.+55./2.+rbox[1], 224., 0, "ONLY");
+ gMC->Gspos("BRS4", 2, "ALIC", 430.+3., -190.+55./2.+rbox[1], -224., 0, "ONLY");
+// gMC->Gspos("BRS4", 3, "ALIC", -430.+3, -180.+55./2.+rbox[1], 224., 0, "ONLY");
+// gMC->Gspos("BRS4", 4, "ALIC", -430.+3, -180.+55./2.+rbox[1], -224., 0, "ONLY");
tpar[1] = kBFMRou;
tpar[2] = kBFMdz / 2.;
gMC->Gsvolu("BFMO", "TUBE", kAir, tpar, 3);
+
+ // CBL ////////////////////////////////////////////////////////
+ //
+ // TRD mother volume
+ //
+
+ ptrd1[0] = 47.4405 - 0.2;
+ ptrd1[1] = 61.1765 - 0.2;
+ ptrd1[2] = kBFMdz / 2.;
+ ptrd1[3] = 38.95;
+ gMC->Gsvolu("BFTRD", "TRD1", kAir, ptrd1, 4);
+ gGeoManager->GetVolume("BFTRD")->SetVisibility(kFALSE);
+
+ for (i = 0; i < 18; i++) {
+
+ Float_t phiBF = i * 20.0;
+ dx = TMath::Sin(phiBF*kdeg2rad)*(342.0-12.62);
+ dy = -TMath::Cos(phiBF*kdeg2rad)*(342.0-12.62);
+ gMC->Gspos("BFTRD",i,"BFMO",dx,dy,0.0,idrotm[2034+i],"ONLY");
+
+ }
+
+ // CBL ////////////////////////////////////////////////////////
// Rings
//
Float_t ro = kBFMRou - kBFBd / 2.;
Float_t ri = kBFMRin + kBFBd / 2.;
- Float_t phi = Float_t(i) * 20.;
+ Float_t phi0 = Float_t(i) * 20.;
- Float_t x = ri * TMath::Cos(phi * kDegrad);
- Float_t y = ri * TMath::Sin(phi * kDegrad);
- AliMatrix(idrotm[2090+i], 90.0, phi, 90.0, phi + 270., 0., 0.);
+ Float_t xb = ri * TMath::Cos(phi0 * kDegrad);
+ Float_t yb = ri * TMath::Sin(phi0 * kDegrad);
+ AliMatrix(idrotm[2090+i], 90.0, phi0, 90.0, phi0 + 270., 0., 0.);
- gMC->Gspos("BFLB", i + 1, "BFMO", x, y, 0., idrotm[2090 + i], "ONLY");
+ gMC->Gspos("BFLB", i + 1, "BFMO", xb, yb, 0., idrotm[2090 + i], "ONLY");
- x = ro * TMath::Cos(phi * kDegrad);
- y = ro * TMath::Sin(phi * kDegrad);
+ xb = ro * TMath::Cos(phi0 * kDegrad);
+ yb = ro * TMath::Sin(phi0 * kDegrad);
- gMC->Gspos("BFLB", i + 19, "BFMO", x, y, 0., idrotm[2090 +i], "ONLY");
+ gMC->Gspos("BFLB", i + 19, "BFMO", xb, yb, 0., idrotm[2090 +i], "ONLY");
}
//
for (i = 0; i < 10; i++)
{
- Float_t r = (kBFMRin + kBFMRou)/2.;
- Float_t phi = Float_t(iphi[i]) * 20.;
+ Float_t rb = (kBFMRin + kBFMRou)/2.;
+ Float_t phib = Float_t(iphi[i]) * 20.;
- Float_t x = r * TMath::Cos(phi * kDegrad);
- Float_t y = r * TMath::Sin(phi * kDegrad);
+ Float_t xb = rb * TMath::Cos(phib * kDegrad);
+ Float_t yb = rb * TMath::Sin(phib * kDegrad);
- gMC->Gspos("BFRB", i + 1, "BFMO", x, y, dz, idrotm[2034 + iphi[i]], "ONLY");
- gMC->Gspos("BFRB", i + 11, "BFMO", x, y, -dz, idrotm[2034 + iphi[i]], "ONLY");
+ gMC->Gspos("BFRB", i + 1, "BFMO", xb, yb, dz, idrotm[2034 + iphi[i]], "ONLY");
+ gMC->Gspos("BFRB", i + 11, "BFMO", xb, yb, -dz, idrotm[2034 + iphi[i]], "ONLY");
}
- gMC->Gspos("BFMO", i + 19, "ALIC", 0, 0, 376. + kBFMdz/2. + 0.5 , 0, "ONLY");
+ gMC->Gspos("BFMO", i + 19, "ALIC", 0, 0, - 376. - kBFMdz/2. - 0.5 , 0, "ONLY");
gMC->Gsvolu("BBMO", "PGON", kAir, ppgon, 10);
gMC->Gsdvn("BBCE", "BBMO", 18, 2);
+ // CBL ////////////////////////////////////////////////////////
+ //
+ // TRD mother volume
+ //
+
+ AliMatrix(idrotm[2092], 90.0, 90.0, 0.0, 0.0, 90.0, 0.0);
+
+ ptrd1[0] = 47.4405 - 2.5;
+ ptrd1[1] = 61.1765 - 2.5;
+ ptrd1[2] = kBBMdz / 2.;
+ ptrd1[3] = 38.95;
+ gMC->Gsvolu("BBTRD", "TRD1", kAir, ptrd1, 4);
+ gGeoManager->GetVolume("BBTRD")->SetVisibility(kFALSE);
+ gMC->Gspos("BBTRD", 1, "BBCE", 342.0-12.62, 0.0, 0.0, idrotm[2092], "ONLY");
+
+ // CBL ////////////////////////////////////////////////////////
+
// Longitudinal bars
bpar[0] = kBBBdz/2.;
bpar[1] = bpar[0];
gMC->Gspos("BBD2", 1, "BBCE", dx, dy, -dz/2. - kBBBdz/2., idrotm[2052], "ONLY");
- gMC->Gspos("BBMO", 1, "ALIC", 0., 0., - 376. - kBBMdz / 2. - 0.5, 0, "ONLY");
+ gMC->Gspos("BBMO", 1, "ALIC", 0., 0., + 376. + kBBMdz / 2. + 0.5, 0, "ONLY");
}
Float_t epsil, stemax, tmaxfd, deemax, stmin;
epsil = 1.e-4; // Tracking precision,
- stemax = -0.01; // Maximum displacement for multiple scat
- tmaxfd = -20.; // Maximum angle due to field deflection
- deemax = -.3; // Maximum fractional energy loss, DLS
+ stemax = -0.01; // Maximum displacement for multiple scat
+ tmaxfd = -20.; // Maximum angle due to field deflection
+ deemax = -.3; // Maximum fractional energy loss, DLS
stmin = -.8;
Int_t isxfld = gAlice->Field()->Integ();
Float_t sxmgmx = gAlice->Field()->Max();
AliMixture(65, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
AliMixture(5, "AIR$ ", aAir, zAir, dAir,4, wAir);
+ AliMaterial(9, "ALU ", 26.98, 13., 2.7, 8.9, 37.2);
AliMedium(65, "Stainless Steel", 65, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
AliMedium( 5, "Air", 5, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
+ AliMedium( 9, "Aluminum", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
}
//
// Add the reference track
//
- AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
+ AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kFRAME);
}
+void AliFRAMEv2::MakeHeatScreen(char* name, Float_t dyP, Int_t rot1, Int_t rot2)
+{
+ // Heat screen panel
+ //
+ Int_t *idtmed = fIdtmed->GetArray()-1999;
+ const Int_t kAir = idtmed[2004];
+ const Int_t kAlu = idtmed[2008];
+
+ Float_t dx, dy;
+ char mname [128];
+ char cname [128];
+ char t1name[128];
+ char t2name[128];
+ char t3name[128];
+ char t4name[128];
+ char t5name[128];
+
+ //
+ Float_t dxP = 2. * (287. * TMath::Sin(10.* TMath::Pi()/180.) - 2.);
+ Float_t dzP = 1.05;
+ //
+ // Mother volume
+ Float_t thshM[3];
+ thshM[0] = dxP / 2.;
+ thshM[1] = dyP / 2.;
+ thshM[2] = dzP / 2.;
+ sprintf(mname, "BTSH_%s", name);
+ gMC->Gsvolu(mname, "BOX ", kAir, thshM, 3);
+ //
+ // Aluminum sheet
+ thshM[2] = 0.025;
+ sprintf(cname, "BTSHA_%s", name);
+ gMC->Gsvolu(cname, "BOX ", kAlu, thshM, 3);
+ gMC->Gspos(cname, 1, mname, 0., 0., -0.5, 0);
+ //
+ // Tubes
+ Float_t thshT[3];
+ thshT[0] = 0.4;
+ thshT[1] = 0.5;
+ thshT[2] = (dyP / 2. - 8.);
+ //
+ sprintf(t1name, "BTSHT1_%s", name);
+ gMC->Gsvolu(t1name, "TUBE", kAlu, thshT, 3);
+ dx = - dxP / 2. + 8. - 0.5;
+ gMC->Gspos(t1name, 1, mname, dx, 0., 0.05, rot1);
+ //
+ sprintf(t2name, "BTSHT2_%s", name);
+ sprintf(t3name, "BTSHT3_%s", name);
+ sprintf(t4name, "BTSHT4_%s", name);
+ sprintf(t5name, "BTSHT5_%s", name);
+ thshT[2] = (thshM[1] - 12.);
+ gMC->Gsvolu(t2name, "TUBE", kAlu, thshT, 3);
+ thshT[2] = 7.9/2.;
+ gMC->Gsvolu(t3name, "TUBE", kAlu, thshT, 3);
+ thshT[2] = 23.9/2.;
+ gMC->Gsvolu(t4name, "TUBE", kAlu, thshT, 3);
+
+ Int_t sig = 1;
+ Int_t ipo = 1;
+ for (Int_t i = 0; i < 5; i++) {
+ sig *= -1;
+ dx += 8.00;
+ dy = 4. * sig;
+ Float_t dy1 = - (thshM[1] - 15.5) * sig;
+ Float_t dy2 = - (thshM[1] - 7.5) * sig;
+
+ gMC->Gspos(t2name, ipo++, mname, dx, dy, 0.05, rot1);
+ dx += 6.9;
+ gMC->Gspos(t2name, ipo++, mname, dx, dy, 0.05, rot1);
+
+ gMC->Gspos(t3name, i+1, mname, dx - 3.45, dy1, 0.05, rot2);
+ gMC->Gspos(t4name, i+1, mname, dx - 3.45, dy2, 0.05, rot2);
+ }
+ dx += 8.;
+ gMC->Gspos(t1name, 2, mname, dx, 0., 0.05, rot1);
+ gMC->Gspos(t3name, 6, mname, dx - 3.45, -(thshM[1] - 7.5), 0.05, rot2);
+}