CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
 
virtual ~PixelROCDACSettings ()
 

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 30 of file PixelROCDACSettings.h.

Constructor & Destructor Documentation

PixelROCDACSettings::PixelROCDACSettings ( )

Definition at line 17 of file PixelROCDACSettings.cc.

17 {}
virtual pos::PixelROCDACSettings::~PixelROCDACSettings ( )
inlinevirtual

Definition at line 33 of file PixelROCDACSettings.h.

33 { ; };
pos::PixelROCDACSettings::PixelROCDACSettings ( const PixelROCName rocid)
inline

Definition at line 35 of file PixelROCDACSettings.h.

References rocid_.

35 { rocid_ = rocid; }

Member Function Documentation

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

Definition at line 511 of file PixelROCDACSettings.cc.

References cms::cuda::assert(), gather_cfg::cout, and AlCaHLTBitMon_QueryRunRegistry::string.

511  {
512  std::string mthn = "[PixelROCDACSettings::checkTag()]\t\t\t\t ";
513  dacName += ":";
514  if (tag != dacName) {
515  cout << __LINE__ << "]\t" << mthn << "Read ROC name : " << tag << endl;
516  cout << __LINE__ << "]\t" << mthn << "But expected to find: " << dacName << endl;
517  cout << __LINE__ << "]\t" << mthn << "When reading DAC settings for ROC " << rocid << endl;
518  assert(0);
519  }
520 }
assert(be >=bs)
tuple cout
Definition: gather_cfg.py:144
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 120 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.

122  {
123  changes[k_DACName_Vdd] = false;
124  changes[k_DACName_Vana] = false;
125  changes[k_DACName_Vsf] = false;
126  changes[k_DACName_Vcomp] = false;
127  changes[k_DACName_Vleak] = false;
128  changes[k_DACName_VrgPr] = false;
129  changes[k_DACName_VwllPr] = false;
130  changes[k_DACName_VrgSh] = false;
131  changes[k_DACName_VwllSh] = false;
132  changes[k_DACName_VHldDel] = false;
133  changes[k_DACName_Vtrim] = false;
134  changes[k_DACName_VcThr] = false;
135  changes[k_DACName_VIbias_bus] = false;
136  changes[k_DACName_VIbias_sf] = false;
137  changes[k_DACName_VOffsetOp] = false;
138  changes[k_DACName_VbiasOp] = false;
139  changes[k_DACName_VOffsetRO] = false;
140  changes[k_DACName_VIon] = false;
141  changes[k_DACName_VIbias_PH] = false;
142  changes[k_DACName_VIbias_DAC] = false;
143  changes[k_DACName_VIbias_roc] = false;
144  changes[k_DACName_VIColOr] = false;
145  changes[k_DACName_Vnpix] = false;
146  changes[k_DACName_VsumCol] = false;
147  changes[k_DACName_Vcal] = false;
148  changes[k_DACName_CalDel] = false;
149  changes[k_DACName_TempRange] = false;
150  changes[k_DACName_WBC] = false;
151  changes[k_DACName_ChipContReg] = false;
152 
153  if (Vdd_ != dacs[k_DACName_Vdd]) {
154  changes[k_DACName_Vdd] = true;
156  }
157  if (Vana_ != dacs[k_DACName_Vana]) {
158  changes[k_DACName_Vana] = true;
160  }
161  if (Vsf_ != dacs[k_DACName_Vsf]) {
162  changes[k_DACName_Vsf] = true;
164  }
165  if (Vcomp_ != dacs[k_DACName_Vcomp]) {
166  changes[k_DACName_Vcomp] = true;
168  }
169  if (Vleak_ != dacs[k_DACName_Vleak]) {
170  changes[k_DACName_Vleak] = true;
172  }
173  if (VrgPr_ != dacs[k_DACName_VrgPr]) {
174  changes[k_DACName_VrgPr] = true;
176  }
177  if (VwllPr_ != dacs[k_DACName_VwllPr]) {
178  changes[k_DACName_VwllPr] = true;
180  }
181  if (VrgSh_ != dacs[k_DACName_VrgSh]) {
182  changes[k_DACName_VrgSh] = true;
184  }
185  if (VwllSh_ != dacs[k_DACName_VwllSh]) {
186  changes[k_DACName_VwllSh] = true;
188  }
189  if (VHldDel_ != dacs[k_DACName_VHldDel]) {
190  changes[k_DACName_VHldDel] = true;
192  }
193  if (Vtrim_ != dacs[k_DACName_Vtrim]) {
194  changes[k_DACName_Vtrim] = true;
196  }
197  if (VcThr_ != dacs[k_DACName_VcThr]) {
198  changes[k_DACName_VcThr] = true;
200  }
201  if (VIbias_bus_ != dacs[k_DACName_VIbias_bus]) {
202  changes[k_DACName_VIbias_bus] = true;
204  }
205  if (VIbias_sf_ != dacs[k_DACName_VIbias_sf]) {
206  changes[k_DACName_VIbias_sf] = true;
208  }
209  if (VOffsetOp_ != dacs[k_DACName_VOffsetOp]) {
210  changes[k_DACName_VOffsetOp] = true;
212  }
213  if (VbiasOp_ != dacs[k_DACName_VbiasOp]) {
214  changes[k_DACName_VbiasOp] = true;
216  }
217  if (VOffsetRO_ != dacs[k_DACName_VOffsetRO]) {
218  changes[k_DACName_VOffsetRO] = true;
220  }
221  if (VIon_ != dacs[k_DACName_VIon]) {
222  changes[k_DACName_VIon] = true;
224  }
225  if (VIbias_PH_ != dacs[k_DACName_VIbias_PH]) {
226  changes[k_DACName_VIbias_PH] = true;
228  }
229  if (VIbias_DAC_ != dacs[k_DACName_VIbias_DAC]) {
230  changes[k_DACName_VIbias_DAC] = true;
232  }
233  if (VIbias_roc_ != dacs[k_DACName_VIbias_roc]) {
234  changes[k_DACName_VIbias_roc] = true;
236  }
237  if (VIColOr_ != dacs[k_DACName_VIColOr]) {
238  changes[k_DACName_VIColOr] = true;
240  }
241  if (Vnpix_ != dacs[k_DACName_Vnpix]) {
242  changes[k_DACName_Vnpix] = true;
244  }
245  if (VsumCol_ != dacs[k_DACName_VsumCol]) {
246  changes[k_DACName_VsumCol] = true;
248  }
249  if (Vcal_ != dacs[k_DACName_Vcal]) {
250  changes[k_DACName_Vcal] = true;
252  }
253  if (CalDel_ != dacs[k_DACName_CalDel]) {
254  changes[k_DACName_CalDel] = true;
256  }
257  if (TempRange_ != dacs[k_DACName_TempRange]) {
258  changes[k_DACName_TempRange] = true;
260  }
261  if (WBC_ != dacs[k_DACName_WBC]) {
262  changes[k_DACName_WBC] = true;
264  }
265  if (ChipContReg_ != dacs[k_DACName_ChipContReg]) {
266  changes[k_DACName_ChipContReg] = true;
268  }
269 }
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
tuple previous
Definition: callgraph.py:103
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 145 of file PixelROCDACSettings.h.

