CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BaseMET.h
Go to the documentation of this file.
1 #ifndef METOBJECTS_BASE_MET_H
2 #define METOBJECTS_BASE_MET_H
3 
17 
18 #include <vector>
19 #include <cstring>
20 
21 class BaseMETv0
22 {
23 public:
24  BaseMETv0();
25  // Setters
26  //void setLabel(const char *Label) { strcpy( data.label, Label ); }
27  void setMET(double MET) { data.met = MET; } //derived quantity
28  void setMEx(double MEx) { data.mex = MEx; }
29  void setMEy(double MEy) { data.mey = MEy; }
30  void setMEz(double MEz) { data.mez = MEz; }
31  void setSumET(double SumET) { data.sumet = SumET; }
32  void setPhi(double Phi) { data.phi = Phi; } //derived quantity
33  void pushDelta() { corr.push_back( data ); }
34  // Getters
35  //char *getLabel() { return data.label; }
36  double MET() const { return data.met; }
37  double MEx() const { return data.mex; }
38  double MEy() const { return data.mey; }
39  double MEz() const { return data.mez; }
40  double SumET() const { return data.sumet; }
41  double phi() const { return data.phi; }
42  std::vector<CommonMETv0Data> getAllCorr() const {return corr;}
43  // Methods
44  void clearMET();
45 private:
47  std::vector<CommonMETv0Data> corr;
48 };
49 
50 #endif // METOBJECTS_MET_H
void setMEz(double MEz)
Definition: BaseMET.h:30
double phi() const
Definition: BaseMET.h:41
void setMEy(double MEy)
Definition: BaseMET.h:29
CommonMETv0Data data
Definition: BaseMET.h:46
void pushDelta()
Definition: BaseMET.h:33
void setMEx(double MEx)
Definition: BaseMET.h:28
void setPhi(double Phi)
Definition: BaseMET.h:32
double MEx() const
Definition: BaseMET.h:37
void setSumET(double SumET)
Definition: BaseMET.h:31
void setMET(double MET)
Definition: BaseMET.h:27
double MEz() const
Definition: BaseMET.h:39
double SumET() const
Definition: BaseMET.h:40
std::vector< CommonMETv0Data > corr
Definition: BaseMET.h:47
BaseMETv0()
Definition: BaseMET.cc:10
std::vector< CommonMETv0Data > getAllCorr() const
Definition: BaseMET.h:42
double MET() const
Definition: BaseMET.h:36
void clearMET()
Definition: BaseMET.cc:15
double MEy() const
Definition: BaseMET.h:38