<?xml version="1.0" encoding="UTF-8"?>

<gating:Gating-ML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:gating="http://www.isac-net.org/std/Gating-ML/v2.0/gating"
    xmlns:transforms="http://www.isac-net.org/std/Gating-ML/v2.0/transformations"
    xmlns:data-type="http://www.isac-net.org/std/Gating-ML/v2.0/datatypes"
    xsi:schemaLocation="
        http://www.isac-net.org/std/Gating-ML/v2.0/gating ../../XSD/Gating-ML.v2.0.xsd
        http://www.isac-net.org/std/Gating-ML/v2.0/transformations ../../XSD/Transformations.v2.0.xsd
        http://www.isac-net.org/std/Gating-ML/v2.0/datatypes ../../XSD/DataTypes.v2.0.xsd">
    <data-type:custom_info>
        This Gating-ML 2.0 file is part of Gating-ML compliance tests - an informative part of Gating-ML 2.0 specification.
        Gates in this file are supposed to be applied on data1.fcs.
        <author>
            <name>Josef Spidlen</name>
            <email>jspidlen@bccrc.ca</email>
        </author>
        <copyright>
            Copyright (c) 2012 ISAC (International Society for Advancement of Cytometry). 
            Free of charge distribution and read-only usage permited. Modification
            and all other rights reserved. For all other uses please contact ISAC.
        </copyright>
    </data-type:custom_info>

    <gating:RectangleGate gating:id="Range1">
        <data-type:custom_info>
            FSC-H is stored with $P1G = 3.67, which needs to be factored 
            in the implicit channel to scale before this gate is applied. 
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="100">
            <data-type:fcs-dimension data-type:name="FSC-H" />
        </gating:dimension>
    </gating:RectangleGate>

    <gating:RectangleGate gating:id="Rectangle1">
        <data-type:custom_info>
            SSC-H is stored with $P2G = 8
            FL1-H is stored with $P3E = 4,0
            These need to be factored in the implicit channel to scale before this gate is applied. 
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="20" gating:max="80">
            <data-type:fcs-dimension data-type:name="SSC-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="70" gating:max="200">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>

    <gating:RectangleGate gating:id="Rectangle2">
        <data-type:custom_info>
            The FCS data file does not contain any compensation information and therefore, 
            these results are exactly the same as for Rectangle1.
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="FCS" gating:min="20" gating:max="80">
            <data-type:fcs-dimension data-type:name="SSC-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="FCS" gating:min="70" gating:max="200">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:PolygonGate gating:id="Polygon1">
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL2-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL3-H" />
        </gating:dimension>
        <gating:vertex>
            <gating:coordinate data-type:value="5" />
            <gating:coordinate data-type:value="5" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="500" />
            <gating:coordinate data-type:value="5" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="500" />
            <gating:coordinate data-type:value="500" />
        </gating:vertex>
    </gating:PolygonGate>
    
    <gating:EllipsoidGate gating:id="Ellipse1">
        <data-type:custom_info>
            Half-axes of this ellipse are 10 and 5, rotation 45 degress. 
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="uncompensated">
            <data-type:fcs-dimension data-type:name="FL3-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="uncompensated">
            <data-type:fcs-dimension data-type:name="FL4-H" />
        </gating:dimension>
        <gating:mean>
            <gating:coordinate data-type:value="12.99701" />
            <gating:coordinate data-type:value="16.22941" />
        </gating:mean>
        <gating:covarianceMatrix>
            <gating:row>
                <gating:entry data-type:value="62.5" />
                <gating:entry data-type:value="37.5" />
            </gating:row>
            <gating:row>
                <gating:entry data-type:value="37.5" />
                <gating:entry data-type:value="62.5" />
            </gating:row>
        </gating:covarianceMatrix>
        <gating:distanceSquare data-type:value="1" />
    </gating:EllipsoidGate>
    
    <gating:EllipsoidGate gating:id="Ellipsoid3D">
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL3-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL4-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
        <gating:mean>
            <gating:coordinate data-type:value="40.3" />
            <gating:coordinate data-type:value="30.6" />
            <gating:coordinate data-type:value="20.8" />
        </gating:mean>
        <gating:covarianceMatrix>
            <gating:row>
                <gating:entry data-type:value="2.5" />
                <gating:entry data-type:value="7.5" />
                <gating:entry data-type:value="17.5" />
            </gating:row>
            <gating:row>
                <gating:entry data-type:value="7.5" />
                <gating:entry data-type:value="7" />
                <gating:entry data-type:value="13.5" />
            </gating:row>
            <gating:row>
                <gating:entry data-type:value="15.5" />
                <gating:entry data-type:value="13.5" />
                <gating:entry data-type:value="4.3" />
            </gating:row>
        </gating:covarianceMatrix>
        <gating:distanceSquare data-type:value="1" />
    </gating:EllipsoidGate>
    
    <gating:RectangleGate gating:id="Range2">
        <data-type:custom_info>
            Gating on time is rarely useful but it is still a legal gate.
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="20" gating:max="80">
            <data-type:fcs-dimension data-type:name="Time" />
        </gating:dimension>
    </gating:RectangleGate>

    <gating:PolygonGate gating:id="Polygon2">
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL4-H" />
        </gating:dimension>
        <gating:vertex>
            <gating:coordinate data-type:value="20" />
            <gating:coordinate data-type:value="10" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="120" />
            <gating:coordinate data-type:value="10" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="120" />
            <gating:coordinate data-type:value="160" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="20" />
            <gating:coordinate data-type:value="160" />
        </gating:vertex>
    </gating:PolygonGate>
    
    <gating:QuadrantGate gating:id="Quadrant1">
        <gating:divider gating:id="FL2" gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL2-H" />
            <gating:value>12.14748</gating:value>
        </gating:divider>
        <gating:divider gating:id="FL4" gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL4-H" />
            <gating:value>14.22417</gating:value>
        </gating:divider>
        <gating:Quadrant gating:id="FL2P-FL4P">
            <gating:position gating:divider_ref="FL2" gating:location="15" />
            <gating:position gating:divider_ref="FL4" gating:location="15" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FL2N-FL4P">
            <gating:position gating:divider_ref="FL2" gating:location="5" />
            <gating:position gating:divider_ref="FL4" gating:location="15" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FL2N-FL4N">
            <gating:position gating:divider_ref="FL2" gating:location="5" />
            <gating:position gating:divider_ref="FL4" gating:location="5" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FL2P-FL4N">
            <gating:position gating:divider_ref="FL2" gating:location="15" />
            <gating:position gating:divider_ref="FL4" gating:location="5" />
        </gating:Quadrant>
    </gating:QuadrantGate>
    
    <gating:PolygonGate gating:id="Polygon3NS">
        <gating:dimension gating:compensation-ref="uncompensated">
            <data-type:fcs-dimension data-type:name="SSC-H" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="FCS">
            <data-type:fcs-dimension data-type:name="FL3-H" />
        </gating:dimension>
        <gating:vertex>
            <gating:coordinate data-type:value="10" />
            <gating:coordinate data-type:value="10" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="500" />
            <gating:coordinate data-type:value="10" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="500" />
            <gating:coordinate data-type:value="390" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="100" />
            <gating:coordinate data-type:value="390" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="100" />
            <gating:coordinate data-type:value="180" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="200" />
            <gating:coordinate data-type:value="180" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="200" />
            <gating:coordinate data-type:value="300" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="10" />
            <gating:coordinate data-type:value="300" />
        </gating:vertex>
    </gating:PolygonGate>
    
    <transforms:transformation transforms:id="FL2Rat1">
        <transforms:fratio transforms:A="1" transforms:B="0" transforms:C="-1">
            <data-type:fcs-dimension data-type:name="FL2-H" />
            <data-type:fcs-dimension data-type:name="FL2-A" />
        </transforms:fratio>
    </transforms:transformation>

    <transforms:transformation transforms:id="FL2Rat2">
        <transforms:fratio transforms:A="2.7" transforms:B="-100" transforms:C="-300">
            <data-type:fcs-dimension data-type:name="FL2-H" />
            <data-type:fcs-dimension data-type:name="FL2-A" />
        </transforms:fratio>
    </transforms:transformation>
    
    <gating:RectangleGate gating:id="RatRange1">
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="3" gating:max="16.4">
            <data-type:new-dimension data-type:transformation-ref="FL2Rat1" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="RatRange2">
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="0.95" gating:max="1.05">
            <data-type:new-dimension data-type:transformation-ref="FL2Rat2" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <transforms:transformation transforms:id="MyRatLog">
        <transforms:flog transforms:T="100" transforms:M="2" />
    </transforms:transformation>
    
    <gating:RectangleGate gating:id="RatRange1a">
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="0.40625" gating:max="0.6601562" gating:transformation-ref="MyRatLog">
            <data-type:new-dimension data-type:transformation-ref="FL2Rat1" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:QuadrantGate gating:id="Quadrant2">
        <gating:divider gating:id="FSC" gating:compensation-ref="uncompensated">
            <data-type:fcs-dimension data-type:name="FSC-H" />
            <gating:value>28.0654</gating:value>
            <gating:value>70.02725</gating:value>
        </gating:divider>
        <gating:divider gating:id="SSC" gating:compensation-ref="uncompensated">
            <data-type:fcs-dimension data-type:name="SSC-H" />
            <gating:value>17.75</gating:value>
        </gating:divider>
        <gating:divider gating:id="FL1" gating:compensation-ref="uncompensated">
            <data-type:fcs-dimension data-type:name="FL1-H" />
            <gating:value>6.43567</gating:value>
        </gating:divider>
        <gating:Quadrant gating:id="FSCN-SSCN">
            <gating:position gating:divider_ref="FSC" gating:location="10" />
            <gating:position gating:divider_ref="SSC" gating:location="10" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FSCD-SSCN-FL1N">
            <gating:position gating:divider_ref="FSC" gating:location="30" />
            <gating:position gating:divider_ref="SSC" gating:location="10" />
            <gating:position gating:divider_ref="FL1" gating:location="5" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FSCP-SSCN-FL1N">
            <gating:position gating:divider_ref="FSC" gating:location="80" />
            <gating:position gating:divider_ref="SSC" gating:location="10" />
            <gating:position gating:divider_ref="FL1" gating:location="5" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FSCD-FL1P">
            <gating:position gating:divider_ref="FSC" gating:location="30" />
            <gating:position gating:divider_ref="FL1" gating:location="10" />
        </gating:Quadrant>
        <gating:Quadrant gating:id="FSCN-SSCP-FL1P">
            <gating:position gating:divider_ref="FSC" gating:location="10" />
            <gating:position gating:divider_ref="SSC" gating:location="20" />
            <gating:position gating:divider_ref="FL1" gating:location="15" />
        </gating:Quadrant>
    </gating:QuadrantGate>
    
    <gating:BooleanGate gating:id="And1">
        <gating:and>
            <gating:gateReference gating:ref="Polygon1" />
            <gating:gateReference gating:ref="Range2" />
        </gating:and>
    </gating:BooleanGate>
    
    <gating:BooleanGate gating:id="And2">
        <gating:and>
            <gating:gateReference gating:ref="Range1" />
            <gating:gateReference gating:ref="Ellipse1" />
            <gating:gateReference gating:ref="Polygon1" />
        </gating:and>
    </gating:BooleanGate>
    
    <gating:BooleanGate gating:id="Or1">
        <gating:or>
            <gating:gateReference gating:ref="Range1" />
            <gating:gateReference gating:ref="Ellipse1" />
            <gating:gateReference gating:ref="Polygon1" />
        </gating:or>
    </gating:BooleanGate>

    <gating:BooleanGate gating:id="And3">
        <gating:and>
            <gating:gateReference gating:ref="Range1" />
            <gating:gateReference gating:ref="Ellipse1" gating:use-as-complement="true" />
            <gating:gateReference gating:ref="Polygon1" />
        </gating:and>
    </gating:BooleanGate>
    
    <gating:BooleanGate gating:id="Not1">
        <gating:not>
            <gating:gateReference gating:ref="Ellipse1" />
        </gating:not>
    </gating:BooleanGate>
    
    <gating:BooleanGate gating:id="And4">
        <gating:and>
            <gating:gateReference gating:ref="Range1" />
            <gating:gateReference gating:ref="Not1" />
            <gating:gateReference gating:ref="Polygon1" />
        </gating:and>
    </gating:BooleanGate>

    <gating:BooleanGate gating:id="Or2">
        <gating:or>
            <gating:gateReference gating:ref="Rectangle2" />
            <gating:gateReference gating:ref="FL2N-FL4N" gating:use-as-complement="true" />
        </gating:or>
    </gating:BooleanGate>
    
    <transforms:spectrumMatrix transforms:id="MySpill">
        <transforms:fluorochromes>
            <data-type:fcs-dimension data-type:name="FITC" />
            <data-type:fcs-dimension data-type:name="PE" />
            <data-type:fcs-dimension data-type:name="PerCP" />
        </transforms:fluorochromes>
        <transforms:detectors>
            <data-type:fcs-dimension data-type:name="FL1-H" />
            <data-type:fcs-dimension data-type:name="FL2-H" />
            <data-type:fcs-dimension data-type:name="FL3-H" />
        </transforms:detectors>
        <transforms:spectrum>
            <transforms:coefficient transforms:value="1" />
            <transforms:coefficient transforms:value="0.02" />
            <transforms:coefficient transforms:value="0.06" />
        </transforms:spectrum>
        <transforms:spectrum>
            <transforms:coefficient transforms:value="0.11" />
            <transforms:coefficient transforms:value="1" />
            <transforms:coefficient transforms:value="0.07" />
        </transforms:spectrum>
        <transforms:spectrum>
            <transforms:coefficient transforms:value="0.09" />
            <transforms:coefficient transforms:value="0.01" />
            <transforms:coefficient transforms:value="1" />
        </transforms:spectrum>
    </transforms:spectrumMatrix>
    
    <gating:PolygonGate gating:id="Polygon3">
        <data-type:custom_info>
            Same as Polygon 1 except for compensation.
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="MySpill">
            <data-type:fcs-dimension data-type:name="PE" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="MySpill">
            <data-type:fcs-dimension data-type:name="PerCP" />
        </gating:dimension>
        <gating:vertex>
            <gating:coordinate data-type:value="5" />
            <gating:coordinate data-type:value="5" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="500" />
            <gating:coordinate data-type:value="5" />
        </gating:vertex>
        <gating:vertex>
            <gating:coordinate data-type:value="500" />
            <gating:coordinate data-type:value="500" />
        </gating:vertex>
    </gating:PolygonGate>
    
    <gating:RectangleGate gating:id="Rectangle3">
        <gating:dimension gating:compensation-ref="MySpill" gating:min="5" gating:max="70">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="MySpill" gating:min="9" gating:max="208">
            <data-type:fcs-dimension data-type:name="PE" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="Rectangle4">
        <gating:dimension gating:compensation-ref="MySpill" gating:min="7" gating:max="90">
            <data-type:fcs-dimension data-type:name="PerCP" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="10" gating:max="133">
            <data-type:fcs-dimension data-type:name="FSC-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="Rectangle5">
        <data-type:custom_info>
            Similar to Rectangle4 except FSC-H interval is one way open
        </data-type:custom_info>
        <gating:dimension gating:compensation-ref="MySpill" gating:min="7" gating:max="90">
            <data-type:fcs-dimension data-type:name="PerCP" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="uncompensated" gating:min="10">
            <data-type:fcs-dimension data-type:name="FSC-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <transforms:transformation transforms:id="AsinH_10000_4_1">
        <transforms:fasinh transforms:T="10000" transforms:M="4" transforms:A="1" />
    </transforms:transformation>

    <transforms:transformation transforms:id="Hyperlog_10000_1_4.5_0">
        <transforms:hyperlog transforms:T="10000" transforms:W="1" transforms:M="4.5" transforms:A="1" />
    </transforms:transformation>
    
    <transforms:transformation transforms:id="Linear_10000_500">
        <transforms:flin transforms:T="10000" transforms:A="500" />
    </transforms:transformation>
    
    <transforms:transformation transforms:id="Logicle_10000_0.5_4.5_0">
        <transforms:logicle transforms:T="10000" transforms:W="0.5" transforms:M="4.5" transforms:A="0" />
    </transforms:transformation>

    <transforms:transformation transforms:id="Logicle_10000_1_4_0.5">
        <transforms:logicle transforms:T="10000" transforms:W="1" transforms:M="4" transforms:A="0.5" />
    </transforms:transformation>
    
    <transforms:transformation transforms:id="Logarithmic_10000_5">
        <transforms:flog transforms:T="10000" transforms:M="5" />
    </transforms:transformation>
    
    <gating:RectangleGate gating:id="ScaleRange1">
        <gating:dimension gating:compensation-ref="uncompensated" gating:transformation-ref="AsinH_10000_4_1" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange2">
        <gating:dimension gating:compensation-ref="uncompensated" gating:transformation-ref="Hyperlog_10000_1_4.5_0" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>

    <gating:RectangleGate gating:id="ScaleRange3">
        <gating:dimension gating:compensation-ref="uncompensated" gating:transformation-ref="Linear_10000_500" 
            gating:min="0.049" gating:max="0.055">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange4">
        <gating:dimension gating:compensation-ref="uncompensated" gating:transformation-ref="Logicle_10000_0.5_4.5_0" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>

    <gating:RectangleGate gating:id="ScaleRange5">
        <gating:dimension gating:compensation-ref="uncompensated" gating:transformation-ref="Logicle_10000_1_4_0.5" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange6">
        <gating:dimension gating:compensation-ref="uncompensated" gating:transformation-ref="Logarithmic_10000_5" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FL1-H" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange1c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="AsinH_10000_4_1" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange2c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Hyperlog_10000_1_4.5_0" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange3c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Linear_10000_500" 
            gating:min="0.049" gating:max="0.055">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange4c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Logicle_10000_0.5_4.5_0" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange5c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Logicle_10000_1_4_0.5" 
            gating:min="0.37" gating:max="0.63">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
    </gating:RectangleGate>    
    
    <gating:RectangleGate gating:id="ScaleRect1">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Logicle_10000_0.5_4.5_0" 
            gating:min="0.31" gating:max="0.69">
            <data-type:fcs-dimension data-type:name="PE" />
        </gating:dimension>
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Logicle_10000_0.5_4.5_0" 
            gating:min="0.27" gating:max="0.73">
            <data-type:fcs-dimension data-type:name="PerCP" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:BooleanGate gating:id="ParAnd2" gating:parent_id="Polygon1">
        <data-type:custom_info>
            Same events as in And2; now expressed using parent gates. 
        </data-type:custom_info>
        <gating:and>
            <gating:gateReference gating:ref="Range1" />
            <gating:gateReference gating:ref="Ellipse1" />
        </gating:and>
    </gating:BooleanGate>
    
    <gating:BooleanGate gating:id="ParAnd3" gating:parent_id="Range1">
        <gating:and>
            <gating:gateReference gating:ref="Ellipse1" gating:use-as-complement="true" />
            <gating:gateReference gating:ref="Polygon1" />
        </gating:and>
    </gating:BooleanGate>
    
    <gating:RectangleGate gating:id="ScalePar1" gating:parent_id="ScaleRect1">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Hyperlog_10000_1_4.5_0" 
            gating:min="0.12" gating:max="0.43">
            <data-type:fcs-dimension data-type:name="FITC" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange6c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="AsinH_10000_4_1" 
            gating:min="0.09" gating:max="0.36">
            <data-type:fcs-dimension data-type:name="PE" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange7c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Hyperlog_10000_1_4.5_0" 
            gating:min="0.09" gating:max="0.36">
            <data-type:fcs-dimension data-type:name="PE" />
        </gating:dimension>
    </gating:RectangleGate>
    
    <gating:RectangleGate gating:id="ScaleRange8c">
        <gating:dimension gating:compensation-ref="MySpill" gating:transformation-ref="Logicle_10000_1_4_0.5" 
            gating:min="0.09" gating:max="0.36">
            <data-type:fcs-dimension data-type:name="PE" />
        </gating:dimension>
    </gating:RectangleGate>    
    
</gating:Gating-ML>
