Skip to content

ShashlikTB/T1041

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T1041

Analysis code for T1041 test beam run

Directories:

  • include, src : inputs for Makefile to generate shared libraries
  • python : python scipts to run code
  • rootscript : misc root code/scripts, recommend using for user code
  • dqm : dqm utilities, for running online
  • doc : various documentation

Class documentation

Quick start guide

First Steps

source setupTB.sh
Run make

Generate DB of WC runs

To allow association of WC tracks, you will need the file: wcdb.txt
Either copy this from your data area or run wcdbGenerator.py

  • generate wcdb, adding only newer files if wcdb exists
    python python/wcdbGenerator.py
  • force full regeneration of wcdb
    python python/wcdbGenerator.py --force
  • flag to specify directory fo WC files
    python python/wcdbGenerator.py -f WC_file_dir
  • print help message
    python python/wcdbGenerator.py -h

Make TTrees from TB data

Usage: python TBNtupleMaker [OPTION] [PADE_FILE] [PADE_FILE] ... -n max_events : Maximum (requested) number of events to read Always read at least 1 spill -d DIR : Process all padefiles in DIR Overrides and files given on command line list -r DIR : Process all padefiles in DIR, and all subdirectories Overrides and files given on command line list -k : Keep existing root files, ony process new ones -o DIR : Output dir, instead of default = location of input file

Produces an output file with the same basename as the PADE_FILE, replacing .txt(.bz2) with .root

Example of reconstruction tools

python python/readerExample.py [file.root]

Display channel mapping

python python/testChannelMap.py

Event displays

  • python python/calDisplay.py [file.root]
  • python python/dqmPlots.py [file.root]
  • python python/dqmPlots.py file.root eventNumber

Simple wave form scanner

  • python python/waveViewer.py rec_capture_20140413_003028.root

Make png plots and html page from a root file

  • python python/root2html.py file.root
    png files and an index.html file are produced in directory called "file", the root file name w/o the .root

Run Jordan's WC display

  • python python/WC_Reader.py file.root (not working properly)

git cheatsheet

clone a working copy

HTTPS clone: git clone https://github.com/ShashlikTB/T1041.git

SSH clone (do this to allow password-less check in w/ ssh key):
git clone git@github.com:ShashlikTB/T1041.git

update/add:

  • git add
  • git commit -m "comment"

check it in:

  • git push origin master

checkout remote branch

shrink a git repository

merge into master branch

merge a single file from a branch

  • git checkout otherbranch myfile.txt

diff of 2 directories, listing filenames only

  • diff -ENwburq DIR1 DIR2 | grep -v \.git

Git diff of two branches, listing filenames only

  • git diff --name-status master..branchName

Branching tips

BFG Repo Cleaner

Adding indivudual files from remote fork

  • git remote add <some name> remote-uri
  • git fetch <some name>
  • git diff [--name-only] HEAD <some name>/master
  • git checkout /master <file to add>

About

Analysis code for T1041 test beam run

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published