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 
14 #include <EventLoop/Module.h>
15 #include <memory>
16 
17 namespace asg
18 {
19  class SgTEvent;
20 }
21 
22 namespace xAOD
23 {
24  class TEvent;
25  class TStore;
26 }
27 
28 namespace 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 
47  ~TEventModule ();
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<bool> m_summaryReport {this, "summaryReport", true};
81  };
82  }
83 }
84 
85 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
EL::Detail::TEventModule
Definition: TEventModule.h:33
EL::Detail::TEventModule::onExecute
virtual StatusCode onExecute(ModuleData &data) override
actions just before execute is called on algorithms
Definition: TEventModule.cxx:175
PropertyWrapper.h
EL::Detail::TEventModule::m_summaryReport
Gaudi::Property< bool > m_summaryReport
Definition: TEventModule.h:80
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:118
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:161
EL::Detail::TEventModule::m_useStats
Gaudi::Property< bool > m_useStats
description: whether we collect D3PDPerfStats statistics
Definition: TEventModule.h:77
EL::Detail::TEventModule::m_evtStore
std::unique_ptr< asg::SgTEvent > m_evtStore
Definition: TEventModule.h:73
EL::Detail::TEventModule::m_event
std::unique_ptr< xAOD::TEvent > m_event
description: the event structure used
Definition: TEventModule.h:71
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:141
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AsgComponentFactories.h:16
EL::Detail::TEventModule::m_store
std::unique_ptr< xAOD::TStore > m_store
Definition: TEventModule.h:72
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
EL::Detail::TEventModule::m_modeStr
Gaudi::Property< std::string > m_modeStr
Definition: TEventModule.h:79
Global.h
EL::Detail::TEventModule::TEventModule
TEventModule(const std::string &name)
effects: standard constructor.
Definition: TEventModule.cxx:41