# | Line 4 | Line 4 | |
---|---|---|
4 | ClassImp(L1Obj) | |
5 | ClassImp(L1ObjColl) | |
6 | ||
7 | + | std::vector<L1Obj> L1ObjColl::typeSelector(const std::vector<L1Obj> & col, |
8 | + | TYPE t1, TYPE t2, TYPE t3, TYPE t4) |
9 | + | { |
10 | + | std::vector<L1Obj> result; |
11 | + | for (std::vector<L1Obj>::const_iterator it= col.begin(); it != col.end(); ++it) { |
12 | + | if ( it->type == t1 || it->type == t2 || it->type == t3 ||it->type == t4 ) result.push_back(*it); |
13 | + | } |
14 | + | return result; |
15 | + | } |
16 | ||
17 | std::vector<L1Obj> L1ObjColl::getL1ObjsMatched(double ptMin) const | |
18 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |