Commit 3bb7c34f authored by Fabio Cardillo's avatar Fabio Cardillo
Browse files

Fixing protections for missing PLIV decorations

parent 96ebaa74
......@@ -306,7 +306,6 @@ namespace top {
static const SG::AuxElement::ConstAccessor<float> PLV_PtRel("PromptLeptonInput_PtRel");
static const SG::AuxElement::ConstAccessor<float> PLV_PtFrac("PromptLeptonInput_PtFrac");
static const SG::AuxElement::ConstAccessor<float> PLV_PromptLeptonVeto("PromptLeptonVeto");
static const SG::AuxElement::ConstAccessor<float> PromptLeptonImprovedVeto("PromptLeptonImprovedVeto");
static const SG::AuxElement::ConstAccessor<short> PromptLeptonImprovedInput_MVAXBin("PromptLeptonImprovedInput_MVAXBin");
static const SG::AuxElement::ConstAccessor<float> PromptLeptonImprovedVetoECAP("PromptLeptonImprovedVetoECAP");
static const SG::AuxElement::ConstAccessor<float> PromptLeptonImprovedVetoBARR("PromptLeptonImprovedVetoBARR");
......@@ -447,9 +446,8 @@ namespace top {
AnalysisTop_Isol_PLVTight(*electron) = 'n';
AnalysisTop_Isol_PLVLoose(*electron) = 'n';
}
if (ptvarcone30_TightTTVA_pt500.isAvailable(*electron) && PromptLeptonImprovedVeto.isAvailable(*electron) &&
PromptLeptonImprovedInput_MVAXBin.isAvailable(*electron) && PromptLeptonImprovedVetoECAP.isAvailable(*electron) &&
PromptLeptonImprovedVetoBARR.isAvailable(*electron)) {
if (ptvarcone30_TightTTVA_pt500.isAvailable(*electron) && PromptLeptonImprovedInput_MVAXBin.isAvailable(*electron)
&& PromptLeptonImprovedVetoECAP.isAvailable(*electron) && PromptLeptonImprovedVetoBARR.isAvailable(*electron)) {
AnalysisTop_Isol_PLImprovedTight(*electron) = (m_isolationTool_PLImprovedTight->accept(*electron) ? 1 : 0);
AnalysisTop_Isol_PLImprovedVeryTight(*electron) = (m_isolationTool_PLImprovedVeryTight->accept(*electron) ? 1 : 0);
} else {
......
......@@ -160,8 +160,6 @@ namespace top {
static const SG::AuxElement::ConstAccessor<float> PLV_PromptLeptonVeto("PromptLeptonVeto");
static const SG::AuxElement::ConstAccessor<float> PromptLeptonImprovedVeto("PromptLeptonImprovedVeto");
static const SG::AuxElement::ConstAccessor<short> PromptLeptonImprovedInput_MVAXBin("PromptLeptonImprovedInput_MVAXBin");
static const SG::AuxElement::ConstAccessor<float> PromptLeptonImprovedVetoECAP("PromptLeptonImprovedVetoECAP");
static const SG::AuxElement::ConstAccessor<float> PromptLeptonImprovedVetoBARR("PromptLeptonImprovedVetoBARR");
static const SG::AuxElement::Decorator<float> byhand_LowPtPLV("LowPtPLV");
static const SG::AuxElement::Decorator<int> AnalysisTop_IFFTruthClass("AnalysisTop_IFFTruthClass");
......@@ -320,8 +318,7 @@ namespace top {
passIsol_Loose_VarRad = m_isolationTool_Loose_VarRad->accept(*muon) ? 1 : 0;
}
if (ptvarcone30_TightTTVA_pt500.isAvailable(*muon) && PromptLeptonImprovedVeto.isAvailable(*muon) &&
PromptLeptonImprovedInput_MVAXBin.isAvailable(*muon) && PromptLeptonImprovedVetoECAP.isAvailable(*muon) &&
PromptLeptonImprovedVetoBARR.isAvailable(*muon)) {
PromptLeptonImprovedInput_MVAXBin.isAvailable(*muon)) {
passIsol_PLImprovedTight = m_isolationTool_PLImprovedTight->accept(*muon) ? 1 : 0;
passIsol_PLImprovedVeryTight = m_isolationTool_PLImprovedVeryTight->accept(*muon) ? 1 : 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment