Skip to content

tudo-astroparticlephysics/pydrs4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pydrs4

Python package for the drs4 evaluation board

Reading binary files of the drs4 evaluation board software

Each event contains a dictinory adc_data, mapping to the data like this: board_id → channel_id → data.

to the adc data of the corresponding channel.

import matplotlib.pyplot as plt
from drs4 import DRS4BinaryFile

with DRS4BinaryFile('path/to/binaryfile') as f:
    
    print(f.board_ids)
    print(f.channels)

    event = next(f)
    print(event.event_id)
    print(event.timestamp)

    plt.plot(event.adc_data[1157][1])
    plt.show()
  

About

Python package for the drs4 evaluation board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages