17 :
ProcessBase(
name, settings, global), innerptlut_(settings), outerptlut_(settings) {
33 if (
output ==
"stubpairout") {
39 throw cms::Exception(
"BadConfig") << __FILE__ <<
" " << __LINE__ <<
" Could not find output : " <<
output;
47 if (
input ==
"innervmstubin") {
54 if (
input ==
"outervmstubin") {
61 throw cms::Exception(
"BadConfig") << __FILE__ <<
" " << __LINE__ <<
" Could not find input : " <<
input;
68 unsigned int countall = 0;
69 unsigned int countpass = 0;
78 unsigned int nbits = 7;
82 int rzbinfirst = lookupbits.
bits(0, 3);
91 for (
int ibin =
start; ibin <=
last; ibin++) {
108 int ibinmask = (1 << (nrbits - 1)) - 1;
110 int ir = ((ibin & ibinmask) << 1) + (rzbin >> (
N_RZBITS - 1));
116 if ((rzbin < rzbinfirst) || (rzbin - rzbinfirst > rzdiffmax)) {
128 edm::LogVerbatim(
"Tracklet") <<
"Stub pair rejected because of stub pt cut bends : " 160 double innerphimin, innerphimax;
163 double outerphimin, outerphimax;
Log< level::Info, true > LogVerbatim
constexpr unsigned int N_RZBITS
const VMStubTE & getVMStubTEBinned(unsigned int bin, unsigned int i) const
void setbendtable(const TrackletLUT &bendtable)
unsigned int maxStep(std::string module) const
void setother(VMStubsTEMemory *other)
VMStubsTEMemory * outervmstubs_
const FPGAWord & bend() const
void addStubPair(const VMStubTE &stub1, const VMStubTE &stub2, const unsigned index=0, const std::string &tedName="")
void initteptlut(bool fillInner, bool fillTEMem, unsigned int iSeed, unsigned int layerdisk1, unsigned int layerdisk2, unsigned int innerphibits, unsigned int outerphibits, double innerphimin, double innerphimax, double outerphimin, double outerphimax, const std::string &innermem, const std::string &outermem)
void initLayerDisksandISeed(unsigned int &layerdisk1, unsigned int &layerdisk2, unsigned int &iSeed)
Settings const & settings_
int lookup(unsigned int index) const
unsigned int outerphibits_
static std::string const input
const FPGAWord & disk() const
const Stub * stub() const
unsigned int nbits(unsigned int power)
const FPGAWord & vmbits() const
std::string const & getName() const
bool writeMonitorData(std::string module) const
const FPGAWord & finephi() const
bool debugTracklet() const
const VMStubTE & getVMStubTE(unsigned int i) const
StubPairsMemory * stubpairs_
unsigned int nVMStubs() const
int nfinephi(unsigned int inner, unsigned int iSeed) const
bool useSeed(unsigned int iSeed) const
unsigned int nVMStubsBinned(unsigned int bin) const
std::ofstream & ofstream(std::string fname)
unsigned int innerphibits_
void addInput(MemoryBase *memory, std::string input) override
unsigned int bits(unsigned int lsb, unsigned int nbit) const
void getPhiRange(double &phimin, double &phimax, unsigned int iSeed, unsigned int inner)
TrackletEngine(std::string name, Settings const &settings, Globals *global)
std::string const & getName() const
VMStubsTEMemory * innervmstubs_
void addOutput(MemoryBase *memory, std::string output) override
double benddecode(unsigned int ibend, unsigned int layerdisk, bool isPSmodule) const