DAS  3.0
Das Analysis System
GenericPlugin.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPLv3-or-later
2 //
3 // SPDX-FileCopyrightText: Patrick L.S. Connor <patrick.connor@cern.ch>
4 
5 #pragma once
6 
7 #include <filesystem>
8 #include <set>
9 
10 #include <IPlugin.h>
11 #include <MetaInfo.h>
12 #include <Variation.h>
13 
14 class TDirectory;
15 
16 namespace Darwin::Tools {
17 
18 class Flow;
19 
42 class GenericPlugin : public IPlugin {
43 
44 public:
47  GenericPlugin () = default;
48 
51  virtual ~GenericPlugin () = default;
52 
55  virtual void ExecuteAtBegin (const std::set<Darwin::Physics::Variation>& = {Darwin::Physics::nominal}) { };
56 
59  virtual void ExecuteAtEnd (const std::set<Darwin::Physics::Variation>& = {Darwin::Physics::nominal}) { };
60 
63  virtual void Write (TDirectory *) { };
64 };
65 
66 } // end of Darwin::Tools namespace
Darwin::Tools::GenericPlugin::Write
virtual void Write(TDirectory *)
Any object to write to the output file.
Definition: GenericPlugin.h:63
MetaInfo.h
Darwin::Tools::GenericPlugin::ExecuteAtBegin
virtual void ExecuteAtBegin(const std::set< Darwin::Physics::Variation > &={Darwin::Physics::nominal})
Operation to execute at the beginning of the event loop.
Definition: GenericPlugin.h:55
Variation.h
IPlugin.h
Darwin::Physics::nominal
const Variation nominal("", "nominal")
Darwin::Tools::GenericPlugin::ExecuteAtEnd
virtual void ExecuteAtEnd(const std::set< Darwin::Physics::Variation > &={Darwin::Physics::nominal})
Operation to execute at the end of the event loop.
Definition: GenericPlugin.h:59
Darwin::Tools
Classes and functions related to the framework.
Definition: Darwin_dict.cxx:1144
Darwin::Tools::GenericPlugin::~GenericPlugin
virtual ~GenericPlugin()=default
Trivial destructor.
Darwin::Tools::GenericPlugin::GenericPlugin
GenericPlugin()=default
Trivial constructor.