#include <interface/PixelROCDACSettings.h>
A longer explanation will be placed here later
Definition at line 27 of file PixelROCDACSettings.h.
PixelROCDACSettings::PixelROCDACSettings | ( | ) |
pos::PixelROCDACSettings::PixelROCDACSettings | ( | const PixelROCName & | rocid | ) | [inline] |
void pos::PixelROCDACSettings::checkTag | ( | std::string | tag, | |
std::string | dacName, | |||
const PixelROCName & | rocid | |||
) |
Referenced by read().
void PixelROCDACSettings::compareDACs | ( | std::map< std::string, unsigned int > & | dacs, | |
std::map< std::string, bool > & | changes, | |||
std::map< std::string, unsigned int > & | previous | |||
) |
Definition at line 124 of file PixelROCDACSettings.cc.
References CalDel_, ChipContReg_, pos::k_DACName_CalDel, pos::k_DACName_ChipContReg, pos::k_DACName_TempRange, pos::k_DACName_Vana, pos::k_DACName_VbiasOp, pos::k_DACName_Vcal, pos::k_DACName_Vcomp, pos::k_DACName_VcThr, pos::k_DACName_Vdd, pos::k_DACName_VHldDel, pos::k_DACName_VIbias_bus, pos::k_DACName_VIbias_DAC, pos::k_DACName_VIbias_PH, pos::k_DACName_VIbias_roc, pos::k_DACName_VIbias_sf, pos::k_DACName_VIColOr, pos::k_DACName_VIon, pos::k_DACName_Vleak, pos::k_DACName_Vnpix, pos::k_DACName_VOffsetOp, pos::k_DACName_VOffsetRO, pos::k_DACName_VrgPr, pos::k_DACName_VrgSh, pos::k_DACName_Vsf, pos::k_DACName_VsumCol, pos::k_DACName_Vtrim, pos::k_DACName_VwllPr, pos::k_DACName_VwllSh, pos::k_DACName_WBC, TempRange_, Vana_, VbiasOp_, Vcal_, Vcomp_, VcThr_, Vdd_, VHldDel_, VIbias_bus_, VIbias_DAC_, VIbias_PH_, VIbias_roc_, VIbias_sf_, VIColOr_, VIon_, Vleak_, Vnpix_, VOffsetOp_, VOffsetRO_, VrgPr_, VrgSh_, Vsf_, VsumCol_, Vtrim_, VwllPr_, VwllSh_, and WBC_.
00127 { 00128 changes[k_DACName_Vdd ] = false; 00129 changes[k_DACName_Vana ] = false; 00130 changes[k_DACName_Vsf ] = false; 00131 changes[k_DACName_Vcomp ] = false; 00132 changes[k_DACName_Vleak ] = false; 00133 changes[k_DACName_VrgPr ] = false; 00134 changes[k_DACName_VwllPr ] = false; 00135 changes[k_DACName_VrgSh ] = false; 00136 changes[k_DACName_VwllSh ] = false; 00137 changes[k_DACName_VHldDel ] = false; 00138 changes[k_DACName_Vtrim ] = false; 00139 changes[k_DACName_VcThr ] = false; 00140 changes[k_DACName_VIbias_bus ] = false; 00141 changes[k_DACName_VIbias_sf ] = false; 00142 changes[k_DACName_VOffsetOp ] = false; 00143 changes[k_DACName_VbiasOp ] = false; 00144 changes[k_DACName_VOffsetRO ] = false; 00145 changes[k_DACName_VIon ] = false; 00146 changes[k_DACName_VIbias_PH ] = false; 00147 changes[k_DACName_VIbias_DAC ] = false; 00148 changes[k_DACName_VIbias_roc ] = false; 00149 changes[k_DACName_VIColOr ] = false; 00150 changes[k_DACName_Vnpix ] = false; 00151 changes[k_DACName_VsumCol ] = false; 00152 changes[k_DACName_Vcal ] = false; 00153 changes[k_DACName_CalDel ] = false; 00154 changes[k_DACName_TempRange ] = false; 00155 changes[k_DACName_WBC ] = false; 00156 changes[k_DACName_ChipContReg] = false; 00157 00158 if( Vdd_ != dacs[k_DACName_Vdd ] ) {changes[k_DACName_Vdd ] = true; previous[k_DACName_Vdd ] = Vdd_ ;} 00159 if( Vana_ != dacs[k_DACName_Vana ] ) {changes[k_DACName_Vana ] = true; previous[k_DACName_Vana ] = Vana_ ;} 00160 if( Vsf_ != dacs[k_DACName_Vsf ] ) {changes[k_DACName_Vsf ] = true; previous[k_DACName_Vsf ] = Vsf_ ;} 00161 if( Vcomp_ != dacs[k_DACName_Vcomp ] ) {changes[k_DACName_Vcomp ] = true; previous[k_DACName_Vcomp ] = Vcomp_ ;} 00162 if( Vleak_ != dacs[k_DACName_Vleak ] ) {changes[k_DACName_Vleak ] = true; previous[k_DACName_Vleak ] = Vleak_ ;} 00163 if( VrgPr_ != dacs[k_DACName_VrgPr ] ) {changes[k_DACName_VrgPr ] = true; previous[k_DACName_VrgPr ] = VrgPr_ ;} 00164 if( VwllPr_ != dacs[k_DACName_VwllPr ] ) {changes[k_DACName_VwllPr ] = true; previous[k_DACName_VwllPr ] = VwllPr_ ;} 00165 if( VrgSh_ != dacs[k_DACName_VrgSh ] ) {changes[k_DACName_VrgSh ] = true; previous[k_DACName_VrgSh ] = VrgSh_ ;} 00166 if( VwllSh_ != dacs[k_DACName_VwllSh ] ) {changes[k_DACName_VwllSh ] = true; previous[k_DACName_VwllSh ] = VwllSh_ ;} 00167 if( VHldDel_ != dacs[k_DACName_VHldDel ] ) {changes[k_DACName_VHldDel ] = true; previous[k_DACName_VHldDel ] = VHldDel_ ;} 00168 if( Vtrim_ != dacs[k_DACName_Vtrim ] ) {changes[k_DACName_Vtrim ] = true; previous[k_DACName_Vtrim ] = Vtrim_ ;} 00169 if( VcThr_ != dacs[k_DACName_VcThr ] ) {changes[k_DACName_VcThr ] = true; previous[k_DACName_VcThr ] = VcThr_ ;} 00170 if( VIbias_bus_ != dacs[k_DACName_VIbias_bus ] ) {changes[k_DACName_VIbias_bus ] = true; previous[k_DACName_VIbias_bus ] = VIbias_bus_ ;} 00171 if( VIbias_sf_ != dacs[k_DACName_VIbias_sf ] ) {changes[k_DACName_VIbias_sf ] = true; previous[k_DACName_VIbias_sf ] = VIbias_sf_ ;} 00172 if( VOffsetOp_ != dacs[k_DACName_VOffsetOp ] ) {changes[k_DACName_VOffsetOp ] = true; previous[k_DACName_VOffsetOp ] = VOffsetOp_ ;} 00173 if( VbiasOp_ != dacs[k_DACName_VbiasOp ] ) {changes[k_DACName_VbiasOp ] = true; previous[k_DACName_VbiasOp ] = VbiasOp_ ;} 00174 if( VOffsetRO_ != dacs[k_DACName_VOffsetRO ] ) {changes[k_DACName_VOffsetRO ] = true; previous[k_DACName_VOffsetRO ] = VOffsetRO_ ;} 00175 if( VIon_ != dacs[k_DACName_VIon ] ) {changes[k_DACName_VIon ] = true; previous[k_DACName_VIon ] = VIon_ ;} 00176 if( VIbias_PH_ != dacs[k_DACName_VIbias_PH ] ) {changes[k_DACName_VIbias_PH ] = true; previous[k_DACName_VIbias_PH ] = VIbias_PH_ ;} 00177 if( VIbias_DAC_ != dacs[k_DACName_VIbias_DAC ] ) {changes[k_DACName_VIbias_DAC ] = true; previous[k_DACName_VIbias_DAC ] = VIbias_DAC_ ;} 00178 if( VIbias_roc_ != dacs[k_DACName_VIbias_roc ] ) {changes[k_DACName_VIbias_roc ] = true; previous[k_DACName_VIbias_roc ] = VIbias_roc_ ;} 00179 if( VIColOr_ != dacs[k_DACName_VIColOr ] ) {changes[k_DACName_VIColOr ] = true; previous[k_DACName_VIColOr ] = VIColOr_ ;} 00180 if( Vnpix_ != dacs[k_DACName_Vnpix ] ) {changes[k_DACName_Vnpix ] = true; previous[k_DACName_Vnpix ] = Vnpix_ ;} 00181 if( VsumCol_ != dacs[k_DACName_VsumCol ] ) {changes[k_DACName_VsumCol ] = true; previous[k_DACName_VsumCol ] = VsumCol_ ;} 00182 if( Vcal_ != dacs[k_DACName_Vcal ] ) {changes[k_DACName_Vcal ] = true; previous[k_DACName_Vcal ] = Vcal_ ;} 00183 if( CalDel_ != dacs[k_DACName_CalDel ] ) {changes[k_DACName_CalDel ] = true; previous[k_DACName_CalDel ] = CalDel_ ;} 00184 if( TempRange_ != dacs[k_DACName_TempRange ] ) {changes[k_DACName_TempRange ] = true; previous[k_DACName_TempRange ] = TempRange_ ;} 00185 if( WBC_ != dacs[k_DACName_WBC ] ) {changes[k_DACName_WBC ] = true; previous[k_DACName_WBC ] = WBC_ ;} 00186 if( ChipContReg_ != dacs[k_DACName_ChipContReg] ) {changes[k_DACName_ChipContReg] = true; previous[k_DACName_ChipContReg] = ChipContReg_;} 00187 }
bits8 pos::PixelROCDACSettings::getCalDel | ( | ) | [inline] |
string PixelROCDACSettings::getConfigCommand | ( | ) |
Definition at line 617 of file PixelROCDACSettings.cc.
References s.
00617 { 00618 00619 string s; 00620 00621 return s; 00622 00623 }
bits8 pos::PixelROCDACSettings::getControlRegister | ( | ) | const [inline] |
Definition at line 155 of file PixelROCDACSettings.h.
References ChipContReg_.
00155 {return ChipContReg_;}
unsigned int pos::PixelROCDACSettings::getDac | ( | std::string | dacName | ) | const |
Definition at line 55 of file PixelROCDACSettings.cc.
References CalDel_, ChipContReg_, pos::k_DACName_CalDel, pos::k_DACName_ChipContReg, pos::k_DACName_TempRange, pos::k_DACName_Vana, pos::k_DACName_VbiasOp, pos::k_DACName_Vcal, pos::k_DACName_Vcomp, pos::k_DACName_VcThr, pos::k_DACName_Vdd, pos::k_DACName_VHldDel, pos::k_DACName_VIbias_bus, pos::k_DACName_VIbias_DAC, pos::k_DACName_VIbias_PH, pos::k_DACName_VIbias_roc, pos::k_DACName_VIbias_sf, pos::k_DACName_VIColOr, pos::k_DACName_VIon, pos::k_DACName_Vleak, pos::k_DACName_Vnpix, pos::k_DACName_VOffsetOp, pos::k_DACName_VOffsetRO, pos::k_DACName_VrgPr, pos::k_DACName_VrgSh, pos::k_DACName_Vsf, pos::k_DACName_VsumCol, pos::k_DACName_Vtrim, pos::k_DACName_VwllPr, pos::k_DACName_VwllSh, pos::k_DACName_WBC, TempRange_, Vana_, VbiasOp_, Vcal_, Vcomp_, VcThr_, Vdd_, VHldDel_, VIbias_bus_, VIbias_DAC_, VIbias_PH_, VIbias_roc_, VIbias_sf_, VIColOr_, VIon_, Vleak_, Vnpix_, VOffsetOp_, VOffsetRO_, VrgPr_, VrgSh_, Vsf_, VsumCol_, Vtrim_, VwllPr_, VwllSh_, and WBC_.
00056 { 00057 dacs.clear(); 00058 dacs[k_DACName_Vdd ] = Vdd_ ; 00059 dacs[k_DACName_Vana ] = Vana_ ; 00060 dacs[k_DACName_Vsf ] = Vsf_ ; 00061 dacs[k_DACName_Vcomp ] = Vcomp_ ; 00062 dacs[k_DACName_Vleak ] = Vleak_ ; 00063 dacs[k_DACName_VrgPr ] = VrgPr_ ; 00064 dacs[k_DACName_VwllPr ] = VwllPr_ ; 00065 dacs[k_DACName_VrgSh ] = VrgSh_ ; 00066 dacs[k_DACName_VwllSh ] = VwllSh_ ; 00067 dacs[k_DACName_VHldDel ] = VHldDel_ ; 00068 dacs[k_DACName_Vtrim ] = Vtrim_ ; 00069 dacs[k_DACName_VcThr ] = VcThr_ ; 00070 dacs[k_DACName_VIbias_bus ] = VIbias_bus_ ; 00071 dacs[k_DACName_VIbias_sf ] = VIbias_sf_ ; 00072 dacs[k_DACName_VOffsetOp ] = VOffsetOp_ ; 00073 dacs[k_DACName_VbiasOp ] = VbiasOp_ ; 00074 dacs[k_DACName_VOffsetRO ] = VOffsetRO_ ; 00075 dacs[k_DACName_VIon ] = VIon_ ; 00076 dacs[k_DACName_VIbias_PH ] = VIbias_PH_ ; 00077 dacs[k_DACName_VIbias_DAC ] = VIbias_DAC_ ; 00078 dacs[k_DACName_VIbias_roc ] = VIbias_roc_ ; 00079 dacs[k_DACName_VIColOr ] = VIColOr_ ; 00080 dacs[k_DACName_Vnpix ] = Vnpix_ ; 00081 dacs[k_DACName_VsumCol ] = VsumCol_ ; 00082 dacs[k_DACName_Vcal ] = Vcal_ ; 00083 dacs[k_DACName_CalDel ] = CalDel_ ; 00084 dacs[k_DACName_TempRange ] = TempRange_ ; 00085 dacs[k_DACName_WBC ] = WBC_ ; 00086 dacs[k_DACName_ChipContReg] = ChipContReg_; 00087 }
PixelROCName pos::PixelROCDACSettings::getROCName | ( | ) | const [inline] |
bits8 pos::PixelROCDACSettings::getTempRange | ( | ) | [inline] |
Definition at line 149 of file PixelROCDACSettings.h.
References TempRange_.
00149 {return TempRange_;}
bits8 pos::PixelROCDACSettings::getVana | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVbiasOp | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVcal | ( | ) | [inline] |
bits4 pos::PixelROCDACSettings::getVcomp | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVcThr | ( | ) | [inline] |
bits4 pos::PixelROCDACSettings::getVdd | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVHldDel | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVIbias_bus | ( | ) | [inline] |
Definition at line 107 of file PixelROCDACSettings.h.
References VIbias_bus_.
00107 {return VIbias_bus_;}
bits8 pos::PixelROCDACSettings::getVIbias_DAC | ( | ) | [inline] |
Definition at line 128 of file PixelROCDACSettings.h.
References VIbias_DAC_.
00128 {return VIbias_DAC_;}
bits8 pos::PixelROCDACSettings::getVIbias_PH | ( | ) | [inline] |
Definition at line 125 of file PixelROCDACSettings.h.
References VIbias_PH_.
00125 {return VIbias_PH_;}
bits8 pos::PixelROCDACSettings::getVIbias_roc | ( | ) | [inline] |
Definition at line 131 of file PixelROCDACSettings.h.
References VIbias_roc_.
00131 {return VIbias_roc_;}
bits4 pos::PixelROCDACSettings::getVIbias_sf | ( | ) | [inline] |
Definition at line 110 of file PixelROCDACSettings.h.
References VIbias_sf_.
00110 {return VIbias_sf_;}
bits8 pos::PixelROCDACSettings::getVIColOr | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVIon | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVleak | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVnpix | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVOffsetOp | ( | ) | [inline] |
Definition at line 113 of file PixelROCDACSettings.h.
References VOffsetOp_.
00113 {return VOffsetOp_;}
bits8 pos::PixelROCDACSettings::getVOffsetRO | ( | ) | [inline] |
Definition at line 119 of file PixelROCDACSettings.h.
References VOffsetRO_.
00119 {return VOffsetRO_;}
bits4 pos::PixelROCDACSettings::getVrgPr | ( | ) | [inline] |
bits4 pos::PixelROCDACSettings::getVrgSh | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVsf | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVsumCol | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVtrim | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVwllPr | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getVwllSh | ( | ) | [inline] |
bits8 pos::PixelROCDACSettings::getWBC | ( | ) | [inline] |
int PixelROCDACSettings::read | ( | std::istringstream & | in, | |
const PixelROCName & | rocid | |||
) |
Definition at line 392 of file PixelROCDACSettings.cc.
References checkTag(), ChipContReg_, GenMuonPlsPt100GeV_cfg::cout, first, pos::k_DACName_CalDel, pos::k_DACName_ChipContReg, pos::k_DACName_TempRange, pos::k_DACName_Vana, pos::k_DACName_VbiasOp, pos::k_DACName_Vcal, pos::k_DACName_Vcomp, pos::k_DACName_VcThr, pos::k_DACName_Vdd, pos::k_DACName_VHldDel, pos::k_DACName_VIbias_bus, pos::k_DACName_VIbias_DAC, pos::k_DACName_VIbias_PH, pos::k_DACName_VIbias_roc, pos::k_DACName_VIbias_sf, pos::k_DACName_VIColOr, pos::k_DACName_VIon, pos::k_DACName_Vleak, pos::k_DACName_Vnpix, pos::k_DACName_VOffsetOp, pos::k_DACName_VOffsetRO, pos::k_DACName_VrgPr, pos::k_DACName_VrgSh, pos::k_DACName_Vsf, pos::k_DACName_VsumCol, pos::k_DACName_Vtrim, pos::k_DACName_VwllPr, pos::k_DACName_VwllSh, pos::k_DACName_WBC, rocid_, and tmp.
00393 { 00394 rocid_=rocid; 00395 00396 unsigned int tmp; 00397 string tag; 00398 00399 in >> tag; 00400 checkTag(tag,k_DACName_Vdd,rocid); 00401 in >> tmp; Vdd_=tmp; 00402 in >> tag; 00403 checkTag(tag,k_DACName_Vana,rocid); 00404 in >> tmp; Vana_=tmp; 00405 in >> tag; 00406 checkTag(tag,k_DACName_Vsf,rocid); 00407 in >> tmp; Vsf_=tmp; 00408 in >> tag; 00409 checkTag(tag,k_DACName_Vcomp,rocid); 00410 in >> tmp; Vcomp_=tmp; 00411 in >> tag; 00412 checkTag(tag,k_DACName_Vleak,rocid); 00413 in >> tmp; Vleak_=tmp; 00414 in >> tag; 00415 checkTag(tag,k_DACName_VrgPr,rocid); 00416 in >> tmp; VrgPr_=tmp; 00417 in >> tag; 00418 checkTag(tag,k_DACName_VwllPr,rocid); 00419 in >> tmp; VwllPr_=tmp; 00420 in >> tag; 00421 checkTag(tag,k_DACName_VrgSh,rocid); 00422 in >> tmp; VrgSh_=tmp; 00423 in >> tag; 00424 checkTag(tag,k_DACName_VwllSh,rocid); 00425 in >> tmp; VwllSh_=tmp; 00426 in >> tag; 00427 checkTag(tag,k_DACName_VHldDel,rocid); 00428 in >> tmp; VHldDel_=tmp; 00429 in >> tag; 00430 checkTag(tag,k_DACName_Vtrim,rocid); 00431 in >> tmp; Vtrim_=tmp; 00432 in >> tag; 00433 checkTag(tag,k_DACName_VcThr,rocid); 00434 in >> tmp; VcThr_=tmp; 00435 in >> tag; 00436 checkTag(tag,k_DACName_VIbias_bus,rocid); 00437 in >> tmp; VIbias_bus_=tmp; 00438 in >> tag; 00439 checkTag(tag,k_DACName_VIbias_sf,rocid); 00440 in >> tmp; VIbias_sf_=tmp; 00441 in >> tag; 00442 checkTag(tag,k_DACName_VOffsetOp,rocid); 00443 in >> tmp; VOffsetOp_=tmp; 00444 in >> tag; 00445 checkTag(tag,k_DACName_VbiasOp,rocid); 00446 in >> tmp; VbiasOp_=tmp; 00447 in >> tag; 00448 checkTag(tag,k_DACName_VOffsetRO,rocid); 00449 in >> tmp; VOffsetRO_=tmp; 00450 in >> tag; 00451 checkTag(tag,k_DACName_VIon,rocid); 00452 in >> tmp; VIon_=tmp; 00453 in >> tag; 00454 checkTag(tag,k_DACName_VIbias_PH,rocid); 00455 in >> tmp; VIbias_PH_=tmp; 00456 in >> tag; 00457 checkTag(tag,k_DACName_VIbias_DAC,rocid); 00458 in >> tmp; VIbias_DAC_=tmp; 00459 in >> tag; 00460 checkTag(tag,k_DACName_VIbias_roc,rocid); 00461 in >> tmp; VIbias_roc_=tmp; 00462 in >> tag; 00463 checkTag(tag,k_DACName_VIColOr,rocid); 00464 in >> tmp; VIColOr_=tmp; 00465 in >> tag; 00466 checkTag(tag,k_DACName_Vnpix,rocid); 00467 in >> tmp; Vnpix_=tmp; 00468 in >> tag; 00469 checkTag(tag,k_DACName_VsumCol,rocid); 00470 in >> tmp; VsumCol_=tmp; 00471 in >> tag; 00472 checkTag(tag,k_DACName_Vcal,rocid); 00473 in >> tmp; Vcal_=tmp; 00474 in >> tag; 00475 checkTag(tag,k_DACName_CalDel,rocid); 00476 in >> tmp; CalDel_=tmp; 00477 in >> tag; 00478 if (tag==k_DACName_WBC+":"){ 00479 static bool first=true; 00480 if (first){ 00481 cout << "**********************************************"<<endl; 00482 cout << "Did not find TempRange setting in DAC settings"<<endl; 00483 cout << "Will use a default value of 4."<<endl; 00484 cout << "This message will only be printed out once"<<endl; 00485 cout << "**********************************************"<<endl; 00486 TempRange_=4; 00487 first=false; 00488 } 00489 in >> tmp; WBC_=tmp; 00490 } else { 00491 checkTag(tag,k_DACName_TempRange,rocid); 00492 in >> tmp; TempRange_=tmp; 00493 in >> tag; 00494 checkTag(tag,k_DACName_WBC,rocid); 00495 in >> tmp; WBC_=tmp; 00496 } 00497 in >> tag; 00498 checkTag(tag,k_DACName_ChipContReg,rocid); 00499 in >> tmp; ChipContReg_=tmp; 00500 00501 return 0; 00502 }
int pos::PixelROCDACSettings::read | ( | std::ifstream & | in, | |
const PixelROCName & | rocid | |||
) |
Referenced by pos::PixelDACSettings::PixelDACSettings().
int pos::PixelROCDACSettings::readBinary | ( | std::ifstream & | in, | |
const PixelROCName & | rocid | |||
) |
Referenced by pos::PixelDACSettings::PixelDACSettings().
Definition at line 156 of file PixelROCDACSettings.h.
References ChipContReg_.
00156 {ChipContReg_=controlregister;}
Definition at line 189 of file PixelROCDACSettings.cc.
References CalDel_, ChipContReg_, GenMuonPlsPt100GeV_cfg::cout, lat::endl(), TempRange_, Vana_, VbiasOp_, Vcal_, Vcomp_, VcThr_, Vdd_, VHldDel_, VIbias_bus_, VIbias_DAC_, VIbias_PH_, VIbias_roc_, VIbias_sf_, VIColOr_, VIon_, Vleak_, Vnpix_, VOffsetOp_, VOffsetRO_, VrgPr_, VrgSh_, Vsf_, VsumCol_, Vtrim_, VwllPr_, VwllSh_, and WBC_.
00190 { 00191 switch (dacaddress) { 00192 case 1: Vdd_ = dacvalue; break; 00193 case 2: Vana_ = dacvalue; break; 00194 case 3: Vsf_ = dacvalue; break; 00195 case 4: Vcomp_ = dacvalue; break; 00196 case 5: Vleak_ = dacvalue; break; 00197 case 6: VrgPr_ = dacvalue; break; 00198 case 7: VwllPr_ = dacvalue; break; 00199 case 8: VrgSh_ = dacvalue; break; 00200 case 9: VwllSh_ = dacvalue; break; 00201 case 10: VHldDel_ = dacvalue; break; 00202 case 11: Vtrim_ = dacvalue; break; 00203 case 12: VcThr_ = dacvalue; break; 00204 case 13: VIbias_bus_ = dacvalue; break; 00205 case 14: VIbias_sf_ = dacvalue; break; 00206 case 15: VOffsetOp_ = dacvalue; break; 00207 case 16: VbiasOp_ = dacvalue; break; 00208 case 17: VOffsetRO_ = dacvalue; break; 00209 case 18: VIon_ = dacvalue; break; 00210 case 19: VIbias_PH_ = dacvalue; break; 00211 case 20: VIbias_DAC_ = dacvalue; break; 00212 case 21: VIbias_roc_ = dacvalue; break; 00213 case 22: VIColOr_ = dacvalue; break; 00214 case 23: Vnpix_ = dacvalue; break; 00215 case 24: VsumCol_ = dacvalue; break; 00216 case 25: Vcal_ = dacvalue; break; 00217 case 26: CalDel_ = dacvalue; break; 00218 case 27: TempRange_ = dacvalue; break; 00219 case 254: WBC_ = dacvalue; break; 00220 case 253: ChipContReg_ = dacvalue; break; 00221 default: cout<<"DAC Address "<<dacaddress<<" does not exist!"<<endl; 00222 } 00223 00224 }
Definition at line 90 of file PixelROCDACSettings.cc.
References CalDel_, ChipContReg_, pos::k_DACName_CalDel, pos::k_DACName_ChipContReg, pos::k_DACName_TempRange, pos::k_DACName_Vana, pos::k_DACName_VbiasOp, pos::k_DACName_Vcal, pos::k_DACName_Vcomp, pos::k_DACName_VcThr, pos::k_DACName_Vdd, pos::k_DACName_VHldDel, pos::k_DACName_VIbias_bus, pos::k_DACName_VIbias_DAC, pos::k_DACName_VIbias_PH, pos::k_DACName_VIbias_roc, pos::k_DACName_VIbias_sf, pos::k_DACName_VIColOr, pos::k_DACName_VIon, pos::k_DACName_Vleak, pos::k_DACName_Vnpix, pos::k_DACName_VOffsetOp, pos::k_DACName_VOffsetRO, pos::k_DACName_VrgPr, pos::k_DACName_VrgSh, pos::k_DACName_Vsf, pos::k_DACName_VsumCol, pos::k_DACName_Vtrim, pos::k_DACName_VwllPr, pos::k_DACName_VwllSh, pos::k_DACName_WBC, TempRange_, Vana_, VbiasOp_, Vcal_, Vcomp_, VcThr_, Vdd_, VHldDel_, VIbias_bus_, VIbias_DAC_, VIbias_PH_, VIbias_roc_, VIbias_sf_, VIColOr_, VIon_, Vleak_, Vnpix_, VOffsetOp_, VOffsetRO_, VrgPr_, VrgSh_, Vsf_, VsumCol_, Vtrim_, VwllPr_, VwllSh_, and WBC_.
00091 { 00092 Vdd_ = dacs[k_DACName_Vdd ] ; 00093 Vana_ = dacs[k_DACName_Vana ] ; 00094 Vsf_ = dacs[k_DACName_Vsf ] ; 00095 Vcomp_ = dacs[k_DACName_Vcomp ] ; 00096 Vleak_ = dacs[k_DACName_Vleak ] ; 00097 VrgPr_ = dacs[k_DACName_VrgPr ] ; 00098 VwllPr_ = dacs[k_DACName_VwllPr ] ; 00099 VrgSh_ = dacs[k_DACName_VrgSh ] ; 00100 VwllSh_ = dacs[k_DACName_VwllSh ] ; 00101 VHldDel_ = dacs[k_DACName_VHldDel ] ; 00102 Vtrim_ = dacs[k_DACName_Vtrim ] ; 00103 VcThr_ = dacs[k_DACName_VcThr ] ; 00104 VIbias_bus_ = dacs[k_DACName_VIbias_bus ] ; 00105 VIbias_sf_ = dacs[k_DACName_VIbias_sf ] ; 00106 VOffsetOp_ = dacs[k_DACName_VOffsetOp ] ; 00107 VbiasOp_ = dacs[k_DACName_VbiasOp ] ; 00108 VOffsetRO_ = dacs[k_DACName_VOffsetRO ] ; 00109 VIon_ = dacs[k_DACName_VIon ] ; 00110 VIbias_PH_ = dacs[k_DACName_VIbias_PH ] ; 00111 VIbias_DAC_ = dacs[k_DACName_VIbias_DAC ] ; 00112 VIbias_roc_ = dacs[k_DACName_VIbias_roc ] ; 00113 VIColOr_ = dacs[k_DACName_VIColOr ] ; 00114 Vnpix_ = dacs[k_DACName_Vnpix ] ; 00115 VsumCol_ = dacs[k_DACName_VsumCol ] ; 00116 Vcal_ = dacs[k_DACName_Vcal ] ; 00117 CalDel_ = dacs[k_DACName_CalDel ] ; 00118 TempRange_ = dacs[k_DACName_TempRange ] ; 00119 WBC_ = dacs[k_DACName_WBC ] ; 00120 ChipContReg_ = dacs[k_DACName_ChipContReg] ; 00121 }
Definition at line 150 of file PixelROCDACSettings.h.
References TempRange_.
00150 {TempRange_=tempRange;}
Definition at line 117 of file PixelROCDACSettings.h.
References VbiasOp_.
00117 {VbiasOp_=vbiasOp;}
Definition at line 108 of file PixelROCDACSettings.h.
References VIbias_bus_.
00108 {VIbias_bus_=vIbias_bus;}
Definition at line 129 of file PixelROCDACSettings.h.
References VIbias_DAC_.
00129 {VIbias_DAC_=vIbias_DAC;}
Definition at line 126 of file PixelROCDACSettings.h.
References VIbias_PH_.
00126 {VIbias_PH_=vIbias_PH;}
Definition at line 132 of file PixelROCDACSettings.h.
References VIbias_roc_.
00132 {VIbias_roc_=vIbias_roc;}
Definition at line 111 of file PixelROCDACSettings.h.
References VIbias_sf_.
00111 {VIbias_sf_=vIbias_sf;}
Definition at line 135 of file PixelROCDACSettings.h.
References VIColOr_.
00135 {VIColOr_=vIColOr;}
Definition at line 114 of file PixelROCDACSettings.h.
References VOffsetOp_.
00114 {VOffsetOp_=vOffsetOp;}
Definition at line 120 of file PixelROCDACSettings.h.
References VOffsetRO_.
00120 {VOffsetRO_=vOffsetRO;}
Definition at line 141 of file PixelROCDACSettings.h.
References VsumCol_.
00141 {VsumCol_=vsumCol;}
std::string pos::PixelROCDACSettings::ToLower | ( | std::string | ) | [private] |
void pos::PixelROCDACSettings::writeASCII | ( | std::ostream & | out | ) | const |
void pos::PixelROCDACSettings::writeBinary | ( | std::ofstream & | out | ) | const |
virtual void pos::PixelROCDACSettings::writeXML | ( | std::ofstream * | out | ) | const [virtual] |
void pos::PixelROCDACSettings::writeXML | ( | pos::PixelConfigKey | key, | |
int | version, | |||
std::string | path | |||
) | const [inline] |
virtual void pos::PixelROCDACSettings::writeXMLHeader | ( | pos::PixelConfigKey | key, | |
int | version, | |||
std::string | path, | |||
std::ofstream * | out | |||
) | const [inline, virtual] |
virtual void pos::PixelROCDACSettings::writeXMLTrailer | ( | std::ofstream * | out | ) | const [inline, virtual] |
std::ostream& operator<< | ( | std::ostream & | s, | |
const PixelROCDACSettings & | dacs | |||
) | [friend] |
bits8 pos::PixelROCDACSettings::CalDel_ [private] |
Definition at line 193 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getCalDel(), getDACs(), pos::operator<<(), setCalDel(), setDAC(), and setDACs().
bits8 pos::PixelROCDACSettings::ChipContReg_ [private] |
Definition at line 196 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getControlRegister(), getDACs(), pos::operator<<(), read(), setControlRegister(), setDAC(), and setDACs().
PixelROCName pos::PixelROCDACSettings::rocid_ [private] |
Definition at line 164 of file PixelROCDACSettings.h.
Referenced by getROCName(), PixelROCDACSettings(), and read().
bits8 pos::PixelROCDACSettings::TempRange_ [private] |
Definition at line 194 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getTempRange(), pos::operator<<(), setDAC(), setDACs(), and setTempRange().
bits8 pos::PixelROCDACSettings::Vana_ [private] |
Definition at line 169 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVana(), pos::operator<<(), setDAC(), setDACs(), and setVana().
bits8 pos::PixelROCDACSettings::VbiasOp_ [private] |
Definition at line 183 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVbiasOp(), pos::operator<<(), setDAC(), setDACs(), and setVbiasOp().
bits8 pos::PixelROCDACSettings::Vcal_ [private] |
Definition at line 192 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVcal(), pos::operator<<(), setDAC(), setDACs(), and setVcal().
bits4 pos::PixelROCDACSettings::Vcomp_ [private] |
Definition at line 171 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVcomp(), pos::operator<<(), setDAC(), setDACs(), and setVcomp().
bits8 pos::PixelROCDACSettings::VcThr_ [private] |
Definition at line 179 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVcThr(), pos::operator<<(), setDAC(), setDACs(), and setVcThr().
bits4 pos::PixelROCDACSettings::Vdd_ [private] |
Definition at line 168 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVdd(), pos::operator<<(), setDAC(), setDACs(), and setVdd().
bits8 pos::PixelROCDACSettings::VHldDel_ [private] |
Definition at line 177 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVHldDel(), pos::operator<<(), setDAC(), setDACs(), and setVHldDel().
bits8 pos::PixelROCDACSettings::VIbias_bus_ [private] |
Definition at line 180 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIbias_bus(), pos::operator<<(), setDAC(), setDACs(), and setVIbias_bus().
bits8 pos::PixelROCDACSettings::VIbias_DAC_ [private] |
Definition at line 187 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIbias_DAC(), pos::operator<<(), setDAC(), setDACs(), and setVIbias_DAC().
bits8 pos::PixelROCDACSettings::VIbias_PH_ [private] |
Definition at line 186 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIbias_PH(), pos::operator<<(), setDAC(), setDACs(), and setVIbias_PH().
bits8 pos::PixelROCDACSettings::VIbias_roc_ [private] |
Definition at line 188 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIbias_roc(), pos::operator<<(), setDAC(), setDACs(), and setVIbias_roc().
bits4 pos::PixelROCDACSettings::VIbias_sf_ [private] |
Definition at line 181 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIbias_sf(), pos::operator<<(), setDAC(), setDACs(), and setVIbias_sf().
bits8 pos::PixelROCDACSettings::VIColOr_ [private] |
Definition at line 189 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIColOr(), pos::operator<<(), setDAC(), setDACs(), and setVIColOr().
bits8 pos::PixelROCDACSettings::VIon_ [private] |
Definition at line 185 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVIon(), pos::operator<<(), setDAC(), setDACs(), and setVIon().
bits8 pos::PixelROCDACSettings::Vleak_ [private] |
Definition at line 172 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVleak(), pos::operator<<(), setDAC(), setDACs(), and setVleak().
bits8 pos::PixelROCDACSettings::Vnpix_ [private] |
Definition at line 190 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVnpix(), pos::operator<<(), setDAC(), setDACs(), and setVnpix().
bits8 pos::PixelROCDACSettings::VOffsetOp_ [private] |
Definition at line 182 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVOffsetOp(), pos::operator<<(), setDAC(), setDACs(), and setVOffsetOp().
bits8 pos::PixelROCDACSettings::VOffsetRO_ [private] |
Definition at line 184 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVOffsetRO(), pos::operator<<(), setDAC(), setDACs(), and setVOffsetRO().
bits4 pos::PixelROCDACSettings::VrgPr_ [private] |
Definition at line 173 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVrgPr(), pos::operator<<(), setDAC(), setDACs(), and setVrgPr().
bits4 pos::PixelROCDACSettings::VrgSh_ [private] |
Definition at line 175 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVrgSh(), pos::operator<<(), setDAC(), setDACs(), and setVrgSh().
bits8 pos::PixelROCDACSettings::Vsf_ [private] |
Definition at line 170 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVsf(), pos::operator<<(), setDAC(), setDACs(), and setVsf().
bits8 pos::PixelROCDACSettings::VsumCol_ [private] |
Definition at line 191 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVsumCol(), pos::operator<<(), setDAC(), setDACs(), and setVsumCol().
bits8 pos::PixelROCDACSettings::Vtrim_ [private] |
Definition at line 178 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVtrim(), pos::operator<<(), setDAC(), setDACs(), and setVtrim().
bits8 pos::PixelROCDACSettings::VwllPr_ [private] |
Definition at line 174 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVwllPr(), pos::operator<<(), setDAC(), setDACs(), and setVwllPr_().
bits8 pos::PixelROCDACSettings::VwllSh_ [private] |
Definition at line 176 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getVwllSh(), pos::operator<<(), setDAC(), setDACs(), and setVwllSh().
bits8 pos::PixelROCDACSettings::WBC_ [private] |
Definition at line 195 of file PixelROCDACSettings.h.
Referenced by compareDACs(), getDACs(), getWBC(), pos::operator<<(), setDAC(), setDACs(), and setWBC().