ATLAS Offline Software
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 
13 #include <EventLoop/Module.h>
14 #include <memory>
15 
16 namespace asg
17 {
18  class SgTEvent;
19 }
20 
21 namespace xAOD
22 {
23  class TEvent;
24  class TStore;
25 }
26 
27 namespace EL
28 {
29  namespace Detail
30  {
31  class TEventModule : public Module
32  {
33  //
34  // public interface
35  //
36 
37  public:
38 
41  TEventModule (const std::string& name);
42 
43 
46  ~TEventModule ();
47 
48 
49 
50  //
51  // interface inherited from Algorithm
52  //
53 
54  public:
55 
56  virtual StatusCode onInitialize (ModuleData& data) override;
57  virtual StatusCode postFinalize (ModuleData& data) override;
58  virtual StatusCode onNewInputFile (ModuleData& data) override;
59  virtual StatusCode postCloseInputFile (ModuleData& data) override;
60  virtual StatusCode onExecute (ModuleData& data) override;
61 
62 
63 
64  //
65  // private interface
66  //
67 
69  private:
70  std::unique_ptr<xAOD::TEvent> m_event;
71  std::unique_ptr<xAOD::TStore> m_store;
72  std::unique_ptr<asg::SgTEvent> m_evtStore;
73 
75  private:
76  bool m_useStats;
77  };
78  }
79 }
80 
81 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
EL::Detail::TEventModule
Definition: TEventModule.h:32
EL::Detail::TEventModule::onExecute
virtual StatusCode onExecute(ModuleData &data) override
actions just before execute is called on algorithms
Definition: TEventModule.cxx:178
EL::Detail::ModuleData
the data the EventLoop core classes are sharing with the Module implementation
Definition: ModuleData.h:64
EL::Detail::TEventModule::~TEventModule
~TEventModule()
effects: standard destructor.
Definition: TEventModule.cxx:48
EL::Detail::TEventModule::onInitialize
virtual StatusCode onInitialize(ModuleData &data) override
action just before algorithms are initialized
Definition: TEventModule.cxx:54
EL::Detail::TEventModule::postFinalize
virtual StatusCode postFinalize(ModuleData &data) override
actions after algorithms have been finalized
Definition: TEventModule.cxx:121
asg
Definition: DataHandleTestTool.h:28
Module.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
EL::Detail::TEventModule::postCloseInputFile
virtual StatusCode postCloseInputFile(ModuleData &data) override
actions after CloseInputFile is called on the algorithms
Definition: TEventModule.cxx:164
EL::Detail::TEventModule::m_evtStore
std::unique_ptr< asg::SgTEvent > m_evtStore
Definition: TEventModule.h:72
EL::Detail::TEventModule::m_event
std::unique_ptr< xAOD::TEvent > m_event
description: the event structure used
Definition: TEventModule.h:70
EL::Detail::Module
the base class for EventLoop instrumentation module
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/Module.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::Detail::TEventModule::onNewInputFile
virtual StatusCode onNewInputFile(ModuleData &data) override
actions after opening a new input file
Definition: TEventModule.cxx:144
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::Detail::TEventModule::m_store
std::unique_ptr< xAOD::TStore > m_store
Definition: TEventModule.h:71
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
Global.h
EL::Detail::TEventModule::TEventModule
TEventModule(const std::string &name)
effects: standard constructor.
Definition: TEventModule.cxx:41
EL::Detail::TEventModule::m_useStats
bool m_useStats
description: whether we collect D3PDPerfStats statistics
Definition: TEventModule.h:76