CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GoldenPatternWithStat.h
Go to the documentation of this file.
1 #ifndef L1T_OmtfP1_GoldenPatternWithStat_H
2 #define L1T_OmtfP1_GoldenPatternWithStat_H
3 
6 #include <vector>
7 
9 
11 // Golden Pattern
13 
15 public:
16  static const unsigned int STAT_BINS = 1; //TODO change value if needed
17  typedef boost::multi_array<float, 4> StatArrayType;
18 
19  GoldenPatternWithStat(const Key& aKey, unsigned int nLayers, unsigned int nRefLayers, unsigned int nPdfAddrBits);
20 
22 
23  ~GoldenPatternWithStat() override{};
24 
25  virtual void updateStat(
26  unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin, unsigned int what, double value);
27 
28  friend std::ostream& operator<<(std::ostream& out, const GoldenPatternWithStat& aPattern);
29 
30  friend class PatternOptimizerBase;
31  friend class PatternGenerator;
32 
33  void iniStatisitics(unsigned int pdfBinsCnt, unsigned int statBins) {
34  statistics.resize(boost::extents[pdfAllRef.size()][pdfAllRef[0].size()][pdfBinsCnt][statBins]);
35  }
36 
37  const StatArrayType& getStatistics() const { return statistics; }
38 
39  void setKeyPt(unsigned int pt) { theKey.thePt = pt; }
40 
41  void setKeyNumber(unsigned int number) { theKey.theNumber = number; }
42 
43 private:
45 };
48 #endif
unsigned int theNumber
Definition: GoldenPattern.h:37
virtual void updateStat(unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin, unsigned int what, double value)
omtfConfig(omtfConfig)
constexpr int nLayers
Definition: Config.h:73
Key theKey
Pattern kinematical identification (iEta,iPt,iCharge)
vector3D pdfAllRef
GoldenPatternWithStat(const Key &aKey, unsigned int nLayers, unsigned int nRefLayers, unsigned int nPdfAddrBits)
const StatArrayType & getStatistics() const
boost::multi_array< float, 4 > StatArrayType
void setKeyNumber(unsigned int number)
friend std::ostream & operator<<(std::ostream &out, const GoldenPatternWithStat &aPattern)
unsigned int thePt
static const unsigned int STAT_BINS
void setKeyPt(unsigned int pt)
void iniStatisitics(unsigned int pdfBinsCnt, unsigned int statBins)