ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/src/L1ObjColl.cc
(Generate patch)

Comparing UserCode/L1RpcTriggerAnalysis/src/L1ObjColl.cc (file contents):
Revision 1.2 by konec, Mon Nov 28 18:39:48 2011 UTC vs.
Revision 1.3 by konec, Mon Oct 29 12:41:10 2012 UTC

# 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   {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines