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
pos::PixelDACScanRange Class Reference

#include <PixelDACScanRange.h>

Public Member Functions

unsigned int dacchannel () const
 
unsigned int first () const
 
unsigned int getNPoints () const
 
unsigned int index () const
 
unsigned int last () const
 
bool mixValuesAcrossROCs () const
 
std::string name () const
 
bool negative () const
 
 PixelDACScanRange ()
 
 PixelDACScanRange (std::string dacname, unsigned int first, unsigned int last, unsigned int step, unsigned int index, bool mixValuesAcrossROCs)
 
 PixelDACScanRange (std::string name, const std::vector< unsigned int > &values, unsigned int index, bool mixValuesAcrossROCs)
 
bool relative () const
 
void setNegative ()
 
void setRelative ()
 
unsigned int step () const
 
bool uniformSteps () const
 
unsigned int value (unsigned int ivalue) const
 
std::vector< unsigned int > values () const
 

Private Member Functions

void setDACChannel (std::string name)
 

Private Attributes

unsigned int dacchannel_
 
unsigned int first_
 
unsigned int index_
 
unsigned int last_
 
bool mixValuesAcrossROCs_
 
std::string name_
 
bool negative_
 
bool relative_
 
unsigned int step_
 
bool uniformSteps_
 
std::vector< unsigned int > values_
 

Detailed Description

Definition at line 26 of file PixelDACScanRange.h.

Constructor & Destructor Documentation

pos::PixelDACScanRange::PixelDACScanRange ( )
inline

Definition at line 30 of file PixelDACScanRange.h.

30 {;}
PixelDACScanRange::PixelDACScanRange ( std::string  dacname,
unsigned int  first,
unsigned int  last,
unsigned int  step,
unsigned int  index,
bool  mixValuesAcrossROCs 
)

Definition at line 16 of file PixelDACScanRange.cc.

References assert(), first(), first_, index(), index_, last(), last_, mixValuesAcrossROCs(), mixValuesAcrossROCs_, name(), name_, negative_, relative_, setDACChannel(), step(), step_, uniformSteps_, and values_.

18  {
19 
20  uniformSteps_=true;
21  relative_=false;
22  negative_=false;
23 
24  first_=first;
25  last_=last;
26  step_=step;
27 
28  name_=name;
29  index_=index;
31  if (first_==last_) assert( mixValuesAcrossROCs==false );
32  while(first<=last){
33  values_.push_back(first);
34  first+=step;
35  //FIXME should have a better reporting
36  assert(values_.size()<1000);
37  }
38 
40 
41 }
std::vector< unsigned int > values_
unsigned int last() const
bool mixValuesAcrossROCs() const
assert(m_qm.get())
std::string name() const
unsigned int first() const
unsigned int step() const
void setDACChannel(std::string name)
unsigned int index() const
PixelDACScanRange::PixelDACScanRange ( std::string  name,
const std::vector< unsigned int > &  values,
unsigned int  index,
bool  mixValuesAcrossROCs 
)

Definition at line 43 of file PixelDACScanRange.cc.

References assert(), mixValuesAcrossROCs(), mixValuesAcrossROCs_, name(), name_, negative_, relative_, setDACChannel(), uniformSteps_, values(), and values_.

45  {
46 
47  uniformSteps_=false;
48  relative_=false;
49  negative_=false;
50 
51  name_=name;
54  assert( mixValuesAcrossROCs==false );
55 
57 
58 }
std::vector< unsigned int > values_
bool mixValuesAcrossROCs() const
assert(m_qm.get())
std::string name() const
std::vector< unsigned int > values() const
void setDACChannel(std::string name)

Member Function Documentation

unsigned int pos::PixelDACScanRange::dacchannel ( ) const
inline

Definition at line 39 of file PixelDACScanRange.h.

References dacchannel_.

39 { return dacchannel_; }
unsigned int pos::PixelDACScanRange::first ( ) const
inline

Definition at line 41 of file PixelDACScanRange.h.

References assert(), first_, and uniformSteps_.

Referenced by PixelDACScanRange().

41 { assert(uniformSteps_); return first_; }
assert(m_qm.get())
unsigned int pos::PixelDACScanRange::getNPoints ( ) const
inline

Definition at line 44 of file PixelDACScanRange.h.

References values_.

44 { return values_.size(); }
std::vector< unsigned int > values_
unsigned int pos::PixelDACScanRange::index ( ) const
inline

Definition at line 43 of file PixelDACScanRange.h.

References index_.

Referenced by BeautifulSoup.PageElement::_invert(), and PixelDACScanRange().

43 { return index_; }
unsigned int pos::PixelDACScanRange::last ( ) const
inline

Definition at line 42 of file PixelDACScanRange.h.

References assert(), last_, and uniformSteps_.

Referenced by PixelDACScanRange().

42 { assert(uniformSteps_); return last_; }
assert(m_qm.get())
bool pos::PixelDACScanRange::mixValuesAcrossROCs ( ) const
inline

Definition at line 46 of file PixelDACScanRange.h.

References mixValuesAcrossROCs_.

