ATLAS Offline Software
BoostedXbbTagTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 #include "xAODMuon/Muon.h"
8 #include "AsgMessaging/Check.h"
9 
10 using namespace std;
11 
14 {
15  declareProperty("WorkingPoint", m_working_point = "medium");
16 #ifdef ROOTCORE
17  declareProperty("RecommendationsFile", m_recommendations_file = "$ROOTCOREBIN/data/JetSubStructureUtils/config_13TeV_Htagging_MC15c_77WP_20160522.dat");
18 #else
19  declareProperty("RecommendationsFile", m_recommendations_file = "JetSubStructureUtils/data/config_13TeV_Htagging_MC15c_77WP_20160522.dat");
20 #endif
21  declareProperty("BosonType", m_boson_type = "Higgs");
22  declareProperty("JetAlgorithmName", m_algorithm_name = "AK10LCTRIMF5R20");
23  declareProperty("NumBTags", m_num_bTags = 2);
24  declareProperty("DecorPrefix", m_decor_prefix = "");
25  declareProperty("Debug", m_debug = false);
26  declareProperty("Verbose", m_verbose = false);
27  declareProperty("MuonContainerName", m_muon_container_name = "Muons");
28 }
29 
31 {
33 
34  const xAOD::MuonContainer *muons = nullptr;
35  StatusCode sc = evtStore()->retrieve(muons, m_muon_container_name);
36  if ( sc.isFailure() ) {
37  ATH_MSG_ERROR("Unable to retrieve MuonContainer from event store: " << m_muon_container_name);
38  return 1;
39  }
40 
41  jet.setAttribute("BoostedXbbTag", static_cast<int>(tagger.result(jet, muons)));
42 
43  return 0;
44 }
Check.h
BoostedXbbTagTool::m_working_point
std::string m_working_point
Definition: BoostedXbbTagTool.h:21
BoostedXbbTag.h
Muon.h
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
BoostedXbbTagTool::m_verbose
bool m_verbose
Definition: BoostedXbbTagTool.h:29
BoostedXbbTagTool::m_boson_type
std::string m_boson_type
Definition: BoostedXbbTagTool.h:23
JetSubStructureUtils::BoostedXbbTag
Definition: BoostedXbbTag.h:26
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
BoostedXbbTagTool.h
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
BoostedXbbTagTool::m_num_bTags
int m_num_bTags
Definition: BoostedXbbTagTool.h:26
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
BoostedXbbTagTool::m_algorithm_name
std::string m_algorithm_name
Definition: BoostedXbbTagTool.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetSubStructureUtils::BoostedXbbTag::result
int result(const xAOD::Jet &jet, const xAOD::MuonContainer *muons) const
Definition: BoostedXbbTag.cxx:301
BoostedXbbTagTool::m_muon_container_name
std::string m_muon_container_name
Definition: BoostedXbbTagTool.h:25
BoostedXbbTagTool::m_decor_prefix
std::string m_decor_prefix
Definition: BoostedXbbTagTool.h:27
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
BoostedXbbTagTool::m_recommendations_file
std::string m_recommendations_file
Definition: BoostedXbbTagTool.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
BoostedXbbTagTool::BoostedXbbTagTool
BoostedXbbTagTool(const std::string &name)
Definition: BoostedXbbTagTool.cxx:12
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
BoostedXbbTagTool::modifyJet
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: BoostedXbbTagTool.cxx:30
BoostedXbbTagTool::m_debug
bool m_debug
Definition: BoostedXbbTagTool.h:28
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18