![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
9 using namespace TopEventSelectionTools;
12 NJetBtagSelector::NJetBtagSelector(
const std::string&
params, std::shared_ptr<top::TopConfig>
config,
15 m_doTrackJets(doTrackJets) {
19 bool bTagWP_exists =
false;
27 <<
"B-tagging working point " <<
valueString() <<
" doesn't seem to be configured.\n"
28 <<
"Did you provide the argument as bTagAlgorithm:bTagWP ? \n "
29 <<
"Did you specified it in the \"BTaggingCaloWP\" or \"BTaggingTrackJetWP\" field of your cutfile?\n");
30 throw std::runtime_error(
"NJetBtagSelector: Invalid btagging selector WP: " +
name());
35 auto func = [&](
const xAOD::Jet* jetPtr) {
37 throw std::runtime_error(
"NJetBtagSelector: Jet doesn't have decoration \"isbtagged_" +
45 count = std::count_if(
event.m_trackJets.begin(),
event.m_trackJets.end(), func);
bool checkInt(int value, int cut) const
Compare a cut supplied by the user with the value calculated in the event.
TopConfig A simple configuration that is NOT a singleton.
std::string find(const std::string &s)
return a remapped string
double multiplicity() const
Get the cut multiplicity assigned in the constructor.
Many of the tools need a sign (>=) and a value (2).
std::string valueString() const
Get the cut value assigned in the constructor.
POOL::TEvent event(POOL::TEvent::kClassAccess)
void checkMultiplicityIsInteger()
Integers are annoying in C++.
Very simple class to hold event data after reading from a file.
std::string valueStringDelimReplace() const
valueString which is manipulated to replace delimiter with new string
virtual std::string name() const override
The name is generated in the constructor for this kind of tool.