~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_py/geometry/xsltScripts/ParentFileTranlsation.xsl

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
                                    }
167
167
                            </xsl:for-each> 
168
168
                            
 
169
                        <xsl:for-each select="MICE_Information/Detector_Information/Diffuser">
 
170
                            Module <xsl:value-of select="ancestor::gdml/MICE_Information/Other_Information/GDML_Files/@location"/>iris<xsl:value-of select="Iris/@name"/>_closed.dat
 
171
                            {
 
172
                            Position <xsl:value-of select="Position/@x"/><xsl:text> </xsl:text><xsl:value-of select="Position/@y"/><xsl:text> </xsl:text><xsl:value-of select="Position/@z"/><xsl:text> </xsl:text><xsl:value-of select="Position/@units"/> 
 
173
                            Rotation <xsl:value-of select="Rotation/@x"/><xsl:text> </xsl:text><xsl:value-of select="Rotation/@y"/><xsl:text> </xsl:text><xsl:value-of select="Rotation/@z"/><xsl:text> </xsl:text><xsl:value-of select="Rotation/@units"/>
 
174
                            }
 
175
                        </xsl:for-each>
169
176
                            //Module Tracker/TrackerSolenoid0.dat
170
177
                            //{
171
178
                            //    Position 0. 0. 15016.24 mm
185
192
                            //    ScaleFactor -1
186
193
                            //}
187
194
                                            //Other Modules
188
 
                            <xsl:choose><xsl:when test="contains(MICE_Information/Configuration_Information/run, @diffuserThickness)">
 
195
                            //<xsl:choose><xsl:when test="contains(MICE_Information/Configuration_Information/run, @diffuserThickness)">
189
196
                            //Diffuser thickness is <xsl:value-of select="MICE_Information/Configuration_Information/run/@diffuserThickness"/>
190
197
                            //Go and select the diffuser model
191
 
                            </xsl:when></xsl:choose>
 
198
                            //</xsl:when></xsl:choose>
192
199
                
193
 
                            <xsl:choose><xsl:when test="contains(MICE_Information/Configuration_Information/run, @protonAbsorberThickness)">
 
200
                            //<xsl:choose><xsl:when test="contains(MICE_Information/Configuration_Information/run, @protonAbsorberThickness)">
194
201
                            //Diffuser thickness is <xsl:value-of select="MICE_Information/Configuration_Information/run/@protonAbsorberThickness"/>
195
202
                            //Go and select the diffuser model
196
 
                            </xsl:when></xsl:choose>
 
203
                            //</xsl:when></xsl:choose>
197
204
 
198
205
                            // Fields
199
206
                <xsl:for-each select="MICE_Information/G4Field_Information/Dipole">
202
209
                            Position <xsl:value-of select="Position/@x"/><xsl:text> </xsl:text><xsl:value-of select="Position/@y"/><xsl:text> </xsl:text><xsl:value-of select="Position/@z"/><xsl:text> </xsl:text><xsl:value-of select="Position/@units"/> 
203
210
                            Rotation <xsl:value-of select="Rotation/@x"/><xsl:text> </xsl:text><xsl:value-of select="Rotation/@y"/><xsl:text> </xsl:text><xsl:value-of select="Rotation/@z"/><xsl:text> </xsl:text><xsl:value-of select="Rotation/@units"/>
204
211
                            ScaleFactor <xsl:choose>
205
 
                                <xsl:when test="contains(FieldName/@name, 'D1') and boolean($run_number)">$D1Polarity*(1.0+($D1Current-240.516)/263.708)</xsl:when>
206
 
                                <xsl:when test="contains(FieldName/@name, 'D2') and boolean($run_number)">$D2Polarity*(1.0+($D2Current-240.516)/263.708)</xsl:when>
 
212
                                <xsl:when test="contains(FieldName/@name, 'D1') and boolean($run_number)">(-1.864e-3 + $D1Polarity*$D1Current*3.83e-3 + 3.04e-6*$D1Polarity*$D1Current*$D1Polarity*$D1Current + 5.69e-10*$D1Polarity*$D1Current*$D1Polarity*$D1Current*$D1Polarity*$D1Current)/(-0.5559)</xsl:when>
 
213
                                <xsl:when test="contains(FieldName/@name, 'D2') and boolean($run_number)">(-1.864e-3 + $D1Polarity*$D1Current*3.83e-3 + 3.04e-6*$D1Polarity*$D1Current*$D1Polarity*$D1Current + 5.69e-10*$D1Polarity*$D1Current*$D1Polarity*$D1Current*$D1Polarity*$D1Current)/(-0.5559)</xsl:when>
207
214
                                <xsl:otherwise><xsl:value-of select="ScaleFactor/@value"/></xsl:otherwise>
208
215
                            </xsl:choose>
209
216
                            Volume <xsl:value-of select="Volume/@name"/>
260
267
                            ScaleFactor <xsl:value-of select="ScaleFactor/@name"/>
261
268
                            }
262
269
                </xsl:for-each>
263
 
                       } 
264
 
                       
 
270
                }        
265
271
            </body>
266
272
        </html>
267
273
    </xsl:template>