Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:13

0001 #ifndef PixelPortCardSettingNames_h
0002 #define PixelPortCardSettingNames_h
0003 /**
0004 * \file CalibFormats/SiPixelObjects/interface/PortCardSettingNames.h
0005 * \brief This is just a naespe populated with default values
0006 *
0007 *   A longer explanation will be placed here later
0008 *
0009 */
0010 
0011 #include <string>
0012 namespace pos {
0013   namespace PortCardSettingNames {
0014     // AOH
0015     const std::string k_AOH_Bias1 = "AOH_Bias1";
0016     const std::string k_AOH_Bias2 = "AOH_Bias2";
0017     const std::string k_AOH_Bias3 = "AOH_Bias3";
0018     const std::string k_AOH_Bias4 = "AOH_Bias4";
0019     const std::string k_AOH_Bias5 = "AOH_Bias5";
0020     const std::string k_AOH_Bias6 = "AOH_Bias6";
0021     const std::string k_AOH_Gain123 = "AOH_Gain123";
0022     const std::string k_AOH_Gain456 = "AOH_Gain456";
0023 
0024     const std::string k_AOH1_Bias1 = "AOH1_Bias1";
0025     const std::string k_AOH1_Bias2 = "AOH1_Bias2";
0026     const std::string k_AOH1_Bias3 = "AOH1_Bias3";
0027     const std::string k_AOH1_Bias4 = "AOH1_Bias4";
0028     const std::string k_AOH1_Bias5 = "AOH1_Bias5";
0029     const std::string k_AOH1_Bias6 = "AOH1_Bias6";
0030     const std::string k_AOH1_Gain123 = "AOH1_Gain123";
0031     const std::string k_AOH1_Gain456 = "AOH1_Gain456";
0032 
0033     const std::string k_AOH2_Bias1 = "AOH2_Bias1";
0034     const std::string k_AOH2_Bias2 = "AOH2_Bias2";
0035     const std::string k_AOH2_Bias3 = "AOH2_Bias3";
0036     const std::string k_AOH2_Bias4 = "AOH2_Bias4";
0037     const std::string k_AOH2_Bias5 = "AOH2_Bias5";
0038     const std::string k_AOH2_Bias6 = "AOH2_Bias6";
0039     const std::string k_AOH2_Gain123 = "AOH2_Gain123";
0040     const std::string k_AOH2_Gain456 = "AOH2_Gain456";
0041 
0042     const std::string k_AOH3_Bias1 = "AOH3_Bias1";
0043     const std::string k_AOH3_Bias2 = "AOH3_Bias2";
0044     const std::string k_AOH3_Bias3 = "AOH3_Bias3";
0045     const std::string k_AOH3_Bias4 = "AOH3_Bias4";
0046     const std::string k_AOH3_Bias5 = "AOH3_Bias5";
0047     const std::string k_AOH3_Bias6 = "AOH3_Bias6";
0048     const std::string k_AOH3_Gain123 = "AOH3_Gain123";
0049     const std::string k_AOH3_Gain456 = "AOH3_Gain456";
0050 
0051     const std::string k_AOH4_Bias1 = "AOH4_Bias1";
0052     const std::string k_AOH4_Bias2 = "AOH4_Bias2";
0053     const std::string k_AOH4_Bias3 = "AOH4_Bias3";
0054     const std::string k_AOH4_Bias4 = "AOH4_Bias4";
0055     const std::string k_AOH4_Bias5 = "AOH4_Bias5";
0056     const std::string k_AOH4_Bias6 = "AOH4_Bias6";
0057     const std::string k_AOH4_Gain123 = "AOH4_Gain123";
0058     const std::string k_AOH4_Gain456 = "AOH4_Gain456";
0059 
0060     const unsigned int k_AOH_Bias1_offset = 0x0;
0061     const unsigned int k_AOH_Bias2_offset = 0x1;
0062     const unsigned int k_AOH_Bias3_offset = 0x2;
0063     const unsigned int k_AOH_Bias4_offset = 0x4;
0064     const unsigned int k_AOH_Bias5_offset = 0x5;
0065     const unsigned int k_AOH_Bias6_offset = 0x6;
0066     const unsigned int k_AOH_Gain123_offset = 0x3;
0067     const unsigned int k_AOH_Gain456_offset = 0x7;
0068 
0069     // AOH fpix
0070     const unsigned int k_fpix_AOH_base = 0x10;
0071     const unsigned int k_fpix_AOH_Bias1_address = k_fpix_AOH_base + k_AOH_Bias1_offset;
0072     const unsigned int k_fpix_AOH_Bias2_address = k_fpix_AOH_base + k_AOH_Bias2_offset;
0073     const unsigned int k_fpix_AOH_Bias3_address = k_fpix_AOH_base + k_AOH_Bias3_offset;
0074     const unsigned int k_fpix_AOH_Bias4_address = k_fpix_AOH_base + k_AOH_Bias4_offset;
0075     const unsigned int k_fpix_AOH_Bias5_address = k_fpix_AOH_base + k_AOH_Bias5_offset;
0076     const unsigned int k_fpix_AOH_Bias6_address = k_fpix_AOH_base + k_AOH_Bias6_offset;
0077     const unsigned int k_fpix_AOH_Gain123_address = k_fpix_AOH_base + k_AOH_Gain123_offset;
0078     const unsigned int k_fpix_AOH_Gain456_address = k_fpix_AOH_base + k_AOH_Gain456_offset;
0079 
0080     // AOH bpix
0081     const unsigned int k_bpix_AOH1_base = 0x08;
0082     const unsigned int k_bpix_AOH1_Bias1_address = k_bpix_AOH1_base + k_AOH_Bias1_offset;
0083     const unsigned int k_bpix_AOH1_Bias2_address = k_bpix_AOH1_base + k_AOH_Bias2_offset;
0084     const unsigned int k_bpix_AOH1_Bias3_address = k_bpix_AOH1_base + k_AOH_Bias3_offset;
0085     const unsigned int k_bpix_AOH1_Bias4_address = k_bpix_AOH1_base + k_AOH_Bias4_offset;
0086     const unsigned int k_bpix_AOH1_Bias5_address = k_bpix_AOH1_base + k_AOH_Bias5_offset;
0087     const unsigned int k_bpix_AOH1_Bias6_address = k_bpix_AOH1_base + k_AOH_Bias6_offset;
0088     const unsigned int k_bpix_AOH1_Gain123_address = k_bpix_AOH1_base + k_AOH_Gain123_offset;
0089     const unsigned int k_bpix_AOH1_Gain456_address = k_bpix_AOH1_base + k_AOH_Gain456_offset;
0090 
0091     const unsigned int k_bpix_AOH2_base = 0x10;
0092     const unsigned int k_bpix_AOH2_Bias1_address = k_bpix_AOH2_base + k_AOH_Bias1_offset;
0093     const unsigned int k_bpix_AOH2_Bias2_address = k_bpix_AOH2_base + k_AOH_Bias2_offset;
0094     const unsigned int k_bpix_AOH2_Bias3_address = k_bpix_AOH2_base + k_AOH_Bias3_offset;
0095     const unsigned int k_bpix_AOH2_Bias4_address = k_bpix_AOH2_base + k_AOH_Bias4_offset;
0096     const unsigned int k_bpix_AOH2_Bias5_address = k_bpix_AOH2_base + k_AOH_Bias5_offset;
0097     const unsigned int k_bpix_AOH2_Bias6_address = k_bpix_AOH2_base + k_AOH_Bias6_offset;
0098     const unsigned int k_bpix_AOH2_Gain123_address = k_bpix_AOH2_base + k_AOH_Gain123_offset;
0099     const unsigned int k_bpix_AOH2_Gain456_address = k_bpix_AOH2_base + k_AOH_Gain456_offset;
0100 
0101     const unsigned int k_bpix_AOH3_base = 0x18;
0102     const unsigned int k_bpix_AOH3_Bias1_address = k_bpix_AOH3_base + k_AOH_Bias1_offset;
0103     const unsigned int k_bpix_AOH3_Bias2_address = k_bpix_AOH3_base + k_AOH_Bias2_offset;
0104     const unsigned int k_bpix_AOH3_Bias3_address = k_bpix_AOH3_base + k_AOH_Bias3_offset;
0105     const unsigned int k_bpix_AOH3_Bias4_address = k_bpix_AOH3_base + k_AOH_Bias4_offset;
0106     const unsigned int k_bpix_AOH3_Bias5_address = k_bpix_AOH3_base + k_AOH_Bias5_offset;
0107     const unsigned int k_bpix_AOH3_Bias6_address = k_bpix_AOH3_base + k_AOH_Bias6_offset;
0108     const unsigned int k_bpix_AOH3_Gain123_address = k_bpix_AOH3_base + k_AOH_Gain123_offset;
0109     const unsigned int k_bpix_AOH3_Gain456_address = k_bpix_AOH3_base + k_AOH_Gain456_offset;
0110 
0111     const unsigned int k_bpix_AOH4_base = 0x20;
0112     const unsigned int k_bpix_AOH4_Bias1_address = k_bpix_AOH4_base + k_AOH_Bias1_offset;
0113     const unsigned int k_bpix_AOH4_Bias2_address = k_bpix_AOH4_base + k_AOH_Bias2_offset;
0114     const unsigned int k_bpix_AOH4_Bias3_address = k_bpix_AOH4_base + k_AOH_Bias3_offset;
0115     const unsigned int k_bpix_AOH4_Bias4_address = k_bpix_AOH4_base + k_AOH_Bias4_offset;
0116     const unsigned int k_bpix_AOH4_Bias5_address = k_bpix_AOH4_base + k_AOH_Bias5_offset;
0117     const unsigned int k_bpix_AOH4_Bias6_address = k_bpix_AOH4_base + k_AOH_Bias6_offset;
0118     const unsigned int k_bpix_AOH4_Gain123_address = k_bpix_AOH4_base + k_AOH_Gain123_offset;
0119     const unsigned int k_bpix_AOH4_Gain456_address = k_bpix_AOH4_base + k_AOH_Gain456_offset;
0120 
0121     // PLL
0122     const std::string k_PLL_CTR1 = "PLL_CTR1";
0123     const std::string k_PLL_CTR2 = "PLL_CTR2";
0124     const std::string k_PLL_CTR3 = "PLL_CTR3";
0125     const std::string k_PLL_CTR4or5 =
0126         "PLL_CTR4or5";  // controls either CTR4 (if bit 5 of CTR2 = 0) or CTR5 (if bit 5 of CTR = 1)
0127     const std::string k_PLL_CTR4 = "PLL_CTR4";  // has no address defined, needs special handling
0128     const std::string k_PLL_CTR5 = "PLL_CTR5";  // has no address defined, needs special handling
0129 
0130     const unsigned int k_PLL_CTR1_offset = 0x0;
0131     const unsigned int k_PLL_CTR2_offset = 0x1;
0132     const unsigned int k_PLL_CTR3_offset = 0x2;
0133     const unsigned int k_PLL_CTR4or5_offset = 0x3;
0134 
0135     // PLL fpix
0136     const unsigned int k_fpix_PLL_base = 0x20;
0137     const unsigned int k_fpix_PLL_CTR1_address = k_fpix_PLL_base + k_PLL_CTR1_offset;
0138     const unsigned int k_fpix_PLL_CTR2_address = k_fpix_PLL_base + k_PLL_CTR2_offset;
0139     const unsigned int k_fpix_PLL_CTR3_address = k_fpix_PLL_base + k_PLL_CTR3_offset;
0140     const unsigned int k_fpix_PLL_CTR4or5_address = k_fpix_PLL_base + k_PLL_CTR4or5_offset;
0141 
0142     // PLL bpix
0143     const unsigned int k_bpix_PLL_base = 0x40;
0144     const unsigned int k_bpix_PLL_CTR1_address = k_bpix_PLL_base + k_PLL_CTR1_offset;
0145     const unsigned int k_bpix_PLL_CTR2_address = k_bpix_PLL_base + k_PLL_CTR2_offset;
0146     const unsigned int k_bpix_PLL_CTR3_address = k_bpix_PLL_base + k_PLL_CTR3_offset;
0147     const unsigned int k_bpix_PLL_CTR4or5_address = k_bpix_PLL_base + k_PLL_CTR4or5_offset;
0148 
0149     // Delay25
0150     const std::string k_Delay25_RDA = "Delay25_RDA";
0151     const std::string k_Delay25_RCL = "Delay25_RCL";
0152     const std::string k_Delay25_SDA = "Delay25_SDA";
0153     const std::string k_Delay25_TRG = "Delay25_TRG";
0154     const std::string k_Delay25_SCL = "Delay25_SCL";
0155     const std::string k_Delay25_GCR = "Delay25_GCR";
0156 
0157     const unsigned int k_Delay25_CR0_offset = 0x0;
0158     const unsigned int k_Delay25_CR1_offset = 0x1;
0159     const unsigned int k_Delay25_CR2_offset = 0x2;
0160     const unsigned int k_Delay25_CR3_offset = 0x3;
0161     const unsigned int k_Delay25_CR4_offset = 0x4;
0162     const unsigned int k_Delay25_CR5_offset = 0x5;
0163 
0164     // Delay25 fpix
0165     const unsigned int k_fpix_Delay25_base = 0x30;
0166     const unsigned int k_fpix_Delay25_RDA_address = k_fpix_Delay25_base + k_Delay25_CR0_offset;
0167     const unsigned int k_fpix_Delay25_RCL_address = k_fpix_Delay25_base + k_Delay25_CR1_offset;
0168     const unsigned int k_fpix_Delay25_SDA_address = k_fpix_Delay25_base + k_Delay25_CR2_offset;
0169     const unsigned int k_fpix_Delay25_TRG_address = k_fpix_Delay25_base + k_Delay25_CR3_offset;
0170     const unsigned int k_fpix_Delay25_SCL_address = k_fpix_Delay25_base + k_Delay25_CR4_offset;
0171     const unsigned int k_fpix_Delay25_GCR_address = k_fpix_Delay25_base + k_Delay25_CR5_offset;
0172 
0173     // Delay25 bpix
0174     const unsigned int k_bpix_Delay25_base = 0x60;
0175     const unsigned int k_bpix_Delay25_RDA_address = k_bpix_Delay25_base + k_Delay25_CR3_offset;
0176     const unsigned int k_bpix_Delay25_RCL_address = k_bpix_Delay25_base + k_Delay25_CR0_offset;
0177     const unsigned int k_bpix_Delay25_SDA_address = k_bpix_Delay25_base + k_Delay25_CR2_offset;
0178     const unsigned int k_bpix_Delay25_TRG_address = k_bpix_Delay25_base + k_Delay25_CR1_offset;
0179     const unsigned int k_bpix_Delay25_SCL_address = k_bpix_Delay25_base + k_Delay25_CR4_offset;
0180     const unsigned int k_bpix_Delay25_GCR_address = k_bpix_Delay25_base + k_Delay25_CR5_offset;
0181 
0182     // DOH
0183     const std::string k_DOH_Ch0Bias_CLK = "DOH_Ch0Bias_CLK";
0184     const std::string k_DOH_Dummy = "DOH_Dummy";
0185     const std::string k_DOH_Ch1Bias_Data = "DOH_Ch1Bias_Data";
0186     const std::string k_DOH_Gain_SEU = "DOH_Gain_SEU";
0187 
0188     const unsigned int k_DOH_Ch0Bias_CLK_offset = 0x0;
0189     const unsigned int k_DOH_Dummy_offset = 0x1;
0190     const unsigned int k_DOH_Ch1Bias_Data_offset = 0x2;
0191     const unsigned int k_DOH_Gain_SEU_offset = 0x3;
0192 
0193     // DOH fpix
0194     const unsigned int k_fpix_DOH_base = 0x70;
0195     const unsigned int k_fpix_DOH_Ch0Bias_CLK_address = k_fpix_DOH_base + k_DOH_Ch0Bias_CLK_offset;
0196     const unsigned int k_fpix_DOH_Dummy_address = k_fpix_DOH_base + k_DOH_Dummy_offset;
0197     const unsigned int k_fpix_DOH_Ch1Bias_Data_address = k_fpix_DOH_base + k_DOH_Ch1Bias_Data_offset;
0198     const unsigned int k_fpix_DOH_Gain_SEU_address = k_fpix_DOH_base + k_DOH_Gain_SEU_offset;
0199 
0200     // DOH bpix
0201     const unsigned int k_bpix_DOH_base = 0x70;
0202     const unsigned int k_bpix_DOH_Ch0Bias_CLK_address = k_bpix_DOH_base + k_DOH_Ch0Bias_CLK_offset;
0203     const unsigned int k_bpix_DOH_Dummy_address = k_bpix_DOH_base + k_DOH_Dummy_offset;
0204     const unsigned int k_bpix_DOH_Ch1Bias_Data_address = k_bpix_DOH_base + k_DOH_Ch1Bias_Data_offset;
0205     const unsigned int k_bpix_DOH_Gain_SEU_address = k_bpix_DOH_base + k_DOH_Gain_SEU_offset;
0206   }  // namespace PortCardSettingNames
0207 }  // namespace pos
0208 #endif