CMS 3D CMS Logo

SiPixelCalibConfiguration.h
Go to the documentation of this file.
1 //---------------------------------------------------
2 
3 // Author : Freya.Blekman@cern.ch
4 // Name : SiPixelCalibConfiguration
5 
6 //---------------------------------------------------
7 
8 #ifndef SiPixelCalibConfiguration_H
9 #define SiPixelCalibConfiguration_H
10 
12 
13 #include <iostream>
14 #include <string>
15 #include <vector>
16 #include <cstdint>
18 
20 public:
23 
25 
26  //-- Setter/Getter
27 
28  short getNTriggers() const { return fNTriggers; }
29  void setNTriggers(const short &in) { fNTriggers = in; }
30 
31  std::vector<short> getRowPattern() const { return fRowPattern; }
32  void setRowPattern(const std::vector<short> &in) { fRowPattern = in; }
33 
34  std::vector<short> getColumnPattern() const { return fColumnPattern; }
35  void setColumnPattern(const std::vector<short> &in) { fColumnPattern = in; }
36 
38  std::string getCalibrationMode() const { return fMode; }
39 
40  const std::vector<short> getVCalValues() const { return fVCalValues; }
41  void setVCalValues(const std::vector<short> &in) { fVCalValues = in; }
42 
43  // interface with calibration analyzers:
44  short vcalForEvent(const uint32_t &eventnumber) const;
45  short vcalIndexForEvent(const uint32_t &eventnumber) const;
46  std::vector<short> columnPatternForEvent(const uint32_t &eventnumber) const;
47  std::vector<short> rowPatternForEvent(const uint32_t &eventnumber) const;
48  uint32_t nextPatternChangeForEvent(const uint32_t &eventnumber) const;
49  uint32_t expectedTotalEvents() const;
50  uint32_t patternSize() const { return fNTriggers * fVCalValues.size(); }
51  uint32_t nPatterns() const { return nRowPatterns() * nColumnPatterns(); }
52  uint32_t nColumnPatterns() const;
53  uint32_t nRowPatterns() const;
54  uint32_t nVCal() const { return fVCalValues.size(); }
55 
56 private:
57  short fNTriggers; //
58  std::vector<short> fRowPattern; //
59  std::vector<short> fColumnPattern; //
60  std::vector<short> fVCalValues; //
62 
64 };
65 
66 #endif
short vcalIndexForEvent(const uint32_t &eventnumber) const
short vcalForEvent(const uint32_t &eventnumber) const
std::vector< short > getColumnPattern() const
std::vector< short > rowPatternForEvent(const uint32_t &eventnumber) const
void setCalibrationMode(const std::string &in)
std::vector< short > getRowPattern() const
const std::vector< short > getVCalValues() const
This class implements the steps that are used in a scan over Threshold and CalDelay.
void setRowPattern(const std::vector< short > &in)
uint32_t nextPatternChangeForEvent(const uint32_t &eventnumber) const
void setColumnPattern(const std::vector< short > &in)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void setVCalValues(const std::vector< short > &in)
std::string getCalibrationMode() const
std::vector< short > columnPatternForEvent(const uint32_t &eventnumber) const
void setNTriggers(const short &in)
This class implements the steps that are used in a scan over Threshold and CalDelay.