ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/devildog/SWonAnalysis3/Thesis/src/TCJet.h
Revision: 1.1
Committed: Thu Apr 7 02:02:29 2011 UTC (14 years ago) by devildog
Content type: text/plain
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 devildog 1.1 /*
2     * File: TCJet.h
3     * Author: Anton A.
4     *
5     * Created on April 30, 2010, 2:49 PM
6     */
7    
8     #ifndef _TCJET_H
9     #define _TCJET_H
10    
11     #include "TObject.h"
12     #include "TLorentzVector.h"
13     #include "TVector2.h"
14    
15     class TCJet : public TObject {
16     private:
17     TLorentzVector _p4;
18     TVector3 _vtx;
19     // TVector3 _assocPV;
20     float _vtxSumPt;
21     unsigned int _vtxIndex;
22    
23     float _jetCorr[8];
24     bool _jetCorrIsSet[8];
25    
26     float _chHadFrac;
27     float _neuHadFrac;
28     float _chEmFrac;
29     float _neuEmFrac;
30    
31     unsigned int _numConstit;
32     unsigned int _numChPart;
33    
34     // b tagging discriminators
35     //Track counting tag with N = 3: trackCountingHighPurBJetTags
36     // float _bDiscrTrkCountHiPure;
37     //Track counting tag with N = 2: trackCountingHighEffBJetTags
38     float _bDiscrTrkCountHiEff;
39     //Simple secondary vertex b tag: simpleSecondaryVertexBJetTags
40     // float _bDiscrSecVtxSimple;
41     // //Combined SV b tag using likelihood ratios: combinedSVBJetTags
42     // float _bDiscrSecVtxL;
43     // //Combined SV b tag using MVA: combinedSVMVABJetTags
44     // float _bDiscrSecVtxMVA;
45    
46     public:
47     TCJet();
48     TCJet(const TCJet& orig);
49     virtual ~TCJet();
50    
51     // "get" methods -----------
52    
53     TLorentzVector P4() const;
54     TVector2 P2() const;
55     float Et() const;
56     float Pt() const;
57    
58     // accessors for corrected jets (the argument is the level of correction)
59     // Note: in this implementation all lower-level corrections will be
60     // applied as well. In the future, add overloaded methods for specifying individual
61     // corrections when/if needed
62     TLorentzVector P4(unsigned int lvl) const;
63     TVector2 P2(unsigned int lvl) const;
64     float Et(unsigned int lvl) const;
65     float Pt(unsigned int lvl) const;
66    
67     float TotalJetCorr(unsigned int lvl) const;
68    
69     float ChHadFrac() const;
70     float NeuHadFrac() const;
71     float ChEmFrac() const;
72     float NeuEmFrac() const;
73    
74     unsigned int NumConstit() const;
75     unsigned int NumChPart() const;
76    
77     TVector3 Vtx() const;
78     float VtxSumPt() const;
79     unsigned int VtxIndex() const;
80     // TVector3 AssocVtx() const;
81     bool JetCorrIsSet(unsigned int lvl) const;
82     float JetCorr(unsigned int lvl) const;
83    
84     // b tagging discriminators
85     // float BDiscrTrkCountHiPure() const;
86     float BDiscrTrkCountHiEff() const;
87     // float BDiscrSecVtxSimple() const;
88     // float BDiscrSecVtxL() const;
89     // float BDiscrSecVtxMVA() const;
90    
91     // "set" methods ---------
92     void SetP4(TLorentzVector p4);
93     void SetP4(float px, float py, float pz, float e);
94     void SetVtx(float vx, float vy, float vz);
95     void SetVtxSumPt(float vtxSumPt);
96     void SetVtxIndex(unsigned int vtxIndex);
97     // void SetAssocVtx(float vx, float vy, float vz);
98    
99     void SetChHadFrac(float c);
100     void SetNeuHadFrac(float n);
101     void SetChEmFrac(float c);
102     void SetNeuEmFrac(float n);
103     void SetNumConstit(unsigned int n);
104     void SetNumChPart(unsigned int n);
105     void SetJetCorr(unsigned int lvl, float corr);
106    
107     // b tagging discriminators
108     // see the corresponding class members for description
109     // void SetBDiscrTrkCountHiPure(float d);
110     void SetBDiscrTrkCountHiEff(float d);
111     // void SetBDiscrSecVtxSimple(float d);
112     // void SetBDiscrSecVtxL(float d);
113     // void SetBDiscrSecVtxMVA(float d);
114    
115    
116     ClassDef(TCJet, 2);
117    
118     };
119    
120     #endif /* _TCJET_H */