-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLeptonTree.h
More file actions
87 lines (73 loc) · 1.58 KB
/
LeptonTree.h
File metadata and controls
87 lines (73 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef LEPTONTREE_H
#define LEPTONTREE_H
#include <string>
#include <vector>
#include "Math/LorentzVector.h"
// forward declaration
class TTree;
// typedefs
typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float> > LorentzVector;
typedef std::vector<int> veci;
enum prodType {fromB, fromC, fromLight, fromZ, fromW, none};
class LeptonTree
{
public:
LeptonTree ();
LeptonTree (const std::string &prefix);
virtual ~LeptonTree () {}
void Reset ();
void SetBranches (TTree* tree);
void SetAliases (TTree* tree) const;
void FillCommon (int id, int idx);
protected:
std::string prefix_;
public:
// lepton reco info
LorentzVector p4;
LorentzVector pfp4;
float pt;
float eta;
bool is_mu;
bool is_el;
int is_fromw;
int charge;
int pdgid;
int type;
float d0;
float d0err;
float dz;
float dzerr;
float pfiso04; //2012 only available for electrons
float pfiso03; //2012 only available for electrons
float relIso03DB; //ss
float relIso03EA;
float relIso04DB;
float ip3d;
float ip3derr;
bool is_pfmu;
//
// lepton gen info
//
LorentzVector mcp4;
int mcid;
int mcstatus;
int mcidx;
int mc_motherid;
int mc_motheridx;
//
// electron specific info
//
bool is_eleid_loose;
bool is_eleid_medium;
bool is_eleid_tight;
float eoverpin;
// veci els_pfcands_idx;
//
// muon specific info
//
bool is_muoid_loose;
bool is_muoid_tight;
// int mus_pfcands_idx;
veci production_type;
};
#endif