TrkAnaTutorial: Difference between revisions

From Mu2eWiki
Jump to navigation Jump to search
(Created page with "=Under Construction!= == Tutorial Session Goal == In this tutorial you will learn how to create and analyze TrkAna TTrees == Session Prerequisites == Before starting this tu...")
 
No edit summary
Line 2: Line 2:


== Tutorial Session Goal ==
== Tutorial Session Goal ==
In this tutorial you will learn how to create and analyze TrkAna TTrees
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 ==
== Session Prerequisites ==
This tutorial should be useful for anyone starting out with TrkAna tree analysis
Before starting this tutorial you should have:
Before starting this tutorial you should have:
* the appropriate docker container set up
* the appropriate docker container set up
* know that ROOT exists
* 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 ==
== Exercises ==
Skeleton plan:
Skeleton plan:
* run TrkAnaReco.fcl on MDC2018 reco output
 
** without MC data and "candidate" tracks only
# 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
* create a simple plot from ROOT command line
** tracker momentum, calorimeter cluster energy
** 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
* run TrkAnaReco.fcl and add MC data
* create a second simple plot comparing data and MC
* create a second simple plot comparing data and MC
Line 32: Line 47:
** tweak some reconstruction parameters?
** tweak some reconstruction parameters?
* retrain TrkQual?
* 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 ==
== Reference Materials ==
* Use this place to add links to reference materials.
* Use this place to add links to reference materials.
* TrkAna wiki page
* TrkAna wiki page

Revision as of 16:29, 23 May 2019

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