8 MatchEngineUnit::MatchEngineUnit(
const Settings& settings,
10 unsigned int layerdisk,
12 : settings_(settings), luttable_(luttable), candmatches_(3) {
51 use_.emplace_back(0, 0);
54 use_.emplace_back(1, 0);
57 use_.emplace_back(0, 1);
60 use_.emplace_back(1, 1);
115 constexpr
int idphicut = 3;
117 bool dphicut = (
abs(deltaphi) < idphicut);
121 int diskps = (!
barrel_) && isPSmodule;
132 constexpr
int drzcut = 1;
135 constexpr
int drzcut = 5;
140 constexpr
int drzcut = 1;
143 constexpr
int drzcut = 3;
176 return peek().first->TCID();
const FPGAWord & bend() const
const FPGAWord & finerz() 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
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_
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 NFINEPHIBITS
const FPGAWord & finephi() const
static unsigned int const shift
unsigned int nStubsBin(unsigned int bin) const