ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Met.h
Revision: 1.2
Committed: Wed Jul 9 10:54:50 2008 UTC (16 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +19 -3 lines
Log Message:
Store momentum

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: Met.h,v 1.1 2008/07/07 16:02:25 loizides Exp $
3 loizides 1.1 //
4     // Met
5     //
6     // Details to be worked out...
7     //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef DATATREE_MET_H
12     #define DATATREE_MET_H
13    
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 loizides 1.2 Double_t E() const { return Pt();}
27     Double_t Eta() const { return Mom().Eta();}
28     Double_t Mass() const { return TMath::Sqrt(Mom().M2()); }
29     FourVector Mom() const { return FourVector(fPx,fPy,0,Pt()); }
30     Double_t Phi() const { return TMath::ATan2(fPy,fPx); }
31     Double_t Pt() const { return TMath::Sqrt(fPx*fPx+fPy*fPy);}
32     Double_t Px() const { return fPx;}
33     Double_t Py() const { return fPy;}
34     Double_t Pz() const { return 0; }
35     Double_t P() const { return Pt(); }
36    
37     protected:
38     Double_t fPx; //x-component
39     Double_t fPy; //y-component
40    
41     ClassDef(Met, 1) // Missing Et class
42 loizides 1.1 };
43     }
44     #endif