ATLAS Offline Software
Loading...
Searching...
No Matches
TEventModule.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8#ifndef EVENT_LOOP_TEVENT_SVC_H
9#define EVENT_LOOP_TEVENT_SVC_H
10
11#include <EventLoop/Global.h>
12
14#include <EventLoop/Module.h>
15#include <memory>
16
17namespace asg
18{
19 class SgTEvent;
20}
21
22namespace xAOD
23{
24 class TEvent;
25 class TStore;
26}
27
28namespace EL
29{
30 namespace Detail
31 {
32 class TEventModule : public Module
33 {
34 //
35 // public interface
36 //
37
38 public:
39
42 TEventModule (const std::string& name);
43
44
48
49
50
51 //
52 // interface inherited from Algorithm
53 //
54
55 public:
56
57 virtual StatusCode onInitialize (ModuleData& data) override;
58 virtual StatusCode postFinalize (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
65 //
66 // private interface
67 //
68
70 private:
71 std::unique_ptr<xAOD::TEvent> m_event;
72 std::unique_ptr<xAOD::TStore> m_store;
73 std::unique_ptr<asg::SgTEvent> m_evtStore;
74
76 private:
77 Gaudi::Property<bool> m_useStats {this, "useStats", false};
78
79 Gaudi::Property<std::string> m_modeStr {this, "accessMode", ""};
80 Gaudi::Property<std::string> m_otherMetaDataTreeNamePattern {this, "otherMetaDataTreeNamePattern", ""};
81 Gaudi::Property<bool> m_summaryReport {this, "summaryReport", true};
82 };
83 }
84}
85
86#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
the base class for EventLoop instrumentation module
virtual StatusCode postCloseInputFile(ModuleData &data) override
actions after CloseInputFile is called on the algorithms
virtual StatusCode onNewInputFile(ModuleData &data) override
actions after opening a new input file
~TEventModule()
effects: standard destructor.
virtual StatusCode postFinalize(ModuleData &data) override
actions after algorithms have been finalized
Gaudi::Property< bool > m_summaryReport
Gaudi::Property< std::string > m_modeStr
virtual StatusCode onInitialize(ModuleData &data) override
action just before algorithms are initialized
std::unique_ptr< asg::SgTEvent > m_evtStore
TEventModule(const std::string &name)
effects: standard constructor.
std::unique_ptr< xAOD::TStore > m_store
virtual StatusCode onExecute(ModuleData &data) override
actions just before execute is called on algorithms
Gaudi::Property< std::string > m_otherMetaDataTreeNamePattern
std::unique_ptr< xAOD::TEvent > m_event
description: the event structure used
Gaudi::Property< bool > m_useStats
description: whether we collect D3PDPerfStats statistics
Wrapper for TEvent to make it look like StoreGate.
Definition SgTEvent.h:44
Tool for accessing xAOD files outside of Athena.
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:64