Presentation is loading. Please wait.

Presentation is loading. Please wait.

TOF monitor system Qian LIU. Outline TOF Monitor system introduction (briefly) Arithmetic of TOF Monitor system analysis program How to run the program.

Similar presentations


Presentation on theme: "TOF monitor system Qian LIU. Outline TOF Monitor system introduction (briefly) Arithmetic of TOF Monitor system analysis program How to run the program."— Presentation transcript:

1 TOF monitor system Qian LIU

2 Outline TOF Monitor system introduction (briefly) Arithmetic of TOF Monitor system analysis program How to run the program

3 TOF Monitor System …

4 TOF Monitor System Analysis What we do measure is: T and Q of TOF and Ref-PMT. In program, they’ve been stored to an array: T[450] and Q[450] 0~175 is East Barrel TOF, start as BIE0 and BOE0. 176~223 is East End-cap. 224~399 is West Barrel TOF, start as BIW0 and BOW0. 400~447 is West End-cap. 448~449 is Ref-PMT Since the raw data coming from the two racks, they are stored in fRackTree[2]. Then combine the two racks data to fDataTree. (this is because in the raw data it is stored separately and may not sandwich). The time difference is stored into S[450] and all events data are stored in fSDataTree.

5 The error message from reading data: 1. Are you analysising TOF Monitor data? The input file name must start with… (file name check) 2. Reading input file ERROR! 3. There is no data in this file! 4. Can not open file ! 5. Input file is too large! Is it TOF Monitor data? (>100M) 6. File head is not 0x1234aaaa! 7. File date is not correct, change it to Jan! 8. File 2nd head is not 0x1234aabb! 9. File 3rd head is not 0x1234bbbb! 10. Rob's head is not 0x1234cccc! 11. Rod's head is not 0xdd1234dd! 12. Rod's head is not 0xee1234ee! 13. This is not TOF data at all! 14. No such TOF rack at all! 15. Status is not 3! (solenoid status) The error message from combine two racks’ data: 16. Storing rack data ERROR! 17. Two racks' data entries are not equal! 18. Two racks' data lvID are not equal! (event ID) 19. Two racks' solenoid types are not equal!

6 Generate T Histogram T histogram: 1. draw it with cut: T != -1. 2. If the T is “overflow”, set crossband = true. “Overflow” means T data is larger than 0x3ffff, so back to 0.

7 Generate Q Histogram Q Histogram: 1. draw it with cut: Q>0. 2. An arithmetic is adopted to set the low and up edge. If the entries in this edge less than the total events – 10, an error message will be displayed. The mean value, sigma, chisquare, error of mean, error of sigma are stored in Qm[450], Qs[450], Qxs[450], Qme[450], Qse[450]. Then Generate 2D Q plot.

8 Generate T diff Histogram T diff histogram: 1. if the crossband is true, a correction will be performed. 2. An arithmetic is adopted to set the low and up edge. 3. the data is stored in fSDataTree. The mean value, sigma, chisquare, error of mean, error of sigma are stored in Sm[450], Ss[450], Sxs[450], Sme[450], Sse[450]. Then generate 2D T diff plot.

9 Read history data from database Read history data from database and store to fDBtree. The cut is: the same high voltage for TOF (abs<5V), and the same temperature for Ref-PMT (abs<0.5 degree). (Maximum number of selected record is 1000). A flag for each TOF is used. It’s 8 Bit. The low 4 bit (0~3) for Qm, Qs, Sm, Ss, separately. If it’s 1, it means it could be used for history check. The high 4 bit (4~7) for Qm, Ss, Sm, Ss. If it’s 1, it means it is in 3*sigma of the average value. Since this check may take for a while, I’m thinking remove this part to a separate program, and automatically run at midnight. Of course, it can also be run manually.

10 Generate Qm… History Hist. Now no correction is performed. Since the histogram may not be a Gaussian, I will use the Mean and RMS to judge the data status.

11 How to run it Easy. The only thing you need to do is select a file you want to analysis from the file menu.

12 The log view

13 Manual …

14 Mahalo~

15 Kinematics BESII: J/psi decays to pppipi

16 Kinematics BESIII Error matrix for x,y,z is set as: 100 0 0 0 100 0 0 0 100

17 Kinematics BESIII Set all covariance error to 0, and error to 100.


Download ppt "TOF monitor system Qian LIU. Outline TOF Monitor system introduction (briefly) Arithmetic of TOF Monitor system analysis program How to run the program."

Similar presentations


Ads by Google