#include <Filters.h>
◆ Filters()
Filters |
( |
const std::filesystem::path & |
file | ) |
|
|
inline |
- Parameters
-
file | expecting a 2-column file (see $DARWIN_TABLES/MET) |
29 namespace pt = boost::property_tree;
30 namespace fs = filesystem;
32 if (!fs::exists(file))
33 BOOST_THROW_EXCEPTION(fs::filesystem_error(
"Bad MET filter list", file,
34 make_error_code(errc::no_such_file_or_directory)));
37 pt::read_info(file, tree);
39 cout <<
"MET / noise filters:";
41 for (
auto& [
name, child]: tree) {
42 auto bit = child.get_value<
bool>();
◆ operator()()
58 BOOST_THROW_EXCEPTION( std::runtime_error(
"Inconsistent lengths of MET bits between file and event") );
61 if (
met.
Bit.at(ibit))
continue;
◆ bitsToTest
std::vector<size_t> bitsToTest |
◆ names
std::vector<std::string> names |
The documentation for this struct was generated from the following file:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/MET/interface/Filters.h