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>
54 void analyze( art::Event
const& e )
override;
62 std::unique_ptr<TApplication> app_;
69 : art::EDAnalyzer( ps )
70 , force_new_( ps.get<bool>(
"force_new", true ) )
71 , dont_quit_( ps.get<bool>(
"dont_quit", false ) )
80 if ( !gApplication || force_new_ )
83 app_ = std::unique_ptr<TApplication>(
new TApplication(
"noapplication", &tmp_argc, 0 ) );
89 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.