ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/PollackPrograms/src/TCElectron.h
Revision: 1.2
Committed: Wed Feb 20 21:39:43 2013 UTC (12 years, 2 months ago) by bpollack
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +87 -50 lines
Error occurred while calculating annotation data.
Log Message:
commiting moriond analysis package

File Contents

# Content
1 #ifndef _TCELECTRON_H
2 #define _TCELECTRON_H
3
4 #include "TObject.h"
5 #include "TLorentzVector.h"
6 #include "TCPhysObject.h"
7
8 class TCElectron : public TCPhysObject {
9 private:
10
11 float _ptError;
12 float _hadOverEm;
13 float _dPhiSuperCluster;
14 float _dEtaSuperCluster;
15 float _sigmaIetaIeta;
16 float _eOverP;
17 float _fBrem;
18 float _r9;
19
20 float _scEta;
21
22 bool _convVeto;
23 short _convMissHits;
24
25 bool _isEB; // true if particle is in ECAL Barrel
26 bool _isEE; // true if particle is in ECAL Endcaps
27 bool _isInGap;
28
29 float _normalizedChi2;
30 int _numberOfValidPixelHits;
31 int _numberOfValidTrackerHits;
32 int _numberOfLostPixelHits;
33 int _numberOfLostTrackerHits;
34
35 int _cut95;
36 int _cut90;
37 int _cut85;
38 int _cut80;
39 int _cut70;
40 int _cut60;
41
42 TLorentzVector _regressionMomCombP4;
43
44
45 public:
46 TCElectron();
47 virtual ~TCElectron();
48
49 // "get" methods -----------
50
51 float PtError() const;
52
53 float HadOverEm() const;
54 float DphiSuperCluster() const;
55 float DetaSuperCluster() const;
56 float SigmaIEtaIEta() const;
57 float FBrem() const;
58 float EOverP() const;
59 float NormalizedChi2() const;
60
61 float SCEta() const;
62 float R9() const;
63
64 bool ConversionVeto() const;
65 short ConversionMissHits() const;
66
67 bool IsEB() const;
68 bool IsEE() const;
69 bool IsInGap() const;
70
71 int NumberOfValidPixelHits() const;
72 int NumberOfValidTrackerHits() const;
73 int NumberOfLostPixelHits() const;
74 int NumberOfLostTrackerHits() const;
75
76 int CutLevel(int lvl) const;
77 bool PassID(int lvl) const;
78 bool PassConversion(int lvl) const;
79 bool PassIsolation(int lvl) const;
80
81 TLorentzVector RegressionMomCombP4() const;
82
83 //--------------------------
84 // "set" methods ---------
85 //--------------------------
86
87 void SetPtError(float e);
88 void SetHadOverEm(float h);
89 void SetDphiSuperCluster(float dp);
90 void SetDetaSuperCluster(float de);
91 void SetSigmaIEtaIEta(float sieie);
92 void SetEOverP(float e);
93 void SetFBrem(float fb);
94
95 void SetSCEta(float);
96
97 void SetConversionVeto(bool);
98 void SetConversionMissHits(short);
99
100 void SetNumberOfValidPixelHits(int n);
101 void SetNumberOfValidTrackerHits(int n);
102 void SetNumberOfLostPixelHits(int n);
103 void SetNumberOfLostTrackerHits(int n);
104 void SetNormalizedChi2(float n);
105 void SetR9(float r);
106
107 void SetIsEB(bool b);
108 void SetIsEE(bool b);
109 void SetIsInGap(bool b);
110
111 void SetCutLevel(int cut, int lvl);
112
113 void SetRegressionMomCombP4(TLorentzVector tmpP4);
114
115 ClassDef(TCElectron, 1);
116 };
117
118 #endif /* _TCELECTRON_H */
119
120