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 
16 
17 #include <vector>
18 #include <cstring>
19 
20 class BaseMETv0
21 {
22 public:
23  BaseMETv0();
24  // Setters
25  //void setLabel(const char *Label) { strcpy( data.label, Label ); }
26  void setMET(double MET) { data.met = MET; } //derived quantity
27  void setMEx(double MEx) { data.mex = MEx; }
28  void setMEy(double MEy) { data.mey = MEy; }
29  void setMEz(double MEz) { data.mez = MEz; }
30  void setSumET(double SumET) { data.sumet = SumET; }
31  void setPhi(double Phi) { data.phi = Phi; } //derived quantity
32  void pushDelta() { corr.push_back( data ); }
33  // Getters
34  //char *getLabel() { return data.label; }
35  double MET() const { return data.met; }
36  double MEx() const { return data.mex; }
37  double MEy() const { return data.mey; }
38  double MEz() const { return data.mez; }
39  double SumET() const { return data.sumet; }
40  double phi() const { return data.phi; }
41  std::vector<CommonMETv0Data> getAllCorr() const {return corr;}
42  // Methods
43  void clearMET();
44 private:
46  std::vector<CommonMETv0Data> corr;
47 };
48 
49 #endif // METOBJECTS_MET_H
void setMEz(double MEz)
Definition: BaseMET.h:29
double phi() const
Definition: BaseMET.h:40
void setMEy(double MEy)
Definition: BaseMET.h:28
CommonMETv0Data data
Definition: BaseMET.h:45
void pushDelta()
Definition: BaseMET.h:32
void setMEx(double MEx)
Definition: BaseMET.h:27
void setPhi(double Phi)
Definition: BaseMET.h:31
double MEx() const
Definition: BaseMET.h:36
void setSumET(double SumET)
Definition: BaseMET.h:30
void setMET(double MET)
Definition: BaseMET.h:26
double MEz() const
Definition: BaseMET.h:38
double SumET() const
Definition: BaseMET.h:39
std::vector< CommonMETv0Data > corr
Definition: BaseMET.h:46
BaseMETv0()
Definition: BaseMET.cc:10
std::vector< CommonMETv0Data > getAllCorr() const
Definition: BaseMET.h:41
double MET() const
Definition: BaseMET.h:35
void clearMET()
Definition: BaseMET.cc:15
double MEy() const
Definition: BaseMET.h:37