Skip to content

Commit

Permalink
Merge pull request #4 from cms-l1t-offline/master
Browse files Browse the repository at this point in the history
new v2c menu XML
  • Loading branch information
aledegano authored Sep 2, 2016
2 parents 519b542 + 68065af commit 92b4a35
Show file tree
Hide file tree
Showing 15 changed files with 119,281 additions and 0 deletions.
117,727 changes: 117,727 additions & 0 deletions Luminosity/startup/L1Menu_Collisions2016_v2c.xml

Large diffs are not rendered by default.

684 changes: 684 additions & 0 deletions Luminosity/startup/L1TriggerMenu.xsd

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Luminosity/startup/menu.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="xsd-type/simple-types.xsd"/>
<xsd:include schemaLocation="xsd-type/complex-menu.xsd"/>

<xsd:element name="menu" type="tmxsd:menu"/>

</xsd:schema>
514 changes: 514 additions & 0 deletions Luminosity/startup/prescale_L1TGlobal.csv

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions Luminosity/startup/xsd-type/complex-algorithm.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>
<xsd:include schemaLocation="complex-object_requirement.xsd"/>
<xsd:include schemaLocation="complex-external_requirement.xsd"/>
<xsd:include schemaLocation="complex-cut.xsd"/>


<xsd:complexType name="algorithm">
<xsd:annotation>
<xsd:documentation>
The algorithm complex type holds information associated to ALGORITHM table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="expression" type="tmxsd:char4k"/>
<xsd:element name="index" type="xsd:unsignedInt"/>
<xsd:element name="module_id" type="xsd:unsignedInt"/>
<xsd:element name="module_index" type="xsd:unsignedInt"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
<xsd:element name="cut" type="tmxsd:cut" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="object_requirement" type="tmxsd:object_requirement" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="external_requirement" type="tmxsd:external_requirement" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="algorithm_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
</xsd:complexType>

</xsd:schema>
25 changes: 25 additions & 0 deletions Luminosity/startup/xsd-type/complex-bin.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>

<xsd:complexType name="bin">
<xsd:annotation>
<xsd:documentation>
The bin complex type holds information associated to ALGORITHM table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="number" type="xsd:unsignedInt"/>
<xsd:element name="minimum" type="tmxsd:real"/>
<xsd:element name="maximum" type="tmxsd:real"/>
</xsd:sequence>
<xsd:attribute name="bin_id" type="tmxsd:id"/>
<xsd:attribute name="scale_id" type="tmxsd:id"/>
</xsd:complexType>

</xsd:schema>
29 changes: 29 additions & 0 deletions Luminosity/startup/xsd-type/complex-cut.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>

<xsd:complexType name="cut">
<xsd:annotation>
<xsd:documentation>
The cut complex type holds information associated to CUT table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="object" type="tmxsd:char64"/>
<xsd:element name="type" type="tmxsd:char64"/>
<xsd:element name="minimum" type="tmxsd:real"/>
<xsd:element name="maximum" type="tmxsd:real"/>
<xsd:element name="data" type="tmxsd:char4k"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="cut_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
</xsd:complexType>

</xsd:schema>
28 changes: 28 additions & 0 deletions Luminosity/startup/xsd-type/complex-ext_signal.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>

<xsd:complexType name="ext_signal">
<xsd:annotation>
<xsd:documentation>
The ext_signal complex type holds information associated to EXT_SIGNAL table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="system" type="tmxsd:char1k"/>
<xsd:element name="cable" type="xsd:unsignedInt"/>
<xsd:element name="channel" type="xsd:unsignedInt"/>
<xsd:element name="description" type="tmxsd:char4k" minOccurs="0"/>
<xsd:element name="label" type="tmxsd:char1k" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="ext_signal_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
</xsd:complexType>

</xsd:schema>
26 changes: 26 additions & 0 deletions Luminosity/startup/xsd-type/complex-ext_signal_set.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="complex-ext_signal.xsd"/>

<xsd:complexType name="ext_signal_set">
<xsd:annotation>
<xsd:documentation>
The ext_signal_set complex type holds information associated to EXT_SIGNAL_SET table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
<xsd:element name="ext_signal" type="tmxsd:ext_signal" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="ext_signal_set_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
<xsd:attribute name="is_valid" type="xsd:boolean"/>
</xsd:complexType>

</xsd:schema>
26 changes: 26 additions & 0 deletions Luminosity/startup/xsd-type/complex-external_requirement.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>

<xsd:complexType name="external_requirement">
<xsd:annotation>
<xsd:documentation>
The external_requirement complex type holds information associated to OBJECT/REQUIREMENT tables in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="bx_offset" type="xsd:int"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="requirement_id" type="tmxsd:id"/>
<xsd:attribute name="ext_signal_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
</xsd:complexType>

