15 itIsKnownTheFileHasNoDuplicates_(
false),
34 <<
"Illegal configuration parameter value passed to PoolSource for\n" 35 <<
"the \"duplicateCheckMode\" parameter, legal values are:\n" 36 <<
"\"noDuplicateCheck\", \"checkEachFile\", \"checkEachRealDataFile\", \"checkAllFilesOpened\"\n";
50 std::vector<std::shared_ptr<IndexIntoFile> >
const& indexesIntoFiles,
51 std::vector<std::shared_ptr<IndexIntoFile> >::
size_type currentIndexIntoFile) {
63 for(std::vector<std::shared_ptr<IndexIntoFile> >::
size_type i = 0;
i < currentIndexIntoFile; ++
i) {
64 if (indexesIntoFiles[
i].
get() != 0) {
98 <<
"Duplicate Events found in entire set of input files.\n" 99 <<
"Both events were from run " << run
100 <<
" and luminosity block " << lumi
101 <<
" with event number " <<
event <<
".\n" 102 <<
"The duplicate was from file " << fileName <<
".\n" 103 <<
"The duplicate will be skipped.\n";
107 <<
"Duplicate Events found in file " << fileName <<
".\n" 108 <<
"Both events were from run " << run
109 <<
" and luminosity block " << lumi
110 <<
" with event number " <<
event <<
".\n" 111 <<
"The duplicate will be skipped.\n";
122 "'checkAllFilesOpened': check across all input files\n" 123 "'checkEachFile': check each input file independently\n" 124 "'checkEachRealDataFile': check each real data input file independently\n" 125 "'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_