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.5 by konec, Tue Nov 6 12:56:51 2012 UTC vs.
Revision 1.6 by konec, Tue Nov 27 16:16:48 2012 UTC

# Line 12 | Line 12 | L1ObjColl L1ObjColl::selectByType( TYPE
12    return result;
13   }
14  
15 + L1ObjColl L1ObjColl::selectByPt( double ptMin, double ptMax) const
16 + {
17 +  L1ObjColl result;
18 +  const double epsilon = 1.e-9;
19 +  for (unsigned int i=0; i<theL1Obj.size(); i++) if ( theL1Obj[i].pt > (ptMin-epsilon) && theL1Obj[i].pt < (ptMax+epsilon) ) result.push_back( theL1Obj[i], theL1Matching[i], theDeltaR[i]);
20 +  return result;
21 + }
22   L1ObjColl L1ObjColl::selectByPtMin( double ptMin) const
23   {
24    L1ObjColl result;
# Line 82 | Line 89 | std::vector<L1Obj> L1ObjColl::typeSelect
89    }
90    return result;
91   }
85
92   std::vector<L1Obj> L1ObjColl::getL1ObjsMatched(double ptMin) const
93   {
94    std::vector<L1Obj> result;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines