Git Product home page Git Product logo

wd409_sectortest's Introduction

wd409_sectortest

This code was originally developed for beam tests of prototype sPHENIX calorimeters around 2014. This version is the code that has been used to analyze cosmic ray data taken with each production sPHENIX EMCAL sector 2020-2022. This is not production sPHENIX analysis code, but a quick way to take raw data taken with the sPHENIX 14 bit 60 MHz waveform digitizers in "prdf" ("PHENIX Raw Data Format"), decoded it with Martin©, and make it accessible to further analysis in a ROOT TTree (W). Building the package relies on sPHENIX libraries which are part of the sPHENIX enviroment at RCF after "source /opt/sphenix/core/bin/sphenix_setup.sh -n". It is quite specific to EMCAL sectors--384 ADC channels in packets 21351 and 21352, with 31 samples/tower. If all goes well, "make" will build without errors.

The code was developed to find a reasonable way to quickly extract the time, peak, and pedestal of the digitized waveform. Some of the key branches in the TTree are:

  • int adc[384][31] are the raw adc samples
  • float peak[384] is the maximum of the waveform extracted by a cubic spline interpolation near the maximum ADC values
  • float time[384] is the time (in sample number) at the peak

Essentially all the data in the prdf is decoded and saved to the TTree, as well as some other attempts to extract features of the signal. If a pulse saturates the ADC (214 = 16384), the peak is reported as 16384.

onepulse_18595_56766_36

wd409_sectortest's People

Contributors

haggerty avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.