Tracking example 01: Analyzing Monte Carlo events

In this example we will show how to run the tracking analyzer on events generated by the QweakSimG4 Monte Carlo simulation. The output format will be explained.

We will assume that you have a suitable data file available, or that you have access to an example data file on the JLab group disk. You can also download an example data file from the wiki at https://qweak.jlab.org/wiki/index.php/Reference_Data_Files, or directly from http://qweak.jlab.org/Example_datafiles/QwSim_100.root. Store this data file in your '$QWSCRATCH/data' directory.

To analyze the example data file corresponding to run number 100 (the suffix after QwSim) and only considering the events from 1 to 10, execute the following command (make sure that your environment settings are correct):

   bin/qwsimtracking -r 100 -e 1:10

This should give you output that looks like this (for every event):

   Reading event 10
   Region 1: 1,1 hit(s).
   Region 2: 1,1,1,1,1,1,1,1,1,1,1,1 hit(s).
   Region 3: 1,1,1,1 hit(s).
   Target vertex at : (-8.19734,27.728,0)
   HDC front hit at : (-0.555645,27.6773,-341.749)
   HDC back  hit at : (-0.640838,27.6779,-337.939)
   Partial track direction vector: (-0.022355,0.000148421,0.99975)
   Partial track direction angle: theta=1.28098 deg, phi=-0.380397 deg
   direction vector calculated from mx,my: (-0.022355, 0.000148421, 0.99975)  theta=1.28098, phi=-0.380397

Generated on 19 Feb 2017 for QwAnalysis by  doxygen 1.6.1