To get started do:
source setup.[c]sh
make
then copy data file from the test beam to the local area, and do
TBdisplay datafile.root
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
source setupTB.sh
Run make
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
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
python python/readerExample.py [file.root]
python python/testChannelMap.py
- python python/calDisplay.py [file.root]
- python python/dqmPlots.py [file.root]
- python python/dqmPlots.py file.root eventNumber
- python python/waveViewer.py rec_capture_20140413_003028.root
- 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
- python python/WC_Reader.py file.root (not working properly)
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 [email protected]: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>