1 |
dgele |
1.1 |
#ifndef __TOP_TREE_ELECTRON_H__
|
2 |
|
|
#define __TOP_TREE_ELECTRON_H__
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
#include <map>
|
6 |
|
|
#include <vector>
|
7 |
|
|
#include <string>
|
8 |
|
|
|
9 |
|
|
#include "DataFormats/TrackReco/interface/Track.h"
|
10 |
|
|
#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
|
11 |
|
|
#include "DataFormats/HepMCCandidate/interface/GenParticle.h"
|
12 |
|
|
#include "Vec.h"
|
13 |
|
|
|
14 |
|
|
namespace TopTree
|
15 |
|
|
{
|
16 |
|
|
class Electron
|
17 |
|
|
{
|
18 |
|
|
public:
|
19 |
|
|
Electron();
|
20 |
|
|
~Electron();
|
21 |
|
|
|
22 |
|
|
void Reset();
|
23 |
|
|
|
24 |
|
|
int GetId() { return id; };
|
25 |
|
|
int GetIndex() { return index; };
|
26 |
|
|
int GetMask() { return idmask; };
|
27 |
|
|
std::string GetName() { return name; };
|
28 |
|
|
|
29 |
|
|
int id;
|
30 |
|
|
int index;
|
31 |
|
|
int idmask;
|
32 |
|
|
std::string name;
|
33 |
|
|
|
34 |
|
|
LorentzVector v4;
|
35 |
|
|
LorentzVector v4gen;
|
36 |
|
|
Point3 vertex; // vertex position
|
37 |
|
|
|
38 |
|
|
double P;
|
39 |
|
|
double Et;
|
40 |
|
|
double Charge;
|
41 |
|
|
|
42 |
|
|
// variables for lepton ID:
|
43 |
|
|
double caloEnergy;
|
44 |
|
|
double eSuperClusterOverP;
|
45 |
|
|
double deltaEtaSeedClusterTrackAtCalo;
|
46 |
|
|
double deltaPhiSeedClusterTrackAtCalo;
|
47 |
|
|
double hadronicOverEm;
|
48 |
|
|
int classification;
|
49 |
|
|
size_t NumberOfTracks;
|
50 |
|
|
int elecIdLoose;
|
51 |
|
|
int elecIdTight;
|
52 |
|
|
int elecIdRobustLoose;
|
53 |
|
|
int elecIdRobustTight;
|
54 |
|
|
|
55 |
|
|
// variables for lepton isolation:
|
56 |
|
|
double TrkPt;
|
57 |
|
|
double TrkZ0;
|
58 |
|
|
double TrkIso;
|
59 |
|
|
|
60 |
|
|
double HadEnergy;
|
61 |
|
|
double EmEnergy;
|
62 |
|
|
double CaloIso;
|
63 |
|
|
|
64 |
|
|
reco::GsfTrack TrackEl; // associated GsfTrack for electron
|
65 |
|
|
reco::Track BTrackEl; // associated basic reco track for electron
|
66 |
|
|
|
67 |
|
|
int ElectronOrigin;
|
68 |
|
|
reco::GenParticle ElGenMother;
|
69 |
|
|
reco::GenParticle ElGenGrandMother;
|
70 |
|
|
reco::GenParticle ElGenGGrandMother;
|
71 |
|
|
|
72 |
|
|
};
|
73 |
|
|
}
|
74 |
|
|
#endif
|