test
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 
12 
13 #include <iostream>
14 #include <string>
15 #include <vector>
16 #include <stdint.h>
18 
20 {
21 
22  public :
23 
26 
28 
29  //-- Setter/Getter
30 
31  short getNTriggers() const { return fNTriggers;}
32  void setNTriggers(const short & in) { fNTriggers = in; }
33 
34  std::vector<short> getRowPattern() const { return fRowPattern;}
35  void setRowPattern(const std::vector<short> & in) { fRowPattern = in; }
36 
37  std::vector<short> getColumnPattern() const { return fColumnPattern;}
38  void setColumnPattern(const std::vector<short> & in) { fColumnPattern = in; }
39 
40  void setCalibrationMode(const std::string & in) { fMode = in; }
42 
43  const std::vector<short> getVCalValues() const { return fVCalValues;}
44  void setVCalValues(const std::vector< short> & in) { fVCalValues = in; }
45 
46  // interface with calibration analyzers:
47  short vcalForEvent(const uint32_t & eventnumber) const;
48  short vcalIndexForEvent(const uint32_t & eventnumber) const;
49  std::vector<short> columnPatternForEvent(const uint32_t & eventnumber) const;
50  std::vector<short> rowPatternForEvent(const uint32_t & eventnumber) const;
51  uint32_t nextPatternChangeForEvent(const uint32_t & eventnumber) const;
52  uint32_t expectedTotalEvents () const;
53  uint32_t patternSize() const {return fNTriggers*fVCalValues.size();}
54  uint32_t nPatterns() const {return nRowPatterns()*nColumnPatterns();}
55  uint32_t nColumnPatterns() const ;
56  uint32_t nRowPatterns() const ;
57  uint32_t nVCal() const { return fVCalValues.size();}
58 
59  private :
60 
61  short fNTriggers;//
62  std::vector<short> fRowPattern;//
63  std::vector<short> fColumnPattern;//
64  std::vector<short> fVCalValues;//
66 
68 };
69 
70 #endif
71 
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
#define COND_SERIALIZABLE
Definition: Serializable.h:37
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.