X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STRUCT%2FAliABSO.cxx;h=a84227ee4addd8d72408dbb370a95d7dc076425a;hb=5cccaefda9de67841206480e9127f86198dd2eda;hp=35fe220c1f43720e498a0dde9f1efa0ccf816e8f;hpb=b43eb0dca6a0b57b484b305675272fd82dda8b02;p=u%2Fmrichter%2FAliRoot.git diff --git a/STRUCT/AliABSO.cxx b/STRUCT/AliABSO.cxx index 35fe220c1f4..a84227ee4ad 100644 --- a/STRUCT/AliABSO.cxx +++ b/STRUCT/AliABSO.cxx @@ -13,18 +13,7 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.8 2000/02/23 13:46:04 morsch -Detailed composition of insulation material. - -Revision 1.7 2000/01/12 15:36:28 morsch -Base class only - -Revision 1.6 1999/09/29 09:24:29 fca -Introduction of the Copyright and cvs Log - -*/ +/* $Id$ */ /////////////////////////////////////////////////////////////////////////////// // // @@ -49,6 +38,7 @@ Introduction of the Copyright and cvs Log #include "AliABSO.h" #include "AliRun.h" +#include "AliMagF.h" #include "AliConst.h" ClassImp(AliABSO) @@ -68,9 +58,9 @@ AliABSO::AliABSO(const char *name, const char *title) // // Standard constructor // - SetMarkerColor(7); - SetMarkerStyle(2); - SetMarkerSize(0.4); + //PH SetMarkerColor(7); + //PH SetMarkerStyle(2); + //PH SetMarkerSize(0.4); } //_____________________________________________________________________________ @@ -82,7 +72,7 @@ void AliABSO::CreateGeometry() } //_____________________________________________________________________________ -void AliABSO::DrawModule() +void AliABSO::DrawModule() const { // // Draw a shaded view of the muon absorber @@ -98,103 +88,137 @@ void AliABSO::CreateMaterials() // Int_t isxfld = gAlice->Field()->Integ(); Float_t sxmgmx = gAlice->Field()->Max(); - +// +// Air +// + Float_t aAir[4]={12.0107,14.0067,15.9994,39.948}; + Float_t zAir[4]={6.,7.,8.,18.}; + Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827}; + Float_t dAir = 1.20479E-3; + Float_t dAir1 = 1.20479E-10; +// +// Polyethylene +// Float_t apoly[2] = { 12.01,1. }; Float_t zpoly[2] = { 6.,1. }; Float_t wpoly[2] = { .33,.67 }; - Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98, - 28.086,39.1,40.08,55.85 }; +// +// Concrete +// + Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 }; Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. }; - Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872, - .337021,.013,.044,.014 }; + Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872, .337021,.013,.044,.014 }; +// +// Steel +// Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; Float_t zsteel[4] = { 26.,24.,28.,14. }; Float_t wsteel[4] = { .715,.18,.1,.005 }; // -// // Ni-Cu-W alloy +// Float_t aniwcu[3] ={58.6934, 183.84, 63.546}; Float_t zniwcu[3] ={28., 74., 29}; Float_t wniwcu[3] ={0.015,0.95,0.035}; // +// Poly Concrete +// H Li F C Al Si Ca Pb O + Float_t aPolyCc[9] = {1. , 6.941, 18.998, 12.01, 26.98, 28.086, 40.078, 207.2, 15.999}; + Float_t zPolyCc[9] = {1. , 3. , 9. , 6. , 13. , 14. , 20. , 82. , 8. }; + Float_t wPolyCc[9] = {4.9, 1.2 , 1.3 , 1.1 , 0.15, 0.02 , 0.06 , 0.7, 1.1 }; + Float_t wtot=0; + Int_t i=0; + + for (i=0; i<9; i++) wtot+=wPolyCc[i]; + for (i=0; i<9; i++) wPolyCc[i]/=wtot; + +// // Insulation powder // Si O Ti Al Float_t ains[4] ={28.0855, 15.9994, 47.867, 26.982}; Float_t zins[4] ={14., 8. , 22. , 13. }; Float_t wins[4] ={ 0.3019, 0.4887, 0.1914, 0.018}; + // Float_t epsil, stmin, tmaxfd, deemax, stemax; // // Carbon - AliMaterial(6, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9); - AliMaterial(26, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9); - AliMaterial(46, "CARBON$ ", 12.01, 6., 2.265, 18.8, 49.9); + AliMaterial( 6, "CARBON0$ ", 12.01, 6., 1.75, 24.4, 49.9); + AliMaterial(26, "CARBON1$ ", 12.01, 6., 1.75, 24.4, 49.9); + AliMaterial(46, "CARBON2$ ", 12.01, 6., 1.75, 24.4, 49.9); + // + // Magnesium + AliMaterial( 7, "MAGNESIUM$ ", 24.31, 12., 1.74, 25.3, 46.0); // // Aluminum - AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); - AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); - AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); + AliMaterial(9, "ALUMINIUM0$", 26.98, 13., 2.7, 8.9, 37.2); + AliMaterial(29, "ALUMINIUM1$", 26.98, 13., 2.7, 8.9, 37.2); + AliMaterial(49, "ALUMINIUM2$", 26.98, 13., 2.7, 8.9, 37.2); // // Iron - AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1); - AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1); - AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1); + AliMaterial(10, "IRON0$ ", 55.85, 26., 7.87, 1.76, 17.1); + AliMaterial(30, "IRON1$ ", 55.85, 26., 7.87, 1.76, 17.1); + AliMaterial(50, "IRON2$ ", 55.85, 26., 7.87, 1.76, 17.1); // // Copper - AliMaterial(11, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1); - AliMaterial(31, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1); - AliMaterial(51, "COPPER$ ", 63.55, 29., 8.96, 1.43, 15.1); + AliMaterial(11, "COPPER0$ ", 63.55, 29., 8.96, 1.43, 15.1); + AliMaterial(31, "COPPER1$ ", 63.55, 29., 8.96, 1.43, 15.1); + AliMaterial(51, "COPPER2$ ", 63.55, 29., 8.96, 1.43, 15.1); // // Tungsten - AliMaterial(12, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3); - AliMaterial(32, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3); - AliMaterial(52, "TUNGSTEN$ ", 183.85, 74., 19.3, .35, 10.3); + AliMaterial(12, "TUNGSTEN0$ ", 183.85, 74., 19.3, .35, 10.3); + AliMaterial(32, "TUNGSTEN1$ ", 183.85, 74., 19.3, .35, 10.3); + AliMaterial(52, "TUNGSTEN2$ ", 183.85, 74., 19.3, .35, 10.3); // // Ni-W-Cu - AliMixture(21, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu); - AliMixture(41, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu); - AliMixture(61, "Ni-W-Cu$", aniwcu, zniwcu, 18.78, 3, wniwcu); + AliMixture(21, "Ni-W-Cu0$", aniwcu, zniwcu, 18.78, 3, wniwcu); + AliMixture(41, "Ni-W-Cu1$", aniwcu, zniwcu, 18.78, 3, wniwcu); + AliMixture(61, "Ni-W-Cu2$", aniwcu, zniwcu, 18.78, 3, wniwcu); // // Lead - AliMaterial(13, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5); - AliMaterial(33, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5); - AliMaterial(53, "LEAD$ ", 207.19, 82., 11.35, .56, 18.5); + AliMaterial(13, "LEAD0$ ", 207.19, 82., 11.35, .56, 18.5); + AliMaterial(33, "LEAD1$ ", 207.19, 82., 11.35, .56, 18.5); + AliMaterial(53, "LEAD2$ ", 207.19, 82., 11.35, .56, 18.5); // // Air - AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); - AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); - AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); + AliMixture(15, "AIR0$ ", aAir, zAir, dAir, 4, wAir); + AliMixture(35, "AIR1$ ", aAir, zAir, dAir, 4, wAir); + AliMixture(55, "AIR2$ ", aAir, zAir, dAir, 4, wAir); // // Vacuum - AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16); - AliMaterial(36, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16); - AliMaterial(56, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16); + AliMixture(16, "VACUUM0$ ", aAir, zAir, dAir1, 4, wAir); + AliMixture(36, "VACUUM1$ ", aAir, zAir, dAir1, 4, wAir); + AliMixture(56, "VACUUM2$ ", aAir, zAir, dAir1, 4, wAir); // // Concrete - AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc); - AliMixture(37, "CONCRETE$", aconc, zconc, 2.35, 10, wconc); - AliMixture(57, "CONCRETE$", aconc, zconc, 2.35, 10, wconc); + AliMixture(17, "CONCRETE0$", aconc, zconc, 2.35, 10, wconc); + AliMixture(37, "CONCRETE1$", aconc, zconc, 2.35, 10, wconc); + AliMixture(57, "CONCRETE2$", aconc, zconc, 2.35, 10, wconc); // // Poly CH2 - AliMixture(18, "POLYETHYLEN$", apoly, zpoly, .95, -2, wpoly); + AliMixture(18, "POLYETHYLEN0$", apoly, zpoly, .95, -2, wpoly); // // After a call with ratios by number (negative number of elements), // the ratio array is changed to the ratio by weight, so all successive // calls with the same array must specify the number of elements as // positive // - AliMixture(38, "POLYETHYLEN$", apoly, zpoly, .95, 2, wpoly); - AliMixture(58, "POLYETHYLEN$", apoly, zpoly, .95, 2, wpoly); + AliMixture(38, "POLYETHYLEN1$", apoly, zpoly, .95, 2, wpoly); + AliMixture(58, "POLYETHYLEN2$", apoly, zpoly, .95, 2, wpoly); // // stainless Steel - AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); - AliMixture(39, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); - AliMixture(59, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); + AliMixture(19, "STAINLESS STEEL0$", asteel, zsteel, 7.88, 4, wsteel); + AliMixture(39, "STAINLESS STEEL1$", asteel, zsteel, 7.88, 4, wsteel); + AliMixture(59, "STAINLESS STEEL2$", asteel, zsteel, 7.88, 4, wsteel); // // Insulation powder - AliMixture(14, "INSULATION$", ains, zins, 0.41, 4, wins); - AliMixture(34, "INSULATION$", ains, zins, 0.41, 4, wins); - AliMixture(54, "INSULATION$", ains, zins, 0.41, 4, wins); + AliMixture(14, "INSULATION0$", ains, zins, 0.41, 4, wins); + AliMixture(34, "INSULATION1$", ains, zins, 0.41, 4, wins); + AliMixture(54, "INSULATION2$", ains, zins, 0.41, 4, wins); + // Polymere Concrete + AliMixture(20, "Poly Concrete0$", aPolyCc, zPolyCc, 3.53, -9, wPolyCc); + AliMixture(40, "Poly Concrete1$", aPolyCc, zPolyCc, 3.53, 9, wPolyCc); + AliMixture(60, "Poly Concrete2$", aPolyCc, zPolyCc, 3.53, 9, wPolyCc); // // **************** @@ -217,6 +241,9 @@ void AliABSO::CreateMaterials() AliMedium(29, "ALU_C1 ", 29, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); AliMedium(49, "ALU_C2 ", 49, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); // + // Magnesium + AliMedium(7, "MG_C0 ", 7, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); + // // Iron AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); @@ -231,6 +258,7 @@ void AliABSO::CreateMaterials() AliMedium(12, "W_C0 ", 12, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); AliMedium(32, "W_C1 ", 32, 0, isxfld, sxmgmx, tmaxfd, -stemax, deemax, epsil, stmin); AliMedium(52, "W_C2 ", 52, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); + // // Ni/Tungsten AliMedium(21, "Ni/W0 ", 21, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); AliMedium(41, "Ni/W1 ", 41, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); @@ -270,6 +298,11 @@ void AliABSO::CreateMaterials() AliMedium(19, "ST_C0 ", 19, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); AliMedium(39, "ST_C1 ", 39, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); AliMedium(59, "ST_C3 ", 59, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); + // + // Polymer Concrete + AliMedium(20, "PCc_C0 ", 20, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); + AliMedium(40, "PCc_C1 ", 40, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); + AliMedium(60, "PCc_C3 ", 60, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); } //_____________________________________________________________________________ @@ -289,3 +322,9 @@ void AliABSO::Init() printf("\n"); } +Int_t AliABSO::GetMatId(Int_t imat) const +{ +// Get geant material number + Int_t kmat=(*fIdmate)[imat]; + return kmat; +}