LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
evdb::EventHolder Class Reference

#include "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

void evdb::EventHolder::SetEvent ( art::Event const *  evt)

Definition at line 32 of file EventHolder.cxx.

References tca::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  }
const art::Event * fEvent
the Event
Definition: EventHolder.h:29
TCEvent evt
Definition: DataStructs.cxx:5

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: