TrkAnaTutorial: Difference between revisions

From Mu2eWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(101 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Under Construction!=
The TrkAna tutorial is hosted within the GitHub repo [https://github.com/Mu2e/TrkAna/blob/main/tutorial/README.md here]
 
== Tutorial Session Goal ==
In this tutorial you will learn how to:
* create TrkAna trees using the Mu2e Offline software; and,
* analyze them using the ROOT command line and ROOT macros
 
== Session Prerequisites ==
This tutorial should be useful for anyone starting out with TrkAna tree analysis
 
Before starting this tutorial you should have:
* the appropriate docker container set up
* know that ROOT exists
 
== Brief Overview ==
A TrkAna tree is a ROOT [https://root.cern.ch/doc/master/classTTree.html TTree] where each entry in the tree represents a single track.
 
The TrkAna tree is created by the TrackAnalysisReco module of Mu2e Offline which runs on reco art files.
 
== Exercises ==
Skeleton plan:
 
# run TrkAnaReco.fcl on MDC2018 reco output (without MC data and "candidate" tracks only)
<nowiki>
mu2e -c TrkDiag/fcl/TrkAnaReco.fcl -S mcs.lst --TFileName trkana.root
</nowiki>
 
* create a simple plot from ROOT command line
** tracker momentum, calorimeter cluster energy
** do a simple integration?
** optional: make the plot prettier with TLine showing momentum window? can you change one number and have the lines change too
* run TrkAnaReco.fcl and add MC data
* create a second simple plot comparing data and MC
** intrinsic momentum resolution (and fit?)
** need to explain difference between primary, generator branches etc.
* run TrkAnaReco.fcl and add supplmental tracks
** look for reflected tracks or compare DeM and DmuM hypotheses?
* TrkAnaLoop macro
** cut flow plot
* Hit level diagnostics?
* TrkQual?
* EventWeights?
* Look at ensemble file?
 
Advanced:
* run reconstrucion.fcl on a digi file and then TrkAnaReco.fcl on top of that
** tweak some reconstruction parameters?
* retrain TrkQual?
 
=== Exercise 1: Getting a list of tracks ===
# run TrkAnaReco.fcl on MDC2018 reco output (without MC data and "candidate" tracks only)
<nowiki>
mu2e -c TrkDiag/fcl/TrkAnaReco.fcl -S mcs.lst --TFileName trkana.root
</nowiki>
== Reference Materials ==
* Use this place to add links to reference materials.
* TrkAna wiki page

Latest revision as of 18:21, 7 October 2023

The TrkAna tutorial is hosted within the GitHub repo here