Make single particle MC with the PMT beam readout window - twongjirad/LArLiteSoftCookBook GitHub Wiki
The answer
As of 12/3/2015 the readout beam window is now made by default. However, there are changes to the optical MC that now only reside in local directories. I am not sure what the path is towards bringing these modifications back into the repo.
But here is Taritree's local copy:
/uboone/app/users/tmw/dev/mcc7.0_kazu
Here is the source from Kazu (warning this and the above will probably diverge):
/uboone/app/users/uboonepro/mcc7.0/lar_v04_29_02
checkout the scripts here
note that any single particle fcl file (in ubooncode/fcl/gen/single) will "probably" work
As of 10/22/2015 this requires a special module not in develop. To get it, when you check out your desired version of uboonecode, do
git merge origin/feature/tmw_mcfakebnbgate
Hopefully it merges without a problem.
The scripts above show where to insert it in the processing chain (i.e. the detsim stage).
Annotation
by default, the PMT readout will only produce cosmic discriminator windows. This is because the event generator (larsim/EventGenerator/SingleGen_module.cc) does not make a sim::BeamGateInfo data product (larsim/Simulation/BeamGateInfo). This is used by ubooncecode/uboone/OpticalADCSim_module.cc to determine if a beam window readout is needed.
references
that sounded like a lot of PMT readout gobbledegook? then, go here for some background info.