ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/GenJet.h
Revision: 1.5
Committed: Tue Mar 3 17:04:09 2009 UTC (16 years, 2 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1
Changes since 1.4: +9 -8 lines
Log Message:
Cleanup and double32.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: GenJet.h,v 1.4 2009/02/18 15:38:54 loizides Exp $
3 sixie 1.1 //
4     // GenJet
5     //
6 loizides 1.3 // This class holds information about reconstructed jets at generation level.
7 sixie 1.1 //
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 loizides 1.5 fMom(FourVector(px,py,pz,e)),
25     fHadEnergy(0), fEmEnergy(0), fInvisibleEnergy(0),
26 loizides 1.2 fAuxiliaryEnergy(0), fMatchedMCFlavor(0) {}
27 sixie 1.1
28 loizides 1.3 Double_t AuxiliaryEnergy() const { return fAuxiliaryEnergy; }
29 sixie 1.1 Double_t Charge() const { return 0; }
30 loizides 1.3 Double_t EmEnergy() const { return fEmEnergy; }
31 sixie 1.1 Double_t HadEnergy() const { return fHadEnergy; }
32     Double_t InvisibleEnergy() const { return fInvisibleEnergy; }
33     Int_t MatchedMCFlavor() const { return fMatchedMCFlavor; }
34 loizides 1.3 EObjType ObjType() const { return kGenJet; }
35 sixie 1.1 void SetHadEnergy(Double_t val) { fHadEnergy = val; }
36     void SetEmEnergy(Double_t val) { fEmEnergy = val; }
37     void SetInvisibleEnergy(Double_t val) { fInvisibleEnergy = val; }
38     void SetAuxiliaryEnergy(Double_t val) { fAuxiliaryEnergy = val; }
39     void SetMatchedMCFlavor(Int_t flavor) { fMatchedMCFlavor = flavor; }
40    
41     protected:
42 loizides 1.4 void GetMom() const;
43    
44 loizides 1.5 FourVectorM32 fMom; //four momentum of jet
45     Double32_t fHadEnergy; //hadronic energy
46     Double32_t fEmEnergy; //electromagnetic
47     Double32_t fInvisibleEnergy; //invisible energy (mu, nu)
48     Double32_t fAuxiliaryEnergy; //anything else (eg. undecayed sigmas)
49     Int_t fMatchedMCFlavor; //pdg of the quark flavor that the jet matched to
50 sixie 1.1
51 loizides 1.3 ClassDef(GenJet, 1) // Jet class at generation level
52 sixie 1.1 };
53     }
54 loizides 1.4
55     //--------------------------------------------------------------------------------------------------
56     inline void mithep::GenJet::GetMom() const
57     {
58     // Get momentum values from stored values.
59    
60     fCachedMom.SetCoordinates(fMom.Pt(),fMom.Eta(),fMom.Phi(),fMom.M());
61     }
62 sixie 1.1 #endif