25 auto tpin = inlist.cbegin();
26 auto inend = inlist.cend();
27 for (; tpin != inend; ++tpin) {
32 outlist.push_back(*tpin);
33 auto toerase =
std::find(leftovers.begin(), leftovers.end(), *tpin);
34 if (toerase != leftovers.end()) {
35 leftovers.erase(toerase);
42 auto tp_bx = leftovers.cbegin();
43 auto tp_bx_end = leftovers.cend();
44 for (; tp_bx != tp_bx_end; ++tp_bx) {
63 for (
int i = 0;
i < 7; ++
i) {
76 outlist.push_back(newtp);
78 auto phierase =
std::find(leftovers.begin(), leftovers.end(), *tpin);
79 auto theerase =
std::find(leftovers.begin(), leftovers.end(), *tp_bx);
80 if (phierase != leftovers.end()) {
81 leftovers.erase(phierase);
83 if (theerase != leftovers.end()) {
84 leftovers.erase(theerase);
92 auto lo_tp = leftovers.cbegin();
93 auto lo_end = leftovers.cend();
94 for (; lo_tp != lo_end; ++lo_tp) {
95 outlist.push_back(*lo_tp);
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< TriggerPrimitive > TriggerPrimitiveCollection
Abs< T >::type abs(const T &t)
DTBunchCrossingCleaner(const edm::ParameterSet &)
char data[epos_bytes_allocation]
static int position[264][3]
TriggerPrimitiveCollection clean(const TriggerPrimitiveCollection &) const