CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
pos::PixelROCDACSettings Class Reference

This class implements.. More...

#include "interface/PixelROCDACSettings.h"

Public Member Functions

void checkTag (std::string tag, std::string dacName, const PixelROCName &rocid)
 
void compareDACs (std::map< std::string, unsigned int > &dacs, std::map< std::string, bool > &changes, std::map< std::string, unsigned int > &previous)
 
bits8 getCalDel ()
 
std::string getConfigCommand ()
 
bits8 getControlRegister () const
 
unsigned int getDac (std::string dacName) const
 
void getDACs (std::vector< unsigned int > &dacs) const
 
void getDACs (std::map< std::string, unsigned int > &dacs) const
 
PixelROCName getROCName () const
 
bits8 getTempRange ()
 
bits8 getVana ()
 
bits8 getVbiasOp ()
 
bits8 getVcal ()
 
bits4 getVcomp ()
 
bits8 getVcThr ()
 
bits4 getVdd ()
 
bits8 getVHldDel ()
 
bits8 getVIbias_bus ()
 
bits8 getVIbias_DAC ()
 
bits8 getVIbias_PH ()
 
bits8 getVIbias_roc ()
 
bits4 getVIbias_sf ()
 
bits8 getVIColOr ()
 
bits8 getVIon ()
 
bits8 getVleak ()
 
bits8 getVnpix ()
 
bits8 getVOffsetOp ()
 
bits8 getVOffsetRO ()
 
bits4 getVrgPr ()
 
bits4 getVrgSh ()
 
bits8 getVsf ()
 
bits8 getVsumCol ()
 
bits8 getVtrim ()
 
bits8 getVwllPr ()
 
bits8 getVwllSh ()
 
bits8 getWBC ()
 
 PixelROCDACSettings ()
 
 PixelROCDACSettings (const PixelROCName &rocid)
 
int read (std::ifstream &in, const PixelROCName &rocid)
 
int read (std::istringstream &in, const PixelROCName &rocid)
 
int readBinary (std::ifstream &in, const PixelROCName &rocid)
 
void setCalDel (bits8 calDel)
 
void setControlRegister (bits8 controlregister)
 
void setDAC (unsigned int dacaddress, unsigned int dacvalue)
 
void setDac (std::string dacName, int value)
 
void setDACs (std::map< std::string, unsigned int > &dacs)
 
void setTempRange (bits8 tempRange)
 
void setVana (bits8 vana)
 
void setVbiasOp (bits8 vbiasOp)
 
void setVcal (bits8 vcal)
 
void setVcomp (bits4 vcomp)
 
void setVcThr (bits8 vcThr)
 
void setVdd (bits4 vdd)
 
void setVHldDel (bits8 vHldDel)
 
void setVIbias_bus (bits8 vIbias_bus)
 
void setVIbias_DAC (bits8 vIbias_DAC)
 
void setVIbias_PH (bits8 vIbias_PH)
 
void setVIbias_roc (bits8 vIbias_roc)
 
void setVIbias_sf (bits4 vIbias_sf)
 
void setVIColOr (bits8 vIColOr)
 
void setVIon (bits8 vIon)
 
void setVleak (bits8 vleak)
 
void setVnpix (bits8 vnpix)
 
void setVOffsetOp (bits8 vOffsetOp)
 
void setVOffsetRO (bits8 vOffsetRO)
 
void setVrgPr (bits4 vrgPr)
 
void setVrgSh (bits4 vrgSh)
 
void setVsf (bits8 vsf)
 
void setVsumCol (bits8 vsumCol)
 
void setVtrim (bits8 vtrim)
 
void setVwllPr_ (bits8 vwllPr)
 
void setVwllSh (bits8 vwllSh)
 
void setWBC (bits8 wbc)
 
void writeASCII (std::ostream &out) const
 
void writeBinary (std::ofstream &out) const
 
void writeXML (pos::PixelConfigKey key, int version, std::string path) const
 
virtual void writeXML (std::ofstream *out) const
 
virtual void writeXMLHeader (pos::PixelConfigKey key, int version, std::string path, std::ofstream *out) const
 
virtual void writeXMLTrailer (std::ofstream *out) const
 

Private Member Functions

std::string ToLower (std::string)
 

Private Attributes

bits8 CalDel_
 
bits8 ChipContReg_
 
PixelROCName rocid_
 
bits8 TempRange_
 
bits8 Vana_
 
bits8 VbiasOp_
 
bits8 Vcal_
 
bits4 Vcomp_
 
bits8 VcThr_
 
bits4 Vdd_
 
bits8 VHldDel_
 
bits8 VIbias_bus_
 
bits8 VIbias_DAC_
 
bits8 VIbias_PH_
 
bits8 VIbias_roc_
 
bits4 VIbias_sf_
 
bits8 VIColOr_
 
bits8 VIon_
 
bits8 Vleak_
 
bits8 Vnpix_
 
bits8 VOffsetOp_
 
bits8 VOffsetRO_
 
bits4 VrgPr_
 
bits4 VrgSh_
 
bits8 Vsf_
 
bits8 VsumCol_
 
bits8 Vtrim_
 
bits8 VwllPr_
 
bits8 VwllSh_
 
bits8 WBC_
 

Friends

std::ostream & operator<< (std::ostream &s, const PixelROCDACSettings &dacs)
 

Detailed Description

This class implements..

A longer explanation will be placed here later

Definition at line 27 of file PixelROCDACSettings.h.

Constructor & Destructor Documentation

PixelROCDACSettings::PixelROCDACSettings ( )

Definition at line 17 of file PixelROCDACSettings.cc.

17 {}
pos::PixelROCDACSettings::PixelROCDACSettings ( const PixelROCName rocid)
inline

Definition at line 33 of file PixelROCDACSettings.h.

References rocid_.

33 {rocid_= rocid;}

Member Function Documentation

void PixelROCDACSettings::checkTag ( std::string  tag,
std::string  dacName,
const PixelROCName rocid 
)

Definition at line 380 of file PixelROCDACSettings.cc.

References gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.

382  {
383 
384  std::string mthn = "[PixelROCDACSettings::checkTag()]\t\t\t\t " ;
385  dacName+=":";
386  if (tag!=dacName) {
387  cout << __LINE__ << "]\t" << mthn << "Read ROC name : " << tag << endl;
388  cout << __LINE__ << "]\t" << mthn << "But expected to find: " << dacName << endl;
389  cout << __LINE__ << "]\t" << mthn << "When reading DAC settings for ROC " << rocid << endl;
390  assert(0);
391  }
392 
393 }
tuple cout
Definition: gather_cfg.py:121
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 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, and pos::k_DACName_WBC.

