Definition at line 13 of file DTC.h.
Definition at line 13 of file DTC.cc.
References funct::abs(), trackerDTC::Stub::bend(), trackerDTC::Setup::dtcNumModulesPerRoutingBlock(), enableTruncation_, input_, MessageLogger_cff::limit, lost_, callgraph::module, modules_, GetRecoTauVFromDQM_MC_cff::next, trackerDTC::Setup::numFramesFE(), trackerDTC::Setup::numModulesPerDTC(), trackerDTC::Setup::numOverlappingRegions(), HLT_FULL_cff::region, stubs_, and trackerDTC::Stub::valid().
25 auto acc = [](
int& sum,
const vector<TTStubRef>& stubsModule) {
return sum += stubsModule.size(); };
26 const int nStubs = accumulate(stubsDTC.begin(), stubsDTC.end(), 0, acc);
29 for (
int modId = 0; modId <
setup.numModulesPerDTC(); modId++) {
30 const vector<TTStubRef>& ttStubRefs = stubsDTC[modId];
31 if (ttStubRefs.empty())
36 const int blockId = modId /
setup.dtcNumModulesPerRoutingBlock();
38 const int channelId = modId %
setup.dtcNumModulesPerRoutingBlock();
41 for (
const TTStubRef& ttStubRef : ttStubRefs) {
42 stubs_.emplace_back(iConfig,
setup, module, ttStubRef);
43 Stub& stub =
stubs_.back();
46 stubs.push_back(&stub);
49 sort(stubs.begin(), stubs.end(), [](Stub* lhs, Stub* rhs) {
return abs(lhs->bend()) <
abs(rhs->bend()); });
60 stubs.erase(
limit, stubs.end());
std::vector< Stub > stubs_
std::vector< Stubs > Stubss
std::vector< SensorModule * > modules_
Abs< T >::type abs(const T &t)
T getParameter(std::string const &) const
std::deque< Stub * > Stubs