MICE Analysis Code Makeover Chris Rogers 14th September 2004.

Slides:



Advertisements
Similar presentations
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Advertisements

Online Monitoring and plane checkout Online monitoring is used at the mine for: –sanity checks - “is everything working” –diagnostics - rates, hot/dead.
Annoucements  Next labs 9 and 10 are paired for everyone. So don’t miss the lab.  There is a review session for the quiz on Monday, November 4, at 8:00.
Alexa Curcio. Original Problem : Would a restriction on height, such as prohibiting males from marrying taller females, affect the height of the entire.
Software Quality Assurance Inspection by Ross Simmerman Software developers follow a method of software quality assurance and try to eliminate bugs prior.
Debugging Introduction to Computing Science and Programming I.
A Package For Tracking Validation Chris Meyer UC Santa Cruz July 6, 2007.
1 Scintillating Fibre Tracker Simulation Malcolm Ellis Imperial College London Tuesday 9 th March 2004.
1 Emittance Calculation Progress and Plans Chris Rogers MICE CM 24 September 2005.
28 Feb 2006Digi - Paul Dauncey1 In principle change from simulation output to “raw” information equivalent to that seen in real data Not “reconstruction”,
1 September 09Mark Rayner – Emittance measurement by The TOFs1 Emittance measurement by the TOFs Via trace space reconstruction of individual muons. Complementary.
Descriptive Statistics In SAS Exploring Your Data.
Updates: Misalignment, Statistics David Forrest (Happy new year)
1 PID Detectors & Emittance Resolution Chris Rogers Rutherford Appleton Laboratory MICE CM17.
1 Statistics Toy Monte Carlo David Forrest University of Glasgow.
Tracker Misalignment Study David Forrest CM23 HIT, Harbin January 14 th.
Emittance Calculation Chris Rogers, Imperial College/RAL Septemebr
Computer Science 1620 Programming & Problem Solving.
1 Simulation Modeling and Analysis Verification and Validation.
MICE input beam and weighting Dr Chris Rogers Analysis PC 05/09/2007.
WSN Simulation Template for OMNeT++
1Malcolm Ellis - Software Meeting - 31st May 2006 Data Challenge Requirements  First list of requirements, based on Yagmur’s document: u
Diffuser Studies Chris Rogers, IC/RAL MICE VC 09 March 2005.
Analysis of MICE Chris Rogers 1 Imperial College/RAL Thursday 28 October, With thanks to John Cobb.
Computer Programming.  Analysis  User requirements  Feasibility and costs  Success criteria  Design and Planning  Classes  Data structures and.
Colorado Center for Astrodynamics Research The University of Colorado STATISTICAL ORBIT DETERMINATION Project Report Unscented kalman Filter Information.
Study Tips for COP 4531 Ashok Srinivasan Computer Science, Florida State University Aim: To suggest learning techniques that will help you do well in this.
The LiC Detector Toy M. Valentan, M. Regler, R. Frühwirth Austrian Academy of Sciences Institute of High Energy Physics, Vienna InputSimulation ReconstructionOutput.
PPR meeting - January 23, 2003 Andrea Dainese 1 TPC tracking parameterization: a useful tool for simulation studies with large statistics Motivation Implementation.
1 Optics/Analysis Update Chris Rogers MICE Software pc 28 April 05.
The AIE Monte Carlo Tool The AIE Monte Carlo tool is an Excel spreadsheet and a set of supporting macros. It is the main tool used in AIE analysis of a.
Update on Selective Editing and Implications for Staff Skills International Trade Conference September 2008 Ken Smart.
Exceptions Handling Exceptionally Sticky Problems.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
The “ ” Paige in Kalman Filtering K. E. Schubert.
MICE input beam weighting Dr Chris Rogers Analysis PC 05/09/2007.
Lecture 19 Serialization Richard Gesick. Serialization Sometimes it is easier to read or write entire objects than to read and write individual fields.
CS324e - Elements of Graphics and Visualization Java GUIs - Event Handling.
Update Chris Rogers, Analysis PC, 13/07/06. State of the “Accelerator” Simulation Field model now fully implemented in revised MICE scheme Sanity checking.
Track extrapolation to TOF with Kalman filter F. Pierella for the TOF-Offline Group INFN & Bologna University PPR Meeting, January 2003.
Introduction to Loops For Loops. Motivation for Using Loops So far, everything we’ve done in MATLAB, you could probably do by hand: Mathematical operations.
Mark Rayner 14/8/08Analysis Meeting: Emittance measurement using the TOFs 1 Emittance measurement using the TOFs The question: can we use position measurements.
Lecture 26: Reusable Methods: Enviable Sloth. Creating Function M-files User defined functions are stored as M- files To use them, they must be in the.
Lesson 6 – Libraries & APIs Libraries & APIs. Objective: We will explore how to take advantage of the huge number of pre-made classes provided with Java.
Bayes Theorem The most likely value of x derived from this posterior pdf therefore represents our inverse solution. Our knowledge contained in is explicitly.
1 A first look at the KEK tracker data with G4MICE Malcolm Ellis 2 nd December 2005.
Linda R. Coney – 5 November 2009 Online Reconstruction Linda R. Coney 5 November 2009.
PID Detector Requirements for Emittance Measurement Chris Rogers, MICE PID Review, Thursday Oct 12.
1/18/2016Atomic Scale Simulation1 Definition of Simulation What is a simulation? –It has an internal state “S” In classical mechanics, the state = positions.
A Re-Evaluation of The Tennessee STAR Project
26 Oct 2010PC Physics Requirements of Software from Chris R ~19 Oct. My.
Winter 2007SEG2101 Chapter 121 Chapter 12 Verification and Validation.
CMSC 2021 Software Development. CMSC 2022 Software Development Life Cycle Five phases: –Analysis –Design –Implementation –Testing –Maintenance.
Qtran Software Updates. Qtran Qtran Handles CAA Time Range data type (becomes 2 Epoch values in CDF) Single record of fill values written into empty.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
January 21, 2005Peter Rovegno and David Williams, Milagro Collaboration Meeting 1 Background Rejection using Angle Fit Quality Source analysis has an implicit.
M. Ellis - MICE Collaboration Meeting - Wednesday 27th October Sci-Fi Tracker Performance Software Status –RF background simulation –Beam simulation.
C++ coding standard suggestion… Separate reasoning from action, in every block. Hi, this talk is to suggest a rule (or guideline) to simplify C++ code.
GPT Simulations of the Ion Source Beam
Different Types of Testing
Using MICE to verify simulation codes?
Advanced Analytics Using Enterprise Miner
File Handling Programming Guides.
The Object-Oriented Thought Process Chapter 05
Coding Concepts (Basics)
Computer Science Testing.
Spreadsheets, Modelling & Databases
Steve Penn (HWS) & Vijay Chickarmane (LSU)
Software Development Techniques
Presentation transcript:

