forked from RemKamal/ElectronID
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Variables.hh
40 lines (32 loc) · 1.42 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
#ifndef CUTVARIABLES_H
#define CUTVARIABLES_H
#include "TString.h"
namespace Vars {
const int nVariables = 9;
const int nSpectatorVariables = 2;
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("dEtaIn" ,"abs(dEtaIn)" ,'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),
new Variables("d0" ,"abs(d0)" ,'F',true),
new Variables("dz" ,"abs(dz)" ,'F',true),
new Variables("expectedMissingInnerHits","expectedMissingInnerHits",'I',false)
};
Variables *spectatorVariables [nSpectatorVariables] = {
new Variables("pt" , "pt" , 'F', false),
new Variables("etaSC", "etaSC", 'F', false)
};
};
#endif