CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CalibFormats/SiPixelObjects/interface/PixelPortCardSettingNames.h

Go to the documentation of this file.
00001 #ifndef PixelPortCardSettingNames_h
00002 #define PixelPortCardSettingNames_h
00003 
00012 #include <string>
00013 namespace pos{
00014   namespace PortCardSettingNames
00015   {
00016     // AOH
00017     const std::string k_AOH_Bias1 = "AOH_Bias1";
00018     const std::string k_AOH_Bias2 = "AOH_Bias2";
00019     const std::string k_AOH_Bias3 = "AOH_Bias3";
00020     const std::string k_AOH_Bias4 = "AOH_Bias4";
00021     const std::string k_AOH_Bias5 = "AOH_Bias5";
00022     const std::string k_AOH_Bias6 = "AOH_Bias6";
00023     const std::string k_AOH_Gain123 = "AOH_Gain123";
00024     const std::string k_AOH_Gain456 = "AOH_Gain456";
00025     
00026     const std::string k_AOH1_Bias1 = "AOH1_Bias1";
00027     const std::string k_AOH1_Bias2 = "AOH1_Bias2";
00028     const std::string k_AOH1_Bias3 = "AOH1_Bias3";
00029     const std::string k_AOH1_Bias4 = "AOH1_Bias4";
00030     const std::string k_AOH1_Bias5 = "AOH1_Bias5";
00031     const std::string k_AOH1_Bias6 = "AOH1_Bias6";
00032     const std::string k_AOH1_Gain123 = "AOH1_Gain123";
00033     const std::string k_AOH1_Gain456 = "AOH1_Gain456";
00034     
00035     const std::string k_AOH2_Bias1 = "AOH2_Bias1";
00036     const std::string k_AOH2_Bias2 = "AOH2_Bias2";
00037     const std::string k_AOH2_Bias3 = "AOH2_Bias3";
00038     const std::string k_AOH2_Bias4 = "AOH2_Bias4";
00039     const std::string k_AOH2_Bias5 = "AOH2_Bias5";
00040     const std::string k_AOH2_Bias6 = "AOH2_Bias6";
00041     const std::string k_AOH2_Gain123 = "AOH2_Gain123";
00042     const std::string k_AOH2_Gain456 = "AOH2_Gain456";
00043     
00044     const std::string k_AOH3_Bias1 = "AOH3_Bias1";
00045     const std::string k_AOH3_Bias2 = "AOH3_Bias2";
00046     const std::string k_AOH3_Bias3 = "AOH3_Bias3";
00047     const std::string k_AOH3_Bias4 = "AOH3_Bias4";
00048     const std::string k_AOH3_Bias5 = "AOH3_Bias5";
00049     const std::string k_AOH3_Bias6 = "AOH3_Bias6";
00050     const std::string k_AOH3_Gain123 = "AOH3_Gain123";
00051     const std::string k_AOH3_Gain456 = "AOH3_Gain456";
00052     
00053     const std::string k_AOH4_Bias1 = "AOH4_Bias1";
00054     const std::string k_AOH4_Bias2 = "AOH4_Bias2";
00055     const std::string k_AOH4_Bias3 = "AOH4_Bias3";
00056     const std::string k_AOH4_Bias4 = "AOH4_Bias4";
00057     const std::string k_AOH4_Bias5 = "AOH4_Bias5";
00058     const std::string k_AOH4_Bias6 = "AOH4_Bias6";
00059     const std::string k_AOH4_Gain123 = "AOH4_Gain123";
00060     const std::string k_AOH4_Gain456 = "AOH4_Gain456";
00061     
00062     const unsigned int k_AOH_Bias1_offset = 0x0;
00063     const unsigned int k_AOH_Bias2_offset = 0x1;
00064     const unsigned int k_AOH_Bias3_offset = 0x2;
00065     const unsigned int k_AOH_Bias4_offset = 0x4;
00066     const unsigned int k_AOH_Bias5_offset = 0x5;
00067     const unsigned int k_AOH_Bias6_offset = 0x6;
00068     const unsigned int k_AOH_Gain123_offset = 0x3;
00069     const unsigned int k_AOH_Gain456_offset = 0x7;
00070     
00071     // AOH fpix
00072     const unsigned int k_fpix_AOH_base = 0x10;
00073     const unsigned int k_fpix_AOH_Bias1_address = k_fpix_AOH_base + k_AOH_Bias1_offset;
00074     const unsigned int k_fpix_AOH_Bias2_address = k_fpix_AOH_base + k_AOH_Bias2_offset;
00075     const unsigned int k_fpix_AOH_Bias3_address = k_fpix_AOH_base + k_AOH_Bias3_offset;
00076     const unsigned int k_fpix_AOH_Bias4_address = k_fpix_AOH_base + k_AOH_Bias4_offset;
00077     const unsigned int k_fpix_AOH_Bias5_address = k_fpix_AOH_base + k_AOH_Bias5_offset;
00078     const unsigned int k_fpix_AOH_Bias6_address = k_fpix_AOH_base + k_AOH_Bias6_offset;
00079     const unsigned int k_fpix_AOH_Gain123_address = k_fpix_AOH_base + k_AOH_Gain123_offset;
00080     const unsigned int k_fpix_AOH_Gain456_address = k_fpix_AOH_base + k_AOH_Gain456_offset;
00081     
00082     // AOH bpix
00083     const unsigned int k_bpix_AOH1_base = 0x08;
00084     const unsigned int k_bpix_AOH1_Bias1_address = k_bpix_AOH1_base + k_AOH_Bias1_offset;
00085     const unsigned int k_bpix_AOH1_Bias2_address = k_bpix_AOH1_base + k_AOH_Bias2_offset;
00086     const unsigned int k_bpix_AOH1_Bias3_address = k_bpix_AOH1_base + k_AOH_Bias3_offset;
00087     const unsigned int k_bpix_AOH1_Bias4_address = k_bpix_AOH1_base + k_AOH_Bias4_offset;
00088     const unsigned int k_bpix_AOH1_Bias5_address = k_bpix_AOH1_base + k_AOH_Bias5_offset;
00089     const unsigned int k_bpix_AOH1_Bias6_address = k_bpix_AOH1_base + k_AOH_Bias6_offset;
00090     const unsigned int k_bpix_AOH1_Gain123_address = k_bpix_AOH1_base + k_AOH_Gain123_offset;
00091     const unsigned int k_bpix_AOH1_Gain456_address = k_bpix_AOH1_base + k_AOH_Gain456_offset;
00092     
00093     const unsigned int k_bpix_AOH2_base = 0x10;
00094     const unsigned int k_bpix_AOH2_Bias1_address = k_bpix_AOH2_base + k_AOH_Bias1_offset;
00095     const unsigned int k_bpix_AOH2_Bias2_address = k_bpix_AOH2_base + k_AOH_Bias2_offset;
00096     const unsigned int k_bpix_AOH2_Bias3_address = k_bpix_AOH2_base + k_AOH_Bias3_offset;
00097     const unsigned int k_bpix_AOH2_Bias4_address = k_bpix_AOH2_base + k_AOH_Bias4_offset;
00098     const unsigned int k_bpix_AOH2_Bias5_address = k_bpix_AOH2_base + k_AOH_Bias5_offset;
00099     const unsigned int k_bpix_AOH2_Bias6_address = k_bpix_AOH2_base + k_AOH_Bias6_offset;
00100     const unsigned int k_bpix_AOH2_Gain123_address = k_bpix_AOH2_base + k_AOH_Gain123_offset;
00101     const unsigned int k_bpix_AOH2_Gain456_address = k_bpix_AOH2_base + k_AOH_Gain456_offset;
00102     
00103     const unsigned int k_bpix_AOH3_base = 0x18;
00104     const unsigned int k_bpix_AOH3_Bias1_address = k_bpix_AOH3_base + k_AOH_Bias1_offset;
00105     const unsigned int k_bpix_AOH3_Bias2_address = k_bpix_AOH3_base + k_AOH_Bias2_offset;
00106     const unsigned int k_bpix_AOH3_Bias3_address = k_bpix_AOH3_base + k_AOH_Bias3_offset;
00107     const unsigned int k_bpix_AOH3_Bias4_address = k_bpix_AOH3_base + k_AOH_Bias4_offset;
00108     const unsigned int k_bpix_AOH3_Bias5_address = k_bpix_AOH3_base + k_AOH_Bias5_offset;
00109     const unsigned int k_bpix_AOH3_Bias6_address = k_bpix_AOH3_base + k_AOH_Bias6_offset;
00110     const unsigned int k_bpix_AOH3_Gain123_address = k_bpix_AOH3_base + k_AOH_Gain123_offset;
00111     const unsigned int k_bpix_AOH3_Gain456_address = k_bpix_AOH3_base + k_AOH_Gain456_offset;
00112     
00113     const unsigned int k_bpix_AOH4_base = 0x20;
00114     const unsigned int k_bpix_AOH4_Bias1_address = k_bpix_AOH4_base + k_AOH_Bias1_offset;
00115     const unsigned int k_bpix_AOH4_Bias2_address = k_bpix_AOH4_base + k_AOH_Bias2_offset;
00116     const unsigned int k_bpix_AOH4_Bias3_address = k_bpix_AOH4_base + k_AOH_Bias3_offset;
00117     const unsigned int k_bpix_AOH4_Bias4_address = k_bpix_AOH4_base + k_AOH_Bias4_offset;
00118     const unsigned int k_bpix_AOH4_Bias5_address = k_bpix_AOH4_base + k_AOH_Bias5_offset;
00119     const unsigned int k_bpix_AOH4_Bias6_address = k_bpix_AOH4_base + k_AOH_Bias6_offset;
00120     const unsigned int k_bpix_AOH4_Gain123_address = k_bpix_AOH4_base + k_AOH_Gain123_offset;
00121     const unsigned int k_bpix_AOH4_Gain456_address = k_bpix_AOH4_base + k_AOH_Gain456_offset;
00122     
00123     // PLL
00124     const std::string k_PLL_CTR1 = "PLL_CTR1";
00125     const std::string k_PLL_CTR2 = "PLL_CTR2";
00126     const std::string k_PLL_CTR3 = "PLL_CTR3";
00127     const std::string k_PLL_CTR4or5 = "PLL_CTR4or5"; // controls either CTR4 (if bit 5 of CTR2 = 0) or CTR5 (if bit 5 of CTR = 1)
00128     const std::string k_PLL_CTR4 = "PLL_CTR4"; // has no address defined, needs special handling
00129     const std::string k_PLL_CTR5 = "PLL_CTR5"; // has no address defined, needs special handling
00130     
00131     const unsigned int k_PLL_CTR1_offset = 0x0;
00132     const unsigned int k_PLL_CTR2_offset = 0x1;
00133     const unsigned int k_PLL_CTR3_offset = 0x2;
00134     const unsigned int k_PLL_CTR4or5_offset = 0x3;
00135     
00136     // PLL fpix
00137     const unsigned int k_fpix_PLL_base = 0x20;
00138     const unsigned int k_fpix_PLL_CTR1_address = k_fpix_PLL_base + k_PLL_CTR1_offset;
00139     const unsigned int k_fpix_PLL_CTR2_address = k_fpix_PLL_base + k_PLL_CTR2_offset;
00140     const unsigned int k_fpix_PLL_CTR3_address = k_fpix_PLL_base + k_PLL_CTR3_offset;
00141     const unsigned int k_fpix_PLL_CTR4or5_address = k_fpix_PLL_base + k_PLL_CTR4or5_offset;
00142     
00143     // PLL bpix
00144     const unsigned int k_bpix_PLL_base = 0x40;
00145     const unsigned int k_bpix_PLL_CTR1_address = k_bpix_PLL_base + k_PLL_CTR1_offset;
00146     const unsigned int k_bpix_PLL_CTR2_address = k_bpix_PLL_base + k_PLL_CTR2_offset;
00147     const unsigned int k_bpix_PLL_CTR3_address = k_bpix_PLL_base + k_PLL_CTR3_offset;
00148     const unsigned int k_bpix_PLL_CTR4or5_address = k_bpix_PLL_base + k_PLL_CTR4or5_offset;
00149     
00150     // Delay25
00151     const std::string k_Delay25_RDA = "Delay25_RDA";
00152     const std::string k_Delay25_RCL = "Delay25_RCL";
00153     const std::string k_Delay25_SDA = "Delay25_SDA";
00154     const std::string k_Delay25_TRG = "Delay25_TRG";
00155     const std::string k_Delay25_SCL = "Delay25_SCL";
00156     const std::string k_Delay25_GCR = "Delay25_GCR";
00157     
00158     const unsigned int k_Delay25_CR0_offset = 0x0;
00159     const unsigned int k_Delay25_CR1_offset = 0x1;
00160     const unsigned int k_Delay25_CR2_offset = 0x2;
00161     const unsigned int k_Delay25_CR3_offset = 0x3;
00162     const unsigned int k_Delay25_CR4_offset = 0x4;
00163     const unsigned int k_Delay25_CR5_offset = 0x5;
00164     
00165     // Delay25 fpix
00166     const unsigned int k_fpix_Delay25_base = 0x30;
00167     const unsigned int k_fpix_Delay25_RDA_address = k_fpix_Delay25_base + k_Delay25_CR0_offset;
00168     const unsigned int k_fpix_Delay25_RCL_address = k_fpix_Delay25_base + k_Delay25_CR1_offset;
00169     const unsigned int k_fpix_Delay25_SDA_address = k_fpix_Delay25_base + k_Delay25_CR2_offset;
00170     const unsigned int k_fpix_Delay25_TRG_address = k_fpix_Delay25_base + k_Delay25_CR3_offset;
00171     const unsigned int k_fpix_Delay25_SCL_address = k_fpix_Delay25_base + k_Delay25_CR4_offset;
00172     const unsigned int k_fpix_Delay25_GCR_address = k_fpix_Delay25_base + k_Delay25_CR5_offset;
00173     
00174     // Delay25 bpix
00175     const unsigned int k_bpix_Delay25_base = 0x60;
00176     const unsigned int k_bpix_Delay25_RDA_address = k_bpix_Delay25_base + k_Delay25_CR3_offset;
00177     const unsigned int k_bpix_Delay25_RCL_address = k_bpix_Delay25_base + k_Delay25_CR0_offset;
00178     const unsigned int k_bpix_Delay25_SDA_address = k_bpix_Delay25_base + k_Delay25_CR2_offset;
00179     const unsigned int k_bpix_Delay25_TRG_address = k_bpix_Delay25_base + k_Delay25_CR1_offset;
00180     const unsigned int k_bpix_Delay25_SCL_address = k_bpix_Delay25_base + k_Delay25_CR4_offset;
00181     const unsigned int k_bpix_Delay25_GCR_address = k_bpix_Delay25_base + k_Delay25_CR5_offset;
00182 
00183     // DOH
00184     const std::string k_DOH_Ch0Bias_CLK  = "DOH_Ch0Bias_CLK";
00185     const std::string k_DOH_Dummy        = "DOH_Dummy";
00186     const std::string k_DOH_Ch1Bias_Data = "DOH_Ch1Bias_Data";
00187     const std::string k_DOH_Gain_SEU     = "DOH_Gain_SEU";
00188     
00189     const unsigned int k_DOH_Ch0Bias_CLK_offset  = 0x0;
00190     const unsigned int k_DOH_Dummy_offset        = 0x1;
00191     const unsigned int k_DOH_Ch1Bias_Data_offset = 0x2;
00192     const unsigned int k_DOH_Gain_SEU_offset     = 0x3;
00193     
00194     // DOH fpix
00195     const unsigned int k_fpix_DOH_base = 0x70;
00196     const unsigned int k_fpix_DOH_Ch0Bias_CLK_address  = k_fpix_DOH_base + k_DOH_Ch0Bias_CLK_offset;
00197     const unsigned int k_fpix_DOH_Dummy_address        = k_fpix_DOH_base + k_DOH_Dummy_offset;
00198     const unsigned int k_fpix_DOH_Ch1Bias_Data_address = k_fpix_DOH_base + k_DOH_Ch1Bias_Data_offset;
00199     const unsigned int k_fpix_DOH_Gain_SEU_address     = k_fpix_DOH_base + k_DOH_Gain_SEU_offset;
00200     
00201     // DOH bpix
00202     const unsigned int k_bpix_DOH_base = 0x70;
00203     const unsigned int k_bpix_DOH_Ch0Bias_CLK_address  = k_bpix_DOH_base + k_DOH_Ch0Bias_CLK_offset;
00204     const unsigned int k_bpix_DOH_Dummy_address        = k_bpix_DOH_base + k_DOH_Dummy_offset;
00205     const unsigned int k_bpix_DOH_Ch1Bias_Data_address = k_bpix_DOH_base + k_DOH_Ch1Bias_Data_offset;
00206     const unsigned int k_bpix_DOH_Gain_SEU_address     = k_bpix_DOH_base + k_DOH_Gain_SEU_offset;
00207   }
00208 }
00209 #endif