MICE Analysis Code Makeover Chris Rogers 14th September 2004

Analysis Code updates Highlights: Common interface with reconstruction and simulation output for future development Statistical Weighting for events Emittance Calculations in trace space, phase space User interface via rubbish text file Tested

Class Diagram

Interface AnalysisPlane.hh, AnaEvent.hh Some dodgy hacks atm Talks to Rec.out and Sim.out - should be VirtualRec.dat Tell AnalysisPlane what sort of plane you want in constructor. AnalysisPlane goes and gets the data, stores in a vector of AnaEvents Then use GetEventKinematics(eventNumber) to access data. Too slow in big files

Weighting 1 Weights stored in class TrackStore –TrackStore is used for all AnalysisPlanes Weights set by class virtual class Weight –Two children, Distribution and Cut do the real work –Weight talks to AnalysisPlane, TrackStore

Weighting 2 Cut applies a statistical weight of 1 or 0 –Cut based on criteria such as does the event exist? Does the event have a pos./mom. outside a certain range Distribution attempts to impose a Gaussian probability distn at some plane –So tells certain particles they are worth more than others –Builds a 6D histogram and then applies weights based on the bin weights

Emittance Calculation Works as before Updated to use AnalysisPlanes

User Interface Dodgy hack Don’t expect to keep it beyond the design iteration Implemented directly in main() Use file “AnalysisParams.dat” - enter the cut(s) and distribution(s) you want to apply, then plane(s) you want to calculate over, then specify what numbers you want to calculate

Future development - wish list Open to further suggestions: 2. Weight can call on variable sigma and mean. 3. Error handling; Serious reinforcement of code - use unsigned int in NDHist, etc 4. Check against code guidelines + fix. How do I do Doxygen comments? 5. Distribution gives a normalised distribution, normalised against Sum(weights) before Dist acts. At the moment it is not normalised to anything. 6. Analysis Plane readout with Weights etc. Communications with ICOOL/ecalc9f? 7. Distribution reads in an entire 6D covariance matrix, not just variances (sigmas) 7a. Check that Distribution does actually use sigma 8. Make NDCovMatrix::getNDEmittance work more nicely 9. Examine test coverage and add new tests as required 10. Take run management away from main()? 11. Make AnalysisPlanes quicker. 12. AnaParams has Sim.out and Rec.out hard coded. This is very bad! 13. Calculate other numbers - beta functions etc. 14. Single particle emittance 15. Holzer emittance 16. EM Potential?