![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
31 ATH_MSG_INFO(
"top::BoostedTaggingCPTools initialize...");
34 ATH_MSG_INFO(
"top::BoostedTaggingCPTools: no need to initialise anything on truth DxAOD");
35 return StatusCode::SUCCESS;
39 ATH_MSG_INFO(
"top::BoostedTaggingCPTools: no need to initialise anything since not using large-R jets");
40 return StatusCode::SUCCESS;
44 const std::vector<std::pair<std::string, std::string> >& boostedJetTaggers =
m_config->boostedJetTaggers();
45 if (boostedJetTaggers.size() == 0) {
46 ATH_MSG_INFO(
"top::BoostedTaggingCPTools: boostedJetTagging not set. No need to initialise anything.");
47 return StatusCode::SUCCESS;
54 "Error in BoostedTaggingCPTools: boosted jet taggers are not available for this large-R jet collection.");
56 for (
const std::pair<std::string, std::string>&
name : boostedJetTaggers) {
57 const std::string& taggerType =
name.first;
58 const std::string& taggerName =
name.second;
61 (
"Error in BoostedTaggingCPTools: Unknown tagger in the config file: " + taggerName).c_str());
64 "Error in BoostedTaggingCPTools: Unknown TAGGER_TYPE.");
65 if (taggerType ==
"JSSWTopTaggerDNN")
67 else if (taggerType ==
"SmoothedWZTagger")
70 m_taggers[taggerName].setName(taggerName);
72 "Failed to set ConfigFile for " + taggerName);
74 "Failed to set ContainerName " + taggerName);
76 "Failed to set CalibArea for " + taggerName);
79 if (taggerType ==
"JSSWTopTaggerDNN" || taggerType ==
"SmoothedWZTagger") {
81 "Failed to set IsMC for " + taggerName);
87 std::string jet_def =
m_config->sgKeyLargeRJets();
88 jet_def.erase(jet_def.length() - 4);
90 std::string mc_type =
"MC20";
93 if (
m_config->isRun3()) mc_type =
"MC21";
95 const std::string
name =
"JetSFuncert_" + taggerName;
100 top::check(jet_SF_tmp->setProperty(
"JetDefinition", jet_def),
"Failed to set JetDefinition for " +
name);
101 top::check(jet_SF_tmp->setProperty(
"MCType", mc_type),
"Failed to set MCType for " +
name);
102 top::check(jet_SF_tmp->setProperty(
"ConfigFile",
cfg),
"Failed to set ConfigFile for " +
name);
103 top::check(jet_SF_tmp->setProperty(
"IsData",
false),
"Failed to set IsData for " +
name);
107 }
catch (std::out_of_range&
e) {
109 ATH_MSG_WARNING(
"Boosted jet tagger " + taggerName +
" is not yet calibrated! No SFs are available.");
114 return StatusCode::SUCCESS;
134 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
138 auto setConfig = [
this](
const std::string& tagger,
const std::string& configName) {
142 if (
m_config->sgKeyLargeRJets() ==
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets") {
146 setConfig(
"DNNTaggerTopQuarkContained50",
"DNNTagger_AntiKt10UFOSD_TopContained50_Oct30.dat");
147 setConfig(
"DNNTaggerTopQuarkContained80",
"DNNTagger_AntiKt10UFOSD_TopContained80_Oct30.dat");
148 setConfig(
"DNNTaggerTopQuarkInclusive50",
"DNNTagger_AntiKt10UFOSD_TopInclusive50_Oct30.dat");
149 setConfig(
"DNNTaggerTopQuarkInclusive80",
"DNNTagger_AntiKt10UFOSD_TopInclusive80_Oct30.dat");
159 setConfig(
"SmoothWContained50",
"SmoothedContainedWTagger_AntiKt10UFOCSSKSoftDrop_FixedSignalEfficiency50_20220221.dat");
160 setConfig(
"SmoothWContained80",
"SmoothedContainedWTagger_AntiKt10UFOCSSKSoftDrop_FixedSignalEfficiency80_20220221.dat");
161 setConfig(
"SmoothZContained50",
"SmoothedContainedZTagger_AntiKt10UFOCSSKSoftDrop_FixedSignalEfficiency50_20220221.dat");
162 setConfig(
"SmoothZContained80",
"SmoothedContainedZTagger_AntiKt10UFOCSSKSoftDrop_FixedSignalEfficiency80_20220221.dat");
180 if (
m_config->sgKeyLargeRJets() ==
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets") {
181 ATH_MSG_WARNING(
"No Large-R jet tagging scale factors available yet!");
TopConfig A simple configuration that is NOT a singleton.
std::string find(const std::string &s)
return a remapped string
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
::StatusCode StatusCode
StatusCode definition for legacy code.
void check(bool thingToCheck, const std::string &usefulFailureMessage)
Print an error message and terminate if thingToCheck is false.
#define ATH_MSG_WARNING(x)