ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/CaloMet.h
Revision: 1.5
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_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, 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, HEAD
Branch point for: Mit_025c_branch
Changes since 1.4: +2 -1 lines
Log Message:
Add MakeCopy functions and cleaned up some jetmet getters and setters

File Contents

# User Rev Content
1 ksung 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.5 // $Id: CaloMet.h,v 1.4 2009/03/18 15:44:32 loizides Exp $
3 ksung 1.1 //
4     // CaloMet
5     //
6 loizides 1.4 // Class to hold CaloMet specific information based on caloremetric information.
7 ksung 1.1 //
8 bendavid 1.3 // Authors: C.Loizides
9 ksung 1.1 //--------------------------------------------------------------------------------------------------
10    
11 bendavid 1.3 #ifndef MITANA_DATATREE_CALOMET_H
12     #define MITANA_DATATREE_CALOMET_H
13    
14 ksung 1.1 #include "MitAna/DataTree/interface/Met.h"
15    
16 bendavid 1.3 namespace mithep
17 ksung 1.1 {
18     class CaloMet : public Met
19     {
20     public:
21 bendavid 1.3 CaloMet() :
22     fCaloMetSig(0), fMaxEtInEmTowers(0), fMaxEtInHadTowers(0), fEtFractionHadronic(0),
23     fEmEtFraction(0), fHadEtInHB(0), fHadEtInHO(0), fHadEtInHE(0), fHadEtInHF(0),
24     fEmEtInEB(0), fEmEtInEE(0), fEmEtInHF(0), fCaloSumEtInpHF(0), fCaloSumEtInmHF(0),
25     fCaloMetInpHF(0), fCaloMetInmHF(0), fCaloMetPhiInpHF(0), fCaloMetPhiInmHF(0) {}
26     CaloMet(Double_t mex, Double_t mey) :
27     Met(mex,mey),
28     fCaloMetSig(0), fMaxEtInEmTowers(0), fMaxEtInHadTowers(0), fEtFractionHadronic(0),
29     fEmEtFraction(0), fHadEtInHB(0), fHadEtInHO(0), fHadEtInHE(0), fHadEtInHF(0),
30     fEmEtInEB(0), fEmEtInEE(0), fEmEtInHF(0), fCaloSumEtInpHF(0), fCaloSumEtInmHF(0),
31     fCaloMetInpHF(0), fCaloMetInmHF(0), fCaloMetPhiInpHF(0), fCaloMetPhiInmHF(0) {}
32    
33     Double_t CaloSumEtInpHF() const { return fCaloSumEtInpHF; }
34     Double_t CaloSumEtInmHF() const { return fCaloSumEtInmHF; }
35     Double_t CaloMetInpHF() const { return fCaloMetInpHF; }
36     Double_t CaloMetInmHF() const { return fCaloMetInmHF; }
37     Double_t CaloMetPhiInpHF() const { return fCaloMetPhiInpHF; }
38     Double_t CaloMetPhiInmHF() const { return fCaloMetPhiInmHF; }
39     Double_t EmEtFraction() const { return fEmEtFraction; }
40     Double_t EmEtInEB() const { return fEmEtInEB; }
41     Double_t EmEtInEE() const { return fEmEtInEE; }
42     Double_t EmEtInHF() const { return fEmEtInHF; }
43     Double_t EtFractionHadronic() const { return fEtFractionHadronic; }
44     Double_t HadEtInHB() const { return fHadEtInHB; }
45     Double_t HadEtInHO() const { return fHadEtInHO; }
46     Double_t HadEtInHE() const { return fHadEtInHE; }
47     Double_t HadEtInHF() const { return fHadEtInHF; }
48 bendavid 1.5 Met *MakeCopy() const { return new CaloMet(*this); }
49 bendavid 1.3 Double_t MaxEtInEmTowers() const { return fMaxEtInEmTowers; }
50     Double_t MaxEtInHadTowers() const { return fMaxEtInHadTowers; }
51     Double_t CaloMetSig() const { return fCaloMetSig; }
52     EObjType ObjType() const { return kCaloMet; }
53     void SetCaloSumEtInpHF(Double_t x) { fCaloSumEtInpHF = x; }
54     void SetCaloSumEtInmHF(Double_t x) { fCaloSumEtInmHF = x; }
55     void SetCaloMetInpHF(Double_t x) { fCaloMetInpHF = x; }
56     void SetCaloMetInmHF(Double_t x) { fCaloMetInmHF = x; }
57     void SetCaloMetPhiInpHF(Double_t x) { fCaloMetPhiInpHF = x; }
58     void SetCaloMetPhiInmHF(Double_t x) { fCaloMetPhiInmHF = x; }
59     void SetEmEtFraction(Double_t x) { fEmEtFraction = x; }
60     void SetEtFractionHadronic(Double_t x) { fEtFractionHadronic = x; }
61     void SetHadEtInHB(Double_t x) { fHadEtInHB = x; }
62     void SetHadEtInHO(Double_t x) { fHadEtInHO = x; }
63     void SetHadEtInHE(Double_t x) { fHadEtInHE = x; }
64     void SetHadEtInHF(Double_t x) { fHadEtInHF = x; }
65     void SetEmEtInEB(Double_t x) { fEmEtInEB = x; }
66     void SetEmEtInEE(Double_t x) { fEmEtInEE = x; }
67     void SetEmEtInHF(Double_t x) { fEmEtInHF = x; }
68     void SetMaxEtInEmTowers(Double_t x) { fMaxEtInEmTowers = x; }
69     void SetMaxEtInHadTowers(Double_t x) { fMaxEtInHadTowers = x; }
70     void SetCaloMetSig(Double_t x) { fCaloMetSig = x; }
71 ksung 1.1
72     protected:
73 bendavid 1.3
74 loizides 1.4 Double32_t fCaloMetSig; //[0,0,14]calo met significance
75     Double32_t fMaxEtInEmTowers; //[0,0,14]max ET deposited in ECAL towers
76     Double32_t fMaxEtInHadTowers; //[0,0,14]max ET deposited in HCAL towers
77     Double32_t fEtFractionHadronic; //[0,0,14]event hadronic scaler ET fraction
78     Double32_t fEmEtFraction; //[0,0,14]event em scalar ET fraction
79     Double32_t fHadEtInHB; //[0,0,14]event hadronic scalar ET in HB
80     Double32_t fHadEtInHO; //[0,0,14]event hadronic scalar ET in HO
81     Double32_t fHadEtInHE; //[0,0,14]event hadronic scalar ET in HE
82     Double32_t fHadEtInHF; //[0,0,14]event hadronic scalar ET in HF
83     Double32_t fEmEtInEB; //[0,0,14]event em scalar ET in EB
84     Double32_t fEmEtInEE; //[0,0,14]event em scalar ET in EE
85     Double32_t fEmEtInHF; //[0,0,14]event em scalar ET from HF
86     Double32_t fCaloSumEtInpHF; //[0,0,14]SumET in HF+
87     Double32_t fCaloSumEtInmHF; //[0,0,14]SumET in HF-
88     Double32_t fCaloMetInpHF; //[0,0,14]MET in HF+
89     Double32_t fCaloMetInmHF; //[0,0,14]MET in HF-
90     Double32_t fCaloMetPhiInpHF; //[0,0,14]MET-phi in HF+
91     Double32_t fCaloMetPhiInmHF; //[0,0,14]MET-phi in HF-
92 bendavid 1.3
93     ClassDef(CaloMet, 1) // Missing transverse energy class
94 ksung 1.1 };
95     }
96     #endif