Go to the documentation of this file.
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++) {
106 int ir = ((ibin & 3) << 1) + (rzbin >> 2);
112 if ((rzbin < rzbinfirst) || (rzbin - rzbinfirst > rzdiffmax)) {
124 edm::LogVerbatim(
"Tracklet") <<
"Stub pair rejected because of stub pt cut bends : "
155 double innerphimin, innerphimax;
158 double outerphimin, outerphimax;
void setother(VMStubsTEMemory *other)
unsigned int innerphibits_
static const std::string input
int lookup(unsigned int index) const
void addInput(MemoryBase *memory, std::string input) override
unsigned int outerphibits_
const VMStubTE & getVMStubTEBinned(unsigned int bin, unsigned int i) const
void addStubPair(const VMStubTE &stub1, const VMStubTE &stub2, const unsigned index=0, const std::string &tedName="")
unsigned int nbits(unsigned int power)
Settings const & settings_
VMStubsTEMemory * outervmstubs_
const FPGAWord & bend() const
unsigned int nVMStubs() const
double benddecode(int ibend, int layerdisk, bool isPSmodule) const
const FPGAWord & disk() const
std::string const & getName() const
unsigned int bits(unsigned int lsb, unsigned int nbit) const
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)
const VMStubTE & getVMStubTE(unsigned int i) const
int nfinephi(unsigned int inner, unsigned int iSeed) const
const Stub * stub() const
const FPGAWord & vmbits() const
TrackletEngine(std::string name, Settings const &settings, Globals *global)
bool writeMonitorData(std::string module) const
void addOutput(MemoryBase *memory, std::string output) override
std::ofstream & ofstream(std::string fname)
VMStubsTEMemory * innervmstubs_
Log< level::Info, true > LogVerbatim
void getPhiRange(double &phimin, double &phimax, unsigned int iSeed, unsigned int inner)
StubPairsMemory * stubpairs_
std::string const & getName() const
const FPGAWord & finephi() const
bool debugTracklet() const
unsigned int maxStep(std::string module) const
void setbendtable(const TrackletLUT &bendtable)
bool useSeed(unsigned int iSeed) const
unsigned int nVMStubsBinned(unsigned int bin) const