ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/JPTJet.h
Revision: 1.2
Committed: Wed Mar 28 12:15:34 2012 UTC (13 years, 1 month ago) by paus
Content type: text/plain
Branch: MAIN
Changes since 1.1: +13 -1 lines
Log Message:
Enable skimming.

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 paus 1.2 // $Id: JPTJet.h,v 1.1 2010/05/04 11:56:05 bendavid Exp $
3 bendavid 1.1 //
4     // JPTJet
5     //
6     // This class holds information about reconstructed jet based on jpt corrections.
7     //
8     // Authors: J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_DATATREE_JPTJET_H
12     #define MITANA_DATATREE_JPTJET_H
13    
14     #include "MitAna/DataTree/interface/Jet.h"
15     #include "MitAna/DataCont/interface/Ref.h"
16    
17     namespace mithep
18     {
19     class JPTJet : public Jet
20     {
21     public:
22     JPTJet() : fZSPCor(0), fChargedHadronEnergy(0), fNeutralHadronEnergy(0),
23     fChargedEmEnergy(0), fNeutralEmEnergy(0), fResponseOfChargedWithEff(0),
24     fResponseOfChargedWithoutEff(0), fSumPtOfChargedWithEff(0),
25     fSumPtOfChargedWithoutEff(0), fSumEnergyOfChargedWithEff(0),
26     fSumEnergyOfChargedWithoutEff(0), fR2momtr(0), fEta2momtr(0),
27     fPhi2momtr(0), fPout(0), fZch(0), fChargedMultiplicity(0), fMuonMultiplicity(0),
28     fElectronMultiplicity(0) {}
29     JPTJet(Double_t px, Double_t py, Double_t pz, Double_t e) :
30     Jet(px,py,pz,e),
31     fZSPCor(0), fChargedHadronEnergy(0), fNeutralHadronEnergy(0),
32     fChargedEmEnergy(0), fNeutralEmEnergy(0), fResponseOfChargedWithEff(0),
33     fResponseOfChargedWithoutEff(0), fSumPtOfChargedWithEff(0),
34     fSumPtOfChargedWithoutEff(0), fSumEnergyOfChargedWithEff(0),
35     fSumEnergyOfChargedWithoutEff(0), fR2momtr(0), fEta2momtr(0),
36     fPhi2momtr(0), fPout(0), fZch(0), fChargedMultiplicity(0), fMuonMultiplicity(0),
37     fElectronMultiplicity(0) {}
38    
39     Double_t ZSPCor() const { return fZSPCor; }
40     Double_t ChargedHadronEnergy() const { return fChargedHadronEnergy; }
41     Double_t NeutralHadronEnergy() const { return fNeutralHadronEnergy; }
42     Double_t ChargedEmEnergy() const { return fChargedEmEnergy; }
43     Double_t NeutralEmEnergy() const { return fNeutralEmEnergy; }
44     Double_t ResponseOfChargedWithEff() const { return fResponseOfChargedWithEff; }
45     Double_t ResponseOfChargedWithoutEff() const { return fResponseOfChargedWithoutEff; }
46     Double_t SumPtOfChargedWithEff() const { return fSumPtOfChargedWithEff; }
47     Double_t SumPtOfChargedWithoutEff() const { return fSumPtOfChargedWithoutEff; }
48     Double_t SumEnergyOfChargedWithEff() const { return fSumEnergyOfChargedWithEff; }
49     Double_t SumEnergyOfChargedWithoutEff() const { return fSumEnergyOfChargedWithoutEff; }
50     Double_t R2momtr() const { return fR2momtr; }
51     Double_t Eta2momtr() const { return fEta2momtr; }
52     Double_t Phi2momtr() const { return fPhi2momtr; }
53     Double_t Pout() const { return fPout; }
54     Double_t Zch() const { return fZch; }
55     UInt_t ChargedMultiplicity() const { return fChargedMultiplicity; }
56     UInt_t MuonMultiplicity() const { return fMuonMultiplicity; }
57     UInt_t ElectronMultiplicity() const { return fElectronMultiplicity; }
58     Jet *MakeCopy() const { return new JPTJet(*this); }
59     EObjType ObjType() const { return kJPTJet; }
60     const Jet *OriginalJet() const { return fOriginalJet.Obj(); }
61     void SetZSPCor(Double_t x) { fZSPCor = x; }
62     void SetChargedHadronEnergy(Double_t x) { fChargedHadronEnergy = x; }
63     void SetNeutralHadronEnergy(Double_t x) { fNeutralHadronEnergy = x; }
64     void SetChargedEmEnergy(Double_t x) { fChargedEmEnergy = x; }
65     void SetNeutralEmEnergy(Double_t x) { fNeutralEmEnergy = x; }
66     void SetResponseOfChargedWithEff(Double_t x) { fResponseOfChargedWithEff = x; }
67     void SetResponseOfChargedWithoutEff(Double_t x) { fResponseOfChargedWithoutEff = x; }
68     void SetSumPtOfChargedWithEff(Double_t x) { fSumPtOfChargedWithEff = x; }
69     void SetSumPtOfChargedWithoutEff(Double_t x) { fSumPtOfChargedWithoutEff = x; }
70     void SetSumEnergyOfChargedWithEff(Double_t x) { fSumEnergyOfChargedWithEff = x; }
71     void SetSumEnergyOfChargedWithoutEff(Double_t x) { fSumEnergyOfChargedWithoutEff = x; }
72     void SetR2momtr(Double_t x) { fR2momtr = x; }
73     void SetEta2momtr(Double_t x) { fEta2momtr = x; }
74     void SetPhi2momtr(Double_t x) { fPhi2momtr = x; }
75     void SetPout(Double_t x) { fPout = x; }
76     void SetZch(Double_t x) { fZch = x; }
77     void SetChargedMultiplicity(UInt_t n) { fChargedMultiplicity = n; }
78     void SetMuonMultiplicity(UInt_t n) { fMuonMultiplicity = n; }
79     void SetElectronMultiplicity(UInt_t n) { fElectronMultiplicity = n; }
80     void SetOriginalJet(const Jet *j) { fOriginalJet = j; }
81    
82 paus 1.2 // Some structural tools
83     void Mark() const;
84    
85 bendavid 1.1 protected:
86     Double32_t fZSPCor; //[0,0,14]ZSP correction
87     Double32_t fChargedHadronEnergy; //[0,0,14]charged hadron energy
88     Double32_t fNeutralHadronEnergy; //[0,0,14]neutral hadron energy
89     Double32_t fChargedEmEnergy; //[0,0,14]charged em energy
90     Double32_t fNeutralEmEnergy; //[0,0,14]neutral em energy
91     Double32_t fResponseOfChargedWithEff; //[0,0,14]
92     Double32_t fResponseOfChargedWithoutEff; //[0,0,14]
93     Double32_t fSumPtOfChargedWithEff; //[0,0,14]
94     Double32_t fSumPtOfChargedWithoutEff; //[0,0,14]
95     Double32_t fSumEnergyOfChargedWithEff; //[0,0,14]
96     Double32_t fSumEnergyOfChargedWithoutEff; //[0,0,14]
97     Double32_t fR2momtr; //[0,0,14]
98     Double32_t fEta2momtr; //[0,0,14]
99     Double32_t fPhi2momtr; //[0,0,14]
100     Double32_t fPout; //[0,0,14]
101     Double32_t fZch; //[0,0,14]
102     UInt_t fChargedMultiplicity; //number of charged constituents
103     UInt_t fMuonMultiplicity; //number of muon constituents
104     UInt_t fElectronMultiplicity; //number of muon constituents
105     Ref<Jet> fOriginalJet; //reference to original CaloJet
106    
107     ClassDef(JPTJet, 1) // JPTJet class
108     };
109     }
110 paus 1.2
111     //--------------------------------------------------------------------------------------------------
112     inline void mithep::JPTJet::Mark() const
113     {
114     // mark myself
115     mithep::DataObject::Mark();
116     // mark my dependencies if they are there
117     OriginalJet()->Mark();
118     }
119 bendavid 1.1 #endif