1 |
bpollack |
1.1 |
#ifndef _TCELECTRON_H
|
2 |
|
|
#define _TCELECTRON_H
|
3 |
|
|
|
4 |
|
|
#include "TObject.h"
|
5 |
|
|
#include "TLorentzVector.h"
|
6 |
|
|
#include <map>
|
7 |
|
|
#include <utility>
|
8 |
|
|
#include <string>
|
9 |
|
|
|
10 |
|
|
using namespace std;
|
11 |
|
|
|
12 |
|
|
class TCElectron : public TLorentzVector {
|
13 |
|
|
private:
|
14 |
|
|
map<string, float> _ElectronTrueMap;
|
15 |
|
|
map<int,float> _ElectronIndexMap;
|
16 |
|
|
TVector3 _vtx;
|
17 |
|
|
int _charge;
|
18 |
|
|
|
19 |
|
|
float _ptError;
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
bool _isEB; // true if particle is in ECAL Barrel
|
23 |
|
|
bool _isEE; // true if particle is in ECAL Endcaps
|
24 |
|
|
bool _isInGap;
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
int _cut95;
|
28 |
|
|
int _cut90;
|
29 |
|
|
int _cut85;
|
30 |
|
|
int _cut80;
|
31 |
|
|
int _cut70;
|
32 |
|
|
int _cut60;
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
public:
|
36 |
|
|
TCElectron();
|
37 |
|
|
virtual ~TCElectron();
|
38 |
|
|
|
39 |
|
|
// "get" methods -----------
|
40 |
|
|
|
41 |
|
|
map<string, float> ElectronMap();
|
42 |
|
|
TVector2 P2() const;
|
43 |
|
|
float PtError() const;
|
44 |
|
|
TVector3 Vtx() const;
|
45 |
|
|
int Charge() const;
|
46 |
|
|
|
47 |
|
|
bool IsEB() const;
|
48 |
|
|
bool IsEE() const;
|
49 |
|
|
bool IsInGap() const;
|
50 |
|
|
|
51 |
|
|
int CutLevel(int lvl) const;
|
52 |
|
|
bool PassID(int lvl) const;
|
53 |
|
|
bool PassConversion(int lvl) const;
|
54 |
|
|
bool PassIsolation(int lvl) const;
|
55 |
|
|
|
56 |
|
|
float Dxy(TVector3 *primVtx) const;
|
57 |
|
|
float Dz(TVector3 *primVtx) const;
|
58 |
|
|
|
59 |
|
|
//--------------------------
|
60 |
|
|
// "set" methods ---------
|
61 |
|
|
//--------------------------
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
void SetMap(string s, float v, vector<string>* svec);
|
65 |
|
|
void LoadMap(vector<string> svec);
|
66 |
|
|
void SetVtx(float vx, float vy, float vz);
|
67 |
|
|
|
68 |
|
|
void SetCharge(int c);
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
void SetIsEB(bool b);
|
72 |
|
|
void SetIsEE(bool b);
|
73 |
|
|
void SetIsInGap(bool b);
|
74 |
|
|
|
75 |
|
|
void SetCutLevel(int cut, int lvl);
|
76 |
|
|
|
77 |
|
|
ClassDef(TCElectron, 1);
|
78 |
|
|
|
79 |
|
|
};
|
80 |
|
|
|
81 |
|
|
#endif /* _TCELECTRON_H */
|
82 |
|
|
|
83 |
|
|
|