CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonMETCorrectionData.h
Go to the documentation of this file.
1 #ifndef MuonReco_MuonMETCorrectionData_h
2 #define MuonReco_MuonMETCorrectionData_h
3 
4 
5 namespace reco {
7  public:
8  enum Type { NotUsed = 0,
14  };
15 
17  MuonMETCorrectionData(Type type, float corrX, float corrY): type_(type), corrX_(corrX), corrY_(corrY) {}
18 
19  Type type() { return Type(type_);}
20  float corrX() { return corrX_;}
21  float corrY() { return corrY_;}
22  float x() { return corrX_;}
23  float y() { return corrY_;}
24  float pt() { return sqrt(x()*x() + y()*y());}
25  protected:
26  int type_;
27  float corrX_;
28  float corrY_;
29  };
30 
31 }
32 
33 
34 #endif //MuonReco_MuonMETCorrectionData_h
type
Definition: HCALResponse.h:21
T sqrt(T t)
Definition: SSEVec.h:48
MuonMETCorrectionData(Type type, float corrX, float corrY)