41 sort_stubs_ = mpcRun2Params.getParameter<
bool>(
"sortStubs");
54 for (Citer = thedigis.begin(); Citer != thedigis.end(); Citer++) {
58 for (; Diter != Dend; Diter++) {
66 const unsigned sector,
const unsigned subsector,
const int bx)
68 std::vector<csctf::TrackStub>
result;
69 std::vector<csctf::TrackStub>::iterator LCT;
71 result =
stubs_.
get(endcap, station, sector, subsector, bx);
74 for (LCT = result.begin(); LCT != result.end(); LCT++) {
77 result.erase(LCT, LCT);
81 if (
sort_stubs_) std::sort(result.begin(), result.end(), std::greater<csctf::TrackStub>());
84 result.erase(result.begin() +
max_stubs_, result.end());
89 for (LCT = result.begin(); LCT != result.end(); LCT++)
T getParameter(std::string const &) const
std::vector< T > get() const
void push_back(const T &data)
void loadDigis(const CSCCorrelatedLCTDigiCollection &thedigis)
bool drop_low_quality_stubs_
std::vector< CSCCorrelatedLCTDigi >::const_iterator const_iterator
CSCTriggerContainer< csctf::TrackStub > stubs_
std::vector< csctf::TrackStub > sort(const unsigned endcap, const unsigned station, const unsigned sector, const unsigned subsector, const int bx)