12 std::vector<reco::GsfElectronRef> ChosenOnes;
19 for (std::vector<reco::GsfElectronRef>::const_iterator Relec =
electrons.begin(); Relec !=
electrons.end(); ++Relec) {
21 edm::LogDebug_(
"electronSelector",
"", 17) <<
"Analysing elec, id = " << elec.
id() <<
"\tkey = " << elec.
key();
22 double scEta = elec->superCluster()->eta();
23 if (fabs(scEta) < 1.4442 || fabs(scEta) > 1.56) {
24 bool HLTMatch =
false;
25 for (
unsigned int k = 0;
k <
ring.size(); ++
k) {
30 edm::LogDebug_(
"electronSelector",
"", 16) <<
"HLT Match = " << HLTMatch;
31 std::cout <<
"HLT Match = " << HLTMatch << std::endl;
34 if (fabs(scEta) < 1.479) {
35 float sIhIh = elec->scSigmaIEtaIEta();
36 edm::LogDebug_(
"electronSelector",
"", 32) <<
"SigIetaIeta = " << sIhIh <<
"\tCut Value = " << Cuts[1];
37 if (sIhIh < Cuts[1]) {
39 <<
"dEta = " << elec->deltaEtaSuperClusterTrackAtVtx() <<
"\tCut Value = " << Cuts[2];
40 if (fabs(elec->deltaEtaSuperClusterTrackAtVtx()) < Cuts[2]) {
42 <<
"dPhi = " << elec->deltaPhiSuperClusterTrackAtVtx() <<
"\tCut Value = " << Cuts[3];
43 if (fabs(elec->deltaPhiSuperClusterTrackAtVtx()) < Cuts[3]) {
44 float trckiso = elec->isolationVariables03().tkSumPt;
45 edm::LogDebug_(
"",
"", 29) <<
"Track isolation = " << trckiso <<
"\tCut Value = " << Cuts[4];
46 if (trckiso < Cuts[4]) {
47 float ecaliso = elec->isolationVariables04().ecalRecHitSumEt;
48 edm::LogDebug_(
"",
"", 29) <<
"ECAL isolation = " << ecaliso <<
"\tCut Value = " << Cuts[5];
49 if (ecaliso < Cuts[5]) {
50 float hcaliso = elec->isolationVariables04().hcalDepth1TowerSumEt +
51 elec->isolationVariables04().hcalDepth2TowerSumEt;
52 edm::LogDebug_(
"",
"", 29) <<
"HCAL isolation = " << hcaliso <<
"\tCut Value = " << Cuts[6];
53 if (hcaliso < Cuts[6])
54 ChosenOnes.push_back(elec);
61 float sIhIh = elec->scSigmaIEtaIEta();
62 edm::LogDebug_(
"electronSelector",
"", 32) <<
"SigIetaIeta = " << sIhIh <<
"\tCut Value = " << Cuts[7];
63 if (sIhIh < Cuts[7]) {
65 <<
"dEta = " << elec->deltaEtaSuperClusterTrackAtVtx() <<
"\tCut Value = " << Cuts[8];
66 if (fabs(elec->deltaEtaSuperClusterTrackAtVtx()) < Cuts[8]) {
68 <<
"dPhi = " << elec->deltaPhiSuperClusterTrackAtVtx() <<
"\tCut Value = " << Cuts[9];
69 if (fabs(elec->deltaPhiSuperClusterTrackAtVtx()) < Cuts[9]) {
70 float trckiso = elec->isolationVariables03().tkSumPt;
71 edm::LogDebug_(
"",
"", 29) <<
"Track isolation = " << trckiso <<
"\tCut Value = " << Cuts[10];
72 if (trckiso < Cuts[10]) {
73 float ecaliso = elec->isolationVariables04().ecalRecHitSumEt;
74 edm::LogDebug_(
"",
"", 29) <<
"ECAL isolation = " << ecaliso <<
"\tCut Value = " << Cuts[11];
75 if (ecaliso < Cuts[11]) {
76 float hcaliso = elec->isolationVariables04().hcalDepth1TowerSumEt +
77 elec->isolationVariables04().hcalDepth2TowerSumEt;
78 edm::LogDebug_(
"",
"", 29) <<
"HCAL isolation = " << hcaliso <<
"\tCut Value = " << Cuts[12];
79 if (hcaliso < Cuts[12])
80 ChosenOnes.push_back(elec);