200 likes | 347 Views
BES III Software: Overview, Status and Plan. Weidong Li Representing BES III Software Group BES Annual Meeting, Beijing 1 st June 2005. Software Overview. Underlying framework GAUDI (originally developed by LHCb) Simulation GEANT4 Other external LIBs:
E N D
BES III Software: Overview, Status and Plan Weidong Li Representing BES III Software Group BES Annual Meeting, Beijing 1st June 2005
Software Overview • 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++ and Fortran • Reusing lots of code from Belle, Babar, ATLAS,GLAST … Weidong LI
BES III Data Flow Weidong LI
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 Weidong LI
Ascii Dump & Raw Data • Ascii Dump is a data format currently used as input to reconstruction algorithms and contains: • Digits in MDC, TOF, EMC and MUC • Hits in MDC, TOF, EMC and MUC • MC truth information e.g. particle ID, tracks and vertices etc. • Relationships between above three • Raw Data format was defined by DAQ group • Byte stream data • Mainly consists of detector identifiers, time channels, charge channels and status etc. • Converting Ascii Dump to Raw Data is done by a simple algorithm. Weidong LI
REC & DST Data TObject • ROOT REC Data contain both Digits and “Track Lists” • ROOT DST Data only have “Track Lists” • The associated RootDstCnvSvc was developed by SDU and Shuoping Wen. TRawData TRecEvent TMdcDigi TMdcTrack TTofDigi TTofTrack TEmcTrack TEmcDigi TMucDigi TMucTrack TDedx Weidong LI
Detector Description • Goals • Single source of generic detector description information • Independent of clients: simulation, reconstruction, event display etc. • Not limited to geometrical information but also includes description of material • Flexible and extensible description • New detector description ( Developed by PKU ) • Full detector description instead of description of basic detector dimensions • Using GDML syntax Weidong LI
Event Display • Technology choice • Based on ROOT • Take ATLFast’s simple event display as a start point • Relationship with the Boss framework • Status • The visualization of sub-detectors has been successfully implemented • Both MDC hits and tracks can also be displayed. Weidong LI
Use of Legacy Fortran Code • BES has ~30 event generators written in Fortran • Use C++ Hepevt_Wrapper to access the kinematics information generated by the generator • Tester, Howl and Radee have been integrated with the framework • GENBES card is still needed for running simulation. Weidong LI
G4 Simulation Integration • Based on ATLAS software and major components include: • G4SimAlg: takes care of initializing G4 properly and to simulate events • G4Svc • usually, only thing the user needs to talk to • triggers G4SvcRunManager initialization, event processing loop and termination • G4SvcRunManager • inherits from G4RunManager • extends functionality • AthenaHepMCtoG4EventAction • converts MonteCarlo event in Transient Event Store into a G4Event Weidong LI
Algorithm Developments Weidong LI
Calibration Status • Reusing GLAST calibration infrastructure calibUtil interface Signifies “uses” or “accesses” Write/register Search Read Metadata (persistent) Data (persistent) MySQL rdbms Dead chns (XML) CAL calibs (ROOT) • The following work is still in progress • Development of calibration algorithms • Format of calibration data that is output of calibration algorithms Weidong LI
Event Selection ADO Builder Physics Analysis Software • Physics analysis tools • Kinematics Fitting ( Telesis C++ implemented by SDU ) • Vertex finding ( missing ) • Particle Identification ( missing ) • A possible design • Physics Analysis Event Model • Analysis Data Object (ADO) builder DST objects Analysis Data objects Weidong LI
Data Flow EFPT Steering Controller(SC) Event Selection Software Event Selection Core Software • Data Flow components (like EFPT) belong to online DAQ domain. • EFPT controls SC like a state machine • SC returns event decision and error conditions to EFPT • The “core” software is the “framework” part of the online event selection software • Goal • Fast rejection and selection based on sequential steps and menus • Runs within the Data Flow application - Event Filter Processing Task (EFPT) • Makes substantial use of software developed in ‘offline’ project • Status • Steering and Steering Controller (SC) prototypes that control the selection of events in sequential steps ( implemented by R. Tang and SDU based on ATLAS HLT’s scheme ) • The Steering was tested in the online environment Weidong LI
Feature Extraction Algorithms • Initial track finding: use a LUT-based Hough Transform. • Local maximum finding: select good track candidates . • Track splitting: removes hits incorrectly assigned to a track • Final selection: selects final track candidates. • Tracking algorithms • Perform Fast track finding and fitting in the MDC • implemented candidates • MdcHough • MdcFastTrk ( segments -> tracks ) • EMC clustering algorithm • Combined builder • Track-cluster matching Pt = 1.5 GeV single μ σPt = 0.08 GeV Weidong LI
Areas where work is needed • Analysis software development • Particle identification • Vertex finding • Calibration algorithms and detector alignment services • Trigger simulation • Performance studies • Efficiency and resolution • Algorithms’ benchmarking and profiling • Any memory leakage • Cavern backgrounds and realistic detector simulation • Geometry services migrate to new detector description Weidong LI
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 • 2005-10-30 Boss beta release • Simulation and reconstruction chain functions reasonably well and can successfully process several thousand events. • Common physics analysis tools and utilities available. • Physics study in Boss can start. Weidong LI
Management Issue • WBS has been prepared • Break down into 250 tasks • Offline Software QA document He Kanglin Weidong LI
Summary/Outlook • A tremendous amount of progress in the past year: • Lots of developments in the framework core software including event I/O, event data model, data management, detector description, event display and software integration etc. • Both simulation and reconstruction are in good shape • Performance of reconstruction algorithms is critical to the upcoming beta release • Another major focus is the physics analysis software and calibration algorithms • More and more coordination is required in software testing,validation, integration and release publication. Weidong LI
Thank you ! Weidong LI