ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/GenJet.h
Revision: 1.6
Committed: Wed Mar 18 15:44:32 2009 UTC (16 years, 1 month ago) by loizides
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, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008, HEAD
Branch point for: Mit_025c_branch
Changes since 1.5: +8 -7 lines
Log Message:
Introduced Double32_t [0,0,14] consistently. Updated class descriptions.

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.6 // $Id: GenJet.h,v 1.5 2009/03/03 17:04:09 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 loizides 1.6 #include "MitCommon/DataFormats/interface/Vect4M.h"
15 sixie 1.1 #include "MitAna/DataTree/interface/Particle.h"
16    
17     namespace mithep
18     {
19     class GenJet : public Particle
20     {
21     public:
22 loizides 1.2 GenJet() : fHadEnergy(0), fEmEnergy(0), fInvisibleEnergy(0),
23     fAuxiliaryEnergy(0), fMatchedMCFlavor(0) {}
24     GenJet(Double_t px, Double_t py, Double_t pz, Double_t e) :
25 loizides 1.5 fMom(FourVector(px,py,pz,e)),
26     fHadEnergy(0), fEmEnergy(0), fInvisibleEnergy(0),
27 loizides 1.2 fAuxiliaryEnergy(0), fMatchedMCFlavor(0) {}
28 sixie 1.1
29 loizides 1.3 Double_t AuxiliaryEnergy() const { return fAuxiliaryEnergy; }
30 sixie 1.1 Double_t Charge() const { return 0; }
31 loizides 1.3 Double_t EmEnergy() const { return fEmEnergy; }
32 sixie 1.1 Double_t HadEnergy() const { return fHadEnergy; }
33     Double_t InvisibleEnergy() const { return fInvisibleEnergy; }
34     Int_t MatchedMCFlavor() const { return fMatchedMCFlavor; }
35 loizides 1.3 EObjType ObjType() const { return kGenJet; }
36 sixie 1.1 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 loizides 1.4 void GetMom() const;
44    
45 loizides 1.6 Vect4M fMom; //four momentum of jet
46     Double32_t fHadEnergy; //[0,0,14]hadronic energy
47     Double32_t fEmEnergy; //[0,0,14]electromagnetic
48     Double32_t fInvisibleEnergy; //[0,0,14]invisible energy (mu, nu)
49     Double32_t fAuxiliaryEnergy; //[0,0,14]anything else (eg. undecayed sigmas)
50     Int_t fMatchedMCFlavor; //pdg of the matched quark flavor
51 sixie 1.1
52 loizides 1.3 ClassDef(GenJet, 1) // Jet class at generation level
53 sixie 1.1 };
54     }
55 loizides 1.4
56     //--------------------------------------------------------------------------------------------------
57     inline void mithep::GenJet::GetMom() const
58     {
59     // Get momentum values from stored values.
60    
61     fCachedMom.SetCoordinates(fMom.Pt(),fMom.Eta(),fMom.Phi(),fMom.M());
62     }
63 sixie 1.1 #endif