CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
11 #include <iostream>
12 #include <string>
13 #include <vector>
14 #include <stdint.h>
16 
18 {
19 
20  public :
21 
24 
26 
27  //-- Setter/Getter
28 
29  short getNTriggers() const { return fNTriggers;}
30  void setNTriggers(const short & in) { fNTriggers = in; }
31 
32  std::vector<short> getRowPattern() const { return fRowPattern;}
33  void setRowPattern(const std::vector<short> & in) { fRowPattern = in; }
34 
35  std::vector<short> getColumnPattern() const { return fColumnPattern;}
36  void setColumnPattern(const std::vector<short> & in) { fColumnPattern = in; }
37 
38  void setCalibrationMode(const std::string & in) { fMode = in; }
39  std::string getCalibrationMode() const {return fMode;}
40 
41  const std::vector<short> getVCalValues() const { return fVCalValues;}
42  void setVCalValues(const std::vector< short> & in) { fVCalValues = in; }
43 
44  // interface with calibration analyzers:
45  short vcalForEvent(const uint32_t & eventnumber) const;
46  short vcalIndexForEvent(const uint32_t & eventnumber) const;
47  std::vector<short> columnPatternForEvent(const uint32_t & eventnumber) const;
48  std::vector<short> rowPatternForEvent(const uint32_t & eventnumber) const;
49  uint32_t nextPatternChangeForEvent(const uint32_t & eventnumber) const;
50  uint32_t expectedTotalEvents () const;
51  uint32_t patternSize() const {return fNTriggers*fVCalValues.size();}
52  uint32_t nPatterns() const {return nRowPatterns()*nColumnPatterns();}
53  uint32_t nColumnPatterns() const ;
54  uint32_t nRowPatterns() const ;
55  uint32_t nVCal() const { return fVCalValues.size();}
56 
57  private :
58 
59  short fNTriggers;//
60  std::vector<short> fRowPattern;//
61  std::vector<short> fColumnPattern;//
62  std::vector<short> fVCalValues;//
63  std::string fMode;
64 };
65 
66 #endif
67 
short vcalForEvent(const uint32_t &eventnumber) const
uint32_t nextPatternChangeForEvent(const uint32_t &eventnumber) const
std::vector< short > getRowPattern() const
void setCalibrationMode(const std::string &in)
short vcalIndexForEvent(const uint32_t &eventnumber) const
This class implements the steps that are used in a scan over Threshold and CalDelay.
void setRowPattern(const std::vector< short > &in)
void setColumnPattern(const std::vector< short > &in)
std::vector< short > getColumnPattern() const
std::string getCalibrationMode() const
std::vector< short > columnPatternForEvent(const uint32_t &eventnumber) const
void setVCalValues(const std::vector< short > &in)
const std::vector< short > getVCalValues() const
std::vector< short > rowPatternForEvent(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.