</xsd:schema>
38 changes: 38 additions & 0 deletions Luminosity/startup/xsd-type/complex-menu.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>
<xsd:include schemaLocation="complex-algorithm.xsd"/>
<xsd:include schemaLocation="complex-scale_set.xsd"/>
<xsd:include schemaLocation="complex-ext_signal_set.xsd"/>

<xsd:complexType name="menu">
<xsd:annotation>
<xsd:documentation>
The menu complex type holds information associated to MENU table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="ancestor_id" type="tmxsd:id"/>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="uuid_menu" type="tmxsd:uuid"/>
<xsd:element name="uuid_firmware" type="tmxsd:uuid"/>
<xsd:element name="global_tag" type="tmxsd:char1k"/>
<xsd:element name="grammar_version" type="tmxsd:char64"/>
<xsd:element name="n_modules" type="xsd:unsignedInt"/>
<xsd:element name="is_valid" type="xsd:boolean" minOccurs="0"/>
<xsd:element name="is_obsolete" type="xsd:boolean" minOccurs="0"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
<xsd:element name="algorithm" type="tmxsd:algorithm" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="scale_set" type="tmxsd:scale_set" minOccurs="0"/>
<xsd:element name="ext_signal_set" type="tmxsd:ext_signal_set" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="menu_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
</xsd:complexType>

</xsd:schema>
28 changes: 28 additions & 0 deletions Luminosity/startup/xsd-type/complex-object_requirement.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>

<xsd:complexType name="object_requirement">
<xsd:annotation>
<xsd:documentation>
The object_requirement complex type holds information associated to OBJECT/REQUIREMENT tables in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="type" type="tmxsd:char64"/>
<xsd:element name="comparison_operator" type="tmxsd:char64"/>
<xsd:element name="threshold" type="tmxsd:real"/>
<xsd:element name="bx_offset" type="xsd:int"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="requirement_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
</xsd:complexType>

</xsd:schema>
32 changes: 32 additions & 0 deletions Luminosity/startup/xsd-type/complex-scale.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>
<xsd:include schemaLocation="complex-bin.xsd"/>

<xsd:complexType name="scale">
<xsd:annotation>
<xsd:documentation>
The scale complex type holds information associated to SCALE table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="object" type="tmxsd:char64"/>
<xsd:element name="type" type="tmxsd:char64"/>
<xsd:element name="minimum" type="tmxsd:real"/>
<xsd:element name="maximum" type="tmxsd:real"/>
<xsd:element name="step" type="tmxsd:real"/>
<xsd:element name="n_bits" type="xsd:unsignedInt"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
<xsd:element name="bin" type="tmxsd:bin" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="scale_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
<xsd:attribute name="n_bins" type="xsd:unsignedInt"/>
</xsd:complexType>

</xsd:schema>
27 changes: 27 additions & 0 deletions Luminosity/startup/xsd-type/complex-scale_set.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:include schemaLocation="simple-types.xsd"/>
<xsd:include schemaLocation="complex-scale.xsd"/>

<xsd:complexType name="scale_set">
<xsd:annotation>
<xsd:documentation>
The scale_set complex type holds information associated to SCALE_SET table in the CMS level-1 trigger menu database
</xsd:documentation>
</xsd:annotation>

<xsd:sequence>
<xsd:element name="name" type="tmxsd:char1k"/>
<xsd:element name="comment" type="tmxsd:char4k" minOccurs="0"/>
<xsd:element name="scale" type="tmxsd:scale" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="scale_set_id" type="tmxsd:id"/>
<xsd:attribute name="datetime" type="tmxsd:datetime"/>
<xsd:attribute name="is_valid" type="xsd:boolean"/>
</xsd:complexType>

</xsd:schema>
50 changes: 50 additions & 0 deletions Luminosity/startup/xsd-type/simple-types.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tmxsd="http://www.cern.ch/tmxsd/1.0.0"
targetNamespace="http://www.cern.ch/tmxsd/1.0.0">

<xsd:simpleType name="id">
<xsd:restriction base="xsd:unsignedInt"/>
</xsd:simpleType>

<xsd:simpleType name="uuid">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="36"/>
<xsd:pattern value="([a-z0-9]){8}-([a-z0-9]){4}-([a-z0-9]){4}-([a-z0-9]){4}-([a-z0-9]){12}"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="datetime">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
<xsd:pattern value="20([0-9]){2}-[0-1][1-9]-[0-3][0-9]T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9]{6}.?"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="real">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
<xsd:pattern value="[+-][0-9]\.[0-9]{16}[eE][+-][0-9]{2,3}"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="char64">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="char1k">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1024"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="char4k">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4000"/>
</xsd:restriction>
</xsd:simpleType>

</xsd:schema>

0 comments on commit 92b4a35

Please sign in to comment.