25 if (duplicateCheckMode ==
std::string(
"noDuplicateCheck"))
27 else if (duplicateCheckMode ==
std::string(
"checkEachFile"))
29 else if (duplicateCheckMode ==
std::string(
"checkEachRealDataFile"))
31 else if (duplicateCheckMode ==
std::string(
"checkAllFilesOpened"))
35 <<
"Illegal configuration parameter value passed to PoolSource for\n" 36 <<
"the \"duplicateCheckMode\" parameter, legal values are:\n" 37 <<
"\"noDuplicateCheck\", \"checkEachFile\", \"checkEachRealDataFile\", \"checkAllFilesOpened\"\n";
50 std::vector<std::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
51 std::vector<std::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile) {
62 for (std::vector<std::shared_ptr<IndexIntoFile> >::
size_type i = 0;
i < currentIndexIntoFile; ++
i) {
63 if (indexesIntoFiles[
i].
get() !=
nullptr) {
93 LogWarning(
"DuplicateEvent") <<
"Duplicate Events found in entire set of input files.\n" 94 <<
"Both events were from run " << run <<
" and luminosity block " << lumi
95 <<
" with event number " <<
event <<
".\n" 96 <<
"The duplicate was from file " << fileName <<
".\n" 97 <<
"The duplicate will be skipped.\n";
99 LogWarning(
"DuplicateEvent") <<
"Duplicate Events found in file " << fileName <<
".\n" 100 <<
"Both events were from run " << run <<
" and luminosity block " << lumi
101 <<
" with event number " <<
event <<
".\n" 102 <<
"The duplicate will be skipped.\n";
113 "'checkAllFilesOpened': check across all input files\n" 114 "'checkEachFile': check each input file independently\n" 115 "'checkEachRealDataFile': check each real data input file independently\n" 116 "'noDuplicateCheck': no duplicate checking\n");
T getUntrackedParameter(std::string const &, T const &) const
bool checkDisabled() const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool itIsKnownTheFileHasNoDuplicates_
unsigned long long EventNumber_t
static void fillDescription(ParameterSetDescription &desc)
bool isDuplicateAndCheckActive(int index, RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event, std::string const &fileName)
unsigned int LuminosityBlockNumber_t
void set_intersection(IndexIntoFile const &indexIntoFile, std::set< IndexRunLumiEventKey > &intersection) const
bool containsDuplicateEvents() const
Returns true if the IndexIntoFile contains 2 events with the same ProcessHistoryID index...
std::set< IndexIntoFile::IndexRunLumiEventKey > relevantPreviousEvents_
DuplicateChecker(ParameterSet const &pset)
void inputFileOpened(bool realData, IndexIntoFile const &indexIntoFile, std::vector< std::shared_ptr< IndexIntoFile > > const &indexesIntoFiles, std::vector< std::shared_ptr< IndexIntoFile > >::size_type currentIndexIntoFile)
DuplicateCheckMode duplicateCheckMode_