CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
GoldenPatternWithThresh Class Reference

#include <GoldenPattern.h>

Inheritance diagram for GoldenPatternWithThresh:
GoldenPattern GoldenPatternBase GoldenPatternWithStat

Public Member Functions

PdfValueType getThreshold (unsigned int iRefLayer) const
 
 GoldenPatternWithThresh (const Key &aKey, unsigned int nLayers, unsigned int nRefLayers, unsigned int nPdfAddrBits)
 
 GoldenPatternWithThresh (const Key &aKey, const OMTFConfiguration *omtfConfig)
 
void setThreshold (unsigned int iRefLayer, PdfValueType treshold)
 
void setThresholds (std::vector< PdfValueType > &tresholds)
 
 ~GoldenPatternWithThresh () override
 
- Public Member Functions inherited from GoldenPattern
void addCount (unsigned int iRefLayer, unsigned int iLayer, const int refPhi, const OMTFinput::vector1D &layerHits)
 Add a single count to the relevant pdf bin in three dimensions. More...
 
int getDistPhiBitShift (unsigned int iLayer, unsigned int iRefLayer) const override
 
virtual const
meanDistPhiArrayType
getMeanDistPhi () const
 
const vector2DgetMeanDistPhi () const
 
virtual const pdfArrayTypegetPdf () const
 
const vector3DgetPdf () const
 
 GoldenPattern (const Key &aKey, unsigned int nLayers, unsigned int nRefLayers, unsigned int nPdfAddrBits)
 
 GoldenPattern (const Key &aKey, const OMTFConfiguration *omtfConfig)
 
 GoldenPattern (const Key &aKey, const OMTFConfiguration *omtfConfig)
 
bool hasCounts ()
 Check if the GP has any counts in any of referecne layers;. More...
 
Key key () const
 
int meanDistPhiValue (unsigned int iLayer, unsigned int iRefLayer, int refLayerPhiB=0) const override
 
int meanDistPhiValue (unsigned int iLayer, unsigned int iRefLayer) const
 
void normalise (unsigned int nPdfAddrBits)
 
PdfValueType pdfValue (unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin, int refLayerPhiB=0) const override
 
int pdfValue (unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin) const
 
GoldenPattern::layerResult process1Layer1RefLayer (unsigned int iRefLayer, unsigned int iLayer, const int refPhi, const OMTFinput::vector1D &layerHits)
 
int propagateRefPhi (int phiRef, int etaRef, unsigned int iRefLayer) override
 
int propagateRefPhi (int phiRef, int etaRef, unsigned int iRefLayer)
 
virtual void reset ()
 Reset contents of all data vectors, keeping the vectors size. More...
 
void reset ()
 Reset contents of all data vectors, keeping the vectors size. More...
 
void setDistPhiBitShift (int value, unsigned int iLayer, unsigned int iRefLayer) override
 
virtual void setMeanDistPhi (const meanDistPhiArrayType &aMeanDistPhi)
 
void setMeanDistPhi (const vector2D &aMeanDistPhi)
 
void setMeanDistPhiValue (int value, unsigned int iLayer, unsigned int iRefLayer, unsigned int paramIndex=0) override
 
virtual void setPdf (pdfArrayType &aPdf)
 
void setPdf (const vector3D &aPdf)
 
void setPdfValue (PdfValueType value, unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin, int refLayerPhiB=0) override
 
 ~GoldenPattern () override
 
- Public Member Functions inherited from GoldenPatternBase
virtual void finalise (unsigned int procIndx)
 last step of the event processing, before sorting and ghost busting More...
 
const OMTFConfigurationgetConfig () const
 
resultsArrayTypegetResults ()
 
 GoldenPatternBase (const Key &aKey)
 
 GoldenPatternBase (const Key &aKey, const OMTFConfiguration *omtfConfig)
 
virtual Keykey ()
 
virtual StubResult process1Layer1RefLayer (unsigned int iRefLayer, unsigned int iLayer, MuonStubPtrs1D layerStubs, const MuonStubPtr refStub)
 
virtual void setConfig (const OMTFConfiguration *omtfConfig)
 
virtual ~GoldenPatternBase ()
 

Private Attributes

std::vector< PdfValueTypethresholds
 

Additional Inherited Members

- Public Types inherited from GoldenPattern
typedef std::pair< int, bool > layerResult
 
typedef boost::multi_array
< short, 3 > 
meanDistPhiArrayType
 
typedef boost::multi_array
< PdfValueType, 3 > 
pdfArrayType
 
typedef std::vector< int > vector1D
 
typedef std::vector< vector1Dvector2D
 
typedef std::vector< vector2Dvector3D
 
- Public Types inherited from GoldenPatternBase
typedef boost::multi_array
< GoldenPatternResult, 2 > 
resultsArrayType
 
typedef std::vector< int > vector1D
 
- Protected Attributes inherited from GoldenPattern
boost::multi_array< short, 2 > distPhiBitShift
 
meanDistPhiArrayType meanDistPhi
 
pdfArrayType pdfAllRef
 
- Protected Attributes inherited from GoldenPatternBase
const OMTFConfigurationmyOmtfConfig
 
resultsArrayType results
 
Key theKey
 Pattern kinematic identification (iEta,iPt,iCharge) More...
 

Detailed Description

Definition at line 109 of file GoldenPattern.h.

Constructor & Destructor Documentation

GoldenPatternWithThresh::GoldenPatternWithThresh ( const Key aKey,
unsigned int  nLayers,
unsigned int  nRefLayers,
unsigned int  nPdfAddrBits 
)
inline

Definition at line 117 of file GoldenPattern.h.

118  : GoldenPattern(aKey, nLayers, nRefLayers, nPdfAddrBits), thresholds(nRefLayers, 0) {}
std::vector< PdfValueType > thresholds
GoldenPattern(const Key &aKey, const OMTFConfiguration *omtfConfig)
Definition: GoldenPattern.h:54
GoldenPatternWithThresh::GoldenPatternWithThresh ( const Key aKey,
const OMTFConfiguration omtfConfig 
)
inline

Definition at line 120 of file GoldenPattern.h.

121  : GoldenPattern(aKey, omtfConfig), thresholds(myOmtfConfig->nRefLayers(), 0) {}
std::vector< PdfValueType > thresholds
unsigned int nRefLayers() const
const OMTFConfiguration * myOmtfConfig
GoldenPattern(const Key &aKey, const OMTFConfiguration *omtfConfig)
Definition: GoldenPattern.h:54
GoldenPatternWithThresh::~GoldenPatternWithThresh ( )
inlineoverride

Definition at line 123 of file GoldenPattern.h.

123 {};

Member Function Documentation

PdfValueType GoldenPatternWithThresh::getThreshold ( unsigned int  iRefLayer) const
inline

Definition at line 125 of file GoldenPattern.h.

References thresholds.

125 { return thresholds.at(iRefLayer); }
std::vector< PdfValueType > thresholds
void GoldenPatternWithThresh::setThreshold ( unsigned int  iRefLayer,
PdfValueType  treshold 
)
inline

Definition at line 129 of file GoldenPattern.h.

References thresholds.

129 { this->thresholds[iRefLayer] = treshold; }
std::vector< PdfValueType > thresholds
void GoldenPatternWithThresh::setThresholds ( std::vector< PdfValueType > &  tresholds)
inline

Definition at line 127 of file GoldenPattern.h.

References thresholds.

127 { this->thresholds = tresholds; }
std::vector< PdfValueType > thresholds

Member Data Documentation

std::vector<PdfValueType> GoldenPatternWithThresh::thresholds
private

Definition at line 111 of file GoldenPattern.h.

Referenced by getThreshold(), setThreshold(), and setThresholds().