ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PFMet.h
Revision: 1.2
Committed: Wed Mar 18 15:44:32 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008
Changes since 1.1: +12 -15 lines
Log Message:
Introduced Double32_t [0,0,14] consistently. Updated class descriptions.

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: PFMet.h,v 1.1 2009/03/12 15:56:50 bendavid Exp $
3 bendavid 1.1 //
4     // PFMet
5     //
6 loizides 1.2 // Class to hold PFMet specific information.
7 bendavid 1.1 //
8     // Authors: J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_DATATREE_PFMET_H
12     #define MITANA_DATATREE_PFMET_H
13    
14     #include "MitAna/DataTree/interface/Met.h"
15    
16     namespace mithep
17     {
18     class PFMet : public Met
19     {
20     public:
21     PFMet() :
22     fNeutralEMFraction(0), fNeutralHadFraction(0), fChargedEMFraction(0),
23     fChargedHadFraction(0), fMuonFraction(0) {}
24     PFMet(Double_t mex, Double_t mey) :
25     Met(mex,mey),
26     fNeutralEMFraction(0), fNeutralHadFraction(0), fChargedEMFraction(0),
27     fChargedHadFraction(0), fMuonFraction(0) {}
28    
29     Double_t ChargedEMFraction() const { return fChargedEMFraction; }
30     Double_t ChargedHadFraction() const { return fChargedHadFraction; }
31     Double_t MuonFraction() const { return fMuonFraction; }
32 loizides 1.2 Double_t NeutralEMFraction() const { return fNeutralEMFraction; }
33     Double_t NeutralHadFraction() const { return fNeutralHadFraction; }
34     EObjType ObjType() const { return kPFMet; }
35 bendavid 1.1 void SetChargedEMFraction(Double_t x) { fChargedEMFraction = x; }
36     void SetChargedHadFraction(Double_t x) { fChargedHadFraction = x; }
37     void SetMuonFraction(Double_t x) { fMuonFraction = x; }
38 loizides 1.2 void SetNeutralEMFraction(Double_t x) { fNeutralEMFraction = x; }
39     void SetNeutralHadFraction(Double_t x) { fNeutralHadFraction = x; }
40 bendavid 1.1
41     protected:
42 loizides 1.2 Double32_t fNeutralEMFraction; //[0,0,14]neutral em fraction
43     Double32_t fNeutralHadFraction; //[0,0,14]neutral had fraction
44     Double32_t fChargedEMFraction; //[0,0,14]charged em fraction
45     Double32_t fChargedHadFraction; //[0,0,14]charged had fraction
46     Double32_t fMuonFraction; //[0,0,14]muon fraction
47 bendavid 1.1
48     ClassDef(PFMet, 1) // Missing transverse energy class
49     };
50     }
51     #endif