ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/MuonObj.h
Revision: 1.3
Committed: Mon Oct 1 19:19:57 2012 UTC (12 years, 7 months ago) by konec
Content type: text/plain
Branch: MAIN
Changes since 1.2: +2 -0 lines
Log Message:
major changes,

File Contents

# User Rev Content
1 konec 1.1 #ifndef MuonObj_H
2     #define MuonObj_H
3     #include "UserCode/L1RpcTriggerAnalysis/interface/TrackObj.h"
4    
5     class MuonObj : public TrackObj {
6     public:
7     MuonObj():TrackObj(),theMuonBits(0) {}
8 konec 1.2 MuonObj(float pt, float eta, float phi, float charge) : TrackObj(pt,eta,phi,charge), theMuonBits(0) {}
9 konec 1.1 virtual ~MuonObj(){}
10     void setBits(bool isGlobal, bool isTracker, bool isOuter, bool isCalo, bool isMatched) {
11     if (isGlobal) theMuonBits = 1 << 4;
12     if (isTracker) theMuonBits |= 1<<3;
13     if (isOuter) theMuonBits |= 1<<2;
14     if (isCalo) theMuonBits |= 1<<1;
15     if (isMatched) theMuonBits |= 1;
16     }
17     bool isGlobal() const { return (theMuonBits>>4)&1 ;}
18     bool isTracker() const { return (theMuonBits>>3)&1 ;}
19     bool isOuter() const { return (theMuonBits>>2)&1 ;}
20     bool isCalo() const { return (theMuonBits>>1)&1 ;}
21     bool isMatched() const { return theMuonBits&1 ;}
22 konec 1.3 public:
23     unsigned int nRPCHits, nDTHits, nCSCHits, nTrackerHits, nMatchedStations;
24 konec 1.1 private:
25     unsigned int theMuonBits;
26     public:
27     ClassDef(MuonObj,1)
28     };
29     #endif