wp 4.2 review meeting simulations, libespec... some thoughts [email protected] wednesday, 13...

5
WP 4.2 review meeting WP 4.2 review meeting Simulations, Simulations, libespec... libespec... some thoughts some thoughts [email protected] [email protected] Wednesday, 13 September 2006, UCL, Wednesday, 13 September 2006, UCL, [email protected] [email protected]

Upload: lily-hamilton

Post on 13-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: WP 4.2 review meeting Simulations, libespec... some thoughts bino@hep.ucl.ac.uk Wednesday, 13 September 2006, UCL, bino@hep.ucl.ac.uk

WP 4.2 review meetingWP 4.2 review meeting

Simulations, libespec...Simulations, libespec...some thoughtssome thoughts

[email protected]@hep.ucl.ac.uk

Wednesday, 13 September 2006, UCL, Wednesday, 13 September 2006, UCL, [email protected]@hep.ucl.ac.uk

Page 2: WP 4.2 review meeting Simulations, libespec... some thoughts bino@hep.ucl.ac.uk Wednesday, 13 September 2006, UCL, bino@hep.ucl.ac.uk

Wednesday, 13 September 2006, UCL, Wednesday, 13 September 2006, UCL, [email protected]@hep.ucl.ac.uk

Creating a simulation/analysis library : introducing libespecCreating a simulation/analysis library : introducing libespecImportant aims :Important aims :- high granularity, “little black boxes” as Stewart put it :)- high granularity, “little black boxes” as Stewart put it :)- plain ANSI C for portability and easy interface with e.g. ROOT, LabVIEW...- plain ANSI C for portability and easy interface with e.g. ROOT, LabVIEW...- highly and accurately documented (Doxygen)- highly and accurately documented (Doxygen)- system independent (GNU autotools)- system independent (GNU autotools)- using real physical SI units such as Hz, sec, kg etc instead of e.g. “Inverse - using real physical SI units such as Hz, sec, kg etc instead of e.g. “Inverse samples times Nyquist frequency in GHz divided by Pi to the power 2/3”... or samples times Nyquist frequency in GHz divided by Pi to the power 2/3”... or something similar ;))). something similar ;))).

That said... were are we with this ? Heavy construction !That said... were are we with this ? Heavy construction !

Code lives in CVS under : Code lives in CVS under : http://cvs.hep.ucl.ac.uk/viewcvs/especSoft/?cvsroot=LC+Energy+Spectrometerhttp://cvs.hep.ucl.ac.uk/viewcvs/especSoft/?cvsroot=LC+Energy+Spectrometer

And has it's web page with latest distribution tar ball + documentation in And has it's web page with latest distribution tar ball + documentation in pdf/html formatpdf/html formathttp://www.hep.ucl.ac.uk/~bino/libespec/http://www.hep.ucl.ac.uk/~bino/libespec/

Page 3: WP 4.2 review meeting Simulations, libespec... some thoughts bino@hep.ucl.ac.uk Wednesday, 13 September 2006, UCL, bino@hep.ucl.ac.uk

Wednesday, 13 September 2006, UCL, Wednesday, 13 September 2006, UCL, [email protected]@hep.ucl.ac.uk

BPM/Electronics simulation using libespecBPM/Electronics simulation using libespec

Describe signals from BPMs as complex waveformsChoose physical sampling frequencies and system of units e.g. :

// generate an LO source at 2939 MHz, sample it at 35 GHz to use in code here AddComplexLO( 5.*Volt, 2929*MHz, 1.2, 0., 0., 35*GHz, samples, LO, t );

// generate a BPM waveform, sample it at 35 GHz as well to use in the code AddComplexWaveform( 5.*Volt, 2.856*GHz, 1.5, 200*nsec, 50.*nsec,

0., 35*GHz, samples, RF, t );

// the mixer, having -2dB power conversion and 20 dBm 1dB compression factor MixComplexWaveforms( RF, LO, IF, samples, -2.0, 20. );

// apply a lowpass filter : 10th order butterworth low pass filter... // with cut off frequency of 100 MHz... ButterworthLowPass( IF, samples, 35.*GHz, 100.*MHz, 10 );

// digitise the waveform DigitiseWaveform( IF, samples, t, adc, 119.*MHz, 10.*nsec,

0.5*nsec, 256, 14, -2.5, 2.5, 75.0 );

Page 4: WP 4.2 review meeting Simulations, libespec... some thoughts bino@hep.ucl.ac.uk Wednesday, 13 September 2006, UCL, bino@hep.ucl.ac.uk

Wednesday, 13 September 2006, UCL, Wednesday, 13 September 2006, UCL, [email protected]@hep.ucl.ac.uk

BPM/Electronics simulation using libespecBPM/Electronics simulation using libespec

Simulate real electronics, e.g. non-linearity and conv. loss

Waveform digitisation, with saturation, noise, pedestal etc...

Page 5: WP 4.2 review meeting Simulations, libespec... some thoughts bino@hep.ucl.ac.uk Wednesday, 13 September 2006, UCL, bino@hep.ucl.ac.uk

Wednesday, 13 September 2006, UCL, Wednesday, 13 September 2006, UCL, [email protected]@hep.ucl.ac.uk

A really tacky flow chart !!!A really tacky flow chart !!!

RealRealBPMBPM

GdFidl GdFidl (cavity (cavity par.)par.)

WaveforWaveformm

simulatiosimulationn

reconstrucreconstructiontion

LIBESPECLIBESPEC

...

ElectroniElectronicscs

digitisatidigitisationon ElectroniElectroni

cscsdigitisatidigitisati

ononsimulatiosimulatio

nn

Also include Also include mover simulationmover simulation (vibrations, etc....) (vibrations, etc....) Process e.g. Tracked particles from ELEGANT simulations and have a Process e.g. Tracked particles from ELEGANT simulations and have a fullfullsimulation of the BPM spectrometer based upon a single C library at all simulation of the BPM spectrometer based upon a single C library at all stagesstages(online LabVIEW, offline analysis, FPGA ?? )... (online LabVIEW, offline analysis, FPGA ?? )... Maybe Maybe base nanoBPM/ESA productionbase nanoBPM/ESA production codes on same set of core codes on same set of core routines...routines... NEED TO DISCUSS ON THE FURTHER STRUCTURE OF ACTUAL NEED TO DISCUSS ON THE FURTHER STRUCTURE OF ACTUAL ESPECSIM !!!ESPECSIM !!!