ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/GenJet.h
Revision: 1.2
Committed: Wed Sep 17 04:21:16 2008 UTC (16 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_006, Mit_005, Mit_004
Changes since 1.1: +7 -5 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: GenJet.h,v 1.1 2008/09/16 18:12:29 sixie Exp $
3 sixie 1.1 //
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 loizides 1.2 GenJet() : fHadEnergy(0), fEmEnergy(0), fInvisibleEnergy(0),
22     fAuxiliaryEnergy(0), fMatchedMCFlavor(0) {}
23     GenJet(Double_t px, Double_t py, Double_t pz, Double_t e) :
24     fMom(px,py,pz,e), fHadEnergy(0), fEmEnergy(0), fInvisibleEnergy(0),
25     fAuxiliaryEnergy(0), fMatchedMCFlavor(0) {}
26 sixie 1.1 ~GenJet() {}
27    
28     FourVector Mom() const { return fMom; }
29     Double_t Charge() const { return 0; }
30     Double_t HadEnergy() const { return fHadEnergy; }
31     Double_t EmEnergy() const { return fEmEnergy; }
32     Double_t InvisibleEnergy() const { return fInvisibleEnergy; }
33     Double_t AuxiliaryEnergy() const { return fAuxiliaryEnergy; }
34     Int_t MatchedMCFlavor() const { return fMatchedMCFlavor; }
35    
36     void SetHadEnergy(Double_t val) { fHadEnergy = val; }
37     void SetEmEnergy(Double_t val) { fEmEnergy = val; }
38     void SetInvisibleEnergy(Double_t val) { fInvisibleEnergy = val; }
39     void SetAuxiliaryEnergy(Double_t val) { fAuxiliaryEnergy = val; }
40     void SetMatchedMCFlavor(Int_t flavor) { fMatchedMCFlavor = flavor; }
41    
42     protected:
43     FourVector fMom; //four momentum of jet
44     Double_t fHadEnergy; //hadronic energy
45     Double_t fEmEnergy; //electromagnetic
46     Double_t fInvisibleEnergy; //invisible energy (mu, nu)
47     Double_t fAuxiliaryEnergy; //anything else (eg. undecayed sigmas)
48 loizides 1.2 Int_t fMatchedMCFlavor; //pdg ID of the quark flavor that the jet matched to
49 sixie 1.1
50     ClassDef(GenJet, 1) // GenJet class
51     };
52     }
53     #endif