CMS 3D CMS Logo

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

◆ PixelDACScanRange() [1/3]

pos::PixelDACScanRange::PixelDACScanRange ( )
inline

Definition at line 28 of file PixelDACScanRange.h.

28 { ; }

◆ PixelDACScanRange() [2/3]

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.

21  {
22  uniformSteps_ = true;
23  relative_ = false;
24  negative_ = false;
25 
26  first_ = first;
27  last_ = last;
28  step_ = step;
29 
30  name_ = name;
31  index_ = index;
33  if (first_ == last_)
34  assert(mixValuesAcrossROCs == false);
35  while (first <= last) {
36  values_.push_back(first);
37  first += step;
38  //FIXME should have a better reporting
39  assert(values_.size() < 1000);
40  }
41 
43 }

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

◆ PixelDACScanRange() [3/3]

PixelDACScanRange::PixelDACScanRange ( std::string  name,
const std::vector< unsigned int > &  values,
unsigned int  index,
bool  mixValuesAcrossROCs 
)

Definition at line 45 of file PixelDACScanRange.cc.

48  {
49  uniformSteps_ = false;
50  relative_ = false;
51  negative_ = false;
52 
53  name_ = name;
54  values_ = values;
56  assert(mixValuesAcrossROCs == false);
57 
59 }

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

Member Function Documentation

◆ dacchannel()

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

Definition at line 41 of file PixelDACScanRange.h.

41 { return dacchannel_; }

References dacchannel_.

◆ first()

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

Definition at line 46 of file PixelDACScanRange.h.

46  {
48  return first_;
49  }

References cms::cuda::assert(), first_, and uniformSteps_.

Referenced by PixelDACScanRange().

◆ getNPoints()

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

Definition at line 55 of file PixelDACScanRange.h.

55 { return values_.size(); }

References values_.

◆ index()

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

Definition at line 54 of file PixelDACScanRange.h.

54 { return index_; }

References index_.

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

◆ last()

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

Definition at line 50 of file PixelDACScanRange.h.

50  {
52  return last_;
53  }

References cms::cuda::assert(), last_, and uniformSteps_.

Referenced by PixelDACScanRange().

◆ mixValuesAcrossROCs()

bool pos::PixelDACScanRange::mixValuesAcrossROCs ( ) const
inline

Definition at line 60 of file PixelDACScanRange.h.

60 { return mixValuesAcrossROCs_; }

References mixValuesAcrossROCs_.

Referenced by PixelDACScanRange().

◆ name()

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

◆ negative()

bool pos::PixelDACScanRange::negative ( ) const
inline

Definition at line 65 of file PixelDACScanRange.h.

65 { return negative_; }

References negative_.

◆ relative()

bool pos::PixelDACScanRange::relative ( ) const
inline

Definition at line 63 of file PixelDACScanRange.h.

63 { return relative_; }

References relative_.

◆ setDACChannel()

void PixelDACScanRange::setDACChannel ( std::string  name)
private

Definition at line 61 of file PixelDACScanRange.cc.

61  {
62  if (name == pos::k_DACName_Vdd) {
64  } else if (name == pos::k_DACName_Vana) {
66  } else if (name == pos::k_DACName_Vsf) {
68  } else if (name == pos::k_DACName_Vcomp) {
70  } else if (name == pos::k_DACName_Vleak) {
72  } else if (name == pos::k_DACName_VrgPr) {
74  } else if (name == pos::k_DACName_VwllPr) {
76  } else if (name == pos::k_DACName_VrgSh) {
78  } else if (name == pos::k_DACName_VwllSh) {
80  } else if (name == pos::k_DACName_VHldDel) {
82  } else if (name == pos::k_DACName_Vtrim) {
84  } else if (name == pos::k_DACName_VcThr) {
86  } else if (name == pos::k_DACName_VIbias_bus) {
88  } else if (name == pos::k_DACName_VIbias_sf) {
90  } else if (name == pos::k_DACName_VOffsetOp) {
92  } else if (name == pos::k_DACName_VbiasOp) {
94  } else if (name == pos::k_DACName_VOffsetRO) {
96  } else if (name == pos::k_DACName_VIon) {
98  } else if (name == pos::k_DACName_VIbias_PH) {
100  } else if (name == pos::k_DACName_VIbias_DAC) {
102  } else if (name == pos::k_DACName_VIbias_roc) {
104  } else if (name == pos::k_DACName_VIColOr) {
106  } else if (name == pos::k_DACName_Vnpix) {
108  } else if (name == pos::k_DACName_VsumCol) {
110  } else if (name == pos::k_DACName_Vcal) {
112  } else if (name == pos::k_DACName_CalDel) {
114  } else if (name == pos::k_DACName_WBC) {
116  } else if (name == pos::k_DACName_ChipContReg) {
118  } else {
119  std::cout << __LINE__ << "]\t[PixelDACScanRange::setDACChannel()]\t\t\t "
120  << "The dac name: " << name << " is unknown!" << std::endl;
121  assert(0);
122  }
123 }

