Skip to content

ShyamB97/RawDataAnalysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RawDataAnalysis

analyse raw data (tp streams and trigger records)

DUNEDAQ envorinment:

dunedaq-v3.0.0 plus the additional branches in sourcecode:

detdataformats: 635affb

detchannelmaps: 4e9ba28

hdf5libs: 4177005

setup environment:

You can follow dunedaq's documentation, but the core things needed are cvmfs and ptyhon 3 on the machine you are using.

Initialize spack (one time):

source `realpath /cvmfs/dunedaq.opensciencegrid.org/spack-externals/spack-installation/share/spack/setup-env.sh`
spack load python@3.8.3%gcc@8.2.0

Setup build tools:

source /cvmfs/dunedaq.opensciencegrid.org/setup_dunedaq.sh
setup_dbt dunedaq-v3.0.0 

Create work area:

dbt-create dunedaq-v3.0.0 <directory-name>

After some time the directory should be made. cd into the directory and in sourcecode clone the above repositories:

git clone https://github.com/DUNE-DAQ/detdataformats.git
cd detdataformats; git checkout 635affb; cd ..;
git clone https://github.com/DUNE-DAQ/detchannelmaps.git
cd detdataformats; git checkout bbebc27; cd ..;
git clone https://github.com/DUNE-DAQ/hdf5libs.git
cd hdf5libs; git checkout 4177005; cd ..;

Now source environment variables:

dbt-workarea-env

and now build:

dbt-build

Finally, add this repository in the top level directory:

git clone https://github.com/ShyamB97/RawDataAnalysis.git

Note, every time you want to run in the environment run the following from the work area:

source dbt-env.sh
dbt-workarea-env

To create ADC waveform data from a trigger record run the script writeRawData.py, example uasge to read the first trigger records 0-5:

python writeRawData.py <path-to-hdf5-file> -r "0-5" -d <output-file-directory> -f <file-name>

About

analyse raw data (tp streams and trigger records)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages