|
|
Go to the documentation of this file.
13 ProjectionRouter::ProjectionRouter(
string name,
Settings const& settings,
Globals* global,
unsigned int iSector)
28 if (
output ==
"allprojout") {
29 auto*
tmp = dynamic_cast<AllProjectionsMemory*>(
memory);
38 for (
unsigned int iproj = 0; iproj < nproj; iproj++) {
39 for (
unsigned int iprojvm = 0; iprojvm < nprojvm; iprojvm++) {
41 name += char(iproj +
'A');
42 name += std::to_string(iproj * nprojvm + iprojvm + 1);
44 auto*
tmp = dynamic_cast<VMProjectionsMemory*>(
memory);
52 throw cms::Exception(
"BadConfig") << __FILE__ <<
" " << __LINE__ <<
" could not find output: " <<
output;
60 if (
input.substr(0, 4) ==
"proj" &&
input.substr(
input.size() - 2, 2) ==
"in") {
61 auto*
tmp = dynamic_cast<TrackletProjectionsMemory*>(
memory);
66 throw cms::Exception(
"BadConfig") << __FILE__ <<
" " << __LINE__ <<
" could not find input: " <<
input;
76 unsigned int allprojcount = 0;
83 for (
unsigned int i = 0;
i < iproj->nTracklets();
i++) {
87 Tracklet* tracklet = iproj->getTracklet(
i);
117 unsigned int iphivm =
122 if (lastTCID >= tracklet->
TCID()) {
125 lastTCID = tracklet->
TCID();
130 vmprojs_[iphivm]->addTracklet(tracklet, allprojcount);
142 for (
unsigned int i = 0;
i < 8;
i++) {
static const std::string input
const FPGAWord & fpgaphiprojdisk(int disk) const
void addTracklet(Tracklet *tracklet)
Log< level::Warning, true > LogPrint
unsigned int nbitsallstubs(unsigned int layerdisk) const
Settings const & settings_
const FPGAWord & fpgarprojderdisk(int disk) const
unsigned int nTracklets() const
void addInput(MemoryBase *memory, std::string input) override
std::vector< TrackletProjectionsMemory * > inputproj_
unsigned int bits(unsigned int lsb, unsigned int nbit) const
void addOutput(MemoryBase *memory, std::string output) override
unsigned int nbitsvmme(unsigned int layerdisk) const
void initLayerDisk(unsigned int pos, int &layer, int &disk)
unsigned int nvmme(unsigned int layerdisk) const
AllProjectionsMemory * allproj_
int bendLoookup(int diskindex, int bendindex)
void setBendIndex(int bendIndex, int disk)
ProjectionRouterBendTable *& projectionRouterBendTable()
bool writeMonitorData(std::string module) const
std::ofstream & ofstream(std::string fname)
Log< level::Info, true > LogVerbatim
std::string const & getName() const
const FPGAWord & fpgaphiproj(int layer) const
std::vector< VMProjectionsMemory * > vmprojs_
unsigned int nallstubs(unsigned int layerdisk) const
const FPGAWord & fpgarprojdisk(int disk) const
unsigned int maxStep(std::string module) const
const FPGAWord & fpgaphiprojderdisk(int disk) const