The tracking Present situation Short term actions Long term actions

Slides:



Advertisements
Similar presentations
Threads Cannot be Implemented As a Library Andrew Hobbs.
Advertisements

LiC Detector Toy CLIC-ILC Detector R&D, Geneva, 25 July 2008 W. Mitaroff, HEPHY Vienna LiC Detector Toy Vienna fast simulation and track fit tool for flexible.
1 Vertex fitting Zeus student seminar May 9, 2003 Erik Maddox NIKHEF/UvA.
Tracking Efficiency and Momentum Resolution Analysis Chris Meyer UCSC ILC Simulation Reconstruction Meeting March 13, 2007.
Tracking using the Kalman Filter. Point Tracking Estimate the location of a given point along a sequence of images. (x 0,y 0 ) (x n,y n )
Responsibility on Next Beam Test Jianchun Wang Syracuse University BTeV meeting 06/27/01.
1 Chris Rogers MICE Collaboration Meeting 11th Feb 2005 Tracking and Cooling performance of G4MICE.
Overview and Mathematics Bjoern Griesbach
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.
The LiC Detector Toy (LDT) Tracking detector optimization with fast simulation VERTEX 2011, Rust M. Valentan, R. Frühwirth, M. Regler, M. Mitaroff.
Measurement of through-going particle momentum by means of Multiple Scattering with the T600 TPC Talk given by Antonio Jesús Melgarejo (Universidad de.
Tracking within hadronic showers in the SDHCAL Imad Laktineh.
9/26/11HFT soft meeting, BNL1 Chain analysis fz file MuDst.root minimc.root geant.root event.root McEvent.root StMiniMcMaker StAssociationMaker : STAR.
1 Tracking Reconstruction Norman A. Graf SLAC July 19, 2006.
Tracking at LHCb Introduction: Tracking Performance at LHCb Kalman Filter Technique Speed Optimization Status & Plans.
Track Reconstruction: the trf & ftf toolkits Norman Graf (SLAC) ILD Software Meeting, DESY July 6, 2010.
Understanding the TigerSHARC ALU pipeline Determining the speed of one stage of IIR filter – Part 3 Understanding the memory pipeline issues.
Material budget, energy losses and multiple scattering.
August, 7ILC1 Kudzanayi Munetsi-Mugomba supervised by Dr. Caroline Milstene Software Infrastructure for the Charged Particles Reconstruction at the International.
STAR Sti, main features V. Perevoztchikov Brookhaven National Laboratory,USA.
BMTRY 789 Lecture 11: Debugging Readings – Chapter 10 (3 rd Ed) from “The Little SAS Book” Lab Problems – None Homework Due – None Final Project Presentations.
Track extrapolation to TOF with Kalman filter F. Pierella for the TOF-Offline Group INFN & Bologna University PPR Meeting, January 2003.
STAR STAR VMC tracker V. Perevoztchikov Brookhaven National Laboratory,USA.
STAR Kalman Track Fit V. Perevoztchikov Brookhaven National Laboratory,USA.
What is in my contribution area Nick Sinev, University of Oregon.
Introduction What is detector simulation? A detector simulation program must provide the possibility of describing accurately an experimental setup (both.
Integrated Tracker (progress, status, plans) Y. Fisyak.
Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others...
MICE CM28 Oct 2010Jean-Sebastien GraulichSlide 1 Detector DAQ o Achievements Since CM27 o DAQ Upgrade o CAM/DAQ integration o Online Software o Trigger.
KalFitAlg: recent developments and tests WANG Dayong Jan.18,2006.
BESIII Track Extrapolation & Matching Wang Liangliang EPC IHEP.
Prospects for Integrating Veloroot into GAUDI D. Steele - 24/11/1999.
1 Performance of a Magnetised Scintillating Detector for a Neutrino Factory Scoping Study Meeting U.C. Irvine Monday 21 st August 2006 M. Ellis & A. Bross.
LCG Physics Validation Meeting – CERN, presented by Andrea Fontana, INFN-Pavia Using GEANE in the VMC A. Fontana, P. Genova, L. Lavezzi, A. Panzarasa.
Software Week - 8/12/98G. Poulard - CERN EP/ATC1 Status of Software for Physics TDR Atlas Software Week 8 December 1998 G. Poulard.
STAR SVT Self Alignment V. Perevoztchikov Brookhaven National Laboratory,USA.
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
20 October 2005 LCG Generator Services monthly meeting, CERN Validation of GENSER & News on GENSER Alexander Toropin LCG Generator Services monthly meeting.
AliRoot survey: Reconstruction P.Hristov 11/06/2013.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
Lia Lavezzi and Alberto Rotondi. PANDA meeting, Vienna 1-5 september2Tracking vs MC for newcomers MC= at each step the trajectory is sampled as a random.
Object-Oriented Track Reconstruction in the PHENIX Detector at RHIC Outline The PHENIX Detector Tracking in PHENIX Overview Algorithms Object-Oriented.
Reliability of Disk Systems. Reliability So far, we looked at ways to improve the performance of disk systems. Next, we will look at ways to improve the.
CHEP ’06 GEANT4E 1 GEANT4E: Error propagation for track reconstruction inside the GEANT4 framework Pedro Arce (CIEMAT) CHEP 2006, Mumbai, 13-17th February.
MAUS Status A. Dobbs CM43 29 th October Contents MAUS Overview Infrastructure Geometry and CDB Detector Updates CKOV EMR KL TOF Tracker Global Tracking.
GSI, December 7 th, 2009 Status of the Pattern Recognition with the STT system alone. Gianluigi Boca 1.
Mitglied der Helmholtz-Gemeinschaft Hit Reconstruction for the Luminosity Monitor March 3 rd 2009 | T. Randriamalala, J. Ritman and T. Stockmanns.
Track Reconstruction in MUCH and TRD Andrey Lebedev 1,2 Gennady Ososkov 2 1 Gesellschaft für Schwerionenforschung, Darmstadt, Germany 2 Laboratory of Information.
Track Reconstruction: the ftf and trf toolkits Norman Graf (SLAC) Common Software Working Meeting CERN, January 31, 2013.
Susanna Costanza - Pavia Group PANDA C.M., Stockholm – June 14, 2010
GenFit and RAVE in sPHENIX under Fun4All
(LHE) tracking and PID packages
A Kalman Filter for HADES
Global Track Matching and Fitting
Electromagnetic Physics Working Group discussion
M. Kuhn, P. Hopchev, M. Ferro-Luzzi
What to do when a test fails
ALICE analysis preservation
STT pattern recognition improvements since last December meeting and
Why exception handling in C++?
Tracking muons in Panda(Root)
Global PID MICE CM43 29/10/15 Celeste Pidcott University of Warwick
Tracking Pattern Recognition
Data Analysis in Particle Physics
Silicon Tracking with GENFIT
Status of LHETRACK Tracking with STT+MVD Stefano Spataro
Summary of dE/dx studies in silicon and MS in muon system
Search for coincidences and study of cosmic rays spectrum
Data Structures & Algorithms
Presentation transcript:

The tracking Present situation Short term actions Long term actions FUTURE

GeanE Status

The Crash See thread Bugs, Fixes, Releases: genfit/geane Problem: after the update to the new external packages it happens often this kind of crash when running geane event 307 *** Break *** floating point exception Using host libthread_db library "/lib/tls/libthread_db.so.1". Attaching to program: /proc/27679/exe, process 27679 [Thread debugging using libthread_db enabled] [New Thread -1208822080 (LWP 27679)] 0x00a8d7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 ... #10 0x081b6fe5 in xmm55_ (a=0x8601f20, b=0x8601fe8, c=0x8601fe8) at matx55/xmm55.F:42 #11 0x08267fca in trprfn_ (x1=0x85d32d8, p1=0x85d32e4, h1=0x85d32f0, x2=0x85d3314, p2=0x85d3320, h2=0x85d332c, ch=@0x85d3350, xl=@0x84528ec, r=0xbfe2523c, mvar=@0xbfe25290, iflag=@0xbfe25298, itran=@0xbfe25294, ierr=@0xbfe2529c) at erpremc/trprfn.F:376 #12 0x08260e82 in erprop_ () at erdecks/erprop.F:76 #13 0x08263d65 in ertrch_ () at erdecks/ertrch.F:429 #14 0x08264cd1 in ertrgo_ () at erdecks/ertrgo.F:249 #15 0x0826221d in ertrak_ (x1=0xc9623f0, p1=0xc9623fc, x2=0xc962364, p2=0xc962370, ipa=@0xbfe25a04, chopt=@0xfe296a8, _chopt=2) at erdecks/ertrak.F:242 #16 0x08341e7f in TGeant3::Ertrak (this=0xfa13a10, x1=0xc9623f0, p1=0xc9623fc, x2=0xc962364, p2=0xc962370, ipa=6, chopt=0xfe296a8 "LE") at TGeant3/TGeant3.cxx:5402 #17 0x047924a8 in FairGeanePro::FindPCA (... But xmm55.F does only a multiplication of two 5 X 5 matrices!

The Crash - investigation 1° set: 10000 events (5 files of 2000 m- each), p 1 GeV/c, f [0°, 360°], q[20°, 140°] 2° set: 10000 events (5 files of 2000 m- each), p 1 GeV/c, f [-45°, 45°], q [25.5°, 26.5°], TESTS Magnetic field: some IFIELD = 0 some FIELDM ≠ 20 kG Double to single precision Memory problem Compiler: tried compiling with g77 Difference old/new geant3: ertrch.F changes  To be changed but not relevant  The problem is not here  Test Succesfull! No crash with g77  Test Succesfull! No crash with old ertrch.F

ALFA2 = sin2 of the angle between the P and H field vectors The “real” error turns out to be in routine erpremc/trprfn.F that performs: * *** ERROR PROPAGATION ALONG A PARTICLE TRAJECTORY IN A MAGNETIC FIELD * ROUTINE ASSUMES THAT IN THE INTERVAL (X1,X2) THE QUANTITIES 1/P * AND (HX,HY,HZ) ARE CONSTANT. * *** CHECK WHETHER H*ALFA/P IS TOO DIFFERENT AT X1 AND X2 * IF(HA2.NE.0.) THEN GAM=(H2(1)*T2(1)+H2(2)*T2(2)+H2(3)*T2(3))/HA2 ELSE GAM=(H1(1)*T1(1)+H1(2)*T1(2)+H1(3)*T1(3))/HA1 ENDIF ALFA2=1.-GAM**2 DH2=(H1(1)*PM1-H2(1)*PM2)**2+ 1 (H1(2)*PM1-H2(2)*PM2)**2+ 1 (H1(3)*PM1-H2(3)*PM2)**2 IF(DH2*ALFA2.GT.DELHP6**2) GO TO 903 At a certain point there is a check whether the curvature of the track inside the step is too big ALFA2 = sin2 of the angle between the P and H field vectors DH2 is proportional to H/P  1/R 903 IERR=3 C IF(INIT.NE.0) GO TO 30 * WRITE (LOUT, 998) DH2,ALFA2,XL 998 FORMAT('0',' *** S/R TRPROP DELTA(H*ALFA/P)',5X 1,'EXCEEDS TOLERANCE '/'0',3E12.5//' ********** ',///) INIT=1 GO TO 30 the GO TO 903 leads us here, where the message *** Error in subr. TRPROP 3 called bysubr. ERPROP*** is printed out, and then we go back into the code via GO TO 30

IF(DH2*ALFA2.GT.DELHP6**2) GO TO 903 * *** DEFINE AVERAGE MAGNETIC FIELD AND GRADIENT PM12=(PM1+PM2)*0.5 P12=1./(2.*PM12) HN(1)=(H1(1)*PM1+H2(1)*PM2)*P12*CH*CFACT8 HN(2)=(H1(2)*PM1+H2(2)*PM2)*P12*CH*CFACT8 HN(3)=(H1(3)*PM1+H2(3)*PM2)*P12*CH*CFACT8 ** skip ** PAV = .5*(PA1+PA2) Q = - HM/PAV THETA = Q*XL SINT = SIN(THETA) COST = COS(THETA) … and other variables GO TO 903 statement skips this part of the code, where some variables (in green) are filled up with a value. RECALL 903 IERR=3 C IF(INIT.NE.0) GO TO 30 * WRITE (LOUT, 998) DH2,ALFA2,XL 998 FORMAT('0',' *** S/R TRPROP DELTA(H*ALFA/P)',5X 1,'EXCEEDS TOLERANCE '/'0',3E12.5//' ********** ',///) INIT=1 GO TO 30 * *** COMPLETE TRANSFORMATION MATRIX BETWEEN ERRORS AT X1 AND X2 * *** FIELD GRADIENT PERPENDICULAR TO TRACK IS PRESENTLY NOT * *** TAKEN INTO ACCOUNT * 30 CONTINUE QP =Q *PAV ANV = -(HN(1)*U2(1)+HN(2)*U2(2) ) ANU = (HN(1)*V2(1)+HN(2)*V2(2)+HN(3)*V2(3)) OMCOST = 1.-COST TMSINT = THETA-SINT … Here some variables not filled are used: all of them keep the previous step value, except for Q (…conflict with ZEBRA ??)

This explains why the error remained undetected up to now Why the crash? The crash results related to the changes in ertrch.F: they let the case IF(DH2*ALFA2.GT.DELHP6**2) GO TO 903 be more frequent , probably because a change in the stepping has been made In old GeanE this condition never (or very rarely) happens and some compilers did not detect it This explains why the error remained undetected up to now

Conclusions (on the crash) The changes in ertrch.F of the last GeanE version (Filippi and Piano) sometimes allow too big steps This must be corrected 2. Too big steps activate a wrong procedure in the old GeanE. Perhaps this condition in trprfn.F could happen also without the changed ertrch.F under some conditions (e. g. low momenta, very inhomogeneous magnetic field) This has been fixed just now by us by skipping the step

Possible solutions At present, we propose: to fix the media_pnd.geo file (m.f. map must be read in each medium!!) get rid of the new ertrch.F routine and go back to the old one to correct the new GeanE (with a skip of the step updating) to avoid crashes There is another possibility get rid of the ‘E’ (exact) option in the propagation. In non-exact case the trprop.F routine substitutes the trprfn.F one without bugs.

Tests have been performed on the same set of events where we saw the crash and all the simulations ended without crashing In the meanwhile: the ertrch.F has to be checked and fixed where needed we will investigate a more robust patch, for trprfn.F

Momenta reconstructed on the first MVD plane (with Kalman) Old GEanE without correction new GeanE with correction

Rapid corrections GeanE: TO DO list BUG FIXES AND THINGS TO BE ADDED (Lia and A.R.): Fix bug to prevent crash in xmm55 Some comments needed to explain the functions (e.g. in the helix (SC) from/to parabola (SD) contructors sometimes the transformation is not possible and it must be explained) (improve the failure procedure) PropagateToLength(0) must be fixed to propagate to track length = 0 Add the option 'O’ to perform the tracking only of the mean values without the errors Add the covariance matrix in MARS (6X6) in FairTrackParH Check the tracking along the z axis Investigate the failure when propagating to virtual detector planes Check tracking of low momentum particles Rapid corrections

FINALLY, IN THE INTERFACE BETWEEN GEANE AND GENFIT: A MORE GENERAL IDEA: A general “restyling” of FairGeanePro is needed in some points, to uniform the function names and optimize them: for example PropagateToPCA(pca)/PropagateToPCA(pca, dir) to be unified in one! FINALLY, IN THE INTERFACE BETWEEN GEANE AND GENFIT: GeaneTrackRep::getPosMomCov has to be commented and uploaded on svn repository Exception of getMom in PndGenfitAdapters (see thread: Bugs, Fixes, Releases: Bug in GenfitTrack2PndTrack): to be put within a “try&catch”.

TODO list BUG FIXES AND THINGS TO BE ADDED: Check on the tracking of any charged particle and of neutral particles In the helix <--> parabola contructors sometimes the transformation is not possible and it fails: a comment is needed to explain why (it is due to the SD/SC transformation failure) PropagateToLength(0) must be fixed (peraphs in FORTRAN) to be able to propagate to track length = 0 (i.e. don’ t move) Check the option 'O’ (= only); it should perform the tracking only of the mean values without the errors. If it is so, a function to use it must be added to the interface Add the covariance matrix in MARS (6X6) in FairTrackParH Check the tracking along the z axis Fix bug to prevent crash (e.g. in xmm55)

PropagateToPCA(pca)/PropagateToPCA(pca, dir) to be unified in one! A MORE GENERAL IDEA: A general “restyling” of FairGeanePro is needed in some points, to uniform the function names and optimize them: for example PropagateToPCA(pca)/PropagateToPCA(pca, dir) to be unified in one!

FINALLY, IN THE INTERFACE BETWEEN GEANE AND GENFIT: I wrote the GeaneTrackRep::getPosMomCov function but there is a problem in the transformation to MARS, which may fail sometimes due to MARS/SD/SC transformations  a comment is needed (and I will put the implementation in svn) Exception of getMom in PndGenfitAdapters (see thread: Bugs, Fixes, Releases: Bug in GenfitTrack2PndTrack); we should decide whether to put it within a “try&catch” or to handle the exceptions directly inside getPos/Mom/PosMom/PosMomCov? Bug in SPU still need to be corrected (see forthcoming posts in the forum)

Long term actions How much long? I think about a period of six months (depending on man power) 1. tracking for electrons/positrons 2. Kalman filter for electrons/positrons 3. Implementation of GEANT 4E

Tracking of electrons/positrons

Bremsstrahlung Tracking for electrons

Bremsstrahlung Tracking for electrons GEANE is OK for the mean value

Improvements (done) Tracking for electrons New error calculation in energy loss for heavy particles (truncated Landau and Urban) New error calculation for bremsstrahlung The effects are only in the energy pulls, because only the (1,1) element of the covariance matrix is involved

Bremsstrahlung 1/p distribution has no variance! Tracking for electrons 1/p distribution has no variance! We use the 1 s E interval transformed in 1/E The covariance matrix for bremsstrahlung was absent in the original GEANE Implemented in the last GEANE version (last summer) Tests with electrons have to be done However, this is not enough for KALMAN

KALMAN filter requires gaussian shapes. How to proceed??

Beyond Kalman: not gauusian models (electrons)

3. GEANT4E

six months (depending on man power) Long term actions six months (depending on man power) tracking for electrons/positrons: New error calculation for bremsstrahlung (present since last summer in geane, to be tested with e- and with Kalman). The effects are only in the energy pulls, because only the (1,1) element of the covariance matrix is involved Kalman filter for electrons/positrons: with e+e- the Gaussian sum filter must be tested Implementation of geant4e: it has been released and needs to be tested within the pandaroot framework

FUTURE Join different detectors Track merging Vertex fit + track fit Vertex fit + track fit+kinematics

Backup slides

SUMMARY To accomplish the TODO list is urgent electron/positron tracking bremsstrahlung treated with Gaussian Sum Filter (GSF) from Kalman to GSF for global fit for electrons GEANT4E implementation FUTURE: Join different detectors ….. now Shor t term future

GEANE for PANDA modified with the the a-tail Original GEANE

Tracking for electrons

Improvements (done) large thicknesses in GEANE and GEANT4E the energy loss uncertainty is valid only for large thicknesses the Urban distribution for very thin absorbers reproduces well the data in the case of PANDA straw tubes for thin absorbers, we truncate the Landau distribution and the d-ray tail of the Urban distribution to take into account the core of these distributions during the tracking the straggling for electrons (bremsstrahlung) has been also included

Next steps Global fit e PID Track merging between detectors under different PID Kinematics fitting under various hypothesis Vertex+kinematics optimized with Lagrange Multipliers