<!-- 
  Steering file for running DataQualityMonitoring classes on reconstructed data
  @author Matt Graham <mgraham@slac.stanford.edu>
-->
<lcsim xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" 
       xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/lcsim/1.0/lcsim.xsd">
    <execute>
        <driver name="EventMarkerDriver"/>
        <!--        <driver name="DQMDatabaseDriver"/>  -->
        <driver name="EventFlagFilter"/>

        <driver name="RawTrackerHitSensorSetup"/>
    
         <!--<driver name="FinalStateMonitoringGBLPairs1"/>               -->
<!--        <driver name="V0MonitoringGBLPairs1"/>          
        <driver name="TridentMonitoringGBLPairs1"/>     
        <driver name="MollerMonitoringGBL"/>     -->
        <!--           -->
        <driver name="TridentTuple"/>
        <driver name="MollerTuple"/>
        <driver name="FEETuple"/>
<!--        <driver name="AidaSaveDriver"/>-->
        <driver name="CleanupDriver"/>
    </execute>    
    <drivers>    
        <driver name="EventMarkerDriver" type="org.lcsim.job.EventMarkerDriver">
            <eventInterval>1000</eventInterval>
        </driver>        
        <driver name="RawTrackerHitSensorSetup" type="org.lcsim.recon.tracking.digitization.sisim.config.RawTrackerHitSensorSetup">
            <readoutCollections>SVTRawTrackerHits</readoutCollections>
        </driver>
        <driver name="EventFlagFilter" 
                type="org.hps.recon.filtering.EventFlagFilter">
        </driver>

        <driver name="AidaSaveDriver" type="org.lcsim.job.AidaSaveDriver">
            <outputFileName>${outputFile}.root</outputFileName>
        </driver>

        <driver name="FinalStateMonitoringGBLPairs1" type="org.hps.analysis.dataquality.FinalStateMonitoring">
            <triggerType>pairs1</triggerType>
            <isGBL>true</isGBL>
        </driver>
        <driver name="V0MonitoringGBLPairs1" type="org.hps.analysis.dataquality.V0Monitoring">
            <triggerType>pairs1</triggerType>
            <isGBL>true</isGBL>
        </driver>
        <driver name="TridentMonitoringGBLPairs1" type="org.hps.analysis.dataquality.TridentMonitoring">
            <triggerType>pairs1</triggerType>
            <isGBL>true</isGBL>
        </driver>
        <driver name="MollerMonitoringGBL" type="org.hps.analysis.dataquality.MollerMonitoring">
            <triggerType>all</triggerType>
            <isGBL>true</isGBL>
        </driver>
        <driver name="TridentTuple" type="org.hps.analysis.tuple.TridentTupleDriver">
            <triggerType>all</triggerType>
            <isGBL>true</isGBL>
            <tupleFile>${outputFile}_tri.txt</tupleFile>
            <cutTuple>true</cutTuple>
            <topDOmega>-1.04e-6</topDOmega>
            <botDOmega>0.83e-6</botDOmega>
            <topDLambda>-5e-4</topDLambda>
            <botDLambda>13e-4</botDLambda>
            <topDPhi>1.5e-3</topDPhi>
            <botDPhi>-0.3e-3</botDPhi>
            <topDZ0>0.14</topDZ0>
            <botDZ0>-0.16</botDZ0>
        </driver>
        <driver name="MollerTuple" type="org.hps.analysis.tuple.MollerTupleDriver">
            <triggerType>all</triggerType>
            <isGBL>true</isGBL>
            <tupleFile>${outputFile}_moller.txt</tupleFile>
            <cutTuple>true</cutTuple>
            <topDOmega>-1.04e-6</topDOmega>
            <botDOmega>0.83e-6</botDOmega>
            <topDLambda>-5e-4</topDLambda>
            <botDLambda>13e-4</botDLambda>
            <topDPhi>1.5e-3</topDPhi>
            <botDPhi>-0.3e-3</botDPhi>
            <topDZ0>0.14</topDZ0>
            <botDZ0>-0.16</botDZ0>
        </driver>
        <driver name="FEETuple" type="org.hps.analysis.tuple.FEETupleDriver">
            <triggerType>all</triggerType>
            <isGBL>true</isGBL>
            <tupleFile>${outputFile}_fee.txt</tupleFile>
            <cutTuple>true</cutTuple>
            <topDOmega>-1.04e-6</topDOmega>
            <botDOmega>0.83e-6</botDOmega>
            <topDLambda>-5e-4</topDLambda>
            <botDLambda>13e-4</botDLambda>
            <topDPhi>1.5e-3</topDPhi>
            <botDPhi>-0.3e-3</botDPhi>
            <topDZ0>0.14</topDZ0>
            <botDZ0>-0.16</botDZ0>
        </driver>


        <driver name="CleanupDriver" type="org.lcsim.recon.tracking.digitization.sisim.config.ReadoutCleanupDriver"/>

    </drivers>
</lcsim>

