/[PAMELA software]/quicklook/dataToXML/Data/RunHeaderTemplate.xsl
ViewVC logotype

Contents of /quicklook/dataToXML/Data/RunHeaderTemplate.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (as text) (vendor branch)
Tue Apr 25 09:00:20 2006 UTC (18 years, 7 months ago) by kusanagi
Branch: MAIN
CVS Tags: dataToXML1_02/01, dataToXML1_02/00, dataToXML1_03/00, dataToXML1_03/01, dataToXML1_00/00, firstRelease, dataToXML1_01/00, dataToXML1_03_02, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: application/xml
These program extract in an XML format the info contained into the ROOT files generated by YODA from the PAMELA data. To visualize the XML files in a more human readable format a collection of XSL files are given in the Data subfolder.

1 <?xml version="1.0" encoding="UTF-8"?> <!-- Prologo XML -->
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Dichiarazione del documento XSLT -->
3 <!-- <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/TR/WD-xsl"> -->
5
6 <!--
7 =====================================================================================
8 Stylesheet: RunHeaderTemplate.xsl
9 Version: 1.0 (2005-03-14)
10 Author: Maurizio Nagni
11 Descr.: Format the output of the RunHeaderToXml.c script to generate a human
12 readble verion of the ArrDump packet
13 =====================================================================================
14 -->
15
16 <!--Contains some utility to converts dec/hex/bin numbers-->
17 <xsl:include href="numberutils_lib.xsl"/>
18
19 <!--Contains all the customer specific parameters-->
20 <!--<xsl:include href="Configure.xsl"/>-->
21
22 <!-- Define which a key called "varDes"
23 which will search inside the node "var" of the reference
24 ArrDumpInfo.xml (or whatever file instead of the is used)
25 all values values of the node "idx" matching the valued passed when
26 the key "fileName" is called -->
27 <!-- No xml file is defined here because the xsl:key is absolutely generic -->
28 <!-- <xsl:key name="arrDes" match="arr" use="idx"/>
29
30 <xsl:template match="/" name="ArrDumpReference">
31 <xsl:param name="code"/>
32 <xsl:param name="arrval"/>
33 <xsl:for-each select="document('./compilationInfo/PRH_ParamHandler_INFN_auto.arr.xml')">
34 <xsl:for-each select="key('arrDes', $code)">
35 <td> <th align="left"><xsl:value-of select="name"/><xsl:text>(</xsl:text><xsl:value-of select="idx"/><xsl:text>)</xsl:text> </th> </td>
36 <td> <th align="left"><xsl:copy-of select="$arrval"/></th> </td>
37 <td> <th align="left"><xsl:value-of select="comment"/></th> </td>
38 </xsl:for-each>
39 </xsl:for-each>
40 </xsl:template>
41 -->
42 <xsl:template match="/" name="ArrDumpTemplate">
43 <html>
44 <body STYLE="font-family:Arial, helvetica, sans-serif; font-size:12pt">
45 <h2>RunHeader Event</h2>
46 <table border="1">
47 <tr bgcolor="#1acd32">
48 <th align="center">Packet OBT</th>
49 <th align="center">Packet Num</th>
50 <th align="center">Acq_Sett_Mode</th>
51 <th align="center">TimeSync (OBT)</th>
52 <th align="center">Last TimeSync Info</th>
53 <th align="center">Fav. Wrk Schedule</th>
54 <th align="center">Eff. Wrk Schedule</th>
55 <th align="center">VarTrig Mode A Schedule</th>
56 <th align="center">VarTrig Mode B Schedule</th>
57 <th align="center">Acq After Calib</th>
58 <th align="center">Trk Calib Used</th>
59 <th align="center">Acq Build Info</th>
60 <th align="center">Acq Var Info</th>
61 <th align="center">Cal DSP Mask</th>
62 </tr>
63 <xsl:for-each select="//RUN_HEADER_EVENT">
64 <tr>
65 <td><xsl:value-of select="PACKET_OBT"/> </td>
66 <td><xsl:value-of select="PACKET_NUM"/> </td>
67 <td>
68 <xsl:call-template name="Dec2Hex">
69 <xsl:with-param name="value" select="RM_SETT_MODE"/>
70 </xsl:call-template>
71 </td>
72 <td>
73 <xsl:call-template name="Dec2Hex">
74 <xsl:with-param name="value" select="OBT_TM_SYNC"/>
75 </xsl:call-template>
76 </td>
77 <td>
78 <xsl:call-template name="Dec2Hex">
79 <xsl:with-param name="value" select="LAST_TM_SYNC_INFO"/>
80 </xsl:call-template>
81 </td>
82 <td>
83 <xsl:call-template name="Dec2Hex">
84 <xsl:with-param name="value" select="FAV_WRK_SCHEDULE"/>
85 </xsl:call-template>
86 </td>
87 <td>
88 <xsl:call-template name="Dec2Hex">
89 <xsl:with-param name="value" select="EFF_WRK_SCHEDULE"/>
90 </xsl:call-template>
91 </td>
92 <td>
93 <xsl:call-template name="Dec2Hex">
94 <xsl:with-param name="value" select="PRH_VAR_TRIG_A"/>
95 </xsl:call-template>
96 </td>
97 <td>
98 <xsl:call-template name="Dec2Hex">
99 <xsl:with-param name="value" select="PRH_VAR_TRIG_B"/>
100 </xsl:call-template>
101 </td>
102 <td>
103 <xsl:call-template name="Dec2Hex">
104 <xsl:with-param name="value" select="RM_ACQ_AFTER_CALIB"/>
105 </xsl:call-template>
106 </td>
107 <td>
108 <xsl:call-template name="Dec2Hex">
109 <xsl:with-param name="value" select="TRK_CALIB_USED"/>
110 </xsl:call-template>
111 </td>
112 <td>
113 <xsl:call-template name="Dec2Hex">
114 <xsl:with-param name="value" select="ACQ_BUILD_INFO"/>
115 </xsl:call-template>
116 </td>
117 <td>
118 <xsl:call-template name="Dec2Hex">
119 <xsl:with-param name="value" select="ACQ_VAR_INFO"/>
120 </xsl:call-template>
121 </td>
122 <td>
123 <xsl:call-template name="Dec2Hex">
124 <xsl:with-param name="value" select="CAL_DSP_MASK"/>
125 </xsl:call-template>
126 </td>
127 </tr>
128 <!--
129 <td>
130 <xsl:text>0x</xsl:text>
131 <xsl:call-template name="Dec2Hex">
132 <xsl:with-param name="value" select="INFO1"/>
133 </xsl:call-template>
134 <xsl:value-of select="INFO1"/>
135 </td>
136 -->
137 </xsl:for-each>
138 </table>
139 </body>
140 </html>
141 </xsl:template>
142
143 </xsl:stylesheet>

  ViewVC Help
Powered by ViewVC 1.1.23