ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/GenJet.h
Revision: 1.1
Committed: Tue Sep 16 18:12:29 2008 UTC (16 years, 7 months ago) by sixie
Content type: text/plain
Branch: MAIN
Log Message:
Add GenJet object

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: $
3     //
4     // GenJet
5     //
6     // Details to be worked out...
7     //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_DATATREE_GENJET_H
12     #define MITANA_DATATREE_GENJET_H
13    
14     #include "MitAna/DataTree/interface/Particle.h"
15    
16     namespace mithep
17     {
18     class GenJet : public Particle
19     {
20     public:
21     GenJet() {}
22     GenJet(Double_t px, Double_t py, Double_t pz, Double_t e) : fMom(px,py,pz,e)
23     {}
24     ~GenJet() {}
25    
26     FourVector Mom() const { return fMom; }
27     Double_t Charge() const { return 0; }
28     Double_t HadEnergy() const { return fHadEnergy; }
29     Double_t EmEnergy() const { return fEmEnergy; }
30     Double_t InvisibleEnergy() const { return fInvisibleEnergy; }
31     Double_t AuxiliaryEnergy() const { return fAuxiliaryEnergy; }
32     Int_t MatchedMCFlavor() const { return fMatchedMCFlavor; }
33    
34     void SetHadEnergy(Double_t val) { fHadEnergy = val; }
35     void SetEmEnergy(Double_t val) { fEmEnergy = val; }
36     void SetInvisibleEnergy(Double_t val) { fInvisibleEnergy = val; }
37     void SetAuxiliaryEnergy(Double_t val) { fAuxiliaryEnergy = val; }
38     void SetMatchedMCFlavor(Int_t flavor) { fMatchedMCFlavor = flavor; }
39    
40     protected:
41     FourVector fMom; //four momentum of jet
42     Double_t fHadEnergy; //hadronic energy
43     Double_t fEmEnergy; //electromagnetic
44     Double_t fInvisibleEnergy; //invisible energy (mu, nu)
45     Double_t fAuxiliaryEnergy; //anything else (eg. undecayed sigmas)
46     Int_t fMatchedMCFlavor; //pdgID of the quark flavor that the jet matched to
47    
48     ClassDef(GenJet, 1) // GenJet class
49     };
50     }
51     #endif