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

Comparing UserCode/L1RpcTriggerAnalysis/interface/L1ObjColl.h (file contents):
Revision 1.7 by konec, Tue Nov 27 16:16:47 2012 UTC vs.
Revision 1.8 by konec, Sun Dec 16 22:56:14 2012 UTC

# Line 3 | Line 3
3  
4   #include "UserCode/L1RpcTriggerAnalysis/interface/L1Obj.h"
5   #include <vector>
6 + #include <cmath>
7  
8   class L1ObjColl : public TObject {
9  
# Line 39 | Line 40 | public:
40    L1ObjColl selectByMatched() const;
41    L1ObjColl selectByDeltaR( double deltaRMax) const;
42    L1ObjColl operator+(const L1ObjColl &o) const;
43 +  operator bool() const {return !theL1Obj.empty(); }
44 +  bool operator!() const {return theL1Obj.empty(); }
45 +
46 +  inline bool isMatching_DRBx(double deltaR, int bx) const {
47 +    for (unsigned int i=0; i< theL1Obj.size(); i++) if ( (bx ==  theL1Obj[i].bx) && ( theDeltaR[i] < deltaR) ) return true;
48 +    return false;
49 +  }
50 +  inline bool isMatching_PtminPtmaxBx(double ptMin, double ptMax, int bx ) const {
51 +    for (unsigned int i=0; i< theL1Obj.size(); i++) if ( (theL1Obj[i].pt >= ptMin && theL1Obj[i].pt < ptMax) && (bx ==  theL1Obj[i].bx) ) return true;
52 +    return false;
53 +  }
54  
55    friend ostream & operator<< (ostream &out, const L1ObjColl&s);
56  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines