ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/PollackPrograms/src/TCJet.h
(Generate patch)

Comparing UserCode/PollackPrograms/src/TCJet.h (file contents):
Revision 1.1 by bpollack, Tue Jul 24 20:24:56 2012 UTC vs.
Revision 1.2 by bpollack, Wed Feb 20 21:39:43 2013 UTC

# Line 11 | Line 11
11   #include "TObject.h"
12   #include "TLorentzVector.h"
13   #include "TVector2.h"
14 + #include "TCPhysObject.h"
15  
16 < class TCJet : public TLorentzVector {
17 < private:
18 <    TVector3 _vtx;    
19 <    //    TVector3 _assocPV;
20 <    float _vtxSumPtFrac;
21 <    float _vtxSumPt;
22 <    float _vtxTrackFrac;
23 <    float _vtxNTracks;
24 <    unsigned int _vtxSumPtIndex;
25 <    unsigned int _vtxCountIndex;
26 <
27 <        float _jesUncertainty;
28 <
29 <    float _chHadFrac;
30 <    float _neuHadFrac;
31 <    float _chEmFrac;
32 <    float _neuEmFrac;
33 <
34 <    unsigned int _numConstit;
35 <    unsigned int _numChPart;
36 <
37 <    // b tagging discriminators
38 <    float _bDiscrTCHP;
39 <    float _bDiscrTCHE;
40 <    float _bDiscrSSVHE;
41 <    float _bDiscrSSVHP;
42 <    float _bDiscrJP;
43 <    float _bDiscrJBP;
44 <    float _bDiscrCSV;
45 <    int   _jetFlavor;
46 <
47 < public:
48 <    TCJet();
49 <    virtual ~TCJet();
50 <
51 <    // "get" methods -----------
52 <
53 <    TVector2 P2() const;
54 <
55 <    float ChHadFrac() const;
56 <    float NeuHadFrac() const;
57 <    float ChEmFrac() const;
58 <    float NeuEmFrac() const;
59 <
60 <    unsigned int NumConstit() const;
61 <    unsigned int NumChPart() const;
62 <
63 <    TVector3 Vtx() const;
64 <    float VtxSumPtFrac() const;
65 <    float VtxSumPt() const;
66 <    float VtxTrackFrac() const;
67 <    int   VtxNTracks() const;
68 <    unsigned int VtxSumPtIndex() const;
69 <    unsigned int VtxCountIndex() const;
70 <    //    TVector3 AssocVtx() const;
71 <        float UncertaintyJES() const;
72 <
73 <    // b tagging discriminators
74 <    float BDiscrTCHP() const;
75 <    float BDiscrTCHE() const;
76 <    float BDiscrSSVHE() const;
77 <    float BDiscrSSVHP() const;
78 <    float BDiscrJP() const;
79 <    float BDiscrJBP() const;
80 <    float BDiscrCSV() const;
81 <    int   JetFlavor() const;
82 <
83 <    // "set" methods ---------
84 <    void SetVtx(float vx, float vy, float vz);    
85 <    void SetVtxSumPtFrac(float f);
86 <    void SetVtxSumPt(float p);
87 <    void SetVtxTrackFrac(float f);
87 <    void SetVtxNTracks(int n);
88 <    void SetVtxSumPtIndex(unsigned int i);
89 <    void SetVtxCountIndex(unsigned int i);
90 <
91 <    void SetChHadFrac(float c);
92 <    void SetNeuHadFrac(float n);
93 <    void SetChEmFrac(float c);
94 <    void SetNeuEmFrac(float n);
95 <    void SetNumConstit(unsigned int n);
96 <    void SetNumChPart(unsigned int n);
97 <        void SetUncertaintyJES(float u);
98 <
99 <    // b tagging discriminators
100 <    // see the corresponding class members for description
101 <    void SetBDiscrTCHE(float d);
102 <    void SetBDiscrTCHP(float d);
103 <    void SetBDiscrSSVHE(float d);
104 <    void SetBDiscrSSVHP(float d);
105 <    void SetBDiscrJP(float d);
106 <    void SetBDiscrJBP(float d);
107 <    void SetBDiscrCSV(float d);
16 > class TCJet : public TCPhysObject {
17 >    private:
18 >        float _vtxSumPtFrac;
19 >        float _vtxSumPt;
20 >        float _vtxTrackFrac;
21 >        float _vtxNTracks;
22 >        unsigned int _vtxSumPtIndex;
23 >        unsigned int _vtxCountIndex;
24 >
25 >        float _jesUncertainty;
26 >
27 >        float _chHadFrac;
28 >        float _neuHadFrac;
29 >        float _chEmFrac;
30 >        float _neuEmFrac;
31 >
32 >        unsigned int _numConstit;
33 >        unsigned int _numChPart;
34 >
35 >        // b tagging discriminators
36 >        map<string, float> _bDiscrMap;
37 >
38 >        // Jet flavor
39 >        int   _jetFlavor;
40 >
41 >    public:
42 >        TCJet();
43 >        virtual ~TCJet();
44 >
45 >
46 >        float ChHadFrac() const;
47 >        float NeuHadFrac() const;
48 >        float ChEmFrac() const;
49 >        float NeuEmFrac() const;
50 >
51 >        unsigned int NumConstit() const;
52 >        unsigned int NumChPart() const;
53 >
54 >        float VtxSumPtFrac() const;
55 >        float VtxSumPt() const;
56 >        float VtxTrackFrac() const;
57 >        int   VtxNTracks() const;
58 >        unsigned int VtxSumPtIndex() const;
59 >        unsigned int VtxCountIndex() const;
60 >
61 >        float UncertaintyJES() const;
62 >
63 >        // b tagging discriminators
64 >        float BDiscriminatorMap(string key);
65 >
66 >        // Jet flavor
67 >        int   JetFlavor() const;
68 >
69 >        // "set" methods ---------
70 >        void SetVtxSumPtFrac(float f);
71 >        void SetVtxSumPt(float p);
72 >        void SetVtxTrackFrac(float f);
73 >        void SetVtxNTracks(int n);
74 >        void SetVtxSumPtIndex(unsigned int i);
75 >        void SetVtxCountIndex(unsigned int i);
76 >
77 >        void SetChHadFrac(float c);
78 >        void SetNeuHadFrac(float n);
79 >        void SetChEmFrac(float c);
80 >        void SetNeuEmFrac(float n);
81 >        void SetNumConstit(unsigned int n);
82 >        void SetNumChPart(unsigned int n);
83 >        void SetUncertaintyJES(float u);
84 >
85 >        // b tagging discriminators
86 >        // see the corresponding class members for description
87 >        void SetBDiscriminatorMap(string key, float val);
88  
89 <    void SetJetFlavor(float f);
89 >        // Jet flavor
90 >        void SetJetFlavor(float f);
91  
92 <    ClassDef(TCJet, 1);
92 >        ClassDef(TCJet, 1);
93  
94   };
95  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines