#include <EventDisplay3DService.h>
Definition at line 24 of file EventDisplay3DService.h.
Definition at line 25 of file EventDisplay3DService_service.cc.
GlobalSignal< detail::SignalResponseType::LIFO, void(InputSource *, std::vector< Worker * > const &)> sPostBeginJobWorkers
void postBeginJobWorkers(art::InputSource *inputs, std::vector< art::Worker * > const &workers)
void postProcessEvent(art::Event const &, art::ScheduleContext)
GlobalSignal< detail::SignalResponseType::LIFO, void(Event const &, ScheduleContext)> sPostProcessEvent
Definition at line 43 of file EventDisplay3DService_service.cc.
46 gEve->Redraw3D(kFALSE,kTRUE);
48 mf::LogWarning(
"EvtDisplayService") <<
"TeveManager is not properly initialized.";
49 gApplication->SetReturnFromRun(kFALSE);
50 gApplication->Terminate(0);
53 gApplication->Run(kTRUE);
55 gApplication->SetReturnFromRun(kFALSE);
56 gApplication->Terminate(0);
59 art::RootInput* rootInput =
dynamic_cast<art::RootInput*
>(
fInputSource);
62 <<
"Random access for the EvtDisplay requires a RootInput source for proper operation.\n";
66 switch (evdb::NavState::Which()) {
67 case evdb::kNEXT_EVENT: {
73 rootInput->seekToEvent(0);
76 case evdb::kPREV_EVENT: {
77 rootInput->seekToEvent(-2);
80 case evdb::kRELOAD_EVENT: {
81 rootInput->seekToEvent(
evt.id());
84 case evdb::kGOTO_EVENT: {
85 int targRun = evdb::NavState::TargetRun();
86 int targEvt = evdb::NavState::TargetEvent();
87 if(targRun<0 || targEvt<0){
88 mf::LogWarning(
"EvtDisplayService") <<
"Negative Run or Event number specified -- reloading current event.";
90 rootInput->seekToEvent(
evt.id());
93 if (!rootInput->seekToEvent(
id)) {
96 <<
" -- reloading current event.";
98 rootInput->seekToEvent(
evt.id());
105 <<
"EvtDisplayService in unhandled state " 106 << evdb::NavState::Which()
art::InputSource * fInputSource
Input source of events.
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
static SubRunID invalidSubRun(RunID const &rID)
cet::coded_exception< error, detail::translate > exception
The documentation for this class was generated from the following files: