PageRenderTime 25ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/DetectorDescription/Parser/test/testDivision.xml

https://github.com/aivanov-cern/cmssw
XML | 102 lines | 80 code | 8 blank | 14 comment | 0 complexity | 44998ad63a99886ec4150d1f1c370afe MD5 | raw file
  1<?xml version="1.0"?>
  2<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../Schema/DDLSchema.xsd">
  3<SolidSection label="fud">
  4  <Box name="mary" dx="100*cm" dy="200*cm" dz="300*cm"/>
  5  <Tubs name="tub1" rMin="20*cm" rMax="50*cm" dz="1*m" startPhi="20*deg" deltaPhi="180*deg"/>
  6</SolidSection>
  7<LogicalPartSection label="fud">
  8  <LogicalPart name="mary1">
  9    <rSolid name="mary"/>
 10    <rMaterial name="testMaterials:Air"/>
 11  </LogicalPart>
 12  <LogicalPart name="mary2">
 13    <rSolid name="mary"/>
 14    <rMaterial name="testMaterials:Air"/>
 15  </LogicalPart>
 16  <LogicalPart name="mary3">
 17    <rSolid name="mary"/>
 18    <rMaterial name="testMaterials:Air"/>
 19  </LogicalPart>
 20  <LogicalPart name="tub1">
 21    <rSolid name="tub1"/>
 22    <rMaterial name="testMaterials:Air"/>
 23  </LogicalPart>
 24  <LogicalPart name="tub2">
 25    <rSolid name="tub1"/>
 26    <rMaterial name="testMaterials:Air"/>
 27  </LogicalPart>
 28  <LogicalPart name="tub3">
 29    <rSolid name="tub1"/>
 30    <rMaterial name="testMaterials:Air"/>
 31  </LogicalPart>
 32</LogicalPartSection>
 33
 34	<!--NOT WORKING! Algorithm name="global:DividerAlgorithm">
 35		<rParent name="mary"/>
 36		<Numeric name="nReplicas" value="3"/>
 37		<Numeric name="width" value="20*cm"/>
 38		<Numeric name="offset" value="2*mm"/>
 39		<String name="axis" value="x"/>
 40	</Algorithm-->
 41
 42<PosPartSection label="fred">
 43    <PosPart copyNumber="0">
 44      <rParent name="testLogicalParts:MotherOfAllBoxes"/>
 45      <rChild name="mary1"/>
 46      <Translation z="-.5*m" y="0" x="0"/>
 47    </PosPart>
 48    <PosPart copyNumber="0">
 49      <rParent name="testLogicalParts:MotherOfAllBoxes"/>
 50      <rChild name="mary2"/>
 51      <Translation z="-1*m" y="0" x="0"/>
 52    </PosPart>
 53    <PosPart copyNumber="0">
 54      <rParent name="testLogicalParts:MotherOfAllBoxes"/>
 55      <rChild name="mary3"/>
 56      <Translation z="-1.5*m" y="0" x="0"/>
 57    </PosPart>
 58    <PosPart copyNumber="0">
 59      <rParent name="testLogicalParts:MotherOfAllBoxes"/>
 60      <rChild name="tub1"/>
 61      <Translation z="-2*m" y="0" x="0"/>
 62    </PosPart>
 63    <PosPart copyNumber="0">
 64      <rParent name="testLogicalParts:MotherOfAllBoxes"/>
 65      <rChild name="tub2"/>
 66      <Translation z="-2.5*m" y="0" x="0"/>
 67    </PosPart>
 68    <PosPart copyNumber="0">
 69      <rParent name="testLogicalParts:MotherOfAllBoxes"/>
 70      <rChild name="tub3"/>
 71      <Translation z="-3*m" y="0" x="0"/>
 72    </PosPart>
 73
 74
 75  <Division name="fred" parent="mary1" axis="x" nReplicas="3" width="20*cm" offset="2*mm"/>
 76  <Division name="charlie" parent="mary2" axis="y" nReplicas="4" offset="2*mm"/>
 77  <Division name="ssd" parent="mary3" axis="z" width="20*cm" offset="2*mm"/>
 78
 79  <Division name="divtubz" parent="tub1" axis="z" offset="0*mm" nReplicas="8"/>
 80  <Division name="divtubrho" parent="tub2" axis="rho" offset="0*mm" nReplicas="3"/>
 81  <Division name="divtubphi" parent="tub3" axis="phi" offset="10*deg" width="15*deg"/>
 82
 83  <Division name="divconsz" parent="testLogicalParts:cone1" axis="z" offset="0*cm" width="100*cm"/>
 84  <Division name="divconsrho" parent="testLogicalParts:cone2" axis="rho" offset="5*cm" width="10*cm"/>
 85  <Division name="divconsphi" parent="testLogicalParts:cone3" axis="phi" offset="0*deg" width="20*deg"/>
 86
 87  <Division name="divpolyconez" parent="testLogicalParts:pczsect" 
 88	  axis="z" offset="0*cm" width="50*cm"/>
 89  <Division name="divpolyconerho" parent="testLogicalParts:pczsect2" 
 90	  axis="rho" offset="0*cm" nReplicas="10"/>
 91  <Division name="divpolyconephi" parent="testLogicalParts:pczsect3" 
 92	  axis="phi" offset="0*deg" width="60*deg"/>
 93
 94  <!-- trigger some errors un-comment to check them...-->
 95<!--
 96  <Division name="divconszfail" parent="testLogicalParts:pczsect" 
 97	  axis="z" nReplicas="2" width="500*cm"/>
 98  <Division name="divconszfail" parent="testLogicalParts:pcrz" 
 99  	  axis="z" nReplicas="3" width="500*cm"/>
100-->
101  </PosPartSection>
102</DDDefinition>