ATLAS Offline Software
FileExecutedModule.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 
9 #ifndef EVENT_LOOP__FILE_EXECUTED_MODULE_H
10 #define EVENT_LOOP__FILE_EXECUTED_MODULE_H
11 
12 #include <EventLoop/Global.h>
13 
14 #include <EventLoop/Module.h>
15 #include <memory>
16 
17 class TString;
18 class TTree;
19 
20 namespace EL
21 {
22  namespace Detail
23  {
25 
27  {
28  //
29  // public interface
30  //
31 
32  public:
33 
34  using Module::Module;
35 
36  virtual ~FileExecutedModule () noexcept;
37 
38  virtual StatusCode onInitialize (ModuleData& data) override;
39  virtual StatusCode onFileExecute (ModuleData& data) override;
40  virtual StatusCode postFinalize (ModuleData& data) override;
41 
42 
43 
44  //
45  // private interface
46  //
47 
50  private:
51  std::unique_ptr<TTree> m_fileExecutedTree;
52 
55  private:
56  TString *m_fileExecutedName {nullptr};
57  };
58  }
59 }
60 
61 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
EL::Detail::ModuleData
the data the EventLoop core classes are sharing with the Module implementation
Definition: ModuleData.h:64
Module.h
EL::Detail::ManagerStep::final
@ final
EL::Detail::FileExecutedModule
a Module recording when FileExecuted was called
Definition: FileExecutedModule.h:27
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
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
xAOD::DiTauJetParameters::Detail
Detail
Definition: DiTauDefs.h:38
EL::Detail::FileExecutedModule::onInitialize
virtual StatusCode onInitialize(ModuleData &data) override
action just before algorithms are initialized
Definition: FileExecutedModule.cxx:37
EL::Detail::FileExecutedModule::~FileExecutedModule
virtual ~FileExecutedModule() noexcept
Definition: FileExecutedModule.cxx:28
EL::Detail::FileExecutedModule::m_fileExecutedTree
std::unique_ptr< TTree > m_fileExecutedTree
the tree containing the list of files for which fileExecute has been called
Definition: FileExecutedModule.h:51
EL::Detail::FileExecutedModule::postFinalize
virtual StatusCode postFinalize(ModuleData &data) override
actions after algorithms have been finalized
Definition: FileExecutedModule.cxx:64
Global.h
EL::Detail::FileExecutedModule::onFileExecute
virtual StatusCode onFileExecute(ModuleData &data) override
actions just before fileExecute is called on algorithms
Definition: FileExecutedModule.cxx:50
EL::Detail::FileExecutedModule::m_fileExecutedName
TString * m_fileExecutedName
the name of the file being executed, to be stored inside m_fileExecutedTree
Definition: FileExecutedModule.h:56