ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Met.h
Revision: 1.4
Committed: Wed Sep 10 03:33:27 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.3: +3 -3 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: Met.h,v 1.3 2008/07/16 10:00:58 bendavid Exp $
3 loizides 1.1 //
4     // Met
5     //
6     // Details to be worked out...
7     //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.4 #ifndef MITANA_DATATREE_MET_H
12     #define MITANA_DATATREE_MET_H
13 loizides 1.1
14     #include "MitAna/DataTree/interface/Particle.h"
15     #include "MitAna/DataTree/interface/Track.h"
16    
17     namespace mithep
18     {
19     class Met : public Particle
20     {
21     public:
22 loizides 1.2 Met() : fPx(0), fPy(0) {}
23     Met(Double_t px, Double_t py) : fPx(px), fPy(py) {}
24 loizides 1.1 ~Met() {}
25    
26 bendavid 1.3 Double_t Charge() const { return 0; }
27 loizides 1.2 Double_t E() const { return Pt();}
28     Double_t Eta() const { return Mom().Eta();}
29     Double_t Mass() const { return TMath::Sqrt(Mom().M2()); }
30     FourVector Mom() const { return FourVector(fPx,fPy,0,Pt()); }
31     Double_t Phi() const { return TMath::ATan2(fPy,fPx); }
32     Double_t Pt() const { return TMath::Sqrt(fPx*fPx+fPy*fPy);}
33     Double_t Px() const { return fPx;}
34     Double_t Py() const { return fPy;}
35     Double_t Pz() const { return 0; }
36     Double_t P() const { return Pt(); }
37    
38     protected:
39     Double_t fPx; //x-component
40     Double_t fPy; //y-component
41    
42     ClassDef(Met, 1) // Missing Et class
43 loizides 1.1 };
44     }
45     #endif