ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/MuonObj.h
Revision: 1.2
Committed: Thu Jul 15 13:02:48 2010 UTC (14 years, 9 months ago) by konec
Content type: text/plain
Branch: MAIN
CVS Tags: Mikolaj_cmssw533, Mikolaj_cmssw52x, Kasia_30_04_2012, Mikolaj_08_10_2011, Mikolaj_05_10_2011, Mikolaj_14_09_2011, Artur_27_07_2011, Artur_25_07_2011, V00-02-01, V00-02-00
Changes since 1.1: +1 -1 lines
Log Message:
modyfikacje Malgosi

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     private:
23     unsigned int theMuonBits;
24     public:
25     ClassDef(MuonObj,1)
26     };
27     #endif