TrkAnaTutorial

From Mu2eWiki
Revision as of 16:29, 23 May 2019 by Edmonds (talk | contribs)
Jump to navigation Jump to search

Under Construction!

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 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:

  1. run TrkAnaReco.fcl on MDC2018 reco output (without MC data and "candidate" tracks only)
 mu2e -c TrkDiag/fcl/TrkAnaReco.fcl -S mcs.lst --TFileName trkana.root
 
  • 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

  1. run TrkAnaReco.fcl on MDC2018 reco output (without MC data and "candidate" tracks only)
 mu2e -c TrkDiag/fcl/TrkAnaReco.fcl -S mcs.lst --TFileName trkana.root
 

Reference Materials

  • Use this place to add links to reference materials.
  • TrkAna wiki page