Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CalibModel Class Reference

List of all members.

Public Member Functions

 CalibModel ()

Detailed Description

Provides convenience definitions of strings which are paths to calibration data in the TDDS. The class has no data members. The strings it initializes are just "there"; existing in this module and extern everywhere else (see the fancy footwork in CalibModel.h). The single static instance of CalibModel declared in this file causes the constructor to be run, initializing the strings, and a vector of pairs. The pairs are used to match each string with the appropriate Gaudi class id.

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.


Constructor & Destructor Documentation

CalibModel::CalibModel  )  [inline]
 

The constructor sets values into the externally-accessible string variables

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 Mdc = root + "/Mdc";
00061     std::string Tof = root + "/Tof";
00062     std::string Dedx = root + "/Dedx";
00063     std::string Emc = root + "/Emc";
00064     std::string Muc = root + "/Muc";
00065     std::string EsTime = root + "/EsTime";
00066     std::string EstTof = root + "/EstTof";
00067     // Practically all of these don't exist in any shape or form,
00068     // but go ahead an reserve names anyway.
00069 
00070 
00071     CalibData::Test_Gen = test + "_Gen";
00072     CalibData::Test_1   = test + "_1";
00073   
00074     //the Mdc nodes
00075     
00076     CalibData::MdcCal = Mdc + "Cal";
00077     CalibData::TofCal = Tof + "Cal";
00078     CalibData::DedxCal = Dedx + "Cal";
00079     CalibData::EmcCal = Emc + "Cal";
00080     CalibData::MucCal = Muc + "Cal";
00081     CalibData::EsTimeCal = EsTime + "Cal";
00082     CalibData::EstTofCal = EstTof + "Cal";
00083     CalibData::MdcAlign = Mdc+"Align";
00084     CalibData::TofQElec="/Calib/TofQElec";
00085     CalibData::TofSim="/Calib/TofSim";
00086     CalibData::DedxSim="/Calib/DedxSim";
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 
00114    
00115   }


The documentation for this class was generated from the following file:
Generated on Wed Feb 2 15:55:53 2011 for BOSS6.5.5 by  doxygen 1.3.9.1