Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TMBL2MEt.hpp

Go to the documentation of this file.
00001 #ifndef L2MET_H_
00002 #define L2MET_H_
00003 
00005 //
00006 //   Purpose: This is the header file that defines a class to help fill the 
00007 //            tuple correctly with L2 preprocessor missing ET.  
00008 //
00009 //   Author: Yann Coadou
00010 //   Date:   19 April 2004
00011 //
00013 
00014 
00015 #include "TObject.h"
00016 #include "kinem_util/AnglesUtil.hpp"
00017 
00022 class TMBL2MEt : public TObject {  
00023 public:
00024   TMBL2MEt(); //constructor
00025   TMBL2MEt(const TMBL2MEt&); //copy constructor
00026   
00027   ~TMBL2MEt() {;} //destructor
00028   
00029   // setters
00030   void MEx (float x) {mex = x;}
00031   void MEy (float x) {mey = x;}
00032   void ScalarEt (float x) {scalaret = x;}
00033   void PosETRing (int i,float x) {posetring[i] = x;}
00034   void NegETRing (int i,float x) {negetring[i] = x;}
00035 
00036   // accessors
00037   float MEx() const {return mex;}
00038   float MEy() const {return mey;}
00039   float ScalarEt() const {return scalaret;}
00040   float PosETRing(int i) const {return posetring[i];}
00041   float NegETRing(int i) const {return negetring[i];}
00042   float MEtPhi() const {return kinem::phi(mex,mey);}
00043   float MEt() const {return sqrt(mex*mex + mey*mey);}
00044 
00045 private:
00046   float mex;
00047   float mey;
00048   float scalaret;
00049   float posetring[5];
00050   float negetring[5];
00051 
00052   ClassDef(TMBL2MEt,1)
00053 
00054 }; //end of class TMBL2MEt
00055 #endif // L2MET_H_

Generated on Tue Mar 28 10:13:05 2006 for CAF by doxygen 1.3.4