8#ifndef EVENT_LOOP_ALGS__DUPLICATE_CHECKER_H
9#define EVENT_LOOP_ALGS__DUPLICATE_CHECKER_H
103 const std::string& fileName,
178 std::map<std::pair<std::string,std::string>,std::map<Long64_t,std::pair<number_type,number_type> > >
m_duplicates;
228#pragma GCC diagnostic push
229#pragma GCC diagnostic ignored "-Wpragmas"
230#pragma GCC diagnostic ignored "-Wunknown-pragmas"
231#pragma GCC diagnostic ignored "-Winconsistent-missing-override"
233#pragma GCC diagnostic pop
Algorithm()
effects: standard default constructor guarantee: strong failures: low level errors I
std::string m_outputTreeName
the value returned by outputTreeName
number_type m_runNumber
the run number of the current event (connected to m_outputTree, if present)
number_type m_eventNumber
the event number of the current event (connected to m_outputTree, if present)
static bool processSummary(const SH::SampleHandler &sh, const std::string &outputFile)
process the summary tree from the given submission
void setOutputTreeName(const std::string &val_outputTreeName)
set the value of outputTreeName
const std::string & outputTreeName() const
the name of the output tree to create, or the empty string if none is created
virtual StatusCode changeInput(bool firstFile) override
effects: do all changes to work with a new input file, e.g.
std::map< std::pair< std::string, std::string >, std::map< Long64_t, std::pair< number_type, number_type > > > m_duplicates
the list of known duplicates to skip
void setEventInfoName(const std::string &val_eventInfoName)
set the value of eventInfoName
std::set< std::pair< number_type, number_type > > m_processed
the list of run-event numbers already encountered
std::string m_inputFileName
the name of the input file (connected to m_outputTree, if present)
uint32_t number_type
the integer type to use for run and event numbers
std::map< Long64_t, std::pair< number_type, number_type > > * m_currentDuplicates
the list of the duplicates in the current file to skip, or the null pointer if there are none
const std::string & eventInfoName() const
the name of the EventInfo structure to use
static bool processSummary(const std::string &submitdir, const std::string &treeName)
process the summary tree from the given submission
std::string m_eventInfoName
the value returned by eventInfoName
Long64_t m_inputFileIndex
the index in the input file (connected to m_outputTree, if present)
ClassDef(DuplicateChecker, 1)
xAOD::TEvent * m_event
the event we are reading from
Bool_t m_processEvent
whether the current event is/should be processed (connected to m_outputTree, if present)
void addKnownDuplicatesFile(const std::string &duplicatesFile)
add a file with known duplicates
virtual StatusCode setupJob(Job &job) override
effects: give the algorithm a chance to intialize the job with anything this algorithm needs.
virtual StatusCode initialize() override
effects: do everything that needs to be done before running the algorithm, e.g.
void read_run_event_number()
get the run and event number for the current event
virtual StatusCode execute() override
effects: process the next event guarantee: basic failures: algorithm dependent
TTree * m_outputTree
the output tree, if we are creating one
DuplicateChecker()
standard constructor
void testInvariant() const
test the invariant of this object
void addKnownDuplicate(const std::string &sampleName, const std::string &fileName, Long64_t entry, number_type runNumber, number_type eventNumber)
add a known duplicate event
A class that manages a list of Sample objects.
Tool for accessing xAOD files outside of Athena.
This module defines the arguments passed from the BATCH driver to the BATCH worker.
::StatusCode StatusCode
StatusCode definition for legacy code.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.