Dec 2012 NQS Session¶
- make some progress on parallel i/o issues: using HDF5 for reading and writing of event data. We will ignore as much metadata as we can.
- make some progress on Hough algorithm in parallel version: CUDA and TBB.
We are not planning on doing an OpenMP solution for the Hough algorithm.
We are ignoring the MPI i/o facilities of HDF5.
We will still need ROOT dictionaries for whatever is used in the product-finding code.
We have both SOA and AOS versions of the data products for this task. We have the products:
We can hand-code the i/o code for the current data products. We should keep an eye out for how we might find or write a tool that would generate the code to read and write data structures based on a data definition language. One candidate DDL is Google's protocol buffers.
Keep an eye out for what dependencies we have upon ROOT for our event queries. Also note any use of Reflex, because it has gone away.
- Deal with persisting the SOA version of data first
- Use the
Sourceclass template to write an input module that reads HDF5
- Write an output module that writes HDF5. We will only have one active output module (at least at a time); we don't care about parallel i/o now. Eventually we will want to have to module instances writing to the same file from different threads. We don't need to do this now!
- We only have to have
getByLabelworking; no other event-searching functions need to work (probably can skip all history information)
- Use HDF5 to save the
ParameterSetused to configure the program (top-level object, and all its contents)
Hough algorithm tasks¶
We can identify several steps to the algorithm.
- Filtering of hits:
- Clustering of hits in time (may be done by histogram binning)
- Identification of the subset of clusters that are interesting (signal clusters vs. noise clusters);
- tagging the hit data to indicate what hits belong to each cluster; possibly extract the clusters or hits as data products (which may or may not be event data products)
- Hough transform:
- Generate all pairs of hits within each cluster
- Calculate Hough parameters for each pair of hits
- Fill the Hough space histogram
- Identify peaks in the Hough space histogram
- Identify the hits which contribute to each peak; these are our track candidates
- Calculate the track parameters from the hits
- Calculate residuals for hits from the found track
Our immediate goal is an adequate, not optimal, solution, engineered sufficiently well that it can be upgraded.
We'll implement an algorithm first in C++, and then in CUDA and using TBB.
We will do comparison of the found tracks to the MC truth information externally to this code.