StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
tof_reload.C
1 // 2021/01/28 Zaochen Ye modified it with the latest time stamp
2 // 2019/12/10 Zaochen Ye modified it with the latest time stamp
3 
4 // $Id: tof_reload.C,v 1.8 2021/01/28 17:22:39 zye20 Exp $
5 // TOF annual database reload script
6 // expects table_reupload.C to be in the same directory
7 //
8 // $Log: tof_reload.C,v $
9 // Revision 1.8 2021/01/28 17:22:39 zye20
10 // modified for initialize Run21
11 //
12 // Revision 1.7 2021/01/28 17:16:35 zye20
13 // OBCVS: ----------------------------------------------------------------------
14 // :qi
15 //
16 // Revision 1.6 2019/12/15 02:40:47 zye20
17 // Initilizd BTOF 2020
18 //
19 // Revision 1.5 2019/01/16 16:42:29 geurts
20 // Run 19 preps
21 //
22 // Revision 1.4 2014/02/19 16:21:18 geurts
23 // *** empty log message ***
24 //
25 // Revision 1.3 2018/01/22 05:57:40 geurts
26 // run 13 time stamp
27 //
28 
29 void tof_reload()
30 {
31  // moved this line from the table_reupload script
32  gROOT->Macro("LoadLogger.C");
33 
34  // INL (StBTofINLCorr)
35  //gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofTDIGOnTray\", \"ofl\", \"2012-12-19 00:00:00\",\"2012-12-20 00:00:00\"");
36  //gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofINLSCorr\", \"ofl\", \"2019-11-25 00:00:00\",\"2019-11-26 00:00:00\"");
37 
38  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofINLSCorr\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
39 
40  // alignment (StBTofGeometry)
41  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofGeomAlign\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
42 
43  // DAQ Map and Tray Config (StBTofDaqMap, StBTofTables)
44  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofDaqMap\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
45  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofTrayConfig\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
46 
47  // trigger window, vpd delay (StBTofSortRawHit)
48  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofTrgWindow\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
49  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"vpdDelay\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
50 
51  // tofStatus (StBTofTables)
52  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofStatus\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
53 
54  // calibration: T0, Slewing, Zhit (StBTofCalibMaker)
55  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofTotbCorr\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
56  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofZbCorr\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
57  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofTOffset\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
58 
59  // calibration: start (StVpdCalibMaker)
60  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"vpdTotCorr\", \"ofl\", \"2020-12-20 00:00:00\",\"2020-12-21 00:00:00\"");
61 }