CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GoldenPatternWithStat.cc
Go to the documentation of this file.
3 
5 #include "TH1.h"
6 #include <string>
7 
8 #include "boost/multi_array/base.hpp"
9 #include "boost/multi_array/subarray.hpp"
10 
13 
15  unsigned int nLayers,
16  unsigned int nRefLayers,
17  unsigned int nPdfAddrBits)
18  : GoldenPatternWithThresh(aKey, nLayers, nRefLayers, nPdfAddrBits),
19  //*8 is to have the 1024 bins for the phiDist, which allows to count the largest values for the low pT muons
20  statistics(boost::extents[nLayers][nRefLayers][(1 << nPdfAddrBits) * 8][STAT_BINS]){
21 
22  };
23 
27  : GoldenPatternWithThresh(aKey, omtfConfig),
28  statistics(boost::extents[omtfConfig->nLayers()][omtfConfig->nRefLayers()][omtfConfig->nPdfBins()][STAT_BINS]){
29 
30  };
31 
35  unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin, unsigned int what, double value) {
36  statistics[iLayer][iRefLayer][iBin][what] += value;
37  //LogTrace("l1tOmtfEventPrint")<<__FUNCTION__<<":"<<__LINE__<<" iLayer "<<iLayer<<" iRefLayer "<<iRefLayer<<" iBin "<<iBin<<" what "<<what<<" value "<<value<<std::endl;
38 }
virtual void updateStat(unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin, unsigned int what, double value)
omtfConfig(omtfConfig)
GoldenPatternWithStat(const Key &aKey, unsigned int nLayers, unsigned int nRefLayers, unsigned int nPdfAddrBits)