Project

General

Profile

Adding DDT information to Offline Monte Carlo

This page will describe how to add in DDT data products to an offline MC file. This process is useful for comparing the DDT performance to that of the offline reconstruction and to truth information.

In the offline MC cell hits are stored as RawDigits, in the DDT we use DAQHits. The first stage of adding in DDT products to an offline file is therefore to convert the Raw Digits into DAQHits. This is done using the aptly name RawHit2DAQHit module which lives in the DDTConverters package of the offline repository. An example fcl file which simply adds the DAQHits to the current file is provide: rawdigit2daqhitjob.fcl.

An example of how to run this would be:

setup_nova
newrel -t development sandbox
cd sandbox
srt_setup -a
addpkg_svn -h DDTConverters
make
nova -c job/rawdigit2daqhitjob.fcl -n 10 -o out.root /nova/data/mc/S13-06-13/genie/fd/fd_r0000001_s01_S13-06-13_v1_genie_3000_fhc_nonswap_20121129_181947.sim.pidpart.root

This will result in the addition of novaddt::DAQHits_daqhit__DAQConvert to the new file out.root. Now we have the DAQHits in our file we can run the DDT algorithms on them in order to add in the DDT data products. DDT algorithms exist in the DDT repository rather than the offline one so the syntax for adding them in is slightly different. e.g. for the Tracking module:

addpkg_svn -d svn+ssh://p-novaddt@cdcvs.fnal.gov/cvs/projects/novaddt/novaddt.svn/ -h Tracking
make
You only need to check this package out if you are planning to make changes to it.

An example fcl file is provided in the DDTConverters package which will use all of the above to run the TriCellTrigger: rawdigit2daqhit_plusddt_job.fcl. To run this:

nova -c job/rawdigit2daqhit_plusddt_job.fcl -n 10 -o out-ddt.root /nova/data/mc/S13-06-13/genie/fd/fd_r0000001_s01_S13-06-13_v1_genie_3000_fhc_nonswap_20121129_181947.sim.pidpart.root

The resultant file will have the following new data products in:

novaddt::DAQHitsnovaddt::Trackvoidart::Assns_track__OfflineDDT.
novaddt::DAQHitsnovaddt::TriggerDecisionvoidart::Assns_numutesttrigger__OfflineDDT.
art::TriggerResults_TriggerResults__OfflineDDT.
novaddt::TDCnovaddt::GroupedHitList_timeslice_TDCSlice_OfflineDDT.
novaddt::TDCnovaddt::GroupedHitList_removenoise_TDCSliceClean_OfflineDDT.
novaddt::DAQHits_daqhit__OfflineDDT.
novaddt::DAQHits_tdcsort_TDCSortedHits_OfflineDDT.
novaddt::Tracks_track__OfflineDDT.
novaddt::TriggerDecisions_tricelltrigger__OfflineDDT.
novaddt::DAQHitss_track__OfflineDDT.
novaddt::DAQHitss_spaceslice_TimeSpaceSlice_OfflineDDT.

which can be accessed and analysed in the normal manner. In case of problems of questions contact .