LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "DuplicateChecker.h"
Classes | |
struct | Config |
Public Member Functions | |
DuplicateChecker (fhicl::TableFragment< Config > const &config) | |
void | init (bool realData, FileIndex const &fileIndex) |
void | inputFileClosed () |
void | rewind () |
bool | isDuplicateAndCheckActive (EventID const &eventID, std::string const &fileName) |
Private Types | |
enum | DuplicateCheckMode { noDuplicateCheck, checkEachFile, checkEachRealDataFile, checkAllFilesOpened } |
enum | DataType { isRealData, isSimulation, unknown } |
Private Attributes | |
DuplicateCheckMode | duplicateCheckMode_ |
DataType | dataType_ |
std::set< EventID > | eventIDs_ |
bool | itIsKnownTheFileHasNoDuplicates_ |
Definition at line 29 of file DuplicateChecker.h.
|
private |
|
private |
Enumerator | |
---|---|
noDuplicateCheck | |
checkEachFile | |
checkEachRealDataFile | |
checkAllFilesOpened |
Definition at line 49 of file DuplicateChecker.h.
art::DuplicateChecker::DuplicateChecker | ( | fhicl::TableFragment< Config > const & | config | ) |
Definition at line 12 of file DuplicateChecker.cc.
References checkAllFilesOpened, checkEachFile, checkEachRealDataFile, duplicateCheckMode_, and noDuplicateCheck.
void art::DuplicateChecker::init | ( | bool | realData, |
FileIndex const & | fileIndex | ||
) |
Definition at line 41 of file DuplicateChecker.cc.
References checkAllFilesOpened, checkEachFile, checkEachRealDataFile, dataType_, duplicateCheckMode_, art::FileIndex::eventsUniqueAndOrdered(), isRealData, isSimulation, itIsKnownTheFileHasNoDuplicates_, noDuplicateCheck, and unknown.
void art::DuplicateChecker::inputFileClosed | ( | ) |
Definition at line 59 of file DuplicateChecker.cc.
References checkAllFilesOpened, dataType_, duplicateCheckMode_, eventIDs_, itIsKnownTheFileHasNoDuplicates_, noDuplicateCheck, and unknown.
bool art::DuplicateChecker::isDuplicateAndCheckActive | ( | EventID const & | eventID, |
std::string const & | fileName | ||
) |
Definition at line 78 of file DuplicateChecker.cc.
References checkAllFilesOpened, checkEachFile, checkEachRealDataFile, dataType_, duplicateCheckMode_, eventIDs_, isSimulation, itIsKnownTheFileHasNoDuplicates_, noDuplicateCheck, and unknown.
void art::DuplicateChecker::rewind | ( | ) |
|
private |
Definition at line 60 of file DuplicateChecker.h.
Referenced by init(), inputFileClosed(), and isDuplicateAndCheckActive().
|
private |
Definition at line 56 of file DuplicateChecker.h.
Referenced by DuplicateChecker(), init(), inputFileClosed(), and isDuplicateAndCheckActive().
|
private |
Definition at line 62 of file DuplicateChecker.h.
Referenced by inputFileClosed(), isDuplicateAndCheckActive(), and rewind().
|
private |
Definition at line 64 of file DuplicateChecker.h.
Referenced by init(), inputFileClosed(), and isDuplicateAndCheckActive().