References cms::cuda::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, pos::k_DACName_WBC, and name().

Referenced by PixelDACScanRange().

◆ setNegative()

void pos::PixelDACScanRange::setNegative ( )
inline

Definition at line 64 of file PixelDACScanRange.h.

64 { negative_ = true; }

References negative_.

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

◆ setRelative()

void pos::PixelDACScanRange::setRelative ( )
inline

Definition at line 62 of file PixelDACScanRange.h.

62 { relative_ = true; }

References relative_.

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

◆ step()

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

Definition at line 42 of file PixelDACScanRange.h.

42  {
44  return step_;
45  }

References cms::cuda::assert(), step_, and uniformSteps_.

Referenced by PixelDACScanRange().

◆ uniformSteps()

bool pos::PixelDACScanRange::uniformSteps ( ) const
inline

Definition at line 61 of file PixelDACScanRange.h.

61 { return uniformSteps_; }

References uniformSteps_.

◆ value()

unsigned int pos::PixelDACScanRange::value ( unsigned int  ivalue) const
inline

◆ values()

std::vector<unsigned int> pos::PixelDACScanRange::values ( ) const
inline

Definition at line 67 of file PixelDACScanRange.h.

67 { return values_; }

References values_.

Referenced by PixelDACScanRange().

Member Data Documentation

◆ dacchannel_

unsigned int pos::PixelDACScanRange::dacchannel_
private

Definition at line 73 of file PixelDACScanRange.h.

Referenced by dacchannel(), and setDACChannel().

◆ first_

unsigned int pos::PixelDACScanRange::first_
private

Definition at line 75 of file PixelDACScanRange.h.

Referenced by first(), and PixelDACScanRange().

◆ index_

unsigned int pos::PixelDACScanRange::index_
private

Definition at line 79 of file PixelDACScanRange.h.

Referenced by index(), and PixelDACScanRange().

◆ last_

unsigned int pos::PixelDACScanRange::last_
private

Definition at line 76 of file PixelDACScanRange.h.

Referenced by last(), and PixelDACScanRange().

◆ mixValuesAcrossROCs_

bool pos::PixelDACScanRange::mixValuesAcrossROCs_
private

Definition at line 81 of file PixelDACScanRange.h.

Referenced by mixValuesAcrossROCs(), and PixelDACScanRange().

◆ name_

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

Definition at line 72 of file PixelDACScanRange.h.

Referenced by name(), and PixelDACScanRange().

◆ negative_

bool pos::PixelDACScanRange::negative_
private

Definition at line 87 of file PixelDACScanRange.h.

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

◆ relative_

bool pos::PixelDACScanRange::relative_
private

Definition at line 83 of file PixelDACScanRange.h.

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

◆ step_

unsigned int pos::PixelDACScanRange::step_
private

Definition at line 77 of file PixelDACScanRange.h.

Referenced by PixelDACScanRange(), and step().

◆ uniformSteps_

bool pos::PixelDACScanRange::uniformSteps_
private

Definition at line 74 of file PixelDACScanRange.h.

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

◆ values_

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

Definition at line 78 of file PixelDACScanRange.h.

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

pos::k_DACName_VIColOr
const std::string k_DACName_VIColOr
Definition: PixelDACNames.h:34
pos::k_DACAddress_VrgPr
const unsigned int k_DACAddress_VrgPr
Definition: PixelDACNames.h:48
pos::PixelDACScanRange::negative_
bool negative_
Definition: PixelDACScanRange.h:87
pos::PixelDACScanRange::relative_
bool relative_
Definition: PixelDACScanRange.h:83
pos::PixelDACScanRange::setDACChannel
void setDACChannel(std::string name)
Definition: PixelDACScanRange.cc:61
pos::k_DACName_VIbias_DAC
const std::string k_DACName_VIbias_DAC
Definition: PixelDACNames.h:32
pos::k_DACAddress_Vana
const unsigned int k_DACAddress_Vana
Definition: PixelDACNames.h:44
pos::k_DACName_Vana
const std::string k_DACName_Vana
Definition: PixelDACNames.h:14
pos::k_DACAddress_Vleak
const unsigned int k_DACAddress_Vleak
Definition: PixelDACNames.h:47
pos::k_DACName_Vcomp
const std::string k_DACName_Vcomp
Definition: PixelDACNames.h:16
pos::k_DACName_WBC
const std::string k_DACName_WBC
Definition: PixelDACNames.h:40
pos::k_DACName_Vdd
const std::string k_DACName_Vdd
Definition: PixelDACNames.h:13
pos::k_DACAddress_VrgSh
const unsigned int k_DACAddress_VrgSh
Definition: PixelDACNames.h:50
pos::k_DACName_VOffsetRO
const std::string k_DACName_VOffsetRO
Definition: PixelDACNames.h:29
pos::k_DACName_VcThr
const std::string k_DACName_VcThr
Definition: PixelDACNames.h:24
pos::k_DACAddress_Vcal
const unsigned int k_DACAddress_Vcal
Definition: PixelDACNames.h:67
pos::k_DACAddress_Vtrim
const unsigned int k_DACAddress_Vtrim
Definition: PixelDACNames.h:53
pos::PixelDACScanRange::index_
unsigned int index_
Definition: PixelDACScanRange.h:79
pos::k_DACName_VwllSh
const std::string k_DACName_VwllSh
Definition: PixelDACNames.h:21
gather_cfg.cout
cout
Definition: gather_cfg.py:144
pos::k_DACAddress_VbiasOp
const unsigned int k_DACAddress_VbiasOp
Definition: PixelDACNames.h:58
pos::k_DACName_VrgSh
const std::string k_DACName_VrgSh
Definition: PixelDACNames.h:20
pos::k_DACAddress_Vdd
const unsigned int k_DACAddress_Vdd
Definition: PixelDACNames.h:43
cms::cuda::assert
assert(be >=bs)
pos::PixelDACScanRange::dacchannel_
unsigned int dacchannel_
Definition: PixelDACScanRange.h:73
pos::k_DACName_VbiasOp
const std::string k_DACName_VbiasOp
Definition: PixelDACNames.h:28
pos::k_DACAddress_VIbias_sf
const unsigned int k_DACAddress_VIbias_sf
Definition: PixelDACNames.h:56
pos::k_DACAddress_VIColOr
const unsigned int k_DACAddress_VIColOr
Definition: PixelDACNames.h:64
pos::k_DACName_Vnpix
const std::string k_DACName_Vnpix
Definition: PixelDACNames.h:35
pos::PixelDACScanRange::step_
unsigned int step_
Definition: PixelDACScanRange.h:77
pos::k_DACName_VrgPr
const std::string k_DACName_VrgPr
Definition: PixelDACNames.h:18
pos::PixelDACScanRange::name
std::string name() const
Definition: PixelDACScanRange.h:40
pos::k_DACAddress_VwllPr
const unsigned int k_DACAddress_VwllPr
Definition: PixelDACNames.h:49
pos::k_DACAddress_VIbias_PH
const unsigned int k_DACAddress_VIbias_PH
Definition: PixelDACNames.h:61
pos::PixelDACScanRange::last
unsigned int last() const
Definition: PixelDACScanRange.h:50
pos::k_DACName_VIbias_bus
const std::string k_DACName_VIbias_bus
Definition: PixelDACNames.h:25
pos::k_DACName_VwllPr
const std::string k_DACName_VwllPr
Definition: PixelDACNames.h:19
pos::k_DACAddress_ChipContReg
const unsigned int k_DACAddress_ChipContReg
Definition: PixelDACNames.h:71
pos::k_DACAddress_VwllSh
const unsigned int k_DACAddress_VwllSh
Definition: PixelDACNames.h:51
pos::k_DACAddress_VHldDel
const unsigned int k_DACAddress_VHldDel
Definition: PixelDACNames.h:52
pos::k_DACAddress_Vnpix
const unsigned int k_DACAddress_Vnpix
Definition: PixelDACNames.h:65
pos::PixelDACScanRange::values
std::vector< unsigned int > values() const
Definition: PixelDACScanRange.h:67
pos::PixelDACScanRange::uniformSteps_
bool uniformSteps_
Definition: PixelDACScanRange.h:74
pos::k_DACAddress_Vsf
const unsigned int k_DACAddress_Vsf
Definition: PixelDACNames.h:45
pos::k_DACAddress_VOffsetRO
const unsigned int k_DACAddress_VOffsetRO
Definition: PixelDACNames.h:59
pos::k_DACName_CalDel
const std::string k_DACName_CalDel
Definition: PixelDACNames.h:38
pos::k_DACAddress_VcThr
const unsigned int k_DACAddress_VcThr
Definition: PixelDACNames.h:54
pos::PixelDACScanRange::step
unsigned int step() const
Definition: PixelDACScanRange.h:42
pos::k_DACName_VIbias_sf
const std::string k_DACName_VIbias_sf
Definition: PixelDACNames.h:26
pos::PixelDACScanRange::name_
std::string name_
Definition: PixelDACScanRange.h:72
pos::k_DACName_VHldDel
const std::string k_DACName_VHldDel
Definition: PixelDACNames.h:22
pos::PixelDACScanRange::mixValuesAcrossROCs
bool mixValuesAcrossROCs() const
Definition: PixelDACScanRange.h:60
pos::k_DACAddress_VIbias_bus
const unsigned int k_DACAddress_VIbias_bus
Definition: PixelDACNames.h:55
pos::PixelDACScanRange::last_
unsigned int last_
Definition: PixelDACScanRange.h:76
pos::k_DACAddress_VOffsetOp
const unsigned int k_DACAddress_VOffsetOp
Definition: PixelDACNames.h:57
pos::PixelDACScanRange::first_
unsigned int first_
Definition: PixelDACScanRange.h:75
pos::k_DACName_VIbias_PH
const std::string k_DACName_VIbias_PH
Definition: PixelDACNames.h:31
pos::k_DACName_VIon
const std::string k_DACName_VIon
Definition: PixelDACNames.h:30
pos::PixelDACScanRange::values_
std::vector< unsigned int > values_
Definition: PixelDACScanRange.h:78
pos::k_DACName_VIbias_roc
const std::string k_DACName_VIbias_roc
Definition: PixelDACNames.h:33
pos::k_DACAddress_CalDel
const unsigned int k_DACAddress_CalDel
Definition: PixelDACNames.h:68
pos::k_DACName_ChipContReg
const std::string k_DACName_ChipContReg
Definition: PixelDACNames.h:41
pos::k_DACAddress_VIbias_roc
const unsigned int k_DACAddress_VIbias_roc
Definition: PixelDACNames.h:63
pos::k_DACName_Vsf
const std::string k_DACName_Vsf
Definition: PixelDACNames.h:15
pos::PixelDACScanRange::mixValuesAcrossROCs_
bool mixValuesAcrossROCs_
Definition: PixelDACScanRange.h:81
testProducerWithPsetDescEmpty_cfi.ivalue
ivalue
Definition: testProducerWithPsetDescEmpty_cfi.py:21
pos::k_DACAddress_WBC
const unsigned int k_DACAddress_WBC
Definition: PixelDACNames.h:70
pos::k_DACName_VsumCol
const std::string k_DACName_VsumCol
Definition: PixelDACNames.h:36
pos::k_DACName_Vtrim
const std::string k_DACName_Vtrim
Definition: PixelDACNames.h:23
pos::k_DACAddress_VIbias_DAC
const unsigned int k_DACAddress_VIbias_DAC
Definition: PixelDACNames.h:62
pos::k_DACAddress_Vcomp
const unsigned int k_DACAddress_Vcomp
Definition: PixelDACNames.h:46
pos::k_DACName_Vleak
const std::string k_DACName_Vleak
Definition: PixelDACNames.h:17
pos::k_DACName_Vcal
const std::string k_DACName_Vcal
Definition: PixelDACNames.h:37
pos::k_DACAddress_VIon
const unsigned int k_DACAddress_VIon
Definition: PixelDACNames.h:60
pos::PixelDACScanRange::index
unsigned int index() const
Definition: PixelDACScanRange.h:54
pos::PixelDACScanRange::first
unsigned int first() const
Definition: PixelDACScanRange.h:46
pos::k_DACName_VOffsetOp
const std::string k_DACName_VOffsetOp
Definition: PixelDACNames.h:27
pos::k_DACAddress_VsumCol
const unsigned int k_DACAddress_VsumCol
Definition: PixelDACNames.h:66