5#ifndef TRIGINDETPATTRECOTOOLS_TRIG_SEED_ML_LUT_H
6#define TRIGINDETPATTRECOTOOLS_TRIG_SEED_ML_LUT_H
15 for(
int i=0;i<4;i++)
m_c[i] = c[i];
20 for(
int i=0;i<4;i++)
m_c[i] = tsl.
m_c[i];
27 bool check(
float fX,
float fY)
const {
32 if(i<0 || i>=
m_h || j<0 || j>=
m_w)
return false;
41 if(j<0 || j>=
m_w)
return false;
47 for(;i<
m_h;i++, idx+=
m_w) {
48 if(
m_data[idx] == 0)
continue;
55 for(;i<
m_h;i++, idx+=
m_w) {
74 void generate(
float offset,
float slope,
float hwm,
float hwp) {
78 for(
int j=0;j<
m_w;j++) {
81 float y = offset +
x*slope;
85 if(yp <
m_c[2]) yp =
m_c[2];
86 if(yp >
m_c[3]) yp =
m_c[3];
88 if(ym <
m_c[2]) ym =
m_c[2];
89 if(ym >
m_c[3]) ym =
m_c[3];
94 for(
int i=i1;i<i2;i++) {
Header file for AthHistogramAlgorithm.
std::vector< unsigned char > m_data
TrigSeedML_LUT(const TrigSeedML_LUT &tsl)
bool check(float fX, float fY) const
TrigSeedML_LUT(int id, int w, int h, float c[4])
bool getValidRange(float fX, float &min, float &max) const
void generate(float offset, float slope, float hwm, float hwp)
void setBin(int r, int c)