ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/GenMet.h
Revision: 1.1
Committed: Tue Jul 14 13:46:11 2009 UTC (15 years, 9 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
Added GenMet

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: GenMet.h,v 1.4 2009/03/18 15:44:32 loizides Exp $
3     //
4     // GenMet
5     //
6     // Class to hold GenMet specific information based on MC Truth information.
7     //
8     // Authors: J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_DATATREE_GENMET_H
12     #define MITANA_DATATREE_GENMET_H
13    
14     #include "MitAna/DataTree/interface/Met.h"
15    
16     namespace mithep
17     {
18     class GenMet : public Met
19     {
20     public:
21     GenMet() :
22     fEmEnergy(0), fHadEnergy(0), fInvisibleEnergy(0), fAuxiliaryEnergy(0) {}
23     GenMet(Double_t mex, Double_t mey) :
24     Met(mex,mey),
25     fEmEnergy(0), fHadEnergy(0), fInvisibleEnergy(0), fAuxiliaryEnergy(0) {}
26    
27     Double_t EmEnergy() const { return fEmEnergy; }
28     Double_t HadEnergy() const { return fHadEnergy; }
29     Double_t InvisibleEnergy() const { return fInvisibleEnergy; }
30     Double_t AuxiliaryEnergy() const { return fAuxiliaryEnergy; }
31     EObjType ObjType() const { return kGenMet; }
32     void SetEmEnergy(Double_t x) { fEmEnergy = x; }
33     void SetHadEnergy(Double_t x) { fHadEnergy = x; }
34     void SetInvisibleEnergy(Double_t x) { fInvisibleEnergy = x; }
35     void SetAuxiliaryEnergy(Double_t x) { fAuxiliaryEnergy = x; }
36    
37     protected:
38    
39     Double32_t fEmEnergy; //[0,0,14]total event energy from EM particles
40     Double32_t fHadEnergy; //[0,0,14]total event energy from hadronic particles
41     Double32_t fInvisibleEnergy; //[0,0,14]total event energy from neutrinos,etc
42     Double32_t fAuxiliaryEnergy; //[0,0,14]total event energy from undecayed particles
43    
44     ClassDef(GenMet, 1) // Missing transverse energy class
45     };
46     }
47     #endif