Project

General

Profile

Wiki » History » Version 12

Version 11 (Aaron Higuera Pichardo, 07/05/2018 07:07 PM) → Version 12/19 (Aaron Higuera Pichardo, 07/05/2018 07:08 PM)

h1. Wiki

h2. Simulation of nucleon decay events at DUNE FD

To simulate nucleon decay events a GENIE-based generation has been implemented. A total of 68 single-nucleon exclusive decay channels listed in the 2016 update of the PDG have been included, the list includes 2-, 3- and 5-body decays.

The following is a quick guide on how to generated nucleon decay events using DUNE software platform. Before you starting you most have your computing privileges and accounts, including an account on the dune gpvm nodes (e.g. dunegpvm01.fnal.gov) set. The following assumes you are working on one of the dune gpvm nodes.

# First do
<pre>source /grid/fermiapp/products/dune/setup_dune.sh</pre>
# Then, setup dunetpc (chose your version you want to setup, to check the list of versions available you can do "ups list -aK+ dunetpc"
<pre> setup dunetpc v06_82_00 -q "prof:e15"</pre>
This will automatically setup larsoft as well, dunetpc is particular implementation of LArsoft. You should then be able to run any fhicl file. (For more information related to dunetpc please visit dunetpc wiki page https://cdcvs.fnal.gov/redmine/projects/dunetpc/wiki/_Tutorial_)
# Then, you can generate nucleon decay events using the corresponding fhicl file under /dunetpc/fcl/dunefd/gen/ndk/prodndk_dune10kt_1x2x6.fcl by doing
<pre>lar -c prodndk_dune10kt_1x2x6.fcl -n 10 </pre>
This will generated 10 events of proton decay p --> K + nu_bar using DUNE FD geometry 1x2x6 geometry configuration, the decay mode by default is 19 following the PDG convention. To generated a different decay mode you will need to add these lines to your fhicl file
<pre>physics.producers.generator.DecayMode: 1
physics.producers.generator.DecayedNucleon: 2212
</pre>
This would generated p-->pi_zero+e^{+}. Full decay mode list can be found here. ([[Nucleon decay mode list]])
# Once you have finished with the generation of events you will need to following the standard geant4 simulation, detector simulation and reconstruction using the corresponding fhicl files. You can find them at

<pre>/dunetpc/fcl/dunefd/g4/standard_g4_dune10kt_1x2x6.fcl
/dunetpc/fcl/dunefd/detsim/standard_detsim_dune10kt_1x2x6.fcl
/dunetpc/fcl/dunefd/reco/standard_reco_dune10kt_1x2x6.fcl
</pre>

h2. dunendk Analysis module

To analyze the reconstructed LArSoft files an analysis module has been developed, the module will save reconstructed objects, tracks, showers, PIDA values, etc and truth information into a ROOT Tree for further analysis
To use the analysis module a quick guide is described below

# Follow the two first steps from the previous section
# Now, you should make a new directory where you intend to put your code (*Do not use your home directory*)
<pre>mkdir mydunendkAna
cd mydunendkAna
</pre>
# Then, inside the new directory, do
<pre>mrb newDev
</pre>
# Do the following to use the local release
<pre>source localProducts_XXXX/setup
</pre>

Now, pull down dunendk
<pre>cd srcs
mrb g dunendk
</pre>

IMPORTANT NOTE: dunendk repository depends on dunetpc please check the dunetpc version needed to pull down & compile dunendk, you can find that info at /ups/product_deps /ups/product_deps/ if a different version was setup an error message will appear