127 {
128  changes[k_DACName_Vdd ] = false;
129  changes[k_DACName_Vana ] = false;
130  changes[k_DACName_Vsf ] = false;
131  changes[k_DACName_Vcomp ] = false;
132  changes[k_DACName_Vleak ] = false;
133  changes[k_DACName_VrgPr ] = false;
134  changes[k_DACName_VwllPr ] = false;
135  changes[k_DACName_VrgSh ] = false;
136  changes[k_DACName_VwllSh ] = false;
137  changes[k_DACName_VHldDel ] = false;
138  changes[k_DACName_Vtrim ] = false;
139  changes[k_DACName_VcThr ] = false;
140  changes[k_DACName_VIbias_bus ] = false;
141  changes[k_DACName_VIbias_sf ] = false;
142  changes[k_DACName_VOffsetOp ] = false;
143  changes[k_DACName_VbiasOp ] = false;
144  changes[k_DACName_VOffsetRO ] = false;
145  changes[k_DACName_VIon ] = false;
146  changes[k_DACName_VIbias_PH ] = false;
147  changes[k_DACName_VIbias_DAC ] = false;
148  changes[k_DACName_VIbias_roc ] = false;
149  changes[k_DACName_VIColOr ] = false;
150  changes[k_DACName_Vnpix ] = false;
151  changes[k_DACName_VsumCol ] = false;
152  changes[k_DACName_Vcal ] = false;
153  changes[k_DACName_CalDel ] = false;
154  changes[k_DACName_TempRange ] = false;
155  changes[k_DACName_WBC ] = false;
156  changes[k_DACName_ChipContReg] = false;
157 
158  if( Vdd_ != dacs[k_DACName_Vdd ] ) {changes[k_DACName_Vdd ] = true; previous[k_DACName_Vdd ] = Vdd_ ;}
159  if( Vana_ != dacs[k_DACName_Vana ] ) {changes[k_DACName_Vana ] = true; previous[k_DACName_Vana ] = Vana_ ;}
160  if( Vsf_ != dacs[k_DACName_Vsf ] ) {changes[k_DACName_Vsf ] = true; previous[k_DACName_Vsf ] = Vsf_ ;}
161  if( Vcomp_ != dacs[k_DACName_Vcomp ] ) {changes[k_DACName_Vcomp ] = true; previous[k_DACName_Vcomp ] = Vcomp_ ;}
162  if( Vleak_ != dacs[k_DACName_Vleak ] ) {changes[k_DACName_Vleak ] = true; previous[k_DACName_Vleak ] = Vleak_ ;}
163  if( VrgPr_ != dacs[k_DACName_VrgPr ] ) {changes[k_DACName_VrgPr ] = true; previous[k_DACName_VrgPr ] = VrgPr_ ;}
164  if( VwllPr_ != dacs[k_DACName_VwllPr ] ) {changes[k_DACName_VwllPr ] = true; previous[k_DACName_VwllPr ] = VwllPr_ ;}
165  if( VrgSh_ != dacs[k_DACName_VrgSh ] ) {changes[k_DACName_VrgSh ] = true; previous[k_DACName_VrgSh ] = VrgSh_ ;}
166  if( VwllSh_ != dacs[k_DACName_VwllSh ] ) {changes[k_DACName_VwllSh ] = true; previous[k_DACName_VwllSh ] = VwllSh_ ;}
167  if( VHldDel_ != dacs[k_DACName_VHldDel ] ) {changes[k_DACName_VHldDel ] = true; previous[k_DACName_VHldDel ] = VHldDel_ ;}
168  if( Vtrim_ != dacs[k_DACName_Vtrim ] ) {changes[k_DACName_Vtrim ] = true; previous[k_DACName_Vtrim ] = Vtrim_ ;}
169  if( VcThr_ != dacs[k_DACName_VcThr ] ) {changes[k_DACName_VcThr ] = true; previous[k_DACName_VcThr ] = VcThr_ ;}
170  if( VIbias_bus_ != dacs[k_DACName_VIbias_bus ] ) {changes[k_DACName_VIbias_bus ] = true; previous[k_DACName_VIbias_bus ] = VIbias_bus_ ;}
171  if( VIbias_sf_ != dacs[k_DACName_VIbias_sf ] ) {changes[k_DACName_VIbias_sf ] = true; previous[k_DACName_VIbias_sf ] = VIbias_sf_ ;}
172  if( VOffsetOp_ != dacs[k_DACName_VOffsetOp ] ) {changes[k_DACName_VOffsetOp ] = true; previous[k_DACName_VOffsetOp ] = VOffsetOp_ ;}
173  if( VbiasOp_ != dacs[k_DACName_VbiasOp ] ) {changes[k_DACName_VbiasOp ] = true; previous[k_DACName_VbiasOp ] = VbiasOp_ ;}
174  if( VOffsetRO_ != dacs[k_DACName_VOffsetRO ] ) {changes[k_DACName_VOffsetRO ] = true; previous[k_DACName_VOffsetRO ] = VOffsetRO_ ;}
175  if( VIon_ != dacs[k_DACName_VIon ] ) {changes[k_DACName_VIon ] = true; previous[k_DACName_VIon ] = VIon_ ;}
176  if( VIbias_PH_ != dacs[k_DACName_VIbias_PH ] ) {changes[k_DACName_VIbias_PH ] = true; previous[k_DACName_VIbias_PH ] = VIbias_PH_ ;}
177  if( VIbias_DAC_ != dacs[k_DACName_VIbias_DAC ] ) {changes[k_DACName_VIbias_DAC ] = true; previous[k_DACName_VIbias_DAC ] = VIbias_DAC_ ;}
178  if( VIbias_roc_ != dacs[k_DACName_VIbias_roc ] ) {changes[k_DACName_VIbias_roc ] = true; previous[k_DACName_VIbias_roc ] = VIbias_roc_ ;}
179  if( VIColOr_ != dacs[k_DACName_VIColOr ] ) {changes[k_DACName_VIColOr ] = true; previous[k_DACName_VIColOr ] = VIColOr_ ;}
180  if( Vnpix_ != dacs[k_DACName_Vnpix ] ) {changes[k_DACName_Vnpix ] = true; previous[k_DACName_Vnpix ] = Vnpix_ ;}
181  if( VsumCol_ != dacs[k_DACName_VsumCol ] ) {changes[k_DACName_VsumCol ] = true; previous[k_DACName_VsumCol ] = VsumCol_ ;}
182  if( Vcal_ != dacs[k_DACName_Vcal ] ) {changes[k_DACName_Vcal ] = true; previous[k_DACName_Vcal ] = Vcal_ ;}
183  if( CalDel_ != dacs[k_DACName_CalDel ] ) {changes[k_DACName_CalDel ] = true; previous[k_DACName_CalDel ] = CalDel_ ;}
184  if( TempRange_ != dacs[k_DACName_TempRange ] ) {changes[k_DACName_TempRange ] = true; previous[k_DACName_TempRange ] = TempRange_ ;}
185  if( WBC_ != dacs[k_DACName_WBC ] ) {changes[k_DACName_WBC ] = true; previous[k_DACName_WBC ] = WBC_ ;}
186  if( ChipContReg_ != dacs[k_DACName_ChipContReg] ) {changes[k_DACName_ChipContReg] = true; previous[k_DACName_ChipContReg] = ChipContReg_;}
187 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
bits8 pos::PixelROCDACSettings::getCalDel ( )
inline

Definition at line 146 of file PixelROCDACSettings.h.

References CalDel_.

string PixelROCDACSettings::getConfigCommand ( )

Definition at line 624 of file PixelROCDACSettings.cc.

References alignCSCRings::s.

624  {
625 
626  string s;
627 
628  return s;
629 
630 }
bits8 pos::PixelROCDACSettings::getControlRegister ( ) const
inline

Definition at line 155 of file PixelROCDACSettings.h.

References ChipContReg_.

unsigned int PixelROCDACSettings::getDac ( std::string  dacName) const

Definition at line 765 of file PixelROCDACSettings.cc.

References gather_cfg::cout, 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, and pos::k_DACName_WBC.

765  {
766 
767  if(dacName == k_DACName_Vdd){
768  return Vdd_;
769  }
770  else if(dacName == k_DACName_Vana){
771  return Vana_;
772  }
773  else if(dacName == k_DACName_Vsf){
774  return Vsf_;
775  }
776  else if(dacName == k_DACName_Vcomp){
777  return Vcomp_;
778  }
779  else if(dacName == k_DACName_Vleak){
780  return Vleak_;
781  }
782  else if(dacName == k_DACName_VrgPr){
783  return VrgPr_;
784  }
785  else if(dacName == k_DACName_VwllPr){
786  return VwllPr_;
787  }
788  else if(dacName == k_DACName_VrgSh){
789  return VrgSh_;
790  }
791  else if(dacName == k_DACName_VwllSh){
792  return VwllSh_;
793  }
794  else if(dacName == k_DACName_VHldDel){
795  return VHldDel_;
796  }
797  else if(dacName == k_DACName_Vtrim){
798  return Vtrim_;
799  }
800  else if(dacName == k_DACName_VcThr){
801  return VcThr_;
802  }
803  else if(dacName == k_DACName_VIbias_bus){
804  return VIbias_bus_;
805  }
806  else if(dacName == k_DACName_VIbias_sf){
807  return VIbias_sf_;
808  }
809  else if(dacName == k_DACName_VOffsetOp){
810  return VOffsetOp_;
811  }
812  else if(dacName == k_DACName_VbiasOp){
813  return VbiasOp_;
814  }
815  else if(dacName == k_DACName_VOffsetRO){
816  return VOffsetRO_;
817  }
818  else if(dacName == k_DACName_VIon){
819  return VIon_;
820  }
821  else if(dacName == k_DACName_VIbias_PH){
822  return VIbias_PH_;
823  }
824  else if(dacName == k_DACName_VIbias_DAC){
825  return VIbias_DAC_;
826  }
827  else if(dacName == k_DACName_VIbias_roc){
828  return VIbias_roc_;
829  }
830  else if(dacName == k_DACName_VIColOr){
831  return VIColOr_;
832  }
833  else if(dacName == k_DACName_Vnpix){
834  return Vnpix_;
835  }
836  else if(dacName == k_DACName_VsumCol){
837  return VsumCol_;
838  }
839  else if(dacName == k_DACName_Vcal){
840  return Vcal_;
841  }
842  else if(dacName == k_DACName_CalDel){
843  return CalDel_;
844  }
845  else if(dacName == k_DACName_TempRange){
846  return TempRange_;
847  }
848  else if(dacName == k_DACName_WBC){
849  return WBC_;
850  }
851  else if(dacName == k_DACName_ChipContReg){
852  return ChipContReg_;
853  }
854  else {
855  cout << "ERROR in PixelROCDACSettings::getDac: DAC name " << dacName << " does not exist." << endl;
856  assert(0);
857  }
858 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
tuple cout
Definition: gather_cfg.py:121
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
void PixelROCDACSettings::getDACs ( std::vector< unsigned int > &  dacs) const

Definition at line 20 of file PixelROCDACSettings.cc.

21 {
22  dacs.clear();
23  dacs.push_back(Vdd_);
24  dacs.push_back(Vana_);
25  dacs.push_back(Vsf_);
26  dacs.push_back(Vcomp_);
27  dacs.push_back(Vleak_);
28  dacs.push_back(VrgPr_);
29  dacs.push_back(VwllPr_);
30  dacs.push_back(VrgSh_);
31  dacs.push_back(VwllSh_);
32  dacs.push_back(VHldDel_);
33  dacs.push_back(Vtrim_);
34  dacs.push_back(VcThr_);
35  dacs.push_back(VIbias_bus_);
36  dacs.push_back(VIbias_sf_);
37  dacs.push_back(VOffsetOp_);
38  dacs.push_back(VbiasOp_);
39  dacs.push_back(VOffsetRO_);
40  dacs.push_back(VIon_);
41  dacs.push_back(VIbias_PH_);
42  dacs.push_back(VIbias_DAC_);
43  dacs.push_back(VIbias_roc_);
44  dacs.push_back(VIColOr_);
45  dacs.push_back(Vnpix_);
46  dacs.push_back(VsumCol_);
47  dacs.push_back(Vcal_);
48  dacs.push_back(CalDel_);
49  dacs.push_back(TempRange_);
50  dacs.push_back(WBC_);
51  dacs.push_back(ChipContReg_);
52 }
void PixelROCDACSettings::getDACs ( std::map< std::string, unsigned int > &  dacs) const

Definition at line 55 of file PixelROCDACSettings.cc.

References 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, and pos::k_DACName_WBC.

56 {
57  dacs.clear();
58  dacs[k_DACName_Vdd ] = Vdd_ ;
59  dacs[k_DACName_Vana ] = Vana_ ;
60  dacs[k_DACName_Vsf ] = Vsf_ ;
61  dacs[k_DACName_Vcomp ] = Vcomp_ ;
62  dacs[k_DACName_Vleak ] = Vleak_ ;
63  dacs[k_DACName_VrgPr ] = VrgPr_ ;
64  dacs[k_DACName_VwllPr ] = VwllPr_ ;
65  dacs[k_DACName_VrgSh ] = VrgSh_ ;
66  dacs[k_DACName_VwllSh ] = VwllSh_ ;
67  dacs[k_DACName_VHldDel ] = VHldDel_ ;
68  dacs[k_DACName_Vtrim ] = Vtrim_ ;
69  dacs[k_DACName_VcThr ] = VcThr_ ;
73  dacs[k_DACName_VbiasOp ] = VbiasOp_ ;
75  dacs[k_DACName_VIon ] = VIon_ ;
79  dacs[k_DACName_VIColOr ] = VIColOr_ ;
80  dacs[k_DACName_Vnpix ] = Vnpix_ ;
81  dacs[k_DACName_VsumCol ] = VsumCol_ ;
82  dacs[k_DACName_Vcal ] = Vcal_ ;
83  dacs[k_DACName_CalDel ] = CalDel_ ;
85  dacs[k_DACName_WBC ] = WBC_ ;
87 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
PixelROCName pos::PixelROCDACSettings::getROCName ( ) const
inline

Definition at line 158 of file PixelROCDACSettings.h.

References rocid_.

158 {return rocid_;}
bits8 pos::PixelROCDACSettings::getTempRange ( )
inline

Definition at line 149 of file PixelROCDACSettings.h.

References TempRange_.

bits8 pos::PixelROCDACSettings::getVana ( )
inline

Definition at line 74 of file PixelROCDACSettings.h.

References Vana_.

bits8 pos::PixelROCDACSettings::getVbiasOp ( )
inline

Definition at line 116 of file PixelROCDACSettings.h.

References VbiasOp_.

bits8 pos::PixelROCDACSettings::getVcal ( )
inline

Definition at line 143 of file PixelROCDACSettings.h.

References Vcal_.

143 {return Vcal_;}
bits4 pos::PixelROCDACSettings::getVcomp ( )
inline

Definition at line 80 of file PixelROCDACSettings.h.

References Vcomp_.

bits8 pos::PixelROCDACSettings::getVcThr ( )
inline

Definition at line 104 of file PixelROCDACSettings.h.

References VcThr_.

104 {return VcThr_;}
bits4 pos::PixelROCDACSettings::getVdd ( )
inline

Definition at line 71 of file PixelROCDACSettings.h.

References Vdd_.

bits8 pos::PixelROCDACSettings::getVHldDel ( )
inline

Definition at line 98 of file PixelROCDACSettings.h.

References VHldDel_.

bits8 pos::PixelROCDACSettings::getVIbias_bus ( )
inline

Definition at line 107 of file PixelROCDACSettings.h.

References VIbias_bus_.

bits8 pos::PixelROCDACSettings::getVIbias_DAC ( )
inline

Definition at line 128 of file PixelROCDACSettings.h.

References VIbias_DAC_.

bits8 pos::PixelROCDACSettings::getVIbias_PH ( )
inline

Definition at line 125 of file PixelROCDACSettings.h.

References VIbias_PH_.

bits8 pos::PixelROCDACSettings::getVIbias_roc ( )
inline

Definition at line 131 of file PixelROCDACSettings.h.

References VIbias_roc_.

bits4 pos::PixelROCDACSettings::getVIbias_sf ( )
inline

Definition at line 110 of file PixelROCDACSettings.h.

References VIbias_sf_.

bits8 pos::PixelROCDACSettings::getVIColOr ( )
inline

Definition at line 134 of file PixelROCDACSettings.h.

References VIColOr_.

bits8 pos::PixelROCDACSettings::getVIon ( )
inline

Definition at line 122 of file PixelROCDACSettings.h.

References VIon_.

122 {return VIon_;}
bits8 pos::PixelROCDACSettings::getVleak ( )
inline

Definition at line 83 of file PixelROCDACSettings.h.

References Vleak_.

bits8 pos::PixelROCDACSettings::getVnpix ( )
inline

Definition at line 137 of file PixelROCDACSettings.h.

References Vnpix_.

137 {return Vnpix_;}
bits8 pos::PixelROCDACSettings::getVOffsetOp ( )
inline

Definition at line 113 of file PixelROCDACSettings.h.

References VOffsetOp_.

bits8 pos::PixelROCDACSettings::getVOffsetRO ( )
inline

Definition at line 119 of file PixelROCDACSettings.h.

References VOffsetRO_.

bits4 pos::PixelROCDACSettings::getVrgPr ( )
inline

Definition at line 86 of file PixelROCDACSettings.h.

References VrgPr_.

bits4 pos::PixelROCDACSettings::getVrgSh ( )
inline

Definition at line 92 of file PixelROCDACSettings.h.

References VrgSh_.

bits8 pos::PixelROCDACSettings::getVsf ( )
inline

Definition at line 77 of file PixelROCDACSettings.h.

References Vsf_.

bits8 pos::PixelROCDACSettings::getVsumCol ( )
inline

Definition at line 140 of file PixelROCDACSettings.h.

References VsumCol_.

bits8 pos::PixelROCDACSettings::getVtrim ( )
inline

Definition at line 101 of file PixelROCDACSettings.h.

References Vtrim_.

101 {return Vtrim_;}
bits8 pos::PixelROCDACSettings::getVwllPr ( )
inline

Definition at line 89 of file PixelROCDACSettings.h.

References VwllPr_.

bits8 pos::PixelROCDACSettings::getVwllSh ( )
inline

Definition at line 95 of file PixelROCDACSettings.h.

References VwllSh_.

bits8 pos::PixelROCDACSettings::getWBC ( )
inline

Definition at line 152 of file PixelROCDACSettings.h.

References WBC_.

152 {return WBC_;}
int pos::PixelROCDACSettings::read ( std::ifstream &  in,
const PixelROCName rocid 
)
int PixelROCDACSettings::read ( std::istringstream &  in,
const PixelROCName rocid 
)

Definition at line 395 of file PixelROCDACSettings.cc.

References gather_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, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and tmp.

Referenced by Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().

396 {
397  std::string mthn = "[PixelROCDACSettings::read()]\t\t\t\t " ;
398 
399  rocid_=rocid;
400 
401  unsigned int tmp;
402  string tag;
403 
404  // cout << "[PixelROCDACSettings::read()] |" << in.str() << "|" << endl ;
405  in >> tag;
406  checkTag(tag,k_DACName_Vdd,rocid);
407  in >> tmp; Vdd_=tmp;
408  in >> tag;
409  checkTag(tag,k_DACName_Vana,rocid);
410  in >> tmp; Vana_=tmp;
411  in >> tag;
412  checkTag(tag,k_DACName_Vsf,rocid);
413  in >> tmp; Vsf_=tmp;
414  in >> tag;
415  checkTag(tag,k_DACName_Vcomp,rocid);
416  in >> tmp; Vcomp_=tmp;
417  in >> tag;
418  checkTag(tag,k_DACName_Vleak,rocid);
419  in >> tmp; Vleak_=tmp;
420  in >> tag;
421  checkTag(tag,k_DACName_VrgPr,rocid);
422  in >> tmp; VrgPr_=tmp;
423  in >> tag;
424  checkTag(tag,k_DACName_VwllPr,rocid);
425  in >> tmp; VwllPr_=tmp;
426  in >> tag;
427  checkTag(tag,k_DACName_VrgSh,rocid);
428  in >> tmp; VrgSh_=tmp;
429  in >> tag;
430  checkTag(tag,k_DACName_VwllSh,rocid);
431  in >> tmp; VwllSh_=tmp;
432  in >> tag;
433  checkTag(tag,k_DACName_VHldDel,rocid);
434  in >> tmp; VHldDel_=tmp;
435  in >> tag;
436  checkTag(tag,k_DACName_Vtrim,rocid);
437  in >> tmp; Vtrim_=tmp;
438  in >> tag;
439  checkTag(tag,k_DACName_VcThr,rocid);
440  in >> tmp; VcThr_=tmp;
441  in >> tag;
442  checkTag(tag,k_DACName_VIbias_bus,rocid);
443  in >> tmp; VIbias_bus_=tmp;
444  in >> tag;
445  checkTag(tag,k_DACName_VIbias_sf,rocid);
446  in >> tmp; VIbias_sf_=tmp;
447  in >> tag;
448  checkTag(tag,k_DACName_VOffsetOp,rocid);
449  in >> tmp; VOffsetOp_=tmp;
450  in >> tag;
451  checkTag(tag,k_DACName_VbiasOp,rocid);
452  in >> tmp; VbiasOp_=tmp;
453  in >> tag;
454  checkTag(tag,k_DACName_VOffsetRO,rocid);
455  in >> tmp; VOffsetRO_=tmp;
456  in >> tag;
457  checkTag(tag,k_DACName_VIon,rocid);
458  in >> tmp; VIon_=tmp;
459  in >> tag;
460  checkTag(tag,k_DACName_VIbias_PH,rocid);
461  in >> tmp; VIbias_PH_=tmp;
462  in >> tag;
463  checkTag(tag,k_DACName_VIbias_DAC,rocid);
464  in >> tmp; VIbias_DAC_=tmp;
465  in >> tag;
466  checkTag(tag,k_DACName_VIbias_roc,rocid);
467  in >> tmp; VIbias_roc_=tmp;
468  in >> tag;
469  checkTag(tag,k_DACName_VIColOr,rocid);
470  in >> tmp; VIColOr_=tmp;
471  in >> tag;
472  checkTag(tag,k_DACName_Vnpix,rocid);
473  in >> tmp; Vnpix_=tmp;
474  in >> tag;
475  checkTag(tag,k_DACName_VsumCol,rocid);
476  in >> tmp; VsumCol_=tmp;
477  in >> tag;
478  checkTag(tag,k_DACName_Vcal,rocid);
479  in >> tmp; Vcal_=tmp;
480  in >> tag;
481  checkTag(tag,k_DACName_CalDel,rocid);
482  in >> tmp; CalDel_=tmp;
483  in >> tag;
484  if (tag==k_DACName_WBC+":"){
485  static bool first=true;
486  if (first){
487  cout << __LINE__ << "]\t" << mthn << "**********************************************" << endl;
488  cout << __LINE__ << "]\t" << mthn << "Did not find TempRange setting in DAC settings" << endl;
489  cout << __LINE__ << "]\t" << mthn << "Will use a default value of 4." << endl;
490  cout << __LINE__ << "]\t" << mthn << "This message will only be printed out once" << endl;
491  cout << __LINE__ << "]\t" << mthn << "**********************************************" << endl;
492  TempRange_=4;
493  first=false;
494  }
495  in >> tmp; WBC_=tmp;
496  } else {
497  checkTag(tag,k_DACName_TempRange,rocid);
498  in >> tmp; TempRange_=tmp;
499  in >> tag;
500  checkTag(tag,k_DACName_WBC,rocid);
501  in >> tmp; WBC_=tmp;
502  }
503  in >> tag;
504  checkTag(tag,k_DACName_ChipContReg,rocid);
505  in >> tmp; ChipContReg_=tmp;
506 
507  return 0;
508 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
bool first
Definition: L1TdeRCT.cc:75
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
void checkTag(std::string tag, std::string dacName, const PixelROCName &rocid)
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
tuple cout
Definition: gather_cfg.py:121
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
int PixelROCDACSettings::readBinary ( std::ifstream &  in,
const PixelROCName rocid 
)

Definition at line 265 of file PixelROCDACSettings.cc.

Referenced by pos::PixelDACSettings::PixelDACSettings().

265  {
266 
267  rocid_=rocid;
268 
269  in.read((char*)&Vdd_,1);
270  in.read((char*)&Vana_,1);
271  in.read((char*)&Vsf_,1);
272  in.read((char*)&Vcomp_,1);
273  in.read((char*)&Vleak_,1);
274  in.read((char*)&VrgPr_,1);
275  in.read((char*)&VwllPr_,1);
276  in.read((char*)&VrgSh_,1);
277  in.read((char*)&VwllSh_,1);
278  in.read((char*)&VHldDel_,1);
279  in.read((char*)&Vtrim_,1);
280  in.read((char*)&VcThr_,1);
281  in.read((char*)&VIbias_bus_,1);
282  in.read((char*)&VIbias_sf_,1);
283  in.read((char*)&VOffsetOp_,1);
284  in.read((char*)&VbiasOp_,1);
285  in.read((char*)&VOffsetRO_,1);
286  in.read((char*)&VIon_,1);
287  in.read((char*)&VIbias_PH_,1);
288  in.read((char*)&VIbias_DAC_,1);
289  in.read((char*)&VIbias_roc_,1);
290  in.read((char*)&VIColOr_,1);
291  in.read((char*)&Vnpix_,1);
292  in.read((char*)&VsumCol_,1);
293  in.read((char*)&Vcal_,1);
294  in.read((char*)&CalDel_,1);
295  in.read((char*)&TempRange_,1);
296  in.read((char*)&WBC_,1);
297  in.read((char*)&ChipContReg_,1);
298 
299  return 1;
300 
301 }
void pos::PixelROCDACSettings::setCalDel ( bits8  calDel)
inline

Definition at line 147 of file PixelROCDACSettings.h.

References CalDel_.

void pos::PixelROCDACSettings::setControlRegister ( bits8  controlregister)
inline

Definition at line 156 of file PixelROCDACSettings.h.

References ChipContReg_.

156 {ChipContReg_=controlregister;}
void PixelROCDACSettings::setDAC ( unsigned int  dacaddress,
unsigned int  dacvalue 
)

Definition at line 189 of file PixelROCDACSettings.cc.

References gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.

190 {
191  std::string mthn = "[PixelROCDACSettings::setDAC()]\t\t\t\t " ;
192  switch (dacaddress) {
193  case 1: Vdd_ = dacvalue; break;
194  case 2: Vana_ = dacvalue; break;
195  case 3: Vsf_ = dacvalue; break;
196  case 4: Vcomp_ = dacvalue; break;
197  case 5: Vleak_ = dacvalue; break;
198  case 6: VrgPr_ = dacvalue; break;
199  case 7: VwllPr_ = dacvalue; break;
200  case 8: VrgSh_ = dacvalue; break;
201  case 9: VwllSh_ = dacvalue; break;
202  case 10: VHldDel_ = dacvalue; break;
203  case 11: Vtrim_ = dacvalue; break;
204  case 12: VcThr_ = dacvalue; break;
205  case 13: VIbias_bus_ = dacvalue; break;
206  case 14: VIbias_sf_ = dacvalue; break;
207  case 15: VOffsetOp_ = dacvalue; break;
208  case 16: VbiasOp_ = dacvalue; break;
209  case 17: VOffsetRO_ = dacvalue; break;
210  case 18: VIon_ = dacvalue; break;
211  case 19: VIbias_PH_ = dacvalue; break;
212  case 20: VIbias_DAC_ = dacvalue; break;
213  case 21: VIbias_roc_ = dacvalue; break;
214  case 22: VIColOr_ = dacvalue; break;
215  case 23: Vnpix_ = dacvalue; break;
216  case 24: VsumCol_ = dacvalue; break;
217  case 25: Vcal_ = dacvalue; break;
218  case 26: CalDel_ = dacvalue; break;
219  case 27: TempRange_ = dacvalue; break;
220  case 254: WBC_ = dacvalue; break;
221  case 253: ChipContReg_ = dacvalue; break;
222  default: cout << __LINE__ << "]\t" << mthn
223  << "DAC Address " << dacaddress << " does not exist!" << endl;
224  }
225 
226 }
tuple cout
Definition: gather_cfg.py:121
void PixelROCDACSettings::setDac ( std::string  dacName,
int  value 
)

Definition at line 669 of file PixelROCDACSettings.cc.

References gather_cfg::cout, 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, and pos::k_DACName_WBC.

669  {
670  if(ToLower(dacName) == ToLower(k_DACName_Vdd)){
671  Vdd_ = dacValue;
672  }
673  else if(ToLower(dacName) == ToLower(k_DACName_Vana)){
674  Vana_ = dacValue;
675  }
676  else if(ToLower(dacName) == ToLower(k_DACName_Vsf)){
677  Vsf_ = dacValue;
678  }
679  else if(ToLower(dacName) == ToLower(k_DACName_Vcomp)){
680  Vcomp_ = dacValue;
681  }
682  else if(ToLower(dacName)==ToLower(k_DACName_Vleak)){
683  Vleak_ = dacValue;
684  }
685  else if(ToLower(dacName)==ToLower(k_DACName_VrgPr)){
686  VrgPr_ = dacValue;
687  }
688  else if(ToLower(dacName)==ToLower(k_DACName_VwllPr)){
689  VwllPr_ = dacValue;
690  }
691  else if(ToLower(dacName)==ToLower(k_DACName_VrgSh)){
692  VrgSh_ = dacValue;
693  }
694  else if(ToLower(dacName)==ToLower(k_DACName_VwllSh)){
695  VwllSh_ = dacValue;
696  }
697  else if(ToLower(dacName)==ToLower(k_DACName_VHldDel)){
698  VHldDel_ = dacValue;
699  }
700  else if(ToLower(dacName)==ToLower(k_DACName_Vtrim)){
701  Vtrim_ = dacValue;
702  }
703  else if(ToLower(dacName)==ToLower(k_DACName_VcThr)){
704  VcThr_ = dacValue;
705  }
706  else if(ToLower(dacName)==ToLower(k_DACName_VIbias_bus)){
707  VIbias_bus_ = dacValue;
708  }
709  else if(ToLower(dacName)==ToLower(k_DACName_VIbias_sf)){
710  VIbias_sf_ = dacValue;
711  }
712  else if(ToLower(dacName)==ToLower(k_DACName_VOffsetOp)){
713  VOffsetOp_ = dacValue;
714  }
715  else if(ToLower(dacName)==ToLower(k_DACName_VbiasOp)){
716  VbiasOp_ = dacValue;
717  }
718  else if(ToLower(dacName)==ToLower(k_DACName_VOffsetRO)){
719  VOffsetRO_ = dacValue;
720  }
721  else if(ToLower(dacName)==ToLower(k_DACName_VIon)){
722  VIon_ = dacValue;
723  }
724  else if(ToLower(dacName)==ToLower(k_DACName_VIbias_PH)){
725  VIbias_PH_ = dacValue;
726  }
727  else if(ToLower(dacName)==ToLower(k_DACName_VIbias_DAC)){
728  VIbias_DAC_ = dacValue;
729  }
730  else if(ToLower(dacName)==ToLower(k_DACName_VIbias_roc)){
731  VIbias_roc_ = dacValue;
732  }
733  else if(ToLower(dacName)==ToLower(k_DACName_VIColOr)){
734  VIColOr_ = dacValue;
735  }
736  else if(ToLower(dacName)==ToLower(k_DACName_Vnpix)){;
737  Vnpix_ = dacValue;
738  }
739  else if(ToLower(dacName)==ToLower(k_DACName_VsumCol)){
740  VsumCol_ = dacValue;
741  }
742  else if(ToLower(dacName)==ToLower(k_DACName_Vcal)){
743  Vcal_ = dacValue;
744  }
745  else if(ToLower(dacName)==ToLower(k_DACName_CalDel)){
746  CalDel_ = dacValue;
747  }
748  else if(ToLower(dacName)==ToLower(k_DACName_TempRange)){
749  TempRange_ = dacValue;
750  }
751  else if(ToLower(dacName)==ToLower(k_DACName_WBC)){
752  WBC_ = dacValue;
753  }
754  else if(ToLower(dacName)==ToLower(k_DACName_ChipContReg)){
755  ChipContReg_ = dacValue;
756  }
757  else
758  {
759  cout << "ERROR in PixelROCDACSettings::setDac: DAC name " << dacName << " does not exist." << endl;
760  assert(0);
761  }
762 
763 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
std::string ToLower(std::string)
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
tuple cout
Definition: gather_cfg.py:121
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
void PixelROCDACSettings::setDACs ( std::map< std::string, unsigned int > &  dacs)

Definition at line 90 of file PixelROCDACSettings.cc.

References 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, and pos::k_DACName_WBC.

91 {
92  Vdd_ = dacs[k_DACName_Vdd ] ;
93  Vana_ = dacs[k_DACName_Vana ] ;
94  Vsf_ = dacs[k_DACName_Vsf ] ;
95  Vcomp_ = dacs[k_DACName_Vcomp ] ;
96  Vleak_ = dacs[k_DACName_Vleak ] ;
97  VrgPr_ = dacs[k_DACName_VrgPr ] ;
98  VwllPr_ = dacs[k_DACName_VwllPr ] ;
99  VrgSh_ = dacs[k_DACName_VrgSh ] ;
100  VwllSh_ = dacs[k_DACName_VwllSh ] ;
101  VHldDel_ = dacs[k_DACName_VHldDel ] ;
102  Vtrim_ = dacs[k_DACName_Vtrim ] ;
103  VcThr_ = dacs[k_DACName_VcThr ] ;
105  VIbias_sf_ = dacs[k_DACName_VIbias_sf ] ;
106  VOffsetOp_ = dacs[k_DACName_VOffsetOp ] ;
107  VbiasOp_ = dacs[k_DACName_VbiasOp ] ;
108  VOffsetRO_ = dacs[k_DACName_VOffsetRO ] ;
109  VIon_ = dacs[k_DACName_VIon ] ;
110  VIbias_PH_ = dacs[k_DACName_VIbias_PH ] ;
113  VIColOr_ = dacs[k_DACName_VIColOr ] ;
114  Vnpix_ = dacs[k_DACName_Vnpix ] ;
115  VsumCol_ = dacs[k_DACName_VsumCol ] ;
116  Vcal_ = dacs[k_DACName_Vcal ] ;
117  CalDel_ = dacs[k_DACName_CalDel ] ;
118  TempRange_ = dacs[k_DACName_TempRange ] ;
119  WBC_ = dacs[k_DACName_WBC ] ;
121 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
void pos::PixelROCDACSettings::setTempRange ( bits8  tempRange)
inline

Definition at line 150 of file PixelROCDACSettings.h.

References TempRange_.

150 {TempRange_=tempRange;}
void pos::PixelROCDACSettings::setVana ( bits8  vana)
inline

Definition at line 75 of file PixelROCDACSettings.h.

References Vana_.

void pos::PixelROCDACSettings::setVbiasOp ( bits8  vbiasOp)
inline

Definition at line 117 of file PixelROCDACSettings.h.

References VbiasOp_.

117 {VbiasOp_=vbiasOp;}
void pos::PixelROCDACSettings::setVcal ( bits8  vcal)
inline

Definition at line 144 of file PixelROCDACSettings.h.

References Vcal_.

void pos::PixelROCDACSettings::setVcomp ( bits4  vcomp)
inline

Definition at line 81 of file PixelROCDACSettings.h.

References Vcomp_.

void pos::PixelROCDACSettings::setVcThr ( bits8  vcThr)
inline

Definition at line 105 of file PixelROCDACSettings.h.

References VcThr_.

void pos::PixelROCDACSettings::setVdd ( bits4  vdd)
inline

Definition at line 72 of file PixelROCDACSettings.h.

References Vdd_.

void pos::PixelROCDACSettings::setVHldDel ( bits8  vHldDel)
inline

Definition at line 99 of file PixelROCDACSettings.h.

References VHldDel_.

void pos::PixelROCDACSettings::setVIbias_bus ( bits8  vIbias_bus)
inline

Definition at line 108 of file PixelROCDACSettings.h.

References VIbias_bus_.

108 {VIbias_bus_=vIbias_bus;}
void pos::PixelROCDACSettings::setVIbias_DAC ( bits8  vIbias_DAC)
inline

Definition at line 129 of file PixelROCDACSettings.h.

References VIbias_DAC_.

129 {VIbias_DAC_=vIbias_DAC;}
void pos::PixelROCDACSettings::setVIbias_PH ( bits8  vIbias_PH)
inline

Definition at line 126 of file PixelROCDACSettings.h.

References VIbias_PH_.

126 {VIbias_PH_=vIbias_PH;}
void pos::PixelROCDACSettings::setVIbias_roc ( bits8  vIbias_roc)
inline

Definition at line 132 of file PixelROCDACSettings.h.

References VIbias_roc_.

132 {VIbias_roc_=vIbias_roc;}
void pos::PixelROCDACSettings::setVIbias_sf ( bits4  vIbias_sf)
inline

Definition at line 111 of file PixelROCDACSettings.h.

References VIbias_sf_.

111 {VIbias_sf_=vIbias_sf;}
void pos::PixelROCDACSettings::setVIColOr ( bits8  vIColOr)
inline

Definition at line 135 of file PixelROCDACSettings.h.

References VIColOr_.

135 {VIColOr_=vIColOr;}
void pos::PixelROCDACSettings::setVIon ( bits8  vIon)
inline

Definition at line 123 of file PixelROCDACSettings.h.

References VIon_.

void pos::PixelROCDACSettings::setVleak ( bits8  vleak)
inline

Definition at line 84 of file PixelROCDACSettings.h.

References Vleak_.

void pos::PixelROCDACSettings::setVnpix ( bits8  vnpix)
inline

Definition at line 138 of file PixelROCDACSettings.h.

References Vnpix_.

void pos::PixelROCDACSettings::setVOffsetOp ( bits8  vOffsetOp)
inline

Definition at line 114 of file PixelROCDACSettings.h.

References VOffsetOp_.

114 {VOffsetOp_=vOffsetOp;}
void pos::PixelROCDACSettings::setVOffsetRO ( bits8  vOffsetRO)
inline

Definition at line 120 of file PixelROCDACSettings.h.

References VOffsetRO_.

120 {VOffsetRO_=vOffsetRO;}
void pos::PixelROCDACSettings::setVrgPr ( bits4  vrgPr)
inline

Definition at line 87 of file PixelROCDACSettings.h.

References VrgPr_.

void pos::PixelROCDACSettings::setVrgSh ( bits4  vrgSh)
inline

Definition at line 93 of file PixelROCDACSettings.h.

References VrgSh_.

void pos::PixelROCDACSettings::setVsf ( bits8  vsf)
inline

Definition at line 78 of file PixelROCDACSettings.h.

References Vsf_.

void pos::PixelROCDACSettings::setVsumCol ( bits8  vsumCol)
inline

Definition at line 141 of file PixelROCDACSettings.h.

References VsumCol_.

141 {VsumCol_=vsumCol;}
void pos::PixelROCDACSettings::setVtrim ( bits8  vtrim)
inline

Definition at line 102 of file PixelROCDACSettings.h.

References Vtrim_.

void pos::PixelROCDACSettings::setVwllPr_ ( bits8  vwllPr)
inline

Definition at line 90 of file PixelROCDACSettings.h.

References VwllPr_.

void pos::PixelROCDACSettings::setVwllSh ( bits8  vwllSh)
inline

Definition at line 96 of file PixelROCDACSettings.h.

References VwllSh_.

void pos::PixelROCDACSettings::setWBC ( bits8  wbc)
inline

Definition at line 153 of file PixelROCDACSettings.h.

References WBC_.

string PixelROCDACSettings::ToLower ( std::string  )
private

Definition at line 861 of file PixelROCDACSettings.cc.

References i, and query::result.

862 {
863  string result ;
864  for(unsigned int i = 0; i < generic.length() ; i++)
865  {
866  result.append(1,(char)tolower(generic[i]) );
867  }
868  return result ;
869 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
void PixelROCDACSettings::writeASCII ( std::ostream &  out) const

Definition at line 303 of file PixelROCDACSettings.cc.

References 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, and pos::k_DACName_WBC.

303  {
304 
305  out << "ROC: " << rocid_.rocname() <<endl;
306 
307  out << k_DACName_Vdd << ": " << (int)Vdd_ <<endl;
308  out << k_DACName_Vana << ": " << (int)Vana_ <<endl;
309  out << k_DACName_Vsf << ": " << (int)Vsf_ <<endl;
310  out << k_DACName_Vcomp << ": " << (int)Vcomp_ <<endl;
311  out << k_DACName_Vleak << ": " << (int)Vleak_ <<endl;
312  out << k_DACName_VrgPr << ": " << (int)VrgPr_ <<endl;
313  out << k_DACName_VwllPr << ": " << (int)VwllPr_ <<endl;
314  out << k_DACName_VrgSh << ": " << (int)VrgSh_ <<endl;
315  out << k_DACName_VwllSh << ": " << (int)VwllSh_ <<endl;
316  out << k_DACName_VHldDel << ": " << (int)VHldDel_ <<endl;
317  out << k_DACName_Vtrim << ": " << (int)Vtrim_ <<endl;
318  out << k_DACName_VcThr << ": " << (int)VcThr_ <<endl;
319  out << k_DACName_VIbias_bus << ": " << (int)VIbias_bus_ <<endl;
320  out << k_DACName_VIbias_sf << ": " << (int)VIbias_sf_ <<endl;
321  out << k_DACName_VOffsetOp << ": " << (int)VOffsetOp_ <<endl;
322  out << k_DACName_VbiasOp << ": " << (int)VbiasOp_ <<endl;
323  out << k_DACName_VOffsetRO << ": " << (int)VOffsetRO_ <<endl;
324  out << k_DACName_VIon << ": " << (int)VIon_ <<endl;
325  out << k_DACName_VIbias_PH << ": " << (int)VIbias_PH_ <<endl;
326  out << k_DACName_VIbias_DAC << ": " << (int)VIbias_DAC_ <<endl;
327  out << k_DACName_VIbias_roc << ": " << (int)VIbias_roc_ <<endl;
328  out << k_DACName_VIColOr << ": " << (int)VIColOr_ <<endl;
329  out << k_DACName_Vnpix << ": " << (int)Vnpix_ <<endl;
330  out << k_DACName_VsumCol << ": " << (int)VsumCol_ <<endl;
331  out << k_DACName_Vcal << ": " << (int)Vcal_ <<endl;
332  out << k_DACName_CalDel << ": " << (int)CalDel_ <<endl;
333  out << k_DACName_TempRange << ": " << (int)TempRange_ <<endl;
334  out << k_DACName_WBC << ": " << (int)WBC_ <<endl;
335  out << k_DACName_ChipContReg << ": " << (int)ChipContReg_ <<endl;
336 
337 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
const std::string k_DACName_TempRange
Definition: PixelDACNames.h:39
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
std::string rocname() const
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
tuple out
Definition: dbtoconf.py:99
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
void PixelROCDACSettings::writeBinary ( std::ofstream &  out) const

Definition at line 228 of file PixelROCDACSettings.cc.

References hitfit::char.

229 {
230  out << (char)rocid_.rocname().size();
231  out.write(rocid_.rocname().c_str(),rocid_.rocname().size());
232 
233  out << Vdd_;
234  out << Vana_;
235  out << Vsf_;
236  out << Vcomp_;
237  out << Vleak_;
238  out << VrgPr_;
239  out << VwllPr_;
240  out << VrgSh_;
241  out << VwllSh_;
242  out << VHldDel_;
243  out << Vtrim_;
244  out << VcThr_;
245  out << VIbias_bus_;
246  out << VIbias_sf_;
247  out << VOffsetOp_;
248  out << VbiasOp_;
249  out << VOffsetRO_;
250  out << VIon_;
251  out << VIbias_PH_;
252  out << VIbias_DAC_;
253  out << VIbias_roc_;
254  out << VIColOr_;
255  out << Vnpix_;
256  out << VsumCol_;
257  out << Vcal_;
258  out << CalDel_;
259  out << TempRange_;
260  out << WBC_;
261  out << ChipContReg_;
262 }
std::string rocname() const
tuple out
Definition: dbtoconf.py:99
void pos::PixelROCDACSettings::writeXML ( pos::PixelConfigKey  key,
int  version,
std::string  path 
) const
inline

Definition at line 47 of file PixelROCDACSettings.h.

47 {;}
void PixelROCDACSettings::writeXML ( std::ofstream *  out) const
virtual

Definition at line 340 of file PixelROCDACSettings.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

340  {
341  std::string mthn = "[PixelROCDACSettings::writeXML()]\t\t\t " ;
342 
343  *out << " <DATA>" << endl ;
344  *out << " <ROC_NAME>" << rocid_.rocname() << "</ROC_NAME>" << endl ;
345  *out << " <VDD>" << (int)Vdd_ << "</VDD>" << endl ;
346  *out << " <VANA>" << (int)Vana_ << "</VANA>" << endl ;
347  *out << " <VSF>" << (int)Vsf_ << "</VSF>" << endl ;
348  *out << " <VCOMP>" << (int)Vcomp_ << "</VCOMP>" << endl ;
349  *out << " <VLEAK>" << (int)Vleak_ << "</VLEAK>" << endl ;
350  *out << " <VRGPR>" << (int)VrgPr_ << "</VRGPR>" << endl ;
351  *out << " <VWLLPR>" << (int)VwllPr_ << "</VWLLPR>" << endl ;
352  *out << " <VRGSH>" << (int)VrgSh_ << "</VRGSH>" << endl ;
353  *out << " <VWLLSH>" << (int)VwllSh_ << "</VWLLSH>" << endl ;
354  *out << " <VHLDDEL>" << (int)VHldDel_ << "</VHLDDEL>" << endl ;
355  *out << " <VTRIM>" << (int)Vtrim_ << "</VTRIM>" << endl ;
356  *out << " <VCTHR>" << (int)VcThr_ << "</VCTHR>" << endl ;
357  *out << " <VIBIAS_BUS>" << (int)VIbias_bus_ << "</VIBIAS_BUS>" << endl ;
358  *out << " <VIBIAS_SF>" << (int)VIbias_sf_ << "</VIBIAS_SF>" << endl ;
359  *out << " <VOFFSETOP>" << (int)VOffsetOp_ << "</VOFFSETOP>" << endl ;
360  *out << " <VBIASOP>" << (int)VbiasOp_ << "</VBIASOP>" << endl ;
361  *out << " <VOFFSETRO>" << (int)VOffsetRO_ << "</VOFFSETRO>" << endl ;
362  *out << " <VION>" << (int)VIon_ << "</VION>" << endl ;
363  *out << " <VIBIAS_PH>" << (int)VIbias_PH_ << "</VIBIAS_PH>" << endl ;
364  *out << " <VIBIAS_DAC>" << (int)VIbias_DAC_ << "</VIBIAS_DAC>" << endl ;
365  *out << " <VIBIAS_ROC>" << (int)VIbias_roc_ << "</VIBIAS_ROC>" << endl ;
366  *out << " <VICOLOR>" << (int)VIColOr_ << "</VICOLOR>" << endl ;
367  *out << " <VNPIX>" << (int)Vnpix_ << "</VNPIX>" << endl ;
368  *out << " <VSUMCOL>" << (int)VsumCol_ << "</VSUMCOL>" << endl ;
369  *out << " <VCAL>" << (int)Vcal_ << "</VCAL>" << endl ;
370  *out << " <CALDEL>" << (int)CalDel_ << "</CALDEL>" << endl ;
371  *out << " <TEMPRANGE>" << (int)TempRange_ << "</TEMPRANGE>" << endl ;
372  *out << " <WBC>" << (int)WBC_ << "</WBC>" << endl ;
373  *out << " <CHIPCONTREG>" << (int)ChipContReg_ << "</CHIPCONTREG>" << endl ;
374  *out << " </DATA>" << endl ;
375  *out << " " << endl ;
376 
377 }
std::string rocname() const
tuple out
Definition: dbtoconf.py:99
virtual void pos::PixelROCDACSettings::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out 
) const
inlinevirtual

Definition at line 48 of file PixelROCDACSettings.h.

48 {;}
virtual void pos::PixelROCDACSettings::writeXMLTrailer ( std::ofstream *  out) const
inlinevirtual

Definition at line 50 of file PixelROCDACSettings.h.

50 {;}

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const PixelROCDACSettings dacs 
)
friend

Member Data Documentation

bits8 pos::PixelROCDACSettings::CalDel_
private

Definition at line 193 of file PixelROCDACSettings.h.

Referenced by getCalDel(), and setCalDel().

bits8 pos::PixelROCDACSettings::ChipContReg_
private

Definition at line 196 of file PixelROCDACSettings.h.

Referenced by getControlRegister(), and setControlRegister().

PixelROCName pos::PixelROCDACSettings::rocid_
private

Definition at line 164 of file PixelROCDACSettings.h.

Referenced by getROCName(), and PixelROCDACSettings().

bits8 pos::PixelROCDACSettings::TempRange_
private

Definition at line 194 of file PixelROCDACSettings.h.

Referenced by getTempRange(), and setTempRange().

bits8 pos::PixelROCDACSettings::Vana_
private

Definition at line 169 of file PixelROCDACSettings.h.

Referenced by getVana(), and setVana().

bits8 pos::PixelROCDACSettings::VbiasOp_
private

Definition at line 183 of file PixelROCDACSettings.h.

Referenced by getVbiasOp(), and setVbiasOp().

bits8 pos::PixelROCDACSettings::Vcal_
private

Definition at line 192 of file PixelROCDACSettings.h.

Referenced by getVcal(), and setVcal().

bits4 pos::PixelROCDACSettings::Vcomp_
private

Definition at line 171 of file PixelROCDACSettings.h.

Referenced by getVcomp(), and setVcomp().

bits8 pos::PixelROCDACSettings::VcThr_
private

Definition at line 179 of file PixelROCDACSettings.h.

Referenced by getVcThr(), and setVcThr().

bits4 pos::PixelROCDACSettings::Vdd_
private

Definition at line 168 of file PixelROCDACSettings.h.

Referenced by getVdd(), and setVdd().

bits8 pos::PixelROCDACSettings::VHldDel_
private

Definition at line 177 of file PixelROCDACSettings.h.

Referenced by getVHldDel(), and setVHldDel().

bits8 pos::PixelROCDACSettings::VIbias_bus_
private

Definition at line 180 of file PixelROCDACSettings.h.

Referenced by getVIbias_bus(), and setVIbias_bus().

bits8 pos::PixelROCDACSettings::VIbias_DAC_
private

Definition at line 187 of file PixelROCDACSettings.h.

Referenced by getVIbias_DAC(), and setVIbias_DAC().

bits8 pos::PixelROCDACSettings::VIbias_PH_
private

Definition at line 186 of file PixelROCDACSettings.h.

Referenced by getVIbias_PH(), and setVIbias_PH().

bits8 pos::PixelROCDACSettings::VIbias_roc_
private

Definition at line 188 of file PixelROCDACSettings.h.

Referenced by getVIbias_roc(), and setVIbias_roc().

bits4 pos::PixelROCDACSettings::VIbias_sf_
private

Definition at line 181 of file PixelROCDACSettings.h.

Referenced by getVIbias_sf(), and setVIbias_sf().

bits8 pos::PixelROCDACSettings::VIColOr_
private

Definition at line 189 of file PixelROCDACSettings.h.

Referenced by getVIColOr(), and setVIColOr().

bits8 pos::PixelROCDACSettings::VIon_
private

Definition at line 185 of file PixelROCDACSettings.h.

Referenced by getVIon(), and setVIon().

bits8 pos::PixelROCDACSettings::Vleak_
private

Definition at line 172 of file PixelROCDACSettings.h.

Referenced by getVleak(), and setVleak().

bits8 pos::PixelROCDACSettings::Vnpix_
private

Definition at line 190 of file PixelROCDACSettings.h.

Referenced by getVnpix(), and setVnpix().

bits8 pos::PixelROCDACSettings::VOffsetOp_
private

Definition at line 182 of file PixelROCDACSettings.h.

Referenced by getVOffsetOp(), and setVOffsetOp().

bits8 pos::PixelROCDACSettings::VOffsetRO_
private

Definition at line 184 of file PixelROCDACSettings.h.

Referenced by getVOffsetRO(), and setVOffsetRO().

bits4 pos::PixelROCDACSettings::VrgPr_
private

Definition at line 173 of file PixelROCDACSettings.h.

Referenced by getVrgPr(), and setVrgPr().

bits4 pos::PixelROCDACSettings::VrgSh_
private

Definition at line 175 of file PixelROCDACSettings.h.

Referenced by getVrgSh(), and setVrgSh().

bits8 pos::PixelROCDACSettings::Vsf_
private

Definition at line 170 of file PixelROCDACSettings.h.

Referenced by getVsf(), and setVsf().

bits8 pos::PixelROCDACSettings::VsumCol_
private

Definition at line 191 of file PixelROCDACSettings.h.

Referenced by getVsumCol(), and setVsumCol().

bits8 pos::PixelROCDACSettings::Vtrim_
private

Definition at line 178 of file PixelROCDACSettings.h.

Referenced by getVtrim(), and setVtrim().

bits8 pos::PixelROCDACSettings::VwllPr_
private

Definition at line 174 of file PixelROCDACSettings.h.

Referenced by getVwllPr(), and setVwllPr_().

bits8 pos::PixelROCDACSettings::VwllSh_
private

Definition at line 176 of file PixelROCDACSettings.h.

Referenced by getVwllSh(), and setVwllSh().

bits8 pos::PixelROCDACSettings::WBC_
private

Definition at line 195 of file PixelROCDACSettings.h.

Referenced by getWBC(), and setWBC().