Warning, /snippets/Tracking/TrackHitContributions/README.md is written in an unsupported language. File is not indexed.
0001 # Analysis code for studying track measurement, outlier, and hole hits
0002
0003 Generating single negative muon events
0004 ----------------------------------------
0005 In the container, do the following:
0006
0007 ```
0008 mkdir output
0009
0010 source /opt/detector/epic-main/bin/thisepic.sh
0011
0012 npsim --compactFile $DETECTOR_PATH/epic_craterlake.xml --enableGun --gun.distribution 'eta' \
0013 --gun.thetaMax 3.106 --gun.thetaMin 0.036 --gun.momentumMin "2.0*GeV" --gun.momentumMax "2.0*GeV" \
0014 --numberOfEvents 10000 --gun.position 0,0,0 --outputFile output/output_2GeV.edm4hep.root
0015
0016 eicrecon -Ppodio:output_file=output/eicrecon_out_2GeV.root -Pjana:nevents=10000 -Pdd4hep:xml_files=epic_craterlake.xml output/output_2GeV.edm4hep.root
0017 ```
0018
0019 This will generate 10,000 single negative muon events with 2 GeV/c momentum, eta = [-4,4], and phi = [0,2Pi].
0020
0021 Running the analysis code
0022 ---------------------
0023 The analysis code needs to be run in the container, since it uses PODIO classes. If you want to print out information for every event, set the ```print_evt_info``` variable to true. (N.B. There sometimes is an issue when using the CLING interpreter. So, the code should be run in compiled mode.)
0024
0025 ```
0026 mkdir plots
0027 ln -sf output/output_2GeV.edm4hep.root hit_matching.input.root
0028 source /opt/detector/epic-main/bin/thisepic.sh
0029 root -l -b -q hit_matching.C+
0030 ```
0031
0032 If your `compactFile` happens to include so-called 2DStrip MPGDs, you may want to boost the processing of those by supplying a geometry file:
0033
0034 ```
0035 ln -sf detector_geometry.2DStrip.root hit_matching.geometry.root
0036 ```
0037 where the geometry file can be obtained with:
0038
0039 ```
0040 dd_web_display -o detector_geometry.2DStrip.root --export $DETECTOR_PATH/epic_craterlake_tracking_2DStrip.xml
0041 ```
0042