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