10 #include "art/Framework/Core/EDAnalyzer.h"
11 #include "art/Framework/Principal/Handle.h"
12 #include "art/Framework/Principal/Event.h"
13 #include "art/Framework/Core/ModuleMacros.h"
17 #include <TApplication.h>
55 void analyze(art::Event
const& e)
override;
63 std::unique_ptr<TApplication> app_;
70 , force_new_(ps.get<bool>(
"force_new", true))
71 , dont_quit_(ps.get<bool>(
"dont_quit", false)) {}
77 gSystem->ProcessEvents();
82 if (!gApplication || force_new_)
85 app_ = std::unique_ptr<TApplication>(
new TApplication(
"noapplication", &tmp_argc, 0));
91 if (dont_quit_) app_->Run(
true);
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.
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.
virtual ~RootApplication()
RootApplication Destructor.
void analyze(art::Event const &e) override
Called by art for each event.