ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/PFMet.h
Revision: 1.1
Committed: Thu Mar 12 15:56:50 2009 UTC (16 years, 1 month ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Log Message:
Split CaloMet into Met base class and CaloMet specific class, add PFMet

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: Met.h,v 1.10 2009/03/02 14:58:17 loizides Exp $
3 //
4 // PFMet
5 //
6 // Class to hold PFMet specific information
7 //
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 EObjType ObjType() const { return kPFMet; }
30 Double_t NeutralEMFraction() const { return fNeutralEMFraction; }
31 Double_t NeutralHadFraction() const { return fNeutralHadFraction; }
32 Double_t ChargedEMFraction() const { return fChargedEMFraction; }
33 Double_t ChargedHadFraction() const { return fChargedHadFraction; }
34 Double_t MuonFraction() const { return fMuonFraction; }
35
36 void SetNeutralEMFraction(Double_t x) { fNeutralEMFraction = x; }
37 void SetNeutralHadFraction(Double_t x) { fNeutralHadFraction = x; }
38 void SetChargedEMFraction(Double_t x) { fChargedEMFraction = x; }
39 void SetChargedHadFraction(Double_t x) { fChargedHadFraction = x; }
40 void SetMuonFraction(Double_t x) { fMuonFraction = x; }
41
42
43 protected:
44
45 Double32_t fNeutralEMFraction;
46 Double32_t fNeutralHadFraction;
47 Double32_t fChargedEMFraction;
48 Double32_t fChargedHadFraction;
49 Double32_t fMuonFraction;
50
51 ClassDef(PFMet, 1) // Missing transverse energy class
52 };
53 }
54 #endif