StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
tofsim_reload.C
1 // 2019/12/10 Zaochen Ye modified it with the latest time stamp
2 
3 // $Id: tofsim_reload.C,v 1.3 2021/01/28 17:16:35 zye20 Exp $
4 // TOF annual database reload script
5 // expects table_reupload.C to be in the same directory
6 //
7 // $Log: tofsim_reload.C,v $
8 // Revision 1.3 2021/01/28 17:16:35 zye20
9 // OBCVS: ----------------------------------------------------------------------
10 // :qi
11 //
12 // Revision 1.2 2019/12/15 02:40:57 zye20
13 // Initilizd BTOF 2020
14 //
15 // Revision 1.1 2019/01/16 16:42:29 geurts
16 // Run 19 preps
17 //
18 // Revision 1.3 2013/01/22 05:57:40 geurts
19 // run 13 time stamp
20 //
21 
22 void tofsim_reload()
23 {
24  // moved this line from the table_reupload script
25  gROOT->Macro("LoadLogger.C");
26 
27  // DAQ Map and Tray Config (StBTofDaqMap, StBTofTables)
28  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofDaqMap\", \"ofl\", \"2020-12-10 23:59:59\",\"2020-12-13 00:00:00\"");
29  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofTrayConfig\", \"ofl\", \"2020-12-10 23:59:59\",\"2020-12-13 00:00:00\"");
30 
31  //-----------------------------------------------------------------------------------------------------
32  //add by Zaochen, tables for sim to take resolutions from calibration to help provide a more realistic simulation of VPD and BTOF responses, they are input for St...SimMaker
33  //-----------------------------------------------------------------------------------------------------
34  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"vpdSimParams\", \"ofl\", \"2020-12-10 23:59:59\",\"2020-12-13 00:00:00\"");
35  gROOT->ProcessLine(".x table_reupload.C(\"Calibrations_tof\", \"tofSimResParams\", \"ofl\", \"2020-12-10 23:59:59\",\"2020-12-13 00:00:00\"");
36  //-----------------------------------------------------------------------------------------------------
37  //-----------------------------------------------------------------------------------------------------
38 }