public StructuralMetaData(int i, PhysicalMetaData physicalMetaData) { switch (i) { case 1: { sh_t = DescriptiveMetaData.ShieldType.hafnium_aluminum; concentrationOfHafnium = 0.1; density = physicalMetaData.densityOfHf * concentrationOfHafnium + physicalMetaData.densityOfAl * (1.0 - concentrationOfHafnium); nlayers = 1; } break; case 2: { sh_t = DescriptiveMetaData.ShieldType.hafnium_aluminum; concentrationOfHafnium = 0.3; density = physicalMetaData.densityOfHf * concentrationOfHafnium + physicalMetaData.densityOfAl * (1.0 - concentrationOfHafnium); nlayers = 1; } break; case 3: { sh_t = DescriptiveMetaData.ShieldType.hafnium_aluminum; concentrationOfHafnium = 0.5; density = physicalMetaData.densityOfHf * concentrationOfHafnium + physicalMetaData.densityOfAl * (1.0 - concentrationOfHafnium); nlayers = 1; } break; case 4: { sh_t = DescriptiveMetaData.ShieldType.hafnium_aluminum; concentrationOfHafnium = 0.7; density = physicalMetaData.densityOfHf * concentrationOfHafnium + physicalMetaData.densityOfAl * (1.0 - concentrationOfHafnium); nlayers = 1; } break; case 5: { sh_t = DescriptiveMetaData.ShieldType.hafnium_aluminum; concentrationOfHafnium = 1.0; density = physicalMetaData.densityOfHf * concentrationOfHafnium + physicalMetaData.densityOfAl * (1.0 - concentrationOfHafnium); nlayers = 1; } break; case 6: { sh_t = DescriptiveMetaData.ShieldType.monolayer; concentrationOfHafnium = 0.0; density = 2.7; nlayers = 1; } break; case 7: { sh_t = DescriptiveMetaData.ShieldType.layered; concentrationOfHafnium = 1.0; density = physicalMetaData.densityOfHf; nlayers = 2; } break; case 8: { sh_t = DescriptiveMetaData.ShieldType.hafnium; concentrationOfHafnium = 1.0; density = physicalMetaData.densityOfHf; // g/cm^2 nlayers = 1; } break; case 9: { sh_t = DescriptiveMetaData.ShieldType.water; concentrationOfHafnium = 0.0; density = physicalMetaData.densityOfWater; // water nlayers = 1; } break; case 10: { sh_t = DescriptiveMetaData.ShieldType.aluminum; concentrationOfHafnium = 0.0; density = physicalMetaData.densityOfAl; // g/cm^2 nlayers = 1; } break; default: { sh_t = DescriptiveMetaData.ShieldType.monolayer; concentrationOfHafnium = 0.0; density = physicalMetaData.densityOfAl; // g/cm^2 nlayers = 1; } break; } }
public MetaData(int i) { results = new StatisticalMetaData(); physicalMetaData = new PhysicalMetaData(i); shieldStructure = new StructuralMetaData(i, physicalMetaData); }