ssh lxplus.cern.ch
git clone https://github.com/elaird/hcalraw.git
cd hcalraw
cd cpp; make -j 5; cd -
./look.py 284928
./look.py 289555 --nevents=1 --dump=8
./look.py 294542 --feds1=1115 --nevents=1000# analyze AMC13/DCC2 monitor buffer dumps
# HF (USC FEDs):
./dumps2root2pdf-HF.py data/239713_*.dat
# from a single AMC13:
export FEDID=999
cat foo.dat | cpp/badcoffee ${FEDID}
./oneRun.py --file1=badcoffee${FEDID}.root --feds1=${FEDID} --progress
# compare payloads of different sets of FEDs, within one file
./look.py 239480 --feds1=718,719 --feds2=HF --dump=0 --utca-bcn-delta=-131 --no-warn-quality --plugins=histogram,compare
# dump decoded data to stdout
./look.py 55 --feds1=702,931 --nevents=1 --dump=4
# compare payloads of different sets of FEDs, across two files
./oneRun.py --file1=data/B904_Integration_000055.root --feds1=702 \
--file2=data/mol_run55.root --feds2=931 --dump=0 --any-emap \
--no-warn-quality --ignore-ce --utca-bcn-delta=-119
export EOS=root://eoscms.cern.ch//store/group/dpg_hcal/comm_hcal/archival/20160914_USC_Run1_runs133054-220908; \
./oneRun.py --nevents=51 --progress --utca-bcn-delta=-119 --any-emap --no-warn-quality --dump=0 \
--file1=${EOS}/USC_211154.root --feds1=714,722 \
--file2=${EOS}/USC_211155.root --feds2=989
# analyze FE pattern runs
# (before HO refibering) ./look.py 235576 --feds1=HO --plugins=unpack,patterns --dump=0 | ./diff.py data/ref_2014.txt
# (before move to uTCA ) ./look.py 236631 --feds1=7xy --plugins=unpack,patterns --dump=0 | ./diff.py data/ref_vme_G.txt
# ./look.py --quiet --progress --plugins=unpack,patterns,bitwalk --nevents=8000 --feds1=1115 --last-n-amcs=2 300703
./look.py 260773 --feds1=HBEF --plugins=unpack,patterns --dump=0 | ./diff.py data/ref_utca_G.txt
./look.py 270688 --feds1=HBEF --plugins=unpack,patterns --dump=0 | ./diff.py data/ref_utca_G.txt
./fiberId.sh 288606
# read about usage
./oneRun.py --help- unpack both VME and uTCA data
- digest global, local, or monitor buffer data without configuration
- compare payloads across two .root files containing unsorted events
- enable evaluation of board performance in only one page of plots
- provide flexibility in analysis
- not require CMSSW
- python (>=2.7)
- ROOT (>=5.32)
(use exactly one of these)
env/cc7-cvmfs.shsets up a ROOT 6 environment on cc7env/lxplus6.shsets up CMSSW and EOSenv/slc6-pypy.shsets up pypyROOT (outside of CMSSW)
cpp/CDF*.hare copied from CMSSW (IORawData/HcalTBInputService/src)cpp/FED*are copied from CMSSW (DataFormats/FEDRawData)cpp/[cdf,cms].hdefine helper functionscpp/[mol,deadbeef,badcoffee,rooter].cppmake .root files from binary event dumpsanalyze.pyloops over .root file(s) for one run and produces output/Runxxx.rootautoBook.pyis copied from github.com/elaird/supy/__autoBook__.pyconfiguration/holds some settings used byanalyze.py,plugins/, etc.decode.pyinterprets a FED's bytes in an event (called by raw.unpacked)diff.pycompares the decoded output of a FiberID run to data/ref.txtdumps2root2pdf-HF.pyconverts binary event dumps to .root files and analyzes themgraphs.pyreads in output/Runxxx.root, makes plots, and outputs a .pdflook.pywill find a files in EOS (or locally) for given runs and loop over themmake_fiberid_references.pyproduces FiberID reference files from HCAL logical mapsoneRun.pyis used to analyze one run (see examples above)options.pyparses command line options foroneRun.py,look.py, ordumps2root2pdf-HF.pyprinter.pycontains utility functions for printing messagesprocessUSC.pyloops over available USC local runs and processes themraw.pyreads and unpacks raw datatest_transformation.pytestsconfiguration.hw.transformed*andutils.shortListutils.pycontains helper functions
compare.pycompares the payloads within two .root files for a given eventhistogram.pybooks and fills many per-FED and per-event histogramspatterns.pyinterprets the raw data as front-end patternsprintraw.pydumps to stdout the payload(s) in an event