ATLAS Offline Software
EventDuplicateFinderAlg.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: EventDuplicateFinderAlg.h 663741 2015-04-29 11:52:21Z krasznaa $
8 #ifndef XAODEVENTINFOCNV_EVENTDUPLICATEFINDERALG_H
9 #define XAODEVENTINFOCNV_EVENTDUPLICATEFINDERALG_H
10 
11 // System include(s):
12 #include <string>
13 #include <map> // For std::pair...
14 #include <set>
15 
16 // Gaudi/Athena include(s):
18 
19 namespace xAODReader {
20 
34 
35  public:
37  EventDuplicateFinderAlg( const std::string& name, ISvcLocator* svcLoc );
38 
40  virtual StatusCode initialize();
42  virtual StatusCode execute();
43 
44  private:
46  std::string m_key;
47 
49  std::set< std::pair< unsigned int, unsigned int > > m_seenEvents;
50 
51  }; // class EventDuplicateFinderAlg
52 
53 } // namespace xAODReader
54 
55 #endif // XAODEVENTINFOCNV_EVENTDUPLICATEFINDERALG_H
xAODReader::EventDuplicateFinderAlg::EventDuplicateFinderAlg
EventDuplicateFinderAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Definition: EventDuplicateFinderAlg.cxx:14
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODReader::EventDuplicateFinderAlg::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition: EventDuplicateFinderAlg.cxx:24
AthAlgorithm
Definition: AthAlgorithm.h:47
xAODReader::EventDuplicateFinderAlg::m_key
std::string m_key
StoreGate key of the EI object to be tested.
Definition: EventDuplicateFinderAlg.h:46
xAODReader::EventDuplicateFinderAlg::execute
virtual StatusCode execute()
Function executing the algorithm.
Definition: EventDuplicateFinderAlg.cxx:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODReader::EventDuplicateFinderAlg
Algorithm for finding event duplicates in xAOD files.
Definition: EventDuplicateFinderAlg.h:33
xAODReader
Definition: BTaggingReader.cxx:21
xAODReader::EventDuplicateFinderAlg::m_seenEvents
std::set< std::pair< unsigned int, unsigned int > > m_seenEvents
Variable keeping track of the events seen.
Definition: EventDuplicateFinderAlg.h:49