Presentation is loading. Please wait.

Presentation is loading. Please wait.

October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram.

Similar presentations


Presentation on theme: "October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram."— Presentation transcript:

1 October Test Beam DAQ

2 Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram uses the spill output of the subprogram from whom it depends Main Labview Panel Gassiplex DAQ VFAT DAQ Event Builder Must start and stop them (kill if necessary) Can read output from each of them Online viewers for clusters Cluster Recon. Online viewers for tracks Track Recon. 28/09/20092M. Alfonsi (CERN)

3 Trigger logic with NIM VETO logic Trigger Logic coincence OR coincence S1 Sn OR Pulser for pedestal generation (can be a later addition) VETO Vetoed trigger to be distributed to each DAQ Scaler 1Scaler 2 DAQ “busy” signal (due to init, data reading, etc..) Timer T=∞ DAQ “done” signal (init, data reading, etc.. completed) RESET 28/09/20093M. Alfonsi (CERN)

4 Gassiplex DAQ – hardware VME based: use CAEN CRAMS and Sequencer “Special DAQ”: it acquires also scintillators timings and charge and other control signals, e.g. trigger counts on scaler: – By adding further VME modules – Can be later additions VETO implementation: – BUSY output of Sequencer and/or – DAQ-controlled output register of CAEN VME Bridge 28/09/20094M. Alfonsi (CERN)

5 Gassiplex DAQ – sofware Rewrite code from Labview to compiled c++ (not hard to do, and *should* be faster) Try to implement Interrupt on data ready instead of polling (in principle not so hard to do, *should* largely improve DAQ rate) Possibility to call executable from Labview verified. Moreover on Linux environments: – The output can be returned to Labview – The process PID is returned (possibility to send signals to – or kill – the executable verified. Executable can cleanly stop on TERM signal) Every spill a binary file is produced Use VME Bridge Pulser for triggers for pedestals, just after the spill – can be a later addition If necessary, use off-spill to reset all the boards and counters 28/09/20095M. Alfonsi (CERN)

6 Gassiplex DAQ – more details Working directories and produced files: – The executable will use a specific dir each run, prepared by Main Program – Each spill will produce a separate file with the spill number in the name – A file “LASTACQUIREDSPILL” will contain the number of the last acquired spill Initialization: – Main Program should pass parameters as a “recipe file” (later addition, at the beginning parameters hard-coded in the program) Running: – The exec is aware of spill periods: it takes data as fast as possible – After each spill pedestals are generated – later addition Termination: – Stop after the spill that has accumulated enough data – Capture INT or QUIT signals (meaning “Stop after this spill” or “Stop now”) sent by Main Program (that can KILL it!) – later addition – The Main Program is aware of termination via the executable output Possibility to suspend / continue a run.. next year upgrade.. 28/09/20096M. Alfonsi (CERN)

7 Event Builder ROOT macro: raw data from binary to ROOT Tree (adapt the ROOT Tree maker macro realized for June TB analysis) The macro will: – check every 1-2s for a “last acquired spill” newer than the last processed – check for ALL DAQs files, checking also commands from Main Program – read binary files and fill the raw data ROOT Tree – later addition: possibility to split large ROOT files – prepare also a “last spill” ROOT Tree (same structure) for online monitors – Write in the “LASTBUILTSPILL” file the number of the last processed spill The Main Program issues commands like “Stop after this spill” or “Quit now” or “Skip one spill” by writing the command on the file “EVENTBUILDERSTATUS” 28/09/20097M. Alfonsi (CERN)

8 Reconstruction / viewer algorithms ROOT “TSelector” algorithms: – Adapt the code developed for June TB analysis – “Reconstructers” produce ROOT trees/histos, saving them in a file, “Viewers” just update plots Each algorithm will: – check every 1-2s for newer spills in the relative “LASTxxxxFILE” – check for the required files, checking also commands from Main Program – if not just a viewer, fill reconstructed ROOT Tree and/or histos and, like event builder, prepare also a “last spill” version – if not just a viewer, write in the “LASTyyyySPILL” file the number of the last processed spill The Main Program issues commands like “Stop after this spill” or “Quit now” or “Skip one spill” by writing the command on the file “ALGORITHMNAMESTATUS” 28/09/20098M. Alfonsi (CERN)

9 Main program Uses Labview for easy user-interface and graphics Must launch (and kill in case) all subprograms Must pass parameters to each subprograms as “recipe” files Sends commands to subprograms by writing them in specific file that subprogram reads Reads the output of subprograms, that can be used to warn the user about errors or any problem: – E.g. if the event builder is too many spills late w.r.t. the last acquired spill, a warning is issued to the user 28/09/20099M. Alfonsi (CERN)

10 VFAT integration – main problems 1)Custom board, no VME integration 2)Can the board provide a BUSY signal for VETO? 3)Main Program runs on Linux Labview in the control room, but: – Readout on USB port, so a PC in the experimental hall is required – Windows Labview DAQ 28/09/200910M. Alfonsi (CERN)

11 VFAT integration – some ideas “Remote Panel” Labview feature: Main Program can connect to the remote DAQ VI (not yet tested) - OR - “Network shared variable” Labview feature: Main Program has access at least to “Start” and “Stop” of the VFAT DAQ VI (already tested in lab) and a remote desktop connection allows to have full access of the other parameters Add an USB-version of the VME Bridge to the crate: – use one the output register for the VETO logic, – and one of the input register to understand spill phase. “scp” the data to linux PC in control room after every spill, the event builder must wait for this file 28/09/200911M. Alfonsi (CERN)

12 Task summary 1.Setup in lab: mechanics to be patched – missing rack – trigger logic in NIM 2.Gassiplex DAQ: a)Base executable (Interrupt feature if easy, hard-coded parameters) b)Parameters passed by Main Program c)Pedestal generation after spill d)Addition of a VME scaler, ADC (for scintillators), TDC (next year) 3.Event builder: a)Adaptation from the June TB macro b)VFAT data integration 4.VFAT DAQ (don’t know status): a)Integrate the trigger and VETO logic 5.Monitors Online: a)Adaptation from June TB algorithms 28/09/2009M. Alfonsi (CERN)12


Download ppt "October Test Beam DAQ. Framework sketch Only DAQs subprograms works during spills Each subprogram produces an output each spill Each dependant subprogram."

Similar presentations


Ads by Google