1 / 23

BESIII Offline Software Overview

BESIII Offline Software Overview. Weidong Li & Yajun Mao BESIII Collaboration Meeting, Beijing 12 January 2006. Infrastructure and Environment. Underlying framework GAUDI (originally developed by LHCb) Simulation GEANT4 Other external LIBs: CERNLIB, CLHEP, ROOT, AIDA, XercesC, GDML …

nyx
Download Presentation

BESIII Offline Software Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BESIII Offline Software Overview Weidong Li & Yajun Mao BESIII Collaboration Meeting, Beijing 12January 2006

  2. Infrastructure and Environment • Underlying framework • GAUDI (originally developed by LHCb) • Simulation • GEANT4 • Other external LIBs: • CERNLIB, CLHEP, ROOT, AIDA, XercesC, GDML … • Database: PGSQL/MySQL • Software configuration management • CMT and CVS • Computer language: C++ (BESII legacy code written in Fortran ) • Operation system: Redhat 7.3/gcc3.2 • Reused code from Belle, BaBar, ATLAS,GLAST … W.Li and Y. Mao

  3. Organization • Institutes participating • Institute of High Energy Physics • Peking University • Shandong University • University of Science and Technology of China • Hunan University • Zhejiang University • Joint Institute for Nuclear Research, Russian Weidong Li Jinfa Qiu Huaimin Liu Zepu Mao Kanglin He W.Li and Y. Mao

  4. Event Data Generator • HEPEVT Data • Kinematics information only • RAW Data • Delivered by DAQ for reconstruction • Byte stream format • Simulated Event Data • Contain digits, hits and other MC truth information • Ascii file format • REC & DST Data • Reconstructed Data is event data written as output of reconstruction procedure • DST Data is a reduced event representation suitable for analysis • Both in ROOT format HEPEVT Data G4 Simulation RAW Data Simulated Event Data Reconstruction Rec & DST Data W.Li and Y. Mao

  5. Event Data Conversion Services Real data flow T1 Apparent data flow Algorithm A Data T1 Data T2, T3 T2 T3 Data T2 Algorithm B Data T4 T4 Data T3, T4 Algorithm C Data T5 T5 W.Li and Y. Mao

  6. Geometry, Materials, Alignment… XML writer XML description GEANT4 Schema ROOT Schema ROOT Schema Classes for Simulation Classes for Reconstruction Classes for Event Display Detector Description • Based GDML (Geometry Description Markup Language), a kind of XML developed by GEANT4 group. • Peking University group expanded the GEANT4 Schema and developed a new ROOT Schema for BESIII applications. • GDML Detector Description has been used for simulation, event display and MUC reconstruction. W.Li and Y. Mao

  7. MDC GeomSvc TOF GeomSvc EMC GeomSvc MUC GeomSvc Objects for Reconstruction MDC DAO TOF DAO EMC DAO MUC DAO Geometry, Materials XML description Database Access to Geometry Data Application Layer Data Access Layer W.Li and Y. Mao

  8. Event Display Tool: BesVis • Based onROOT, OpenGL, X3DandXML • Support both 2D and 3D view • Operations and controls available through menu and toolbar items • First version was released in December 2005. W.Li and Y. Mao

  9. Generator Simulation Transient Event Store ① Simulation ② Simulation Integration • BES has ~30 event generators written in Fortran • Use C++ Hepevt_Wrapper to access the kinematics information generated by the generators • BOOST (BESIII Objected Oriented Simulation Tool) was originally developed in a independent framework. • Integration with BOOST simulation is based on ATLAS/Athena software. • Currently both BES generators and BOOST have been integrated with the offline framework. W.Li and Y. Mao

  10. calibUtil interface Signifies “uses” or “accesses” Write/register Search Read Metadata (persistent) Data (persistent) MySQL rdbms Dead chns (XML) CAL calibs (ROOT) Calibration Status • Framework is based on GLAST calibration infrastructure • Status • Developed MDC, TOF and EMC calibration prototype algorithms • Defined calibration data for each sub-detector • Reconstruction algorithms are able to retrieved calibration constants through the framework. W.Li and Y. Mao

  11. Drift Chamber Software Status • Simulation • Stereo cells are described by G4TwistTube. • Digitization is based on parameters from test beam data. • The calibration algorithm contains correction to • X-T relation, spatial resolution,T0, wire position, time walk. • Reconstruction algorithms are: TrkReco and MdcPatRec. For single 1 GeV muons, both of them obtain: • Efficiency: ~99% • Spatial resolution: ~110 μm • dE/dx resolution: ~6% consistent withdetectordesign report. W.Li and Y. Mao

  12. TOF Software Status • Simulation • Two-layered structure for Barrel • Digitization takes into account: light production, light propagation and PMT response etc. • Intrinsic time resolution: 85 ps • Calibration & reconstruction • Calibration algorithm includes time correction, effective velocity and attenuation calibration. • Reconstruction results have been used in particle identification W.Li and Y. Mao

  13. EM Calorimeter Software Status • Simulation • End-cap is described by G4IrregBox. • Full simulation of readout electronics is included in digitization. • Energy calibration • Digit calibration: converting ADC channels into energy. • Cluster calibration: correcting non-linearity of readout signals. • Reconstruction • ΔE/E = ~2%@1GeV • σz = 0.6 cm@1GeV W.Li and Y. Mao

  14. Window Fired strips Ext track Muon Counter Software Status • Simulation • RPC as sensitive detector • Detailed to each read-out strip • Reconstruction • Tracking algorithm is seeded by the tracks extrapolated from MDC. • Searching for hits gap by gap within predefined windows. • Reconstruction efficiency: ~ 99% @ 1GeV W.Li and Y. Mao

  15. Physics Analysis Software Status • Prototype software for physics analysis • Analysis event data model • Analysis event builder • Kinematics fitting • Secondary vertex finding • Particle identification • Physicists already start checking physics performance. W.Li and Y. Mao

  16. StepSequencer Reconstruction algorithms Algorithm sequences Reconstruction result Consistent with criteria N Reject Y End of AlgSeq N Y Online Event Selection Software • Fast reconstruction algorithms and steering prototypes that control eventselection have been developed and tested in the online environment. • Share the same framework with offline. • Fast reconstruction algorithms shall be executed step by step according to the predefined sequences. In each step, event is rejected if it does not satisfy any selection criteria. Accept W.Li and Y. Mao

  17. Release Status • BOSS alpha release • integration with BOOST simulation ( done ) • Running the reconstruction chain for MDC, TOF, EMC and MUC can be achieved in the BOSS Gaudi framework. ( done ) • EDM for both Raw Data and reconstructed data developed. Completion of fully functional Event Data I/O. ( done ) Status: published on 30th of May, 2005 • BOSS beta release • Simulation and reconstruction chain functions reasonably well and can successfully process thousands of events. ( done ) • Common physics analysis tools and utilities available. ( done ) • Physics study in BOSS can start. Status: published on 17th of November, 2005 W.Li and Y. Mao

  18. Progress since 2005 Annual Meeting • Analysis software development • Analysis event builder (done) • Particle identification (done) • Secondary vertex finding (done) • Calibration infrastructure and algorithm prototypes (done) • Event Display Tool: BesVis (done) • Migration to GDML detector description (done for MUC ) • Performance studies (ongoing) • Physics: efficiency and resolution • System: algorithms’ benchmarking and profiling, memory leakage etc. • Cavern backgrounds and realistic detector simulation (ongoing) W.Li and Y. Mao

  19. Areas where work is needed • Detector alignment, dead/hot channel services • Magnetic field service • Parameters database • Simulation of Level1 hardware trigger • Mixing of background events • Migration to Gaudi v16r4/LCGCMT_35 that has been tested in our target operation system (SLC3). • Analysis software will still evolve based on experience obtained from the current prototype. • Physics study for online Event Filter • Data Challenges W.Li and Y. Mao

  20. Data Challenge (1) • Motivation • To understand the BESIII computing environment • CPU, storage and network requirements, system performances, bottle necks, etc… • To check and validate the BESIII software • Iterate on a set of Data Challenges of increasing complexity • Running ‘simulation’, ‘reconstruction’ and ‘analysis’ on a large scale • Testing calibration procedures • Adding trigger simulation and event filter algorithms • Producing physics results W.Li and Y. Mao

  21. Data Challenge (2) • It should include • Subsystem tests: simulation, calibration, reconstruction and analysis • Full offline chain test: Generationsimulationdigitization backgroundmixing reconstructionanalysis • Trigger/Event filter/Offline chain test • Stress tests for scaled systems (10%, 25%…) W.Li and Y. Mao

  22. Summary • A tremendous amount of progress in 2005 • Simulation is in good shape and people are focusing on more realistic digitization procedures. • Calibration Infrastructure and prototype algorithms have been developed. • Reconstruction algorithms are being tuned for better performance. • Physics analysis prototype software are also developed and are being used in physics studies. • Data challenge and software performance optimization are two major tasks this year. W.Li and Y. Mao

  23. Thank you ! W.Li and Y. Mao

More Related