40 name (TString(settings.GetValue(compPrefix+
"Name",
"")).ReplaceAll(
"MCTYPE",MCtype)),
41 param (settings.GetValue(compPrefix+
"Param",
"")),
42 massDefStr (settings.GetValue(compPrefix+
"MassDef",
"")),
43 scale (settings.GetValue(compPrefix+
"Scale",
"FourVec")),
44 topologyStr (settings.GetValue(compPrefix+
"Topology",
"")),
45 interpolStr (settings.GetValue(compPrefix+
"Interp",
"true")),
46 special (settings.GetValue(compPrefix+
"Special",
"")),
47 uncNameList (TString(settings.GetValue(compPrefix+
"Hists",
"")).ReplaceAll(
"MCTYPE",MCtype)),
48 validName (TString(settings.GetValue(compPrefix+
"VHist",
"")).ReplaceAll(
"MCTYPE",MCtype)),
49 subCompList (TString(settings.GetValue(compPrefix+
"SubComp",
"")).ReplaceAll(
"MCTYPE",MCtype)),
50 splitNum (settings.GetValue(compPrefix+
"Split",0)),
51 groupNum (settings.GetValue(compPrefix+
"Group",0)),
52 combMassStr (settings.GetValue(compPrefix+
"CombMassType",
"")),
53 caloMassTerm(settings.GetValue(compPrefix+
"CaloMassTerm",
"")),
54 TAMassTerm (settings.GetValue(compPrefix+
"TAMassTerm",
"")),
55 caloMassDef (settings.GetValue(compPrefix+
"CaloMassDef",
"")),
56 TAMassDef (settings.GetValue(compPrefix+
"TAMassDef",
"")),
57 truthLabelStr (settings.GetValue(compPrefix+
"TruthLabels",
"")),
60 LargeRJetTruthLabelName (settings.GetValue(compPrefix+
"LargeRJetTruthLabelName",
"R10TruthLabel_R21Consolidated")),
63 ResultName (settings.GetValue(compPrefix+
"ResultName",
"")),
71 isSpecial ((!
special.CompareTo(
"true",TString::kIgnoreCase)) || (!
special.CompareTo(
"yes",TString::kIgnoreCase))),
81 TString LargeRJetTruthLabelStrOld (settings.GetValue(compPrefix+
"FatjetTruthLabels",
""));
82 TString LargeRJetTruthLabelStrNew = settings.GetValue(compPrefix+
"LargeRJetTruthLabels",
"");
83 if (LargeRJetTruthLabelStrOld !=
"" && LargeRJetTruthLabelStrNew !=
"")
84 throw std::runtime_error(
"ERROR: double-specification of the LargeRJetTruthLabels/FatjetTruthLabels property");
85 else if (LargeRJetTruthLabelStrNew !=
"")
97 throw std::runtime_error(Form(
"ERROR: Unable to convert specified LargeRJetTruthLabel to a recognized enum value, please check the configuration file for mistakes: %s",aVal.Data()));
107 throw std::runtime_error(Form(
"ERROR: Unable to convert specified LargeRJetTruthLabelForSF to a recognized enum value, please check the configuration file for mistakes: %s",aVal.Data()));
137 name (TString(settings.GetValue(groupPrefix+
"Name",
"")).ReplaceAll(
"MCTYPE",MCtype)),
138 desc (settings.GetValue(groupPrefix+
"Desc",
"")),
139 cat (settings.GetValue(groupPrefix+
"Type",
"")),
140 corr (settings.GetValue(groupPrefix+
"Corr",
"")),
141 isRed (settings.GetValue(groupPrefix+
"Reducible",
"true")),
142 groupNum (settings.GetValue(groupPrefix+
"Group",0)),
143 subgroupNum (settings.GetValue(groupPrefix+
"SubGroup",0)),
193 return StatusCode::FAILURE;
200 return StatusCode::FAILURE;
207 return StatusCode::FAILURE;
211 return StatusCode::SUCCESS;
288 const TString NOPREFIX =
"NOPREFIX_";
293 if (
m_gInfo->name.BeginsWith(NOPREFIX))
297 else if (!
m_gInfo->name.BeginsWith(prefix,TString::kIgnoreCase))
300 else if (!
m_gInfo->name.BeginsWith(prefix))
301 m_gInfo->name.Replace(0,prefix.Length(),prefix);
312 ATH_MSG_WARNING(
"ConfigHelper::setComponentJetDefSuffix: 'm_cInfo' is nullptr.");
317 else if (!
m_cInfo->uncNames.empty())
318 for (
size_t iName = 0; iName <
m_cInfo->uncNames.size(); ++iName)
319 m_cInfo->uncNames[iName] =
m_cInfo->uncNames[iName] +
"_" + suffix;
320 else if (!
m_cInfo->subComps.empty())
321 for (
size_t iSubComp = 0; iSubComp <
m_cInfo->subComps.size(); ++iSubComp)
322 m_cInfo->subComps[iSubComp] =
m_cInfo->subComps[iSubComp] +
"_" + suffix;
340 ATH_MSG_WARNING(Form(
"The following validity histogram was already specified: %s",
m_cInfo->validName.Data()));
341 ATH_MSG_WARNING(Form(
"Blocking overwrite with a new validity histogram: %s",histName.Data()));
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
#define JESUNC_NO_DEFAULT_CONSTRUCTOR
#define JESUNC_SAFE_DELETE(T)
AsgMessaging(const std::string &name)
Constructor with a name.
PileupComp::TypeEnum pileupType
std::vector< TString > LargeRJetTruthLabelStrs
CompTaggerRegionVar::TypeEnum RegionForSF
std::vector< int > truthLabels
CompScaleVar::TypeEnum scaleVar
CompMassDef::TypeEnum massDef
TString constrainZresponseFunc
std::vector< CompFlavorLabelVar::TypeEnum > LargeRJetTruthLabelsForSF
JetTopology::TypeEnum topology
std::vector< TString > uncNames
std::vector< LargeRJetTruthLabel::TypeEnum > LargeRJetTruthLabels
FlavourComp::TypeEnum flavourType
ComponentHelper(const TString &name="")
CompParametrization::TypeEnum parametrization
CombMassComp::TypeEnum combMassType
TString constrainZresponseStr
std::vector< TString > subComps
TString LargeRJetTruthLabelStr
TString LargeRJetTruthLabelName
std::vector< TString > LargeRJetTruthLabelsForSFstrs
Interpolate::TypeEnum interpolate
TString LargeRJetTruthLabelsForSFstr
ComponentHelper * m_cInfo
const TString m_confPrefix
const ComponentHelper * getComponentInfo() const
void addValidityHistogram(const std::string &histName)
virtual StatusCode initialize(TEnv &settings)
void enforceGroupNamePrefix(const std::string &prefix)
void setComponentJetDefSuffix(const std::string &suffix)
const GroupHelper * getGroupInfo() const
const float m_energyScale
GroupHelper(const TString &name="")
CompCorrelation::TypeEnum correlation
CompCategory::TypeEnum category
TypeEnum stringToEnum(const TString &name)
TypeEnum stringToEnum(const TString &type)
TypeEnum stringToEnum(const TString &type)
bool vectorize(const TString &str, const TString &sep, std::vector< T > &result)