References CalDel_.

145 { return CalDel_; }
string PixelROCDACSettings::getConfigCommand ( )

Definition at line 808 of file PixelROCDACSettings.cc.

References alignCSCRings::s.

808  {
809  string s;
810 
811  return s;
812 }
bits8 pos::PixelROCDACSettings::getControlRegister ( ) const
inline

Definition at line 154 of file PixelROCDACSettings.h.

References ChipContReg_.

154 { return ChipContReg_; }
unsigned int PixelROCDACSettings::getDac ( std::string  dacName) const

Definition at line 915 of file PixelROCDACSettings.cc.

References cms::cuda::assert(), 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.

915  {
916  if (dacName == k_DACName_Vdd) {
917  return Vdd_;
918  } else if (dacName == k_DACName_Vana) {
919  return Vana_;
920  } else if (dacName == k_DACName_Vsf) {
921  return Vsf_;
922  } else if (dacName == k_DACName_Vcomp) {
923  return Vcomp_;
924  } else if (dacName == k_DACName_Vleak) {
925  return Vleak_;
926  } else if (dacName == k_DACName_VrgPr) {
927  return VrgPr_;
928  } else if (dacName == k_DACName_VwllPr) {
929  return VwllPr_;
930  } else if (dacName == k_DACName_VrgSh) {
931  return VrgSh_;
932  } else if (dacName == k_DACName_VwllSh) {
933  return VwllSh_;
934  } else if (dacName == k_DACName_VHldDel) {
935  return VHldDel_;
936  } else if (dacName == k_DACName_Vtrim) {
937  return Vtrim_;
938  } else if (dacName == k_DACName_VcThr) {
939  return VcThr_;
940  } else if (dacName == k_DACName_VIbias_bus) {
941  return VIbias_bus_;
942  } else if (dacName == k_DACName_VIbias_sf) {
943  return VIbias_sf_;
944  } else if (dacName == k_DACName_VOffsetOp) {
945  return VOffsetOp_;
946  } else if (dacName == k_DACName_VbiasOp) {
947  return VbiasOp_;
948  } else if (dacName == k_DACName_VOffsetRO) {
949  return VOffsetRO_;
950  } else if (dacName == k_DACName_VIon) {
951  return VIon_;
952  } else if (dacName == k_DACName_VIbias_PH) {
953  return VIbias_PH_;
954  } else if (dacName == k_DACName_VIbias_DAC) {
955  return VIbias_DAC_;
956  } else if (dacName == k_DACName_VIbias_roc) {
957  return VIbias_roc_;
958  } else if (dacName == k_DACName_VIColOr) {
959  return VIColOr_;
960  } else if (dacName == k_DACName_Vnpix) {
961  return Vnpix_;
962  } else if (dacName == k_DACName_VsumCol) {
963  return VsumCol_;
964  } else if (dacName == k_DACName_Vcal) {
965  return Vcal_;
966  } else if (dacName == k_DACName_CalDel) {
967  return CalDel_;
968  } else if (dacName == k_DACName_TempRange) {
969  return TempRange_;
970  } else if (dacName == k_DACName_WBC) {
971  return WBC_;
972  } else if (dacName == k_DACName_ChipContReg) {
973  return ChipContReg_;
974  } else {
975  cout << "ERROR in PixelROCDACSettings::getDac: DAC name " << dacName << " does not exist." << endl;
976  assert(0);
977  }
978 }
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
assert(be >=bs)
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:144
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 19 of file PixelROCDACSettings.cc.

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

Definition at line 53 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.

53  {
54  dacs.clear();
55  dacs[k_DACName_Vdd] = Vdd_;
56  dacs[k_DACName_Vana] = Vana_;
57  dacs[k_DACName_Vsf] = Vsf_;
58  dacs[k_DACName_Vcomp] = Vcomp_;
59  dacs[k_DACName_Vleak] = Vleak_;
60  dacs[k_DACName_VrgPr] = VrgPr_;
61  dacs[k_DACName_VwllPr] = VwllPr_;
62  dacs[k_DACName_VrgSh] = VrgSh_;
63  dacs[k_DACName_VwllSh] = VwllSh_;
65  dacs[k_DACName_Vtrim] = Vtrim_;
66  dacs[k_DACName_VcThr] = VcThr_;
72  dacs[k_DACName_VIon] = VIon_;
77  dacs[k_DACName_Vnpix] = Vnpix_;
79  dacs[k_DACName_Vcal] = Vcal_;
80  dacs[k_DACName_CalDel] = CalDel_;
82  dacs[k_DACName_WBC] = WBC_;
84 }
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 157 of file PixelROCDACSettings.h.

References rocid_.

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

Definition at line 148 of file PixelROCDACSettings.h.

References TempRange_.

148 { return TempRange_; }
bits8 pos::PixelROCDACSettings::getVana ( )
inline

Definition at line 73 of file PixelROCDACSettings.h.

References Vana_.

73 { return Vana_; }
bits8 pos::PixelROCDACSettings::getVbiasOp ( )
inline

Definition at line 115 of file PixelROCDACSettings.h.

References VbiasOp_.

115 { return VbiasOp_; }
bits8 pos::PixelROCDACSettings::getVcal ( )
inline

Definition at line 142 of file PixelROCDACSettings.h.

References Vcal_.

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

Definition at line 79 of file PixelROCDACSettings.h.

References Vcomp_.

79 { return Vcomp_; }
bits8 pos::PixelROCDACSettings::getVcThr ( )
inline

Definition at line 103 of file PixelROCDACSettings.h.

References VcThr_.

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

Definition at line 70 of file PixelROCDACSettings.h.

References Vdd_.

70 { return Vdd_; }
bits8 pos::PixelROCDACSettings::getVHldDel ( )
inline

Definition at line 97 of file PixelROCDACSettings.h.

References VHldDel_.

97 { return VHldDel_; }
bits8 pos::PixelROCDACSettings::getVIbias_bus ( )
inline

Definition at line 106 of file PixelROCDACSettings.h.

References VIbias_bus_.

106 { return VIbias_bus_; }
bits8 pos::PixelROCDACSettings::getVIbias_DAC ( )
inline

Definition at line 127 of file PixelROCDACSettings.h.

References VIbias_DAC_.

127 { return VIbias_DAC_; }
bits8 pos::PixelROCDACSettings::getVIbias_PH ( )
inline

Definition at line 124 of file PixelROCDACSettings.h.

References VIbias_PH_.

124 { return VIbias_PH_; }
bits8 pos::PixelROCDACSettings::getVIbias_roc ( )
inline

Definition at line 130 of file PixelROCDACSettings.h.

References VIbias_roc_.

130 { return VIbias_roc_; }
bits4 pos::PixelROCDACSettings::getVIbias_sf ( )
inline

Definition at line 109 of file PixelROCDACSettings.h.

References VIbias_sf_.

109 { return VIbias_sf_; }
bits8 pos::PixelROCDACSettings::getVIColOr ( )
inline

Definition at line 133 of file PixelROCDACSettings.h.

References VIColOr_.

133 { return VIColOr_; }
bits8 pos::PixelROCDACSettings::getVIon ( )
inline

Definition at line 121 of file PixelROCDACSettings.h.

References VIon_.

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

Definition at line 82 of file PixelROCDACSettings.h.

References Vleak_.

82 { return Vleak_; }
bits8 pos::PixelROCDACSettings::getVnpix ( )
inline

Definition at line 136 of file PixelROCDACSettings.h.

References Vnpix_.

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

Definition at line 112 of file PixelROCDACSettings.h.

References VOffsetOp_.

112 { return VOffsetOp_; }
bits8 pos::PixelROCDACSettings::getVOffsetRO ( )
inline

Definition at line 118 of file PixelROCDACSettings.h.

References VOffsetRO_.

118 { return VOffsetRO_; }
bits4 pos::PixelROCDACSettings::getVrgPr ( )
inline

Definition at line 85 of file PixelROCDACSettings.h.

References VrgPr_.

85 { return VrgPr_; }
bits4 pos::PixelROCDACSettings::getVrgSh ( )
inline

Definition at line 91 of file PixelROCDACSettings.h.

References VrgSh_.

91 { return VrgSh_; }
bits8 pos::PixelROCDACSettings::getVsf ( )
inline

Definition at line 76 of file PixelROCDACSettings.h.

References Vsf_.

76 { return Vsf_; }
bits8 pos::PixelROCDACSettings::getVsumCol ( )
inline

Definition at line 139 of file PixelROCDACSettings.h.

References VsumCol_.

139 { return VsumCol_; }
bits8 pos::PixelROCDACSettings::getVtrim ( )
inline

Definition at line 100 of file PixelROCDACSettings.h.

References Vtrim_.

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

Definition at line 88 of file PixelROCDACSettings.h.

References VwllPr_.

88 { return VwllPr_; }
bits8 pos::PixelROCDACSettings::getVwllSh ( )
inline

Definition at line 94 of file PixelROCDACSettings.h.

References VwllSh_.

94 { return VwllSh_; }
bits8 pos::PixelROCDACSettings::getWBC ( )
inline

Definition at line 151 of file PixelROCDACSettings.h.

References WBC_.

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

Definition at line 522 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 createJobs::tmp.

Referenced by edmIntegrityCheck.PublishToFileSystem::get().

522  {
523  std::string mthn = "[PixelROCDACSettings::read()]\t\t\t\t ";
524 
525  rocid_ = rocid;
526 
527  unsigned int tmp;
528  string tag;
529 
530  // cout << "[PixelROCDACSettings::read()] |" << in.str() << "|" << endl ;
531  in >> tag;
532  checkTag(tag, k_DACName_Vdd, rocid);
533  in >> tmp;
534  Vdd_ = tmp;
535  in >> tag;
536  checkTag(tag, k_DACName_Vana, rocid);
537  in >> tmp;
538  Vana_ = tmp;
539  in >> tag;
540  checkTag(tag, k_DACName_Vsf, rocid);
541  in >> tmp;
542  Vsf_ = tmp;
543  in >> tag;
544  checkTag(tag, k_DACName_Vcomp, rocid);
545  in >> tmp;
546  Vcomp_ = tmp;
547  in >> tag;
548  checkTag(tag, k_DACName_Vleak, rocid);
549  in >> tmp;
550  Vleak_ = tmp;
551  in >> tag;
552  checkTag(tag, k_DACName_VrgPr, rocid);
553  in >> tmp;
554  VrgPr_ = tmp;
555  in >> tag;
556  checkTag(tag, k_DACName_VwllPr, rocid);
557  in >> tmp;
558  VwllPr_ = tmp;
559  in >> tag;
560  checkTag(tag, k_DACName_VrgSh, rocid);
561  in >> tmp;
562  VrgSh_ = tmp;
563  in >> tag;
564  checkTag(tag, k_DACName_VwllSh, rocid);
565  in >> tmp;
566  VwllSh_ = tmp;
567  in >> tag;
568  checkTag(tag, k_DACName_VHldDel, rocid);
569  in >> tmp;
570  VHldDel_ = tmp;
571  in >> tag;
572  checkTag(tag, k_DACName_Vtrim, rocid);
573  in >> tmp;
574  Vtrim_ = tmp;
575  in >> tag;
576  checkTag(tag, k_DACName_VcThr, rocid);
577  in >> tmp;
578  VcThr_ = tmp;
579  in >> tag;
580  checkTag(tag, k_DACName_VIbias_bus, rocid);
581  in >> tmp;
582  VIbias_bus_ = tmp;
583  in >> tag;
584  checkTag(tag, k_DACName_VIbias_sf, rocid);
585  in >> tmp;
586  VIbias_sf_ = tmp;
587  in >> tag;
588  checkTag(tag, k_DACName_VOffsetOp, rocid);
589  in >> tmp;
590  VOffsetOp_ = tmp;
591  in >> tag;
592  checkTag(tag, k_DACName_VbiasOp, rocid);
593  in >> tmp;
594  VbiasOp_ = tmp;
595  in >> tag;
596  checkTag(tag, k_DACName_VOffsetRO, rocid);
597  in >> tmp;
598  VOffsetRO_ = tmp;
599  in >> tag;
600  checkTag(tag, k_DACName_VIon, rocid);
601  in >> tmp;
602  VIon_ = tmp;
603  in >> tag;
604  checkTag(tag, k_DACName_VIbias_PH, rocid);
605  in >> tmp;
606  VIbias_PH_ = tmp;
607  in >> tag;
608  checkTag(tag, k_DACName_VIbias_DAC, rocid);
609  in >> tmp;
610  VIbias_DAC_ = tmp;
611  in >> tag;
612  checkTag(tag, k_DACName_VIbias_roc, rocid);
613  in >> tmp;
614  VIbias_roc_ = tmp;
615  in >> tag;
616  checkTag(tag, k_DACName_VIColOr, rocid);
617  in >> tmp;
618  VIColOr_ = tmp;
619  in >> tag;
620  checkTag(tag, k_DACName_Vnpix, rocid);
621  in >> tmp;
622  Vnpix_ = tmp;
623  in >> tag;
624  checkTag(tag, k_DACName_VsumCol, rocid);
625  in >> tmp;
626  VsumCol_ = tmp;
627  in >> tag;
628  checkTag(tag, k_DACName_Vcal, rocid);
629  in >> tmp;
630  Vcal_ = tmp;
631  in >> tag;
632  checkTag(tag, k_DACName_CalDel, rocid);
633  in >> tmp;
634  CalDel_ = tmp;
635  in >> tag;
636  if (tag == k_DACName_WBC + ":") {
637  static bool first = true;
638  if (first) {
639  cout << __LINE__ << "]\t" << mthn << "**********************************************" << endl;
640  cout << __LINE__ << "]\t" << mthn << "Did not find TempRange setting in DAC settings" << endl;
641  cout << __LINE__ << "]\t" << mthn << "Will use a default value of 4." << endl;
642  cout << __LINE__ << "]\t" << mthn << "This message will only be printed out once" << endl;
643  cout << __LINE__ << "]\t" << mthn << "**********************************************" << endl;
644  TempRange_ = 4;
645  first = false;
646  }
647  in >> tmp;
648  WBC_ = tmp;
649  } else {
650  checkTag(tag, k_DACName_TempRange, rocid);
651  in >> tmp;
652  TempRange_ = tmp;
653  in >> tag;
654  checkTag(tag, k_DACName_WBC, rocid);
655  in >> tmp;
656  WBC_ = tmp;
657  }
658  in >> tag;
659  checkTag(tag, k_DACName_ChipContReg, rocid);
660  in >> tmp;
661  ChipContReg_ = tmp;
662 
663  return 0;
664 }
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
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
tuple cout
Definition: gather_cfg.py:144
tmp
align.sh
Definition: createJobs.py:716
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 401 of file PixelROCDACSettings.cc.

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

401  {
402  rocid_ = rocid;
403 
404  in.read((char*)&Vdd_, 1);
405  in.read((char*)&Vana_, 1);
406  in.read((char*)&Vsf_, 1);
407  in.read((char*)&Vcomp_, 1);
408  in.read((char*)&Vleak_, 1);
409  in.read((char*)&VrgPr_, 1);
410  in.read((char*)&VwllPr_, 1);
411  in.read((char*)&VrgSh_, 1);
412  in.read((char*)&VwllSh_, 1);
413  in.read((char*)&VHldDel_, 1);
414  in.read((char*)&Vtrim_, 1);
415  in.read((char*)&VcThr_, 1);
416  in.read((char*)&VIbias_bus_, 1);
417  in.read((char*)&VIbias_sf_, 1);
418  in.read((char*)&VOffsetOp_, 1);
419  in.read((char*)&VbiasOp_, 1);
420  in.read((char*)&VOffsetRO_, 1);
421  in.read((char*)&VIon_, 1);
422  in.read((char*)&VIbias_PH_, 1);
423  in.read((char*)&VIbias_DAC_, 1);
424  in.read((char*)&VIbias_roc_, 1);
425  in.read((char*)&VIColOr_, 1);
426  in.read((char*)&Vnpix_, 1);
427  in.read((char*)&VsumCol_, 1);
428  in.read((char*)&Vcal_, 1);
429  in.read((char*)&CalDel_, 1);
430  in.read((char*)&TempRange_, 1);
431  in.read((char*)&WBC_, 1);
432  in.read((char*)&ChipContReg_, 1);
433 
434  return 1;
435 }
void pos::PixelROCDACSettings::setCalDel ( bits8  calDel)
inline

Definition at line 146 of file PixelROCDACSettings.h.

References CalDel_.

146 { CalDel_ = calDel; }
void pos::PixelROCDACSettings::setControlRegister ( bits8  controlregister)
inline

Definition at line 155 of file PixelROCDACSettings.h.

References ChipContReg_.

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

Definition at line 271 of file PixelROCDACSettings.cc.

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

271  {
272  std::string mthn = "[PixelROCDACSettings::setDAC()]\t\t\t\t ";
273  switch (dacaddress) {
274  case 1:
275  Vdd_ = dacvalue;
276  break;
277  case 2:
278  Vana_ = dacvalue;
279  break;
280  case 3:
281  Vsf_ = dacvalue;
282  break;
283  case 4:
284  Vcomp_ = dacvalue;
285  break;
286  case 5:
287  Vleak_ = dacvalue;
288  break;
289  case 6:
290  VrgPr_ = dacvalue;
291  break;
292  case 7:
293  VwllPr_ = dacvalue;
294  break;
295  case 8:
296  VrgSh_ = dacvalue;
297  break;
298  case 9:
299  VwllSh_ = dacvalue;
300  break;
301  case 10:
302  VHldDel_ = dacvalue;
303  break;
304  case 11:
305  Vtrim_ = dacvalue;
306  break;
307  case 12:
308  VcThr_ = dacvalue;
309  break;
310  case 13:
311  VIbias_bus_ = dacvalue;
312  break;
313  case 14:
314  VIbias_sf_ = dacvalue;
315  break;
316  case 15:
317  VOffsetOp_ = dacvalue;
318  break;
319  case 16:
320  VbiasOp_ = dacvalue;
321  break;
322  case 17:
323  VOffsetRO_ = dacvalue;
324  break;
325  case 18:
326  VIon_ = dacvalue;
327  break;
328  case 19:
329  VIbias_PH_ = dacvalue;
330  break;
331  case 20:
332  VIbias_DAC_ = dacvalue;
333  break;
334  case 21:
335  VIbias_roc_ = dacvalue;
336  break;
337  case 22:
338  VIColOr_ = dacvalue;
339  break;
340  case 23:
341  Vnpix_ = dacvalue;
342  break;
343  case 24:
344  VsumCol_ = dacvalue;
345  break;
346  case 25:
347  Vcal_ = dacvalue;
348  break;
349  case 26:
350  CalDel_ = dacvalue;
351  break;
352  case 27:
353  TempRange_ = dacvalue;
354  break;
355  case 254:
356  WBC_ = dacvalue;
357  break;
358  case 253:
359  ChipContReg_ = dacvalue;
360  break;
361  default:
362  cout << __LINE__ << "]\t" << mthn << "DAC Address " << dacaddress << " does not exist!" << endl;
363  }
364 }
tuple cout
Definition: gather_cfg.py:144
void PixelROCDACSettings::setDac ( std::string  dacName,
int  value 
)

Definition at line 849 of file PixelROCDACSettings.cc.

References cms::cuda::assert(), 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.

849  {
850  if (ToLower(dacName) == ToLower(k_DACName_Vdd)) {
851  Vdd_ = dacValue;
852  } else if (ToLower(dacName) == ToLower(k_DACName_Vana)) {
853  Vana_ = dacValue;
854  } else if (ToLower(dacName) == ToLower(k_DACName_Vsf)) {
855  Vsf_ = dacValue;
856  } else if (ToLower(dacName) == ToLower(k_DACName_Vcomp)) {
857  Vcomp_ = dacValue;
858  } else if (ToLower(dacName) == ToLower(k_DACName_Vleak)) {
859  Vleak_ = dacValue;
860  } else if (ToLower(dacName) == ToLower(k_DACName_VrgPr)) {
861  VrgPr_ = dacValue;
862  } else if (ToLower(dacName) == ToLower(k_DACName_VwllPr)) {
863  VwllPr_ = dacValue;
864  } else if (ToLower(dacName) == ToLower(k_DACName_VrgSh)) {
865  VrgSh_ = dacValue;
866  } else if (ToLower(dacName) == ToLower(k_DACName_VwllSh)) {
867  VwllSh_ = dacValue;
868  } else if (ToLower(dacName) == ToLower(k_DACName_VHldDel)) {
869  VHldDel_ = dacValue;
870  } else if (ToLower(dacName) == ToLower(k_DACName_Vtrim)) {
871  Vtrim_ = dacValue;
872  } else if (ToLower(dacName) == ToLower(k_DACName_VcThr)) {
873  VcThr_ = dacValue;
874  } else if (ToLower(dacName) == ToLower(k_DACName_VIbias_bus)) {
875  VIbias_bus_ = dacValue;
876  } else if (ToLower(dacName) == ToLower(k_DACName_VIbias_sf)) {
877  VIbias_sf_ = dacValue;
878  } else if (ToLower(dacName) == ToLower(k_DACName_VOffsetOp)) {
879  VOffsetOp_ = dacValue;
880  } else if (ToLower(dacName) == ToLower(k_DACName_VbiasOp)) {
881  VbiasOp_ = dacValue;
882  } else if (ToLower(dacName) == ToLower(k_DACName_VOffsetRO)) {
883  VOffsetRO_ = dacValue;
884  } else if (ToLower(dacName) == ToLower(k_DACName_VIon)) {
885  VIon_ = dacValue;
886  } else if (ToLower(dacName) == ToLower(k_DACName_VIbias_PH)) {
887  VIbias_PH_ = dacValue;
888  } else if (ToLower(dacName) == ToLower(k_DACName_VIbias_DAC)) {
889  VIbias_DAC_ = dacValue;
890  } else if (ToLower(dacName) == ToLower(k_DACName_VIbias_roc)) {
891  VIbias_roc_ = dacValue;
892  } else if (ToLower(dacName) == ToLower(k_DACName_VIColOr)) {
893  VIColOr_ = dacValue;
894  } else if (ToLower(dacName) == ToLower(k_DACName_Vnpix)) {
895  ;
896  Vnpix_ = dacValue;
897  } else if (ToLower(dacName) == ToLower(k_DACName_VsumCol)) {
898  VsumCol_ = dacValue;
899  } else if (ToLower(dacName) == ToLower(k_DACName_Vcal)) {
900  Vcal_ = dacValue;
901  } else if (ToLower(dacName) == ToLower(k_DACName_CalDel)) {
902  CalDel_ = dacValue;
903  } else if (ToLower(dacName) == ToLower(k_DACName_TempRange)) {
904  TempRange_ = dacValue;
905  } else if (ToLower(dacName) == ToLower(k_DACName_WBC)) {
906  WBC_ = dacValue;
907  } else if (ToLower(dacName) == ToLower(k_DACName_ChipContReg)) {
908  ChipContReg_ = dacValue;
909  } else {
910  cout << "ERROR in PixelROCDACSettings::setDac: DAC name " << dacName << " does not exist." << endl;
911  assert(0);
912  }
913 }
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
assert(be >=bs)
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:144
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 87 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.

