ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PFMet.h
Revision: 1.4
Committed: Mon Sep 12 13:46:13 2011 UTC (13 years, 7 months ago) by ksung
Content type: text/plain
Branch: MAIN
Changes since 1.3: +6 -3 lines
Log Message:
Add variable to store PFMET significance

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 ksung 1.4 // $Id: PFMet.h,v 1.3 2009/09/09 03:38:26 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 ksung 1.4 fPFMetSig(0), fNeutralEMFraction(0), fNeutralHadFraction(0), fChargedEMFraction(0),
23 bendavid 1.1 fChargedHadFraction(0), fMuonFraction(0) {}
24     PFMet(Double_t mex, Double_t mey) :
25     Met(mex,mey),
26 ksung 1.4 fPFMetSig(0), fNeutralEMFraction(0), fNeutralHadFraction(0), fChargedEMFraction(0),
27 bendavid 1.1 fChargedHadFraction(0), fMuonFraction(0) {}
28    
29     Double_t ChargedEMFraction() const { return fChargedEMFraction; }
30     Double_t ChargedHadFraction() const { return fChargedHadFraction; }
31 bendavid 1.3 Met *MakeCopy() const { return new PFMet(*this); }
32 bendavid 1.1 Double_t MuonFraction() const { return fMuonFraction; }
33 loizides 1.2 Double_t NeutralEMFraction() const { return fNeutralEMFraction; }
34     Double_t NeutralHadFraction() const { return fNeutralHadFraction; }
35     EObjType ObjType() const { return kPFMet; }
36 ksung 1.4 Double_t PFMetSig() const { return fPFMetSig; }
37 bendavid 1.1 void SetChargedEMFraction(Double_t x) { fChargedEMFraction = x; }
38     void SetChargedHadFraction(Double_t x) { fChargedHadFraction = x; }
39     void SetMuonFraction(Double_t x) { fMuonFraction = x; }
40 loizides 1.2 void SetNeutralEMFraction(Double_t x) { fNeutralEMFraction = x; }
41     void SetNeutralHadFraction(Double_t x) { fNeutralHadFraction = x; }
42 ksung 1.4 void SetPFMetSig(Double_t x) { fPFMetSig = x; }
43 bendavid 1.1
44     protected:
45 ksung 1.4 Double32_t fPFMetSig; //[0,0,14]pf met significance
46 loizides 1.2 Double32_t fNeutralEMFraction; //[0,0,14]neutral em fraction
47     Double32_t fNeutralHadFraction; //[0,0,14]neutral had fraction
48     Double32_t fChargedEMFraction; //[0,0,14]charged em fraction
49     Double32_t fChargedHadFraction; //[0,0,14]charged had fraction
50     Double32_t fMuonFraction; //[0,0,14]muon fraction
51 bendavid 1.1
52     ClassDef(PFMet, 1) // Missing transverse energy class
53     };
54     }
55     #endif