1 #ifndef __JSUPPORT__JWEIGHTFILESCANNER__
2 #define __JSUPPORT__JWEIGHTFILESCANNER__
27 template<
class JFileScanner_t = JMultipleFileScanner<Evt> >
58 JFileScanner_t ::clear();
68 size_t put(
const JFileScanner_t& input)
72 for (
typename JFileScanner_t::const_iterator i = input.begin(); i != input.end(); ++i) {
73 n += size_t(this->
put(*i));
86 bool put(
const std::string& input)
92 if (this->
check(head)) {
95 JFileScanner_t ::push_back(input);
bool put(const std::string &input)
Put file.
void add(const JHead &header)
Add header.
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
JWeightFileScanner(const JWeightEvent &weighter)
Constructor.
Template file scanner with event weight.
Helper class for event weighing.
Low-level interface for event weighing.
void reset(const JWeightEvent &weighter)
Reset file scanner and event weighter.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
size_t put(const JFileScanner_t &input)
Put list of files.
void configure(const JWeightEvent &weighter)
Configuration.
JWeightFileScanner()
Default constructor.
alias put_queue eval echo n
bool check(const JHead &header) const
Check if a given header is consistent with this event weighter.
virtual void reset() override
Reset pointer.