Revision: | 1.3 |
Committed: | Wed Sep 9 03:38:26 2009 UTC (15 years, 7 months ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_024b, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a |
Changes since 1.2: | +2 -1 lines |
Log Message: | Add MakeCopy functions and cleaned up some jetmet getters and setters |
# | User | Rev | Content |
---|---|---|---|
1 | bendavid | 1.1 | //-------------------------------------------------------------------------------------------------- |
2 | bendavid | 1.3 | // $Id: PFMet.h,v 1.2 2009/03/18 15:44:32 loizides 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 | 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 | bendavid | 1.1 | void SetChargedEMFraction(Double_t x) { fChargedEMFraction = x; } |
37 | void SetChargedHadFraction(Double_t x) { fChargedHadFraction = x; } | ||
38 | void SetMuonFraction(Double_t x) { fMuonFraction = x; } | ||
39 | loizides | 1.2 | void SetNeutralEMFraction(Double_t x) { fNeutralEMFraction = x; } |
40 | void SetNeutralHadFraction(Double_t x) { fNeutralHadFraction = x; } | ||
41 | bendavid | 1.1 | |
42 | protected: | ||
43 | loizides | 1.2 | Double32_t fNeutralEMFraction; //[0,0,14]neutral em fraction |
44 | Double32_t fNeutralHadFraction; //[0,0,14]neutral had fraction | ||
45 | Double32_t fChargedEMFraction; //[0,0,14]charged em fraction | ||
46 | Double32_t fChargedHadFraction; //[0,0,14]charged had fraction | ||
47 | Double32_t fMuonFraction; //[0,0,14]muon fraction | ||
48 | bendavid | 1.1 | |
49 | ClassDef(PFMet, 1) // Missing transverse energy class | ||
50 | }; | ||
51 | } | ||
52 | #endif |