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
|