8 MatchEngineUnit::MatchEngineUnit(
const Settings& settings,
10 unsigned int layerdisk,
12 : settings_(settings), luttable_(luttable), candmatches_(3) {
58 use_.emplace_back(0, 0);
61 use_.emplace_back(1, 0);
64 use_.emplace_back(0, 1);
67 use_.emplace_back(1, 1);
119 bool isPSmodule =
false;
135 constexpr
int idphicut = 3;
137 bool dphicut = (
abs(deltaphi) < idphicut);
141 int diskps = (!
barrel_) && isPSmodule;
152 constexpr
int drzcut = 1;
155 constexpr
int drzcut = 5;
160 constexpr
int drzcut = 1;
163 constexpr
int drzcut = 3;
207 return peek().first->TCID();
unsigned int MEBinsBits() const
constexpr unsigned int N_RZBITS
const FPGAWord & bend() const
const FPGAWord & finerz() const
double rDSSinner(unsigned int iBin) const
unsigned int nbitstrackletindex() const
const Stub * stub() const
constexpr unsigned int NRINVBITS
constexpr unsigned int N_BENDBITS_2S
int lookup(unsigned int index) const
double rmindiskvm() const
constexpr unsigned int N_BENDBITS_PS
std::pair< Tracklet *, const Stub * > peek() const
const Settings & settings_
U second(std::pair< T, U > const &p)
void init(VMStubsMEMemory *vmstubsmemory, unsigned int nrzbin, unsigned int rzbin, unsigned int iphi, int shift, int projrinv, int projfinerz, int projfinephi, bool usefirstMinus, bool usefirstPlus, bool usesecondMinus, bool usesecondPlus, bool isPSseed, Tracklet *proj)
CircularBuffer< std::pair< Tracklet *, const Stub * > > candmatches_
double rDSSouter(unsigned int iBin) const
const TrackletLUT & luttable_
const VMStubME & getVMStubMEBin(unsigned int bin, unsigned int i) const
VMStubsMEMemory * vmstubsmemory_
Abs< T >::type abs(const T &t)
unsigned int nbitstcindex() const
constexpr unsigned int NFINERZBITS
std::vector< std::pair< unsigned int, unsigned int > > use_
constexpr unsigned int N_PSLAYER
constexpr unsigned int NFINEPHIBITS
const FPGAWord & finephi() const
static unsigned int const shift
unsigned int nStubsBin(unsigned int bin) const