<!--
    Example LCSim steering file to run simple HPS ECal clustering and analysis.
-->
<lcsim xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" 
       xs:noNamespaceSchemaLocation="http://www.lcsim.org/schemas/lcsim/1.0/lcsim.xsd">
    <inputFiles>
        <file>${inputFile}.slcio</file>
    </inputFiles>
    <control>
        <numberOfEvents>10000</numberOfEvents>
        <printInputFiles>true</printInputFiles>
    </control>
    <classpath>
        <jar>~/.m2/repository/org/lcsim/hps-java/1.0-SNAPSHOT/hps-java-1.0-SNAPSHOT.jar</jar>
    </classpath>
    <execute>
	<driver name="EcalReadout"/>
	<driver name="ClockDriver"/>
    </execute>
    <drivers>
        <driver name="Writer"
                type="org.lcsim.util.loop.LCIODriver">
            <outputFilePath>${inputFile}_ecalReadout</outputFilePath>
        </driver>
        <driver name="EcalReadout"
                type="org.lcsim.hps.recon.ecal.HPSEcalTimeEvolutionReadoutDriver">
            <readoutCycle>8</readoutCycle>
            <ecalName>Ecal</ecalName>
            <ecalCollectionName>EcalHits</ecalCollectionName>
	    <ecalRawCollectionName>EcalRawHits</ecalRawCollectionName>
	    <threshold>0.0001</threshold>
        </driver>
        <driver name="EventMarkerDriver"
                type="org.lcsim.job.EventMarkerDriver">
            <eventInterval>100</eventInterval>
        </driver>
        <driver name="EcalClusterer"
                type="org.lcsim.hps.recon.ecal.HPSEcal1BitClusterer">
<!--                type="org.lcsim.hps.recon.ecal.HPSEcalClusterer">-->
            <hitEMin>0.2</hitEMin>
            <clusterThreshold>0</clusterThreshold>
            <ecalName>Ecal</ecalName>
            <ecalCollectionName>EcalRawHits</ecalCollectionName>
        </driver>
        <driver name="EcalPlots"
                type="org.lcsim.hps.analysis.ecal.HPSEcalPlotsDriver">
            <ecalCollectionName>EcalRawHits</ecalCollectionName>
        </driver>
        <driver name="AidaSaveDriver"
                type="org.lcsim.job.AidaSaveDriver">
            <outputFileName>${inputFile}_ecalPlots</outputFileName>
        </driver>
        <driver name="ClockDriver"
                type="org.lcsim.hps.util.ClockDriver">
	    <dt>2.0</dt>
        </driver>
    </drivers>
</lcsim>
