1 #ifndef OMTF_GoldenPattern_H
2 #define OMTF_GoldenPattern_H
16 Key(
int iEta=99,
unsigned int iPt=0,
int iCharge= 0):
71 int pdfValue(
unsigned int iLayer,
unsigned int iRefLayer,
unsigned int iBin)
const {
return pdfAllRef[iLayer][iRefLayer][iBin];}
83 void addCount(
unsigned int iRefLayer,
GoldenPattern(const Key &aKey)
friend std::ostream & operator<<(std::ostream &out, const GoldenPattern &aPattern)
Key(int iEta=99, unsigned int iPt=0, int iCharge=0)
vector2D meanDistPhiCounts
std::vector< int > vector1D
const vector2D & getMeanDistPhi() const
bool operator==(const Key &o) const
bool hasCounts()
Check if the GP has any counts in any of referecne layers;.
GoldenPattern::layerResult process1Layer1RefLayer(unsigned int iRefLayer, unsigned int iLayer, const int refPhi, const OMTFinput::vector1D &layerHits)
std::vector< vector1D > vector2D
std::vector< vector2D > vector3D
void setPdf(const vector3D &aPdf)
Key theKey
Pattern kinematical identification (iEta,iPt,iCharge)
std::pair< int, bool > layerResult
void reset()
Reset contents of all data vectors, keeping the vectors size.
int pdfValue(unsigned int iLayer, unsigned int iRefLayer, unsigned int iBin) const
int propagateRefPhi(int phiRef, int etaRef, unsigned int iRefLayer)
void setMeanDistPhi(const vector2D &aMeanDistPhi)
friend std::ostream & operator<<(std::ostream &out, const Key &o)
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.
int meanDistPhiValue(unsigned int iLayer, unsigned int iRefLayer) const
bool operator<(const Key &o) const
const vector3D & getPdf() const