diff --git a/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/ElectronPhotonSelectorTools/AsgElectronChargeIDSelectorTool.h b/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/ElectronPhotonSelectorTools/AsgElectronChargeIDSelectorTool.h index 94b8ab7f873800abb6837e64f6b3fbd481a78d4e..a1c925ae341c4596bb89ac4a7bf4ba064b63cd17 100644 --- a/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/ElectronPhotonSelectorTools/AsgElectronChargeIDSelectorTool.h +++ b/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/ElectronPhotonSelectorTools/AsgElectronChargeIDSelectorTool.h @@ -4,8 +4,8 @@ // Dear emacs, this is -*-c++-*- -#ifndef __ASGELECTRONCHARGEIDSELECTORTOOL__ -#define __ASGELECTRONCHARGEIDSELECTORTOOL__ +#ifndef ELECTRONPHOTONSELECTORTOOLS_ASGELECTRONCHARGEIDSELECTORTOOL_H +#define ELECTRONPHOTONSELECTORTOOLS_ASGELECTRONCHARGEIDSELECTORTOOL_H // Atlas includes #include "AsgTools/AsgTool.h" #include "MVAUtils/BDT.h" @@ -125,7 +125,7 @@ private: //BDT instances for different ID operating points (Tight, Medium, Loose) and the vector corresponds to n-fold const unsigned m_nfold =1; - const unsigned bdt_index=0; + const unsigned m_bdt_index=0; std::vector<MVAUtils::BDT*> m_v_bdts; TString m_pid_name; diff --git a/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/Root/AsgElectronChargeIDSelectorTool.cxx b/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/Root/AsgElectronChargeIDSelectorTool.cxx index a8e51f12fda77b117af7823ea4be72e5e0c614ab..4767076493927bac6c099cce244b365010a531c6 100644 --- a/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/Root/AsgElectronChargeIDSelectorTool.cxx +++ b/PhysicsAnalysis/ElectronPhotonID/ElectronPhotonSelectorTools/Root/AsgElectronChargeIDSelectorTool.cxx @@ -427,7 +427,7 @@ const Root::TResult& AsgElectronChargeIDSelectorTool::calculate( const xAOD::Ele // std::cout<<"\t kmdebug: "<<m_inputVars.at(i)<<"\t("<<pointer<<")\t = "<<*pointer<<std::endl; i++; // } - double bdt_output = m_v_bdts.at(bdt_index)->GetGradBoostMVA(m_v_bdts.at(bdt_index)->GetPointers()); + double bdt_output = m_v_bdts.at(m_bdt_index)->GetGradBoostMVA(m_v_bdts.at(m_bdt_index)->GetPointers()); ATH_MSG_DEBUG("ECIDS-BDT= "<<bdt_output); m_resultBDT.setResult(m_resultPosition_bdt,bdt_output);