Referenced by PixelDACScanRange().

std::string pos::PixelDACScanRange::name ( ) const
inline
bool pos::PixelDACScanRange::negative ( ) const
inline

Definition at line 51 of file PixelDACScanRange.h.

References negative_.

51 { return negative_; }
bool pos::PixelDACScanRange::relative ( ) const
inline

Definition at line 49 of file PixelDACScanRange.h.

References relative_.

49 { return relative_; }
void PixelDACScanRange::setDACChannel ( std::string  name)
private

Definition at line 61 of file PixelDACScanRange.cc.

References assert(), gather_cfg::cout, dacchannel_, pos::k_DACAddress_CalDel, pos::k_DACAddress_ChipContReg, pos::k_DACAddress_Vana, pos::k_DACAddress_VbiasOp, pos::k_DACAddress_Vcal, pos::k_DACAddress_Vcomp, pos::k_DACAddress_VcThr, pos::k_DACAddress_Vdd, pos::k_DACAddress_VHldDel, pos::k_DACAddress_VIbias_bus, pos::k_DACAddress_VIbias_DAC, pos::k_DACAddress_VIbias_PH, pos::k_DACAddress_VIbias_roc, pos::k_DACAddress_VIbias_sf, pos::k_DACAddress_VIColOr, pos::k_DACAddress_VIon, pos::k_DACAddress_Vleak, pos::k_DACAddress_Vnpix, pos::k_DACAddress_VOffsetOp, pos::k_DACAddress_VOffsetRO, pos::k_DACAddress_VrgPr, pos::k_DACAddress_VrgSh, pos::k_DACAddress_Vsf, pos::k_DACAddress_VsumCol, pos::k_DACAddress_Vtrim, pos::k_DACAddress_VwllPr, pos::k_DACAddress_VwllSh, pos::k_DACAddress_WBC, pos::k_DACName_CalDel, pos::k_DACName_ChipContReg, 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.

Referenced by PixelDACScanRange().

61  {
62 
63  if (name==pos::k_DACName_Vdd) {
65  } else if (name==pos::k_DACName_Vana) {
67  } else if (name==pos::k_DACName_Vsf) {
69  } else if (name==pos::k_DACName_Vcomp) {
71  } else if (name==pos::k_DACName_Vleak) {
73  } else if (name==pos::k_DACName_VrgPr) {
75  } else if (name==pos::k_DACName_VwllPr) {
77  } else if (name==pos::k_DACName_VrgSh) {
79  } else if (name==pos::k_DACName_VwllSh) {
81  } else if (name==pos::k_DACName_VHldDel) {
83  } else if (name==pos::k_DACName_Vtrim) {
85  } else if (name==pos::k_DACName_VcThr) {
87  } else if (name==pos::k_DACName_VIbias_bus) {
89  } else if (name==pos::k_DACName_VIbias_sf) {
91  } else if (name==pos::k_DACName_VOffsetOp) {
93  } else if (name==pos::k_DACName_VbiasOp) {
95  } else if (name==pos::k_DACName_VOffsetRO) {
97  } else if (name==pos::k_DACName_VIon) {
99  } else if (name==pos::k_DACName_VIbias_PH) {
101  } else if (name==pos::k_DACName_VIbias_DAC) {
103  } else if (name==pos::k_DACName_VIbias_roc) {
105  } else if (name==pos::k_DACName_VIColOr) {
107  } else if (name==pos::k_DACName_Vnpix) {
109  } else if (name==pos::k_DACName_VsumCol) {
111  } else if (name==pos::k_DACName_Vcal) {
113  } else if (name==pos::k_DACName_CalDel) {
115  } else if (name==pos::k_DACName_WBC) {
117  } else if (name==pos::k_DACName_ChipContReg) {
119  } else {
120  std::cout << __LINE__ << "]\t[PixelDACScanRange::setDACChannel()]\t\t\t "
121  << "The dac name: " << name << " is unknown!" << std::endl;
122  assert(0);
123  }
124 }
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
const unsigned int k_DACAddress_VwllSh
Definition: PixelDACNames.h:51
const unsigned int k_DACAddress_VIbias_sf
Definition: PixelDACNames.h:56
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
const unsigned int k_DACAddress_VIbias_DAC
Definition: PixelDACNames.h:62
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_VIbias_sf
Definition: PixelDACNames.h:26
const unsigned int k_DACAddress_WBC
Definition: PixelDACNames.h:70
const unsigned int k_DACAddress_VIon
Definition: PixelDACNames.h:60
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
assert(m_qm.get())
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 unsigned int k_DACAddress_VIbias_PH
Definition: PixelDACNames.h:61
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 unsigned int k_DACAddress_Vsf
Definition: PixelDACNames.h:45
const unsigned int k_DACAddress_Vdd
Definition: PixelDACNames.h:43
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
std::string name() const
const unsigned int k_DACAddress_VHldDel
Definition: PixelDACNames.h:52
const unsigned int k_DACAddress_VIColOr
Definition: PixelDACNames.h:64
const unsigned int k_DACAddress_Vnpix
Definition: PixelDACNames.h:65
const unsigned int k_DACAddress_VrgSh
Definition: PixelDACNames.h:50
const unsigned int k_DACAddress_Vcomp
Definition: PixelDACNames.h:46
const unsigned int k_DACAddress_VOffsetRO
Definition: PixelDACNames.h:59
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 unsigned int k_DACAddress_VsumCol
Definition: PixelDACNames.h:66
const unsigned int k_DACAddress_ChipContReg
Definition: PixelDACNames.h:71
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
const unsigned int k_DACAddress_VcThr
Definition: PixelDACNames.h:54
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
const unsigned int k_DACAddress_Vleak
Definition: PixelDACNames.h:47
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
const unsigned int k_DACAddress_VOffsetOp
Definition: PixelDACNames.h:57
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
const unsigned int k_DACAddress_Vcal
Definition: PixelDACNames.h:67
const unsigned int k_DACAddress_VbiasOp
Definition: PixelDACNames.h:58
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
const unsigned int k_DACAddress_VwllPr
Definition: PixelDACNames.h:49
tuple cout
Definition: gather_cfg.py:121
const unsigned int k_DACAddress_VrgPr
Definition: PixelDACNames.h:48
const unsigned int k_DACAddress_Vana
Definition: PixelDACNames.h:44
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
const unsigned int k_DACAddress_Vtrim
Definition: PixelDACNames.h:53
const unsigned int k_DACAddress_CalDel
Definition: PixelDACNames.h:68
const unsigned int k_DACAddress_VIbias_roc
Definition: PixelDACNames.h:63
const unsigned int k_DACAddress_VIbias_bus
Definition: PixelDACNames.h:55
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
void pos::PixelDACScanRange::setNegative ( )
inline

Definition at line 50 of file PixelDACScanRange.h.

References negative_.

Referenced by pos::PixelCalibConfiguration::PixelCalibConfiguration().

50 { negative_=true; }
void pos::PixelDACScanRange::setRelative ( )
inline

Definition at line 48 of file PixelDACScanRange.h.

References relative_.

Referenced by pos::PixelCalibConfiguration::PixelCalibConfiguration().

48 { relative_=true; }
unsigned int pos::PixelDACScanRange::step ( ) const
inline

Definition at line 40 of file PixelDACScanRange.h.

References assert(), step_, and uniformSteps_.

Referenced by PixelDACScanRange().

40 { assert(uniformSteps_); return step_; }
assert(m_qm.get())
bool pos::PixelDACScanRange::uniformSteps ( ) const
inline

Definition at line 47 of file PixelDACScanRange.h.

References uniformSteps_.

47 { return uniformSteps_; }
unsigned int pos::PixelDACScanRange::value ( unsigned int  ivalue) const
inline
std::vector<unsigned int> pos::PixelDACScanRange::values ( ) const
inline

Definition at line 53 of file PixelDACScanRange.h.

References values_.

Referenced by python.seqvaluedict.seqdict::items(), and PixelDACScanRange().

53 { return values_; }
std::vector< unsigned int > values_

Member Data Documentation

unsigned int pos::PixelDACScanRange::dacchannel_
private

Definition at line 61 of file PixelDACScanRange.h.

Referenced by dacchannel(), and setDACChannel().

unsigned int pos::PixelDACScanRange::first_
private

Definition at line 63 of file PixelDACScanRange.h.

Referenced by first(), and PixelDACScanRange().

unsigned int pos::PixelDACScanRange::index_
private

Definition at line 67 of file PixelDACScanRange.h.

Referenced by index(), and PixelDACScanRange().

unsigned int pos::PixelDACScanRange::last_
private

Definition at line 64 of file PixelDACScanRange.h.

Referenced by last(), and PixelDACScanRange().

bool pos::PixelDACScanRange::mixValuesAcrossROCs_
private

Definition at line 69 of file PixelDACScanRange.h.

Referenced by mixValuesAcrossROCs(), and PixelDACScanRange().

std::string pos::PixelDACScanRange::name_
private

Definition at line 60 of file PixelDACScanRange.h.

Referenced by name(), and PixelDACScanRange().

bool pos::PixelDACScanRange::negative_
private

Definition at line 75 of file PixelDACScanRange.h.

Referenced by negative(), PixelDACScanRange(), and setNegative().

bool pos::PixelDACScanRange::relative_
private

Definition at line 71 of file PixelDACScanRange.h.

Referenced by PixelDACScanRange(), relative(), and setRelative().

unsigned int pos::PixelDACScanRange::step_
private

Definition at line 65 of file PixelDACScanRange.h.

Referenced by PixelDACScanRange(), and step().

bool pos::PixelDACScanRange::uniformSteps_
private

Definition at line 62 of file PixelDACScanRange.h.

Referenced by first(), last(), PixelDACScanRange(), step(), and uniformSteps().

std::vector<unsigned int> pos::PixelDACScanRange::values_
private

Definition at line 66 of file PixelDACScanRange.h.

Referenced by getNPoints(), PixelDACScanRange(), value(), and values().