Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
evdb::EventHolder Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/nuevdb/v1_00_02/source/nuevdb/EventDisplayBase/EventHolder.h"

Public Member Functions

void SetEvent (art::Event const *evt)
 
const art::EventGetEvent () const
 

Static Public Member Functions

static EventHolderInstance ()
 

Private Member Functions

 EventHolder ()
 
 ~EventHolder ()
 

Private Attributes

const art::EventfEvent
 the Event More...
 

Detailed Description

Definition at line 16 of file EventHolder.h.

Constructor & Destructor Documentation

evdb::EventHolder::EventHolder ( )
private

Definition at line 21 of file EventHolder.cxx.

Referenced by Instance().

21  :
22  fEvent(0)
23  {
24  }
const art::Event * fEvent
the Event
Definition: EventHolder.h:29
evdb::EventHolder::~EventHolder ( )
private

Definition at line 27 of file EventHolder.cxx.

28  {
29  }

Member Function Documentation

const art::Event * evdb::EventHolder::GetEvent ( ) const

Definition at line 45 of file EventHolder.cxx.

References fEvent.

Referenced by evd::MCBriefPad::Draw(), evd::TQPad::Draw(), evd::HardwarePad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), evd::PlotView::Draw(), evdb::DisplayWindow::OpenWindow(), evdb::ScanFrame::Record(), and evd::HeaderDrawer::Text().

46  {
47 // if(!fEvent){
48 // std::cerr << "No art::Event set to return, handing back null pointer" << std::endl;
49 // }
50  return fEvent;
51  }
const art::Event * fEvent
the Event
Definition: EventHolder.h:29
EventHolder * evdb::EventHolder::Instance ( void  )
static
void evdb::EventHolder::SetEvent ( art::Event const *  evt)

Definition at line 32 of file EventHolder.cxx.

References evt, and fEvent.

Referenced by evdb::EventDisplay::postProcessEvent().

33  {
34  if(fEvent){
35 // std::cerr << "event is already loaded, resetting it" << std::endl;
36  fEvent = 0;
37  }
38  fEvent = evt;
39 
40 // std::cout << "run is " << fEvent->run() << " event is " << fEvent->id().event() << std::endl;
41 
42  }
int evt
const art::Event * fEvent
the Event
Definition: EventHolder.h:29

Member Data Documentation

const art::Event* evdb::EventHolder::fEvent
private

the Event

Definition at line 29 of file EventHolder.h.

Referenced by GetEvent(), and SetEvent().


The documentation for this class was generated from the following files: