CMS 3D CMS Logo

MuonMETCorrectionData.h
Go to the documentation of this file.
1 #ifndef MuonReco_MuonMETCorrectionData_h
2 #define MuonReco_MuonMETCorrectionData_h
3 
4 #include <cmath>
5 
6 namespace reco {
8  public:
9  enum Type { NotUsed = 0,
15  };
16 
18  MuonMETCorrectionData(Type type, float corrX, float corrY): type_(type), corrX_(corrX), corrY_(corrY) {}
19 
20  Type type() { return Type(type_);}
21  float corrX() { return corrX_;}
22  float corrY() { return corrY_;}
23  float x() { return corrX_;}
24  float y() { return corrY_;}
25  float pt() { return sqrt(x()*x() + y()*y());}
26  protected:
27  int type_;
28  float corrX_;
29  float corrY_;
30  };
31 
32 }
33 
34 
35 #endif //MuonReco_MuonMETCorrectionData_h
type
Definition: HCALResponse.h:21
T sqrt(T t)
Definition: SSEVec.h:18
fixed size matrix
MuonMETCorrectionData(Type type, float corrX, float corrY)