Skip to content

Kunming-CN/TOWARD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 TOWARD - Tools, Objects for Waveform Analysis, Reformatting & Drawing

Bash, Python and ROOT scripts for the process of digital waveforms taken with a CAEN digitizer and its WaveDump readout program.

Data structure Examples

Prerequisites

CERN ROOT is needed to run scripts ended with .C. Shell scripts can be run in a Linux or Mac terminal. They can also be run in MobaXterm in a Windows PC.

CAEN WaveDump is not needed to run the scripts here, but its output is the input for these scripts.

Get started

  • download the package from https://github.com/jintonic/toward.git
  • get into folder run in your local copy, create a directory there with its name to be an integer run number, for example, 153
  • get into the just created subdirectory and create a WaveDump configuration file there named daq.cfg (one can take run/0/daq.cfg as an example)
  • run wavedump daq.cfg there to create binary output file wave?.dat, where ? is the channel number
  • get back to the base directory, run ./w2r.sh <run number> <channel number> to convert wave?.dat to wave?.root
  • use other scripts to process the generated root file

Scripts

Features

  • Works with WaveDump without any modification of code on both sides
  • All scripts can be run directly in Linux, Mac and Windows without compilation and installation
  • Data are saved as basic types in ROOT TTree ntuples, which can be easily open without loading extra libraries defining complicated data structure. Uproot can be used to load the data for analysis in Python
  • Super short variable names for quick analysis using ROOT TTree::Draw function in a ROOT interactive session. For example,
[root] t->Draw("s:Iteration$","is==0","l",5,2)

shows 5 non-saturated (is==0) waveforms (s: individual waveform samples, Iterations$: sample index) starting from event 2:

waveform display using simple TTree variables

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published