Single particle generation:

setup D0RunII p15.05.00
setup d0cvs
newrel -t p15.05.00 p150500
cd p150500
d0setwa
addpkg d0_mcpp_gen

first generate some single muons:
go to d0_mcpp_gen/rcp and do
cp ../single_rcp/SingleTau.rcp .
cp ../single_rcp/runMCSingle.rcp .
edit SingleTau.rcp and set the parameters as follows:
int ParticleID= 13
int AutoAnti=1
float high_pt=10.0
float low_pt=10.0
float high_eta=3.5float low_pt=10.0
float high_eta=3.5
float low_eta=-3.5
int EtaFlat= 1
edit runMCSingle.rcp and change single_tau to d0_mcpp_gen
edit MCNewEvent.rcp and set number of events to 1000
do MCSingle.x -rcp runMCSingle.rcp
the output is hand.file

put this into mcpp format
ln -s $isadecay decay
ln -s $ptable ptable
MCbyHand.x -rcp runMCbyHand.rcp
output is MCevents.dat
mv MCevents.dat gen.muons 

The mc_runjob script to process them after they are generated can be found at:

/home/sceno/mccertification/all_e_50

you will need to change the line that begins "cfg filestream define string SingleInputFile" to point to the file you generated above (gen.muons).