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.
0024
0025 ```
0026 mkdir plots
0027 source /opt/detector/epic-main/bin/thisepic.sh
0028 root -l -b -q hit_matching.C
0029 ```