87  {
88  Vdd_ = dacs[k_DACName_Vdd];
89  Vana_ = dacs[k_DACName_Vana];
90  Vsf_ = dacs[k_DACName_Vsf];
91  Vcomp_ = dacs[k_DACName_Vcomp];
92  Vleak_ = dacs[k_DACName_Vleak];
93  VrgPr_ = dacs[k_DACName_VrgPr];
94  VwllPr_ = dacs[k_DACName_VwllPr];
95  VrgSh_ = dacs[k_DACName_VrgSh];
96  VwllSh_ = dacs[k_DACName_VwllSh];
98  Vtrim_ = dacs[k_DACName_Vtrim];
99  VcThr_ = dacs[k_DACName_VcThr];
103  VbiasOp_ = dacs[k_DACName_VbiasOp];
105  VIon_ = dacs[k_DACName_VIon];
109  VIColOr_ = dacs[k_DACName_VIColOr];
110  Vnpix_ = dacs[k_DACName_Vnpix];
111  VsumCol_ = dacs[k_DACName_VsumCol];
112  Vcal_ = dacs[k_DACName_Vcal];
113  CalDel_ = dacs[k_DACName_CalDel];
115  WBC_ = dacs[k_DACName_WBC];
117 }
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 149 of file PixelROCDACSettings.h.

References TempRange_.

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

Definition at line 74 of file PixelROCDACSettings.h.

References Vana_.

74 { Vana_ = vana; }
void pos::PixelROCDACSettings::setVbiasOp ( bits8  vbiasOp)
inline

Definition at line 116 of file PixelROCDACSettings.h.

References VbiasOp_.

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

Definition at line 143 of file PixelROCDACSettings.h.

References Vcal_.

143 { Vcal_ = vcal; }
void pos::PixelROCDACSettings::setVcomp ( bits4  vcomp)
inline

Definition at line 80 of file PixelROCDACSettings.h.

References Vcomp_.

80 { Vcomp_ = vcomp; }
void pos::PixelROCDACSettings::setVcThr ( bits8  vcThr)
inline

Definition at line 104 of file PixelROCDACSettings.h.

References VcThr_.

104 { VcThr_ = vcThr; }
void pos::PixelROCDACSettings::setVdd ( bits4  vdd)
inline

Definition at line 71 of file PixelROCDACSettings.h.

References Vdd_.

71 { Vdd_ = vdd; }
void pos::PixelROCDACSettings::setVHldDel ( bits8  vHldDel)
inline

Definition at line 98 of file PixelROCDACSettings.h.

References VHldDel_.

98 { VHldDel_ = vHldDel; }
void pos::PixelROCDACSettings::setVIbias_bus ( bits8  vIbias_bus)
inline

Definition at line 107 of file PixelROCDACSettings.h.

References VIbias_bus_.

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

Definition at line 128 of file PixelROCDACSettings.h.

References VIbias_DAC_.

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

Definition at line 125 of file PixelROCDACSettings.h.

References VIbias_PH_.

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

Definition at line 131 of file PixelROCDACSettings.h.

References VIbias_roc_.

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

Definition at line 110 of file PixelROCDACSettings.h.

References VIbias_sf_.

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

Definition at line 134 of file PixelROCDACSettings.h.

References VIColOr_.

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

Definition at line 122 of file PixelROCDACSettings.h.

References VIon_.

122 { VIon_ = vIon; }
void pos::PixelROCDACSettings::setVleak ( bits8  vleak)
inline

Definition at line 83 of file PixelROCDACSettings.h.

References Vleak_.

83 { Vleak_ = vleak; }
void pos::PixelROCDACSettings::setVnpix ( bits8  vnpix)
inline

Definition at line 137 of file PixelROCDACSettings.h.

References Vnpix_.

137 { Vnpix_ = vnpix; }
void pos::PixelROCDACSettings::setVOffsetOp ( bits8  vOffsetOp)
inline

Definition at line 113 of file PixelROCDACSettings.h.

References VOffsetOp_.

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

Definition at line 119 of file PixelROCDACSettings.h.

References VOffsetRO_.

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

Definition at line 86 of file PixelROCDACSettings.h.

References VrgPr_.

86 { VrgPr_ = vrgPr; }
void pos::PixelROCDACSettings::setVrgSh ( bits4  vrgSh)
inline

Definition at line 92 of file PixelROCDACSettings.h.

References VrgSh_.

92 { VrgSh_ = vrgSh; }
void pos::PixelROCDACSettings::setVsf ( bits8  vsf)
inline

Definition at line 77 of file PixelROCDACSettings.h.

References Vsf_.

77 { Vsf_ = vsf; }
void pos::PixelROCDACSettings::setVsumCol ( bits8  vsumCol)
inline

Definition at line 140 of file PixelROCDACSettings.h.

References VsumCol_.

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

Definition at line 101 of file PixelROCDACSettings.h.

References Vtrim_.

101 { Vtrim_ = vtrim; }
void pos::PixelROCDACSettings::setVwllPr_ ( bits8  vwllPr)
inline

Definition at line 89 of file PixelROCDACSettings.h.

References VwllPr_.

89 { VwllPr_ = vwllPr; }
void pos::PixelROCDACSettings::setVwllSh ( bits8  vwllSh)
inline

Definition at line 95 of file PixelROCDACSettings.h.

References VwllSh_.

95 { VwllSh_ = vwllSh; }
void pos::PixelROCDACSettings::setWBC ( bits8  wbc)
inline

Definition at line 152 of file PixelROCDACSettings.h.

References WBC_.

152 { WBC_ = wbc; }
string PixelROCDACSettings::ToLower ( std::string  )
private

Definition at line 980 of file PixelROCDACSettings.cc.

References mps_fire::i, and mps_fire::result.

980  {
981  string result;
982  for (unsigned int i = 0; i < generic.length(); i++) {
983  result.append(1, (char)tolower(generic[i]));
984  }
985  return result;
986 }
tuple result
Definition: mps_fire.py:311
void PixelROCDACSettings::writeASCII ( std::ostream &  out) const

Definition at line 437 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.

437  {
438  out << "ROC: " << rocid_.rocname() << endl;
439 
440  out << k_DACName_Vdd << ": " << (int)Vdd_ << endl;
441  out << k_DACName_Vana << ": " << (int)Vana_ << endl;
442  out << k_DACName_Vsf << ": " << (int)Vsf_ << endl;
443  out << k_DACName_Vcomp << ": " << (int)Vcomp_ << endl;
444  out << k_DACName_Vleak << ": " << (int)Vleak_ << endl;
445  out << k_DACName_VrgPr << ": " << (int)VrgPr_ << endl;
446  out << k_DACName_VwllPr << ": " << (int)VwllPr_ << endl;
447  out << k_DACName_VrgSh << ": " << (int)VrgSh_ << endl;
448  out << k_DACName_VwllSh << ": " << (int)VwllSh_ << endl;
449  out << k_DACName_VHldDel << ": " << (int)VHldDel_ << endl;
450  out << k_DACName_Vtrim << ": " << (int)Vtrim_ << endl;
451  out << k_DACName_VcThr << ": " << (int)VcThr_ << endl;
452  out << k_DACName_VIbias_bus << ": " << (int)VIbias_bus_ << endl;
453  out << k_DACName_VIbias_sf << ": " << (int)VIbias_sf_ << endl;
454  out << k_DACName_VOffsetOp << ": " << (int)VOffsetOp_ << endl;
455  out << k_DACName_VbiasOp << ": " << (int)VbiasOp_ << endl;
456  out << k_DACName_VOffsetRO << ": " << (int)VOffsetRO_ << endl;
457  out << k_DACName_VIon << ": " << (int)VIon_ << endl;
458  out << k_DACName_VIbias_PH << ": " << (int)VIbias_PH_ << endl;
459  out << k_DACName_VIbias_DAC << ": " << (int)VIbias_DAC_ << endl;
460  out << k_DACName_VIbias_roc << ": " << (int)VIbias_roc_ << endl;
461  out << k_DACName_VIColOr << ": " << (int)VIColOr_ << endl;
462  out << k_DACName_Vnpix << ": " << (int)Vnpix_ << endl;
463  out << k_DACName_VsumCol << ": " << (int)VsumCol_ << endl;
464  out << k_DACName_Vcal << ": " << (int)Vcal_ << endl;
465  out << k_DACName_CalDel << ": " << (int)CalDel_ << endl;
466  out << k_DACName_TempRange << ": " << (int)TempRange_ << endl;
467  out << k_DACName_WBC << ": " << (int)WBC_ << endl;
468  out << k_DACName_ChipContReg << ": " << (int)ChipContReg_ << endl;
469 }
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
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 366 of file PixelROCDACSettings.cc.

366  {
367  out << (char)rocid_.rocname().size();
368  out.write(rocid_.rocname().c_str(), rocid_.rocname().size());
369 
370  out << Vdd_;
371  out << Vana_;
372  out << Vsf_;
373  out << Vcomp_;
374  out << Vleak_;
375  out << VrgPr_;
376  out << VwllPr_;
377  out << VrgSh_;
378  out << VwllSh_;
379  out << VHldDel_;
380  out << Vtrim_;
381  out << VcThr_;
382  out << VIbias_bus_;
383  out << VIbias_sf_;
384  out << VOffsetOp_;
385  out << VbiasOp_;
386  out << VOffsetRO_;
387  out << VIon_;
388  out << VIbias_PH_;
389  out << VIbias_DAC_;
390  out << VIbias_roc_;
391  out << VIColOr_;
392  out << Vnpix_;
393  out << VsumCol_;
394  out << Vcal_;
395  out << CalDel_;
396  out << TempRange_;
397  out << WBC_;
398  out << ChipContReg_;
399 }
std::string rocname() const
void pos::PixelROCDACSettings::writeXML ( pos::PixelConfigKey  key,
int  version,
std::string  path 
) const
inline

Definition at line 49 of file PixelROCDACSettings.h.

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

Definition at line 472 of file PixelROCDACSettings.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

472  {
473  std::string mthn = "[PixelROCDACSettings::writeXML()]\t\t\t ";
474 
475  *out << " <DATA>" << endl;
476  *out << " <ROC_NAME>" << rocid_.rocname() << "</ROC_NAME>" << endl;
477  *out << " <VDD>" << (int)Vdd_ << "</VDD>" << endl;
478  *out << " <VANA>" << (int)Vana_ << "</VANA>" << endl;
479  *out << " <VSF>" << (int)Vsf_ << "</VSF>" << endl;
480  *out << " <VCOMP>" << (int)Vcomp_ << "</VCOMP>" << endl;
481  *out << " <VLEAK>" << (int)Vleak_ << "</VLEAK>" << endl;
482  *out << " <VRGPR>" << (int)VrgPr_ << "</VRGPR>" << endl;
483  *out << " <VWLLPR>" << (int)VwllPr_ << "</VWLLPR>" << endl;
484  *out << " <VRGSH>" << (int)VrgSh_ << "</VRGSH>" << endl;
485  *out << " <VWLLSH>" << (int)VwllSh_ << "</VWLLSH>" << endl;
486  *out << " <VHLDDEL>" << (int)VHldDel_ << "</VHLDDEL>" << endl;
487  *out << " <VTRIM>" << (int)Vtrim_ << "</VTRIM>" << endl;
488  *out << " <VCTHR>" << (int)VcThr_ << "</VCTHR>" << endl;
489  *out << " <VIBIAS_BUS>" << (int)VIbias_bus_ << "</VIBIAS_BUS>" << endl;
490  *out << " <VIBIAS_SF>" << (int)VIbias_sf_ << "</VIBIAS_SF>" << endl;
491  *out << " <VOFFSETOP>" << (int)VOffsetOp_ << "</VOFFSETOP>" << endl;
492  *out << " <VBIASOP>" << (int)VbiasOp_ << "</VBIASOP>" << endl;
493  *out << " <VOFFSETRO>" << (int)VOffsetRO_ << "</VOFFSETRO>" << endl;
494  *out << " <VION>" << (int)VIon_ << "</VION>" << endl;
495  *out << " <VIBIAS_PH>" << (int)VIbias_PH_ << "</VIBIAS_PH>" << endl;
496  *out << " <VIBIAS_DAC>" << (int)VIbias_DAC_ << "</VIBIAS_DAC>" << endl;
497  *out << " <VIBIAS_ROC>" << (int)VIbias_roc_ << "</VIBIAS_ROC>" << endl;
498  *out << " <VICOLOR>" << (int)VIColOr_ << "</VICOLOR>" << endl;
499  *out << " <VNPIX>" << (int)Vnpix_ << "</VNPIX>" << endl;
500  *out << " <VSUMCOL>" << (int)VsumCol_ << "</VSUMCOL>" << endl;
501  *out << " <VCAL>" << (int)Vcal_ << "</VCAL>" << endl;
502  *out << " <CALDEL>" << (int)CalDel_ << "</CALDEL>" << endl;
503  *out << " <TEMPRANGE>" << (int)TempRange_ << "</TEMPRANGE>" << endl;
504  *out << " <WBC>" << (int)WBC_ << "</WBC>" << endl;
505  *out << " <CHIPCONTREG>" << (int)ChipContReg_ << "</CHIPCONTREG>" << endl;
506  *out << " </DATA>" << endl;
507  *out << " " << endl;
508 }
std::string rocname() const
virtual void pos::PixelROCDACSettings::writeXMLHeader ( pos::PixelConfigKey  key,
int  version,
std::string  path,
std::ofstream *  out 
) const
inlinevirtual

Definition at line 50 of file PixelROCDACSettings.h.

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

Definition at line 52 of file PixelROCDACSettings.h.

52 { ; }

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 191 of file PixelROCDACSettings.h.

Referenced by getCalDel(), and setCalDel().

bits8 pos::PixelROCDACSettings::ChipContReg_
private

Definition at line 194 of file PixelROCDACSettings.h.

Referenced by getControlRegister(), and setControlRegister().

PixelROCName pos::PixelROCDACSettings::rocid_
private

Definition at line 162 of file PixelROCDACSettings.h.

Referenced by getROCName(), and PixelROCDACSettings().

bits8 pos::PixelROCDACSettings::TempRange_
private

Definition at line 192 of file PixelROCDACSettings.h.

Referenced by getTempRange(), and setTempRange().

bits8 pos::PixelROCDACSettings::Vana_
private

Definition at line 167 of file PixelROCDACSettings.h.

Referenced by getVana(), and setVana().

bits8 pos::PixelROCDACSettings::VbiasOp_
private

Definition at line 181 of file PixelROCDACSettings.h.

Referenced by getVbiasOp(), and setVbiasOp().

bits8 pos::PixelROCDACSettings::Vcal_
private

Definition at line 190 of file PixelROCDACSettings.h.

Referenced by getVcal(), and setVcal().

bits4 pos::PixelROCDACSettings::Vcomp_
private

Definition at line 169 of file PixelROCDACSettings.h.

Referenced by getVcomp(), and setVcomp().

bits8 pos::PixelROCDACSettings::VcThr_
private

Definition at line 177 of file PixelROCDACSettings.h.

Referenced by getVcThr(), and setVcThr().

bits4 pos::PixelROCDACSettings::Vdd_
private

Definition at line 166 of file PixelROCDACSettings.h.

Referenced by getVdd(), and setVdd().

bits8 pos::PixelROCDACSettings::VHldDel_
private

Definition at line 175 of file PixelROCDACSettings.h.

Referenced by getVHldDel(), and setVHldDel().

bits8 pos::PixelROCDACSettings::VIbias_bus_
private

Definition at line 178 of file PixelROCDACSettings.h.

Referenced by getVIbias_bus(), and setVIbias_bus().

bits8 pos::PixelROCDACSettings::VIbias_DAC_
private

Definition at line 185 of file PixelROCDACSettings.h.

Referenced by getVIbias_DAC(), and setVIbias_DAC().

bits8 pos::PixelROCDACSettings::VIbias_PH_
private

Definition at line 184 of file PixelROCDACSettings.h.

Referenced by getVIbias_PH(), and setVIbias_PH().

bits8 pos::PixelROCDACSettings::VIbias_roc_
private

Definition at line 186 of file PixelROCDACSettings.h.

Referenced by getVIbias_roc(), and setVIbias_roc().

bits4 pos::PixelROCDACSettings::VIbias_sf_
private

Definition at line 179 of file PixelROCDACSettings.h.

Referenced by getVIbias_sf(), and setVIbias_sf().

bits8 pos::PixelROCDACSettings::VIColOr_
private

Definition at line 187 of file PixelROCDACSettings.h.

Referenced by getVIColOr(), and setVIColOr().

bits8 pos::PixelROCDACSettings::VIon_
private

Definition at line 183 of file PixelROCDACSettings.h.

Referenced by getVIon(), and setVIon().

bits8 pos::PixelROCDACSettings::Vleak_
private

Definition at line 170 of file PixelROCDACSettings.h.

Referenced by getVleak(), and setVleak().

bits8 pos::PixelROCDACSettings::Vnpix_
private

Definition at line 188 of file PixelROCDACSettings.h.

Referenced by getVnpix(), and setVnpix().

bits8 pos::PixelROCDACSettings::VOffsetOp_
private

Definition at line 180 of file PixelROCDACSettings.h.

Referenced by getVOffsetOp(), and setVOffsetOp().

bits8 pos::PixelROCDACSettings::VOffsetRO_
private

Definition at line 182 of file PixelROCDACSettings.h.

Referenced by getVOffsetRO(), and setVOffsetRO().

bits4 pos::PixelROCDACSettings::VrgPr_
private

Definition at line 171 of file PixelROCDACSettings.h.

Referenced by getVrgPr(), and setVrgPr().

bits4 pos::PixelROCDACSettings::VrgSh_
private

Definition at line 173 of file PixelROCDACSettings.h.

Referenced by getVrgSh(), and setVrgSh().

bits8 pos::PixelROCDACSettings::Vsf_
private

Definition at line 168 of file PixelROCDACSettings.h.

Referenced by getVsf(), and setVsf().

bits8 pos::PixelROCDACSettings::VsumCol_
private

Definition at line 189 of file PixelROCDACSettings.h.

Referenced by getVsumCol(), and setVsumCol().

bits8 pos::PixelROCDACSettings::Vtrim_
private

Definition at line 176 of file PixelROCDACSettings.h.

Referenced by getVtrim(), and setVtrim().

bits8 pos::PixelROCDACSettings::VwllPr_
private

Definition at line 172 of file PixelROCDACSettings.h.

Referenced by getVwllPr(), and setVwllPr_().

bits8 pos::PixelROCDACSettings::VwllSh_
private

Definition at line 174 of file PixelROCDACSettings.h.

Referenced by getVwllSh(), and setVwllSh().

bits8 pos::PixelROCDACSettings::WBC_
private

Definition at line 193 of file PixelROCDACSettings.h.

Referenced by getWBC(), and setWBC().