Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
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.

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.

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

Definition at line 15 of file EventHolder.cxx.

15  {
16  if(!gInstance) gInstance = new EventHolder();
17  return gInstance;
18  }
static EventHolder * gInstance
Definition: EventHolder.cxx:12
void evdb::EventHolder::SetEvent ( art::Event const *  evt)

Definition at line 32 of file EventHolder.cxx.

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:7

Member Data Documentation

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

the Event

Definition at line 29 of file EventHolder.h.


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