CHEP ’06 GEANT4E 1 GEANT4E: Error propagation for track reconstruction inside the GEANT4 framework Pedro Arce (CIEMAT) CHEP 2006, Mumbai, 13-17th February.

Slides:



Advertisements
Similar presentations
GEANT Simulation of RCS Vahe Mamyan Hall A Analysis Workshop December 10, 2003.
Advertisements

Use of G EANT 4 in CMS AIHENP’99 Crete, April 1999 Véronique Lefébure CERN EP/CMC.
Combined tracking based on MIP. Proposal Marian Ivanov.
Simulation Studies of a (DEPFET) Vertex Detector for SuperBelle Ariane Frey, Max-Planck-Institut für Physik München Contents: Software framework Simulation.
Pedro Arce Point detector scoring 1 Point detector scoring in GEANT4 Pedro Arce, (CIEMAT) Miguel Embid (CIEMAT) Juan Ignacio Lagares (CIEMAT) Geant4 Event.
Ties Behnke, Vasiliy Morgunov 1SLAC simulation workshop, May 2003 Pflow in SNARK: the next steps Ties Behnke, SLAC and DESY; Vassilly Morgunov, DESY and.
1 Vertex fitting Zeus student seminar May 9, 2003 Erik Maddox NIKHEF/UvA.
Progress on the final TWIST measurement of James Bueno, University of British Columbia and TRIUMF on behalf of the Triumf Weak Interaction Symmetry Test.
Highlights of latest developments ESA/ESTEC Makoto Asai (SLAC)
Monte-Carlo simulations and reconstruction for 12-degree ep-elastic Luminosity Monitor A.Kiselev OLYMPUS Collaboration Meeting DESY, Hamburg,
Mark Rayner, Analysis workshop 4 September ‘08: Use of TOFs for Beam measurement & RF phasing, slide 1 Use of TOFs for Beam measurement & RF phasing Analysis.
The Time-of-Flight system of the PAMELA experiment: in-flight performances. Rita Carbone INFN and University of Napoli RICAP ’07, Rome,
G EANT 4 energy loss of protons, electrons and magnetic monopole M. Vladymyrov.
Geant4: Electromagnetic Processes 2 V.Ivanchenko, BINP & CERN
The LiC Detector Toy M. Valentan, M. Regler, R. Frühwirth Austrian Academy of Sciences Institute of High Energy Physics, Vienna InputSimulation ReconstructionOutput.
Framework for track reconstruction and it’s implementation for the CMS tracker A.Khanov,T.Todorov,P.Vanlaer.
Measurement of through-going particle momentum by means of Multiple Scattering with the T600 TPC Talk given by Antonio Jesús Melgarejo (Universidad de.
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.
GEANT4 Workshop 2001 HARP and GEANT4 1 & Pedro Arce (CERN/IFCA-Santander) Vladimir Ivantchenko (CERN/Budker Institute) GEANT4 Workshop 5th July 2001.
Geometry and Field: New features and Developments T. Nikitina For Geometry Working Group Geant4 workshop, Hebden Bridge september 2007 G4Paraboloid.
Track Reconstruction: the trf & ftf toolkits Norman Graf (SLAC) ILD Software Meeting, DESY July 6, 2010.
Results from Step I of MICE D Adey 2013 International Workshop on Neutrino Factories, Super-beams and Beta- beams Working Group 3 – Accelerator Topics.
STS track recognition by 3D track-following method Gennady Ososkov, A.Airiyan, A.Lebedev, S.Lebedev, E.Litvinenko Laboratory of Information Technologies.
1 Realistic top Quark Reconstruction for Vertex Detector Optimisation Talini Pinto Jayawardena (RAL) Kristian Harder (RAL) LCFI Collaboration Meeting 23/09/08.
SHMS Optics Studies Tanja Horn JLab JLab Hall C meeting 18 January 2008.
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.
Impact parameter resolution study for ILC detector Tomoaki Fujikawa (Tohoku university) ACFA Workshop in Taipei Nov
The Pattern Recognition issue for the Mu2e experiment Giovanni F. Tassielli - G. Marconi University.
Updates on the P0D reconstruction
Magnetic Field Issues for Simulation and Reconstruction N. Amapane, N. Neumeister Workshop on LHC Physics with High-p T Muons in CMS Bologna, April 9-12,
1 Th.Naumann, DESY Zeuthen, HERMES Tracking meeting, Tracking with the Silicon Detectors Th.Naumann H1 DESY Zeuthen A short collection of experiences.
STAR STAR VMC tracker V. Perevoztchikov Brookhaven National Laboratory,USA.
1 Calorimeter in G4MICE Berkeley 10 Feb 2005 Rikard Sandström Geneva University.
Beam MC activity A.K.Ichikawa for beam group For more details,
What is in my contribution area Nick Sinev, University of Oregon.
Pandora calorimetry and leakage correction Peter Speckmayer 2010/09/011Peter Speckmayer, WG2 meeting.
Detector Monte-Carlo ● Goal: Develop software tools to: – Model detector performance – Study background issues – Calculate event rates – Determine feasibility.
The CMS Simulation Software Julia Yarba, Fermilab on behalf of CMS Collaboration 22 m long, 15 m in diameter Over a million geometrical volumes Many complex.
Geant4 Simulation of the Beam Line for the HARP Experiment M.Gostkin, A.Jemtchougov, E.Rogalev (JINR, Dubna)
05/04/06Predrag Krstonosic - Cambridge True particle flow and performance of recent particle flow algorithms.
Impact parameter resolutions for ILC detector Tomoaki Fujikawa (Tohoku university) ACFA Workshop in Taipei Nov
Geant4 Tracking Test (D. Lunesu)1 Daniela Lunesu, Stefano Magni Dario Menasce INFN Milano GEANT4 TRACING TESTs.
Track Reconstruction: the trf toolkit Norman Graf (SLAC) ILC-ACFA Meeting, Beijing February 6, 2007.
Global Tracking for CBM Andrey Lebedev 1,2 Ivan Kisel 1 Gennady Ososkov 2 1 GSI Helmholtzzentrum für Schwerionenforschung GmbH, Darmstadt, Germany 2 Laboratory.
C. Milsténe1 Muon Purity and Detection Efficiency Variation With Depth in an SiD Type Detector C. Milstene- Fermilab SiD Workshop- SLAC- October-2006 In.
Geant4 CPU performance : an update Geant4 Technical Forum, CERN, 07 November 2007 J.Apostolakis, G.Cooperman, G.Cosmo, V.Ivanchenko, I.Mclaren, T.Nikitina,
Ties Behnke: Event Reconstruction 1Arlington LC workshop, Jan 9-11, 2003 Event Reconstruction Event Reconstruction in the BRAHMS simulation framework:
STAR Simulation. Status and plans V. Perevoztchikov Brookhaven National Laboratory,USA.
2005/07/12 (Tue)8th ACFA Full simulator study of muon detector and calorimeter 8th ACFA Workshop at Daegu, Korea 2005/07/12 (Tue) Hiroaki.
09/06/06Predrag Krstonosic - CALOR061 Particle flow performance and detector optimization.
Eunil Won/Korea U1 A study of configuration for silicon based Intermediate Trackers (IT) July Eunil Won Korea University.
MONTE CARLO TRANSPORT SIMULATION Panda Computing Week 2012, Torino.
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.
GenFit and RAVE in sPHENIX under Fun4All
A Study of Reverse MC and Space Charge Effect Simulation with Geant4
IPHC, Strasbourg / GSI, Darmstadt
Testbeam comparisons arXiv:
(CMS GEANT4 simulation)
Data Analysis in Particle Physics
Pedro Arce (CERN/CIEMAT)
Pedro Arce (CERN/CIEMAT) (on behalf of CMS collaboration)
Geant4 in HARP V.Ivanchenko For the HARP Collaboration
The LHCb Level 1 trigger LHC Symposium, October 27, 2001
Use of GEANT4 in CMS The OSCAR Project
GEANT4 performance studies
Particles going through matter
Presentation transcript:

CHEP ’06 GEANT4E 1 GEANT4E: Error propagation for track reconstruction inside the GEANT4 framework Pedro Arce (CIEMAT) CHEP 2006, Mumbai, 13-17th February 2006

CHEP ’06 GEANT4E 2 Outlook What is GEANT4E GEANT4E components –Trajectory state –Target to propagate –Track propagator manager –Physics –Magnetic field –Track error propagation Comments on backwards tracking GEANT4E example –Results comparison with GEANE –CPU time comparison with GEANE How to make GEANT4E faster? Summary and plans

CHEP ’06 GEANT4E 3 What is GEANT4E  Track reconstruction needs to match signals in two detector parts  Propagate tracks from one detector part to another and compare with real measurement there  Make the average between the prediction and the real measurement  it needs the track parameter errors  Many experiments have used in the past GEANE (based on GEANT3) or their ‘ad hoc’ solution GEANT4e provides this functionality for the reconstruction software in the context of GEANT4

CHEP ’06 GEANT4E 4 Trajectory state: G4eTrajState -User defines the initial track parameters in a given point of the trajectory: G4eTrajState -Particle type -Position -Momentum -Track errors (5x5 HepSymMatrix) -Initial surface where parameters are defined -Two different trajectory states: -G4eTrajStateFree: -1/p,, , y_perp, z_perp (p_x = p cos( ) cos(  ), p_y = p cos( ) sin(  ), p_z = p sin( ), x_perp || trajectory, y_perp parallel to x-y plane) -G4eTrajStateOnSurface: parameters on a plane in an arbitrary direction -1/p, v’, w’, v, w (u,v,w is any orthonormal coordiante system, v, w on the plane)

CHEP ’06 GEANT4E 5 End of propagation: G4eTarget  User defines up to where the propagation must be done: the target  G4eTargetSurface oTrack is propagated until the surface is reached oThe surface is not part of GEANT4 geometry  Using a ghost geometry would mean that propagation in field is done twice  G4eNavigator takes care of the double navigation: on the full geometry and checking if surface is reached -overwrites ComputeStep() and ComputeSafety() to stop the navigation when the surface si reached oSeveral types defined  G4eTargetPlaneSurface: infinite plane  G4eTargetCylindrycalSurface: infinite length cylindrical surface ....  G4eTargetTrackLength oTrack is propagated until a certain track length is reached oImplemented as a G4VDiscreteProcess

CHEP ’06 GEANT4E 6 End of propagation: G4eTarget (2)  G4eTargetVolumeG4 oTrack is propagated until the surface of a GEANT4 volume  Track enters  or track exits  or both oUser can choose if volume refers to one or many G4LogicalVolume’s, G4VPhysicalVolume’s or G4VTouchable’s, with a simple syntax:  G4eTargetVolumeG4(“MuonCell”) G4LogicalVolume  G4eTargetVolumeG4(“MuonCell#1”) G4VPhysicalVolume  G4eTargetVolumeG4(“MuonChamber#3/MuonCell#2”) G4VTouchable  G4eTargetVolumeUserDefined (TO BE DONE) oTrack is propagated until the surface of a user-defined volume (outside the GEANT4 geometry)

CHEP ’06 GEANT4E 7 Managing tracks: G4ePropagator  User needs to propagate just one track  no need of run and events G4ePropagator creates a track and manages the step propagation  Creates a G4Track from the information given in the G4eTrajState  Invokes G4SteppingManager to propagate one step fpSteppingManager::Stepping();  And propagates the track errors for this step G4ePropagator::PropagateError( aTrack );  Stops when G4Track stops or when the target is reached -If defined target is not reached it returns an error  User can choose two ways of propagetion  Propagate until target is reached  Propagate step by step and return control after each step

CHEP ’06 GEANT4E 8 Physics: G4ePhysics  Reconstruction software wants the average trajectory followed by the particle: G4ePhysicsList  No multiple scattering  No secondaries allowed  No random fluctuations for energy loss  No hadronic processes  Huge cuts by default (User can change them with standard GEANT4 methods)  Negative energy loss when propagation is backwards  G4e/mu/hIonisation redefined through a templated class: G4ePhysicalProcesses  User could define its own physics list (simply add it to the G4RunManager ) oBut it should account for backwards tracking  Simple energy loss can be chosen: faster but less precise oBut time in calculating energy loss is  1 %

CHEP ’06 GEANT4E 9 Magnetic field: G4eMagneticField  User defines the magnetic field in the standard GEANT4 way  But GEANT4e has to handle the backwards propagation  Magnetic field has to be reversed  G4ePropagatorG4 takes care of replacing G4Mag_UsualEqRhs by G4eMag_UsualEqRhs, that overwrites EvaluateRhsGivenB() to reverse the field

CHEP ’06 GEANT4E 10 Track error propagation  Based on the equations of the European Muon Collaboration (same as GEANE) Error from curved trajectory in magnetic field Error from multiple scattering Error from ionisation  Formulas assume propagation along an helix -Need to make small steps to assure magnetic field constantness and not too big energy loss  makes it slower  Another approach to be studied: propagate the error together with the solving of the Runge-Kutta equations -Probably slower per step but might not need so many steps

CHEP ’06 GEANT4E 11 E loss in backwards tracking  When reconstruction software wants to know the trajectory that a track has described from a detector part to another, often the track has to be propagated backwards The track has to gain energy instead of losing it The value of the magnetic field has to be reversed  But the energy lost (or gained) in one step is calculated o Forward tracking: using the energy at the beginning of the step o Backward tracking: using the energy at the end of the step  And similarly for the curvature in magnetic field

CHEP ’06 GEANT4E 12 E loss in backward tracking (2)  This means that if you propagate a particle forwards and then backwards it would not recover the original energy A correction is applied: dEdx is calculated with the energy at the end of step, then half of this energy is added and dEdx is recalculated again - Something similar should be done for the propagation in magnetic field (under discussion with GEANT4 experts) Difference in energy when a 20 GeV track is propagated forwards and then backwards NO CORRECTION Difference in energy when a 20 GeV track is propagated forwards and then backwards CORRECTED

CHEP ’06 GEANT4E 13 GEANTE example Same example is implemented in GEANE and GEANT4E -Simple detector:  Magnetic field 10 kGauss (0.1 Tesla)  A track is propagated from the origin along all detectors until a plane surface, and then from the end point it is propagated backwards -Several variables are compared GEANE vs GEANT4E -Energy lost, deviation in position and angle for forward, backward and forward+backward tracking (this last one should be 0) -Trajectory errors for forward and backward “BeamPipe” Air “Centr.Det.” Air “ECAL” Cu “Solenoid” Al “HCAL” Fe “Muon” Air mu m

CHEP ’06 GEANT4E 14 Comparison with GEANE mu+: GeV, along X ± 10 degrees: -Energy lost (GeV) forwards backwards forwards+backwards - GEANE GEANT4E - Deviation in position (mm) - GEANE GEANT4E forwards backwards forwards+backwards Not the same because GEANT4 propagation is more precise

CHEP ’06 GEANT4E 15 Comparison with GEANE (2) mu+: GeV, along X ± 10 degrees: -Deviation in angle (mrad) - Trajectory errors (if target is reached) forwards backwards forwards+backwards Error(0,0) Error(1,1) Error(2,2) Error(3,3) Error(4,4) - GEANE GEANT4E - GEANE GEANT4E

CHEP ’06 GEANT4E 16 Timing GEANE vs GEANT4E 10k mu+ 20 GeV cross all the detector (time in msec/evt CPU: Athlon 1 GHz) -Same number of steps in GEANT3 and GEANT4 GEANT3GEANT4 GEANT30.39GEANT41.22 GEANE: Forward or backward 0.45GEANT4E: Forward or backward 1.65 GEANE: no error Forward or backward 0.28GEANT4E: no error Forward or backward 1.30  GEANT4 is 2.5 times slower than GEANT3  GEANT4E is 3.5 times slower than GEANE  Most of the time is taken by GEANT4 field propagation  Error propagation is ˜1/3 of total time Results have been checked by profiling VERY PRELIMINARY: Time in full CMS:  GEANE: 55 msec/track  GEANT4E: 44 msec/track ! But 3.5 X more steps in GEANE

CHEP ’06 GEANT4E 17 How to make GEANT4E faster?  The problem is indeed how to make it faster keeping the desired precision Some ideas:  Tune the step length to your desired precision -Define a fixed step length -Define the allowed variation in magnetic field -Define the allowed proportion of energy loss  Tune propagation in magnetic field -Choose IntegratorStepper -Choose precision parameters  Simplify geometry -Probably you do not need so much precision for reconstruction as for simulation  Optimize the error propagation -Try different matrix class  Propagate error with Runge-Kutta equations to make bigger steps

CHEP ’06 GEANT4E 18 Summary and plans  First prototype of GEANT4E is ready with similar functionality as GEANE  Simple example shows it is 3.5 times slower as GEANE (0.8 in real detector, although with bigger steps)  Many optimisation options available Next steps:  Release in GEANT4  Check in a real detector reconstruction (CMS)  Baseline software for track error propagator in CMS Cosmic Challenge (May 2006)  Try different optimisation options