Public Member Functions | |
CalibModel () |
NOTE: This scheme might have to be revised. We haven't dealt with different instruments, nor with flavors. Assuming, as seems likely, that we *never* have to keep track of constants for more than one instrument simultaneously (most likely not even sequentially within a single job), we can leave any mention of instrument out of these paths. If we want to preserve the possibility of maintaining more than one flavor simultaneously, flavor will have to be part of the path string. We could tack it on the end dynamically without having to do any violence to what we've got below.
Definition at line 48 of file CalibModel.cxx.
CalibModel::CalibModel | ( | ) | [inline] |
The constructor sets values into the externally-accessible string variables
Definition at line 52 of file CalibModel.cxx.
References CLID_Calib_DedxCal, CLID_Calib_EmcCal, CLID_Calib_EsTimeCal, CLID_Calib_EstTofCal, CLID_Calib_MdcAlign, CLID_Calib_MdcCal, CLID_Calib_MdcDataConst, CLID_Calib_MucCal, CLID_Calib_TofCal, CLID_Calib_TofSim, CLID_Dedx_Sim, CLID_TofQ_Elec, CalibData::DedxCal, CalibData::DedxSim, CalibData::EmcCal, CalibData::EsTimeCal, CalibData::EstTofCal, CalibData::MdcAlign, CalibData::MdcCal, CalibData::MdcDataConstant, CalibData::MucCal, nas, CalibData::pairs, root, deljobs::string, test, CalibData::Test_1, CalibData::Test_Gen, CalibData::TofCal, CalibData::TofQElec, and CalibData::TofSim.
00052 { 00053 // Initialize a bunch of strings here 00054 // First few are just for convenience in assembling the 00055 // the rest; no need for them to be public. 00056 std::string root = "/Calib"; 00057 std::string test = root + "/Test"; 00058 std::string nas = root + "/NAS"; 00059 std::string Mdc = root + "/Mdc"; 00060 std::string Tof = root + "/Tof"; 00061 std::string Dedx = root + "/Dedx"; 00062 std::string Emc = root + "/Emc"; 00063 std::string Muc = root + "/Muc"; 00064 std::string EsTime = root + "/EsTime"; 00065 std::string EstTof = root + "/EstTof"; 00066 // Practically all of these don't exist in any shape or form, 00067 // but go ahead an reserve names anyway. 00068 00069 00070 CalibData::Test_Gen = test + "_Gen"; 00071 CalibData::Test_1 = test + "_1"; 00072 00073 //the Mdc nodes 00074 00075 CalibData::MdcCal = Mdc + "Cal"; 00076 CalibData::TofCal = Tof + "Cal"; 00077 CalibData::DedxCal = Dedx + "Cal"; 00078 CalibData::EmcCal = Emc + "Cal"; 00079 CalibData::MucCal = Muc + "Cal"; 00080 CalibData::EsTimeCal = EsTime + "Cal"; 00081 CalibData::EstTofCal = EstTof + "Cal"; 00082 CalibData::MdcAlign = Mdc+"Align"; 00083 CalibData::TofQElec="/Calib/TofQElec"; 00084 CalibData::TofSim="/Calib/TofSim"; 00085 CalibData::DedxSim="/Calib/DedxSim"; 00086 CalibData::MdcDataConstant = Mdc+"DataConst"; 00087 00088 // Use same class for hot strips, dead strips or (merged) bad strips, 00089 // but different path in TDDS 00090 00091 CalibData::pairs.push_back(std::make_pair(CalibData::MdcCal, 00092 CLID_Calib_MdcCal)); 00093 CalibData::pairs.push_back(std::make_pair(CalibData::TofCal, 00094 CLID_Calib_TofCal)); 00095 CalibData::pairs.push_back(std::make_pair(CalibData::DedxCal, 00096 CLID_Calib_DedxCal)); 00097 CalibData::pairs.push_back(std::make_pair(CalibData::EmcCal, 00098 CLID_Calib_EmcCal)); 00099 CalibData::pairs.push_back(std::make_pair(CalibData::MucCal, 00100 CLID_Calib_MucCal)); 00101 CalibData::pairs.push_back(std::make_pair(CalibData::EsTimeCal, 00102 CLID_Calib_EsTimeCal)); 00103 CalibData::pairs.push_back(std::make_pair(CalibData::EstTofCal, 00104 CLID_Calib_EstTofCal)); 00105 CalibData::pairs.push_back(std::make_pair(CalibData::MdcAlign, 00106 CLID_Calib_MdcAlign)); 00107 CalibData::pairs.push_back(std::make_pair(CalibData::TofQElec, 00108 CLID_TofQ_Elec)); 00109 CalibData::pairs.push_back(std::make_pair(CalibData::TofSim, 00110 CLID_Calib_TofSim)); 00111 CalibData::pairs.push_back(std::make_pair(CalibData::DedxSim, 00112 CLID_Dedx_Sim)); 00113 CalibData::pairs.push_back(std::make_pair(CalibData::MdcDataConstant, 00114 CLID_Calib_MdcDataConst)); 00115 00116 00117 }