ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/devildog/SWonAnalysis3/Thesis/src/TCElectron.h
Revision: 1.3
Committed: Wed Jun 15 22:12:53 2011 UTC (13 years, 10 months ago) by devildog
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -1 lines
Log Message:
Removed custom copy constructor

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     virtual ~TCElectron();
52    
53     TVector3 Position() const;
54     TLorentzVector P4() const;
55     TVector2 P2() const;
56    
57     float Et() const;
58     float Pt() const;
59     float Phi() const;
60     int Charge() const;
61     bool isEB() const;
62     bool isEE() const;
63     bool isInGap() const;
64    
65     float SumPt03() const;
66     float EmEt03() const;
67     float HadEt03() const;
68     float PFRelIso(float coneSize) const;
69     float PFSumPt(float coneSize) const; //cone size?
70     float PFEGamma(float coneSize) const;
71     float PFENeutral(float coneSize) const;
72     bool passID(int lvl) const;
73     bool passConversion(int lvl) const;
74     bool passIsolation(int lvl) const;
75     int numberOfValidPixelHits() const;
76     int numberOfValidTrackerHits() const;
77     int numberOfMissingPixelHits() const;
78     int numberOfMissingTrackerHits() const;
79     // "set" methods ---------
80     void SetPosition(float x, float y, float z);
81     void SetP4(TLorentzVector p4);
82     void SetP4(float px, float py, float pz, float e);
83     void SetsumPt03(float s);
84     void SetemEt03(float s);
85     void SethadEt03(float s);
86     void SetCutLevel(int cut, int lvl);
87     void SetnumberOfValidPixelHits(int n);
88     void SetnumberOfValidTrackerHits(int n);
89     void SetnumberOfMissingPixelHits(int n);
90     void SetnumberOfMissingTrackerHits(int n);
91     void SetPFSumPt(float coneSize, float f); //cone size?
92     void SetPFEGamma(float coneSize, float f);
93     void SetPFENeutral(float coneSize, float f);
94     void SetCharge(int c);
95     void SetisEB(bool b);
96     void SetisEE(bool b);
97     void SetisInGap(bool b);
98     int CutLevel(int lvl) const;
99 devildog 1.2 void SetDxy(float n);
100     void SetDz(float n);
101 devildog 1.1
102 devildog 1.2 float dxy() const;
103     float dz() const;
104    
105     ClassDef(TCElectron, 3);
106 devildog 1.1
107     };
108    
109     #endif /* _TCJET_H */