10 #include "art/Framework/Core/EDAnalyzer.h"
11 #include "art/Framework/Core/ModuleMacros.h"
12 #include "art/Framework/Principal/Event.h"
13 #include "art/Framework/Principal/Handle.h"
15 #include <TApplication.h>
55 void analyze(art::Event
const& e)
override;
68 std::unique_ptr<TApplication> app_;
76 , force_new_(ps.get<bool>(
"force_new", true))
77 , dont_quit_(ps.get<bool>(
"dont_quit", false))
86 if ((gApplication ==
nullptr) || force_new_)
89 app_ = std::make_unique<TApplication>(
"noapplication", &tmp_argc,
nullptr);
void beginJob() override
Called by art at the beginning of the job. RootApplication will create a window unless one already ex...
Provides a wrapper for displaying ROOT canvases.
~RootApplication() override
RootApplication Destructor.
void endJob() override
Called by art at the end of the job. RootApplication will close the findow if dont_quit == false...
RootApplication(fhicl::ParameterSet const &p)
RootApplication Constructor.
void analyze(art::Event const &e) override
Called by art for each event.