26 if(str.find(
"Period") != std::string::npos)
27 key +=
cmf::PeriodKey(std::stol(str.substr(str.find(
"Period") + 6, std::string::npos)));
28 else if(str.find(
"P") != std::string::npos)
29 key +=
cmf::PeriodKey(std::stol(str.substr(str.find(
"P") + 1, std::string::npos)));
62 if (str.find(
"MC") != std::string::npos) key *= 1;
63 else if(str.find(
"Data") != std::string::npos) key *= -1;
70 size_t first = epochStr.find_first_of(
"abcdefghijklmnopqrstuvwxyz");
71 if(first != std::string::npos){
73 <<
"use of subperiods is deprecated, only full periods are used";
82 << std::stol(epochStr.substr(0, epochStr.length()).c_str(),
nullptr, 0);
84 return std::stol(epochStr.substr(0, epochStr.length()).c_str(),
nullptr, 0);
142 outType.insert(0,
"MC");
146 outType.insert(0,
"Data");
194 <<
" Cannot identify beam type";
208 return ( this->
MCKey() *
245 return (other.
isMC == this->isMC &&
250 other.
period == this->period);
256 return this->
Key() < other.
Key();
302 return (other.
detector == this->detector &&
304 other.
period == this->period);
310 long thisNum = (this->
detector * 10000000 +
313 long otherNum = (other.
detector * 10000000 +
317 return thisNum < otherNum;
333 unsigned long int const& totSpill,
334 unsigned long int const& goodSpill)
long StringToKey(std::string const &str)
#define LOG_DEBUG(stream)
void operator+=(SpillSummary const &o)
enum cmf::interaction_type InteractionType_t
static long SelectionTypeKey(cmf::SelectionType_t const &st)
const std::string cSelectionType_Strings[12]
static long DetectorTypeKey(cmf::DetType_t const &det)
unsigned long int totalNumSpills
static long DetectorBeamSelectionTypesToKey(cmf::DetType_t const &det, cmf::BeamType_t const &bt, cmf::SelectionType_t const &sel)
enum cmf::det_type DetType_t
const std::string cFileTypeStrings_Latex[10]
enum cmf::sel_type SelectionType_t
const std::string cInteractionType_LatexStrings[11]
long PeriodStringToInt(std::string const &epochStr)
static bool IsNuESelected(cmf::SelectionType_t const &sel)
static bool IsNuMuQuantiles(cmf::SelectionType_t const &sel)
static bool IsNuMuSelected(cmf::SelectionType_t const &sel)
const std::string cInteractionType_Strings[11]
const std::string cFileTypeStrings[10]
static long PeriodKey(long const &ep)
unsigned long int numGoodSpills
static cmf::BeamType_t PeriodToBeamType(std::string const &str)
static long InteractionTypeKey(cmf::InteractionType_t const &it)
#define LOG_WARNING(category)
Module to combine a set of results into a single file currently only does one data product type at a ...
static long FileTypeKey(cmf::FileType_t const &ft)
enum cmf::beam_type BeamType_t
std::string to_string(ModuleType mt)
const std::string cBeamType_LatexStrings[4]
const std::string cDetType_Strings[5]
const std::string cBeamType_Strings[4]
const std::string cSelectionType_LatexStrings[12]
enum cmf::file_type FileType_t