ATLAS Offline Software
Loading...
Searching...
No Matches
EventModule.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6
7#ifndef EVENT_LOOP_EVENT_SVC_H
8#define EVENT_LOOP_EVENT_SVC_H
9
10#include <EventLoop/Global.h>
11
13#include <EventLoop/Module.h>
14#include <memory>
15
16namespace asg
17{
18 class SgEvent;
19}
20
21namespace xAOD
22{
23 class Event;
24 class TStore;
25}
26
27namespace EL
28{
29 namespace Detail
30 {
31 class EventModule : public Module
32 {
33 //
34 // public interface
35 //
36
37 public:
38
41 EventModule (const std::string& name);
42
43
46 ~EventModule ();
47
48
49
50 //
51 // interface inherited from Algorithm
52 //
53
54 public:
55
56 virtual StatusCode postFinalize (ModuleData& data) override;
57 virtual StatusCode onFirstInputFile (ModuleData& data) override;
58 virtual StatusCode onNextInputFile (ModuleData& data) override;
59 virtual StatusCode onNewInputFile (ModuleData& data) override;
60 virtual StatusCode postCloseInputFile (ModuleData& data) override;
61 virtual StatusCode onExecute (ModuleData& data) override;
62
63 //
64 // private interface
65 //
66
68 private:
69 std::unique_ptr<xAOD::Event> m_event;
70 std::unique_ptr<xAOD::TStore> m_store;
71 std::unique_ptr<asg::SgEvent> m_evtStore;
72
74 private:
75 Gaudi::Property<bool> m_useStats {this, "useStats", false};
76 Gaudi::Property<bool> m_summaryReport {this, "summaryReport", true};
77 };
78 }
79}
80
81#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
virtual StatusCode onFirstInputFile(ModuleData &data) override
actions after opening a the first input file
Gaudi::Property< bool > m_summaryReport
Definition EventModule.h:76
virtual StatusCode postFinalize(ModuleData &data) override
actions after algorithms have been finalized
EventModule(const std::string &name)
effects: standard constructor.
virtual StatusCode postCloseInputFile(ModuleData &data) override
actions after CloseInputFile is called on the algorithms
std::unique_ptr< asg::SgEvent > m_evtStore
Definition EventModule.h:71
std::unique_ptr< xAOD::Event > m_event
description: the event structure used
Definition EventModule.h:69
virtual StatusCode onNextInputFile(ModuleData &data) override
actions after opening an input file after the first one
std::unique_ptr< xAOD::TStore > m_store
Definition EventModule.h:70
Gaudi::Property< bool > m_useStats
description: whether we collect D3PDPerfStats statistics
Definition EventModule.h:75
virtual StatusCode onExecute(ModuleData &data) override
actions just before execute is called on algorithms
~EventModule()
effects: standard destructor.
virtual StatusCode onNewInputFile(ModuleData &data) override
actions after opening a new input file
the base class for EventLoop instrumentation module
Wrapper for Event to make it look like StoreGate.
Definition SgEvent.h:44
Base class for the event (xAOD::TEvent and xAOD::REvent) classes.
Definition Event.h:60
A relatively simple transient store for objects created in analysis.
Definition TStore.h:45
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.
the data the EventLoop core classes are sharing with the Module implementation
Definition ModuleData.h:65