|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef EVENT_LOOP_ALGS__DUPLICATE_CHECKER_H
9 #define EVENT_LOOP_ALGS__DUPLICATE_CHECKER_H
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
uint32_t number_type
the integer type to use for run and event numbers
void setOutputTreeName(const std::string &val_outputTreeName)
set the value of outputTreeName
const std::string & eventInfoName() const
the name of the EventInfo structure to use
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)
virtual StatusCode changeInput(bool firstFile) override
effects: do all changes to work with a new input file, e.g.
void addKnownDuplicatesFile(const std::string &duplicatesFile)
add a file with known duplicates
number_type m_eventNumber
the event number of the current event (connected to m_outputTree, if present)
virtual StatusCode execute() override
effects: process the next event guarantee: basic failures: algorithm dependent
Long64_t m_inputFileIndex
the index in the input file (connected to m_outputTree, if present)
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static bool processSummary(const std::string &submitdir, const std::string &treeName)
process the summary tree from the given submission
number_type m_runNumber
the run number of the current event (connected to m_outputTree, if present)
Bool_t m_processEvent
whether the current event is/should be processed (connected to m_outputTree, if present)
const std::string & outputTreeName() const
the name of the output tree to create, or the empty string if none is created
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
::StatusCode StatusCode
StatusCode definition for legacy code.
void testInvariant() const
test the invariant of this object
ClassDef(DuplicateChecker, 1)
This module defines the arguments passed from the BATCH driver to the BATCH worker.
TTree * m_outputTree
the output tree, if we are creating one
xAOD::TEvent * m_event
the event we are reading from
static bool processSummary(const SH::SampleHandler &sh, const std::string &outputFile)
process the summary tree from the given submission
std::string m_eventInfoName
the value returned by eventInfoName
DuplicateChecker()
standard constructor
void setEventInfoName(const std::string &val_eventInfoName)
set the value of eventInfoName
A class that manages a list of Sample objects.
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
void read_run_event_number()
get the run and event number for the current event
virtual StatusCode initialize() override
effects: do everything that needs to be done before running the algorithm, e.g.
void addKnownDuplicate(const std::string &sampleName, const std::string &fileName, Long64_t entry, number_type runNumber, number_type eventNumber)
add a known duplicate event
std::string m_outputTreeName
the value returned by outputTreeName
Tool for accessing xAOD files outside of Athena.
virtual StatusCode setupJob(Job &job) override
effects: give the algorithm a chance to intialize the job with anything this algorithm needs.