lcsim/scripts
diff -N lcsim_pfa_xml.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lcsim_pfa_xml.sh 30 Oct 2008 22:58:50 -0000 1.1
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+if [ "$#" -lt 5 ]
+then
+ echo "This script requires 5 arguments."
+ echo "./lcsim_pfa_xml.sh inputLcioFile numberOfEvents steeringFileName outputFileName cacheDirectory"
+ exit 1
+fi
+
+lciofile=$1
+nevents=$2
+steeringfile=$3
+outputfile=$4
+cachedir=$5
+
+echo lciofile=$1
+echo nevents=$2
+echo steeringfile=$3
+echo outputfile=$4
+echo cachedir=$5
+
+cat > ${steeringfile} << +EOF
+<lcsim>
+ <inputFiles>
+ <file>${lciofile}</file>
+ </inputFiles>
+
+ <execute>
+ <driver name="ReconDriver"/>
+ <driver name="LCIODriver"/>
+ </execute>
+
+ <control>
+ <numberOfEvents>${nevents}</numberOfEvents>
+ <cacheDirectory>${cachedir}</cacheDirectory>
+ </control>
+
+ <drivers>
+ <driver name="ReconDriver" type="org.lcsim.recon.ui.ReconDriver"/>
+ <driver name="LCIODriver" type="org.lcsim.util.loop.LCIODriver">
+ <outputFilePath>${outputfile}</outputFilePath>
+ <writeOnlyCollections>MCParticle ReconstructedParticles Clusters Tracks HelicalTrackHits HelicalTrackMCRelations EcalBarrHits EcalEndcapHits HcalBarrHits HcalEndcapHits MuonBarrHits MuonEndcapHits TkrBarrHits TkrEndcapHits TkrForwardHits VtxBarrHits VtxEndcapHits LumiCalHits BeamCalHits MCParticleEndPointEnergy</writeOnlyCollections>
+ </driver>
+ </drivers>
+</lcsim>
++EOF