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
SiPixelCalibConfiguration::nextPatternChangeForEvent
uint32_t nextPatternChangeForEvent(const uint32_t &eventnumber) const
Definition: SiPixelCalibConfiguration.cc:51
SiPixelCalibConfiguration::getVCalValues
const std::vector< short > getVCalValues() const
Definition: SiPixelCalibConfiguration.h:40
SiPixelCalibConfiguration::fColumnPattern
std::vector< short > fColumnPattern
Definition: SiPixelCalibConfiguration.h:59
SiPixelCalibConfiguration::nRowPatterns
uint32_t nRowPatterns() const
Definition: SiPixelCalibConfiguration.cc:97
SiPixelCalibConfiguration::fRowPattern
std::vector< short > fRowPattern
Definition: SiPixelCalibConfiguration.h:58
SiPixelCalibConfiguration::getNTriggers
short getNTriggers() const
Definition: SiPixelCalibConfiguration.h:28
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelCalibConfiguration::nPatterns
uint32_t nPatterns() const
Definition: SiPixelCalibConfiguration.h:51
SiPixelCalibConfiguration::nColumnPatterns
uint32_t nColumnPatterns() const
Definition: SiPixelCalibConfiguration.cc:105
SiPixelCalibConfiguration
Definition: SiPixelCalibConfiguration.h:19
SiPixelCalibConfiguration::fMode
std::string fMode
Definition: SiPixelCalibConfiguration.h:61
SiPixelCalibConfiguration::patternSize
uint32_t patternSize() const
Definition: SiPixelCalibConfiguration.h:50
SiPixelCalibConfiguration::getCalibrationMode
std::string getCalibrationMode() const
Definition: SiPixelCalibConfiguration.h:38
pos::PixelCalibConfiguration
This class implements the steps that are used in a scan over Threshold and CalDelay.
Definition: PixelCalibConfiguration.h:65
SiPixelCalibConfiguration::columnPatternForEvent
std::vector< short > columnPatternForEvent(const uint32_t &eventnumber) const
Definition: SiPixelCalibConfiguration.cc:14
SiPixelCalibConfiguration::fNTriggers
short fNTriggers
Definition: SiPixelCalibConfiguration.h:57
SiPixelCalibConfiguration::setNTriggers
void setNTriggers(const short &in)
Definition: SiPixelCalibConfiguration.h:29
SiPixelCalibConfiguration::expectedTotalEvents
uint32_t expectedTotalEvents() const
Definition: SiPixelCalibConfiguration.cc:56
SiPixelCalibConfiguration::SiPixelCalibConfiguration
SiPixelCalibConfiguration()
Definition: SiPixelCalibConfiguration.h:21
SiPixelCalibConfiguration::setVCalValues
void setVCalValues(const std::vector< short > &in)
Definition: SiPixelCalibConfiguration.h:41
SiPixelCalibConfiguration::setCalibrationMode
void setCalibrationMode(const std::string &in)
Definition: SiPixelCalibConfiguration.h:37
SiPixelCalibConfiguration::vcalIndexForEvent
short vcalIndexForEvent(const uint32_t &eventnumber) const
Definition: SiPixelCalibConfiguration.cc:5
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SiPixelCalibConfiguration::nVCal
uint32_t nVCal() const
Definition: SiPixelCalibConfiguration.h:54
Serializable.h
SiPixelCalibConfiguration::vcalForEvent
short vcalForEvent(const uint32_t &eventnumber) const
Definition: SiPixelCalibConfiguration.cc:10
SiPixelCalibConfiguration::rowPatternForEvent
std::vector< short > rowPatternForEvent(const uint32_t &eventnumber) const
Definition: SiPixelCalibConfiguration.cc:33
SiPixelCalibConfiguration::fVCalValues
std::vector< short > fVCalValues
Definition: SiPixelCalibConfiguration.h:60
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelCalibConfiguration::setRowPattern
void setRowPattern(const std::vector< short > &in)
Definition: SiPixelCalibConfiguration.h:32
SiPixelCalibConfiguration::getColumnPattern
std::vector< short > getColumnPattern() const
Definition: SiPixelCalibConfiguration.h:34
SiPixelCalibConfiguration::getRowPattern
std::vector< short > getRowPattern() const
Definition: SiPixelCalibConfiguration.h:31
PixelCalibConfiguration.h
This class implements the steps that are used in a scan over Threshold and CalDelay.
SiPixelCalibConfiguration::setColumnPattern
void setColumnPattern(const std::vector< short > &in)
Definition: SiPixelCalibConfiguration.h:35
SiPixelCalibConfiguration::~SiPixelCalibConfiguration
virtual ~SiPixelCalibConfiguration()
Definition: SiPixelCalibConfiguration.h:24