Presentation is loading. Please wait.

Presentation is loading. Please wait.

Status of Database and Calibration Project In BES-3 Offline Software System Status of Database and Calibration Project In BES-3 Offline Software System.

Similar presentations


Presentation on theme: "Status of Database and Calibration Project In BES-3 Offline Software System Status of Database and Calibration Project In BES-3 Offline Software System."— Presentation transcript:

1 Status of Database and Calibration Project In BES-3 Offline Software System Status of Database and Calibration Project In BES-3 Offline Software System Bin Huang, Chunxiu Liu, Dayong Wang, Jianming Bian, Jinfa Qiu, Linli Jiang, Linghui Wu, Qiumei Ma, Yuguang Xie Jan. 12, 2006 Abstract The work of this group is one of the important parts in our BES-3 offline software project. And it includes the following jobs: Framework(Calib), DB, Sub-Detector calibration algorithms, Auto-Job-Sub-Script and Monitor programs. In this report, I would like to talk about the Status of Database and Calibration for BES-3 in the following way:

2 Introduction The offline calibration framework Database (MYSQL) Auto-Job-Sub-Script Sub-detector calibration algorithms Summary Status of Database and Calibration Project In BES-3 Offline Software System

3 一 Introduction The experimental data analysis flow The significance of offline calibration The basic process of offline calibration Status of Database and Calibration Project In BES-3 Offline Software System

4 e+e- Detector physics Data(Raw, MC) Reconstruction Physics Results MC Calibration Status of Database and Calibration Project In BES-3 Offline Software System

5 The significance of offline calibration To guarantee the physics data correction Raw data Correcting and Scaling Groups of Coefficient Rec. and Physics Result To track the qualification of the data acquisition Detector performance Monitor program Hardware persons

6 The flow of BES2 offline calibration Status of Database and Calibration Project In BES-3 Offline Software System

7 The relative parameters after offline calibration Status of Database and Calibration Project In BES-3 Offline Software System

8 二 The offline calibration framework The philosophy of designing the program ( Gaudi, C++, ROOT… )GLASTGLAST The structure of the framework and the packages The calibration data : the metadata, stored in the database(MySQL), and the bulk data (ROOT file) Calibration data will be made available for read access according to usual Gaudi practice for TDS data.

9 Status of Database and Calibration Project In BES-3 Offline Software System The offline calibration framework

10 The Packages of the Calibration Framework CalibSvc: CalibDataSvc the DataSvc responsible for providing access to data in a TDS. CalibMySqlCnvSvc the conversionSvc for metadata “conversion” CalibRootCnvSvc CalibXmlCnvSvc calibUtil: provide the interface between the client of calibration fremwork and the MySQL DataBase facilities : supply tools that are commonly used in the framework rdbGui : a GUI that can register and write the metadata dbms rdbModel: contain the classes and interfaces that describe and access a rdb xmlBase: used for interpret and produce xml files 。 CalibData: define the Data Model and corresponding ClassID of each subdetector in the TCDS, including the runfrom and runto numbers in each dataset the ConversionSvc for bulk data conversion Status of Database and Calibration Project In BES-3 Offline Software System

11 TCDS Structure Transient (Calibration) Data Store Calib MdcCal TofCalDedxCal vanilla /Calib/MdcCal/vanilla /Calib/TofCal/vanilla /Calib/DedxCal/vanilla (More) digi /Calib/MdcCal/digi Status of Database and Calibration Project In BES-3 Offline Software System

12 The Data Model design: MDC, TOF and dE/dx The test of the framework: MDC, TOF and dE/dx The file written from TCDS Works to be continued on EMC and MUC

13 The selection(Oracle 、 MySQL 、 Postegre) / installation The construction of Metadata list Test of the system (Mdc Tof dE/dx) Browsing the Database from Website Status of Database and Calibration Project In BES-3 Offline Software System 三 Database (MYSQL)

14 Field nameWho fillsExplanation, typical contents Ser_noMysql (rdbms)Unique serial # for this record Calib_typeCalibrator Mdc Emc Tof Muc Dedx … Data_fmtCalibrator XML or ROOT Run_fromCalibratorStart run to which calibration applies Run_toCalibratorEnd run to which calibration applies Sft_verCalibrator Cal_verCalibrator Cal_parCalibrator Rec_algCalibrator Rec_parCalibrator StatusCalibrator ‘ OK ’, ‘ TEST ’, ‘ ABORT ’ Creatorprog (e.g.rdbGui)Name of program or script creating entry Uidprog (e.g.rdbGui)login id Enter_timeMysql (rdbms)Time entry was made in database Data_identCalibratorTypically file spec. Input_descCalibratorDescription of input data. NotesCalibratorAnything else about calibration or conditions under which it was performed that might be of interest. Status of Database and Calibration Project In BES-3 Offline Software System

15 Data (persistent)Metadata (persistent) Calibs (XML) Calibs (ROOT) MySQL rdbms calibUtil Search db reference uses executable library Conversion Services (CalibSvc) reads Status of Database and Calibration Project In BES-3 Offline Software System

16

17 A very simple script finished # !/bin/bash TIMES=5 iter=0 while [ "$iter" -lt "$TIMES" ] do echo -n "$iter" boss.exe jobMdcCalib.txt iter=`expr $iter + 1` cp MdcCalConst.root "MdcCalConst$iter.root" echo "MdcCalConst$iter.root created" mv histogram.root "T0histogram_$iter.root" Done exit Status of Database and Calibration Project In BES-3 Offline Software System 四 Auto-Job-Sub-Script Manpower saved

18 The calibration algorithm for MDC The calibration algorithm for dE/dx The calibration algorithm for TOF The calibration algorithm for EMC The calibration algorithm for MuC Status of Database and Calibration Project In BES-3 Offline Software System 五 Sub-detector calibration algorithms

19 2. The basic calibration method we used Survival analysis mathod ( 残差分析 ) Δd = d drift – doca where d drift : drift distance doca: the distance between the track and the hit wire 1. What have we considered ? X-T calibration, T 0 calibration, Wire survey calibration, Q-T calibration, and Space resolution calibration. ΔT0 分布 Status of Database and Calibration Project In BES-3 Offline Software System

20 Start Initailize ( histo , calib const … ) Execute ( Rec, Fill the histo…) Survaval analyse Correction and Renew the const ( XT/T0/ … ) Finish Main classes designed : MdcCalibAlg MdcCalib MdcCalHistMgr MdcCalConstMgr MdcCalEvent MdcCalGeo finailize( ) Status of Database and Calibration Project In BES-3 Offline Software System 3. The flow of the program (MdcCalibAlg) N

21 Status of Database and Calibration Project In BES-3 Offline Software System 3. The flow of the program (MdcCalibAlg)

22 残差分布 ΔT0 分布 Status of Database and Calibration Project In BES-3 Offline Software System 4. Some results tested by MC data Results after T 0 calibration

23 丝位偏移量分布 丝位修正量 (mm) Results after survey calibration 每根丝的位置修正结果 Root 格式的直方图文件 (Wire.root) 4. Some results tested by MC data Status of Database and Calibration Project In BES-3 Offline Software System

24 MdcCalibFunSvc TimeToDistFun DistToTimeFun … Mdc Calibration Constants TCDS Reconstruction Simulation Others MdcCalibFunSvc :完成漂移室刻度常数到相关物理量的转换过 程,既方便各模块调用,也有利于刻度人员的更新和维护。 Calibration 5.Mdc Calibration Function Service Status of Database and Calibration Project In BES-3 Offline Software System

25 dE/dx Calibration Software Flow Status of Database and Calibration Project In BES-3 Offline Software System

26 (For the detail, please see the report given by Dayong Wang in this meeting ) The resolution after calibration

27 TOF Calibration Software Flow Tof Calibration Algorithm calibration constants Tof Reconstruction Algorithm Calibration framework converter Initialize() execute() finalize() TimeCalib() SpeedCalib() AttenCalib() Calibration data ( Bhabha events ) Calibration constant Data base Calibration data ( Bhabha events ) Status of Database and Calibration Project In BES-3 Offline Software System

28 Time after calibration dt vs zHitTime resolution Status of Database and Calibration Project In BES-3 Offline Software System (For the detail, please see the report given by Linli Jiang in this meeting )

29 Energy Calibration of BESIII EMC  ‘ Digi’-calibration Bhabha calibration  0 calibration Radiative Bhabha calibration  ‘Cluster’-calibration Status of Database and Calibration Project In BES-3 Offline Software System The R&D of calibration method / finished The Algorithms design / working on

30 Gamma-Gamma Calibration gi Intermediate Data (matrix, vector) Bhabha calibration const. Bhabha calibration flow chart Status of Database and Calibration Project In BES-3 Offline Software System

31 Muc Calibration Software The alignment of Muc / finished The R&D of calibration method / working on The Algorithms design / working on

32 Status of Database and Calibration Project In BES-3 Offline Software System TOF Calibration Software Flow

33 The database and calibration software was made a big progress in the last year. Calibration framework were released at the end of 2005 Sub-detector algorithm softwares are carrying out smoothly: MDC, dE/dx and TOF  released soon EMC and MUC  worked on Auto-job-submit-script: a very simple one-- finished Status of Database and Calibration Project In BES-3 Offline Software System Summary

34 In this year, we will have much works on the aboves (Algorithms modification, check with MC data … ) and the other Algorithms ( monitor programs, MDC D/H check …) should be considered soon. So we hope that more persons would join us! ---- Welcome! Status of Database and Calibration Project In BES-3 Offline Software System Summary

35 Thank you all !


Download ppt "Status of Database and Calibration Project In BES-3 Offline Software System Status of Database and Calibration Project In BES-3 Offline Software System."

Similar presentations


Ads by Google