|
ATLAS Offline Software
|
Go to the documentation of this file.
32 for(
const std::string&
t : taggers) {
44 <<
", m_histos size " <<
m_histos.size());
48 m_bdts[tagger].insert(std::make_pair(
channel, std::move(bdt)));
50 <<
", m_bdts size " <<
m_bdts.size());
61 ATH_MSG_DEBUG(
"#BTAG# Adding input variables of the BDT for " << tagger <<
" in cond data for " <<
name
67 ATH_MSG_DEBUG(
"#BTAG# JSONConfig in cond data with " <<
obj.layers.size() <<
" layers"
68 <<
" for tagger " << tagger <<
" and channel " <<
channel
79 std::string
alias = originalChannel;
80 std::map< std::string, std::string>::const_iterator
pos;
90 msg() <<
MSG::DEBUG <<
"#BTAG# Channel alias " << iter->first <<
"->"<<iter->second;
106 for(
auto const &tagger :
m_bdts) {
108 for(
auto const &
channel : tagger.second) {
123 <<
" (channel " <<
channel <<
" -> " << channelAlias <<
")");
125 auto mI =
m_bdts.find(tagger);
128 auto mJ = mI->second.find(channelAlias);
129 if (mJ != mI->second.end()) {
131 bdt = mJ->second.get();
138 ATH_MSG_DEBUG(
"#BTAG# " << tagger <<
" BDT config not found");
145 std::vector<std::string> inputVars;
149 ATH_MSG_DEBUG(
"#BTAG# retrieving input variables of BDT for " << tagger <<
151 std::map< std::string , std::map<std::string, std::vector<std::string>>>::const_iterator mI;
155 std::map<std::string, std::vector<std::string>>::const_iterator mJ = mI->second.find(
fname);
156 if (mJ != mI->second.end()) {
158 inputVars = mJ->second;
165 ATH_MSG_DEBUG(
"#BTAG# " << tagger <<
" BDT config not found");
173 std::map< std::string , std::map<std::string, lwt::JSONConfig>>::const_iterator mI;
177 std::map<std::string, lwt::JSONConfig>::const_iterator mJ = mI->second.find(
channel);
178 if (mJ != mI->second.end()) {
187 ATH_MSG_DEBUG(
"#BTAG# " << tagger <<
" NN config not found");
195 std::map< std::string , std::map<std::string, std::string>>::const_iterator mI;
199 std::map<std::string, std::string>::const_iterator mJ = mI->second.find(
channel);
200 if (mJ != mI->second.end()) {
209 ATH_MSG_DEBUG(
"#BTAG# " << tagger <<
" RNN config not found");
216 const std::string delim(
"#");
217 std::string::size_type sPos;
218 sPos =
fname.find_first_of(delim);
224 const std::string delim(
"#");
225 std::string::size_type sPos;
226 sPos =
fname.find_first_of(delim);
void printBdtsStatus() const
std::vector< std::map< std::string, std::unique_ptr< TH1 > > > m_histos
std::map< std::string, std::string > m_channelAliasesMap
TH1 * retrieveHistogram(const std::string &folder, const std::string &channel, const std::string &hname) const
void printAliasesStatus() const
void addInputVars(const std::string &tagger, const std::string &name, const std::vector< std::string > &input)
std::string getChannelAlias(const std::string &originalChannel) const
Simplified Boosted Regression Tree, support TMVA, lgbm, and xgboost.
std::map< std::string, std::map< std::string, lwt::JSONConfig > > m_DL1_NNConfig
void addDL1NN(const std::string &tagger, const std::string &channel, const lwt::JSONConfig &)
std::map< std::string, std::map< std::string, std::vector< std::string > > > m_inputVars
void resize(const std::vector< std::string > &sizeHisto)
Resize the data members.
void addIPRNN(const std::string &tagger, const std::string &channel, const std::string &)
std::string histoName(const std::string &fullHistoName) const
Class to provide easy MsgStream access and capabilities.
std::map< std::string, std::map< std::string, std::string > > m_IP_RNNConfig
MsgStream & msg() const
The standard message stream.
lwt::JSONConfig retrieveDL1NN(const std::string &tagger, const std::string &channel) const
void addBdt(const std::string &tagger, const std::string &name, std::unique_ptr< MVAUtils::BDT >)
The namespace of all packages in PhysicsAnalysis/JetTagging.
MVAUtils::BDT * retrieveBdt(const std::string &tagger, const std::string &channel) const
std::map< std::string, std::map< std::string, std::unique_ptr< MVAUtils::BDT > > > m_bdts
std::string channelName(const std::string &fullHistoName) const
std::vector< std::string > config
std::vector< std::string > m_taggers
std::string fullHistoName(const std::string &channel, const std::string &histoName) const
std::vector< std::string > retrieveInputVars(const std::string &tagger, const std::string &channel, const std::string &hname) const
void printHistosStatus() const
std::string retrieveIPRNN(const std::string &tagger, const std::string &channel) const
void addHisto(const unsigned int indexTagger, const std::string &name, std::unique_ptr< TH1 >)
void addChannelAlias(const std::string &channel, const std::string &alias)