 |
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
3 #include <system_error>
10 #include <boost/property_tree/info_parser.hpp>
25 Filters (
const std::filesystem::path& file
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>();
58 BOOST_THROW_EXCEPTION( std::runtime_error(
"Inconsistent lengths of MET bits between file and event") );
61 if (
met.
Bit.at(ibit))
continue;
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
pt
Definition: jmarExample.py:19
static const char * def
Definition: Step.h:36
static const char * red
Definition: Step.h:34
Filters(const std::filesystem::path &file)
Definition: Filters.h:25
std::vector< bool > Bit
flags for application of MET filters (see n-tupliser config file)
Definition: Event.h:89
static const char * green
Definition: Step.h:33
DAS::MET met
Definition: classes.h:28
std::vector< size_t > bitsToTest
indices of the bits to test in DAS::MET::Bit
Definition: Filters.h:23
std::vector< std::string > names
full name of MET filter
Definition: Filters.h:22
void operator()(const MET &met, RecEvent &event)
Definition: Filters.h:55
Definition: applyMETfilters.cc:28