ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/devildog/SWonAnalysis3/Thesis/src/TCElectron.h
Revision: 1.2
Committed: Thu Apr 7 21:48:50 2011 UTC (14 years ago) by devildog
Content type: text/plain
Branch: MAIN
Changes since 1.1: +8 -1 lines
Log Message:
Moved pointer in TCTrig, added dxy and dz to TCElectron

File Contents

# User Rev Content
1 devildog 1.1 /*
2     * File: TCElectron.h
3     * Author: S. Won
4     */
5    
6     #ifndef _TCELECTRON_H
7     #define _TCELECTRON_H
8    
9     #include "TObject.h"
10     #include "TLorentzVector.h"
11     #include "TVector2.h"
12     #include "TVector3.h"
13    
14     class TCElectron : public TObject {
15     private:
16     TVector3 _position;
17     TLorentzVector _p4;
18     int charge;
19     float sumPt03;
20     float emEt03;
21     float hadEt03;
22     int Cut95;
23     int Cut90;
24     int Cut85;
25     int Cut80;
26     int Cut70;
27     int Cut60;
28     int numberOfValidPixelHits_;
29     int numberOfValidTrackerHits_;
30     int numberOfMissingPixelHits_;
31     int numberOfMissingTrackerHits_;
32    
33     float PFiso_Pt03;
34     float PFiso_Neutral03;
35     float PFiso_Gamma03;
36     float PFiso_Pt04;
37     float PFiso_Neutral04;
38     float PFiso_Gamma04;
39     float PFiso_Pt05;
40     float PFiso_Neutral05;
41     float PFiso_Gamma05;
42    
43     bool isEB_ ; // true if particle is in ECAL Barrel
44     bool isEE_ ; // true if particle is in ECAL Endcaps
45     bool isInGap_ ;
46    
47 devildog 1.2 float dxy_;
48     float dz_;
49 devildog 1.1 public:
50     TCElectron();
51     TCElectron(const TCElectron& orig);
52     virtual ~TCElectron();
53    
54     TVector3 Position() const;
55     TLorentzVector P4() const;
56     TVector2 P2() const;
57    
58     float Et() const;
59     float Pt() const;
60     float Phi() const;
61     int Charge() const;
62     bool isEB() const;
63     bool isEE() const;
64     bool isInGap() const;
65    
66     float SumPt03() const;
67     float EmEt03() const;
68     float HadEt03() const;
69     float PFRelIso(float coneSize) const;
70     float PFSumPt(float coneSize) const; //cone size?
71     float PFEGamma(float coneSize) const;
72     float PFENeutral(float coneSize) const;
73     bool passID(int lvl) const;
74     bool passConversion(int lvl) const;
75     bool passIsolation(int lvl) const;
76     int numberOfValidPixelHits() const;
77     int numberOfValidTrackerHits() const;
78     int numberOfMissingPixelHits() const;
79     int numberOfMissingTrackerHits() const;
80     // "set" methods ---------
81     void SetPosition(float x, float y, float z);
82     void SetP4(TLorentzVector p4);
83     void SetP4(float px, float py, float pz, float e);
84     void SetsumPt03(float s);
85     void SetemEt03(float s);
86     void SethadEt03(float s);
87     void SetCutLevel(int cut, int lvl);
88     void SetnumberOfValidPixelHits(int n);
89     void SetnumberOfValidTrackerHits(int n);
90     void SetnumberOfMissingPixelHits(int n);
91     void SetnumberOfMissingTrackerHits(int n);
92     void SetPFSumPt(float coneSize, float f); //cone size?
93     void SetPFEGamma(float coneSize, float f);
94     void SetPFENeutral(float coneSize, float f);
95     void SetCharge(int c);
96     void SetisEB(bool b);
97     void SetisEE(bool b);
98     void SetisInGap(bool b);
99     int CutLevel(int lvl) const;
100 devildog 1.2 void SetDxy(float n);
101     void SetDz(float n);
102 devildog 1.1
103 devildog 1.2 float dxy() const;
104     float dz() const;
105    
106     ClassDef(TCElectron, 3);
107 devildog 1.1
108     };
109    
110     #endif /* _TCJET_H */