forked from ikrav/ElectronID
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Variables.hh
48 lines (38 loc) · 1.81 KB
/
Variables.hh
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
#ifndef CUTVARIABLES_H
#define CUTVARIABLES_H
#include "TString.h"
namespace Vars {
const int nVariables = 6;
const int nSpectatorVariables = 5;
const int nConstants = 3;
struct Variables{
TString name;
TString nameTmva; // for addition of abs
char type; // "F" for float, "I" for int
bool symmetric; // cuts symmetric or one-sided
// Constructor
Variables(TString nameIn, TString nameTmvaIn, char typeIn, bool symIn):
name(nameIn), nameTmva(nameTmvaIn), type(typeIn), symmetric(symIn){};
};
Variables *variables [nVariables] = {
new Variables("full5x5_sigmaIetaIeta","full5x5_sigmaIetaIeta",'F',false),
new Variables("dEtaSeed" ,"abs(dEtaSeed)" ,'F',true),
new Variables("dPhiIn" ,"abs(dPhiIn)" ,'F',true),
new Variables("hOverE" ,"hOverE" ,'F',false),
new Variables("relIsoWithEA" ,"relIsoWithEA" ,'F',false),
new Variables("ooEmooP" ,"ooEmooP" ,'F',false)
};
Variables *spectatorVariables [nSpectatorVariables] = {
new Variables("pt" ,"pt" ,'F',false),
new Variables("etaSC" ,"etaSC" ,'F',false),
new Variables("d0" ,"abs(d0)" ,'F',true),
new Variables("dz" ,"abs(dz)" ,'F',true),
new Variables("expectedMissingInnerHits","expectedMissingInnerHits",'I',false)
};
Variables *constants [nConstants] = {
new Variables("C_rho" ,"C_rho" ,'F',false),
new Variables("C_E" ,"C_E" ,'F',false),
new Variables("C_pt" ,"C_pt" ,'F',false),
};
};
#endif