Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventSourceEventStore Class Reference

#include <DEventSourceEventStore.h>

+ Inheritance diagram for DEventSourceEventStore:

Public Member Functions

 DEventSourceEventStore (const char *source_name)
 
virtual ~DEventSourceEventStore ()
 
const char * className (void)
 
jerror_t GetEvent (JEvent &event)
 
void FreeEvent (JEvent &event)
 
jerror_t GetObjects (JEvent &event, JFactory_base *factory)
 

Protected Member Functions

void PrintGrades ()
 
void PrintRunPeriods ()
 
void PrintSkims (string timestamp, string grade)
 
jerror_t MoveToNextEvent ()
 
jerror_t OpenNextFile ()
 

Private Attributes

JEventSource * event_source
 
string esdb_connection
 
DESDBProvideresdb
 
bool es_data_loaded
 
int BASE_SKIM_INDEX
 
int MAX_SKIM_INDEX
 
bool load_all_skims
 
vector< stringskim_list
 
string timestamp
 
string grade
 
int min_run
 
int max_run
 
bool run_range_set
 
bool run_period_set
 
map< string, pair< int, int > > run_period_map
 
vector< stringdata_files
 
vector< string >::iterator current_file_itr
 
vector< int > run_numbers
 
vector< int >::iterator current_run_itr
 

Detailed Description

Definition at line 26 of file DEventSourceEventStore.h.

Constructor & Destructor Documentation

DEventSourceEventStore::~DEventSourceEventStore ( )
virtual

Definition at line 254 of file DEventSourceEventStore.cc.

References event_source.

Member Function Documentation

const char* DEventSourceEventStore::className ( void  )
inline

Definition at line 30 of file DEventSourceEventStore.h.

void DEventSourceEventStore::FreeEvent ( JEvent &  event)

Definition at line 325 of file DEventSourceEventStore.cc.

References event_source.

jerror_t DEventSourceEventStore::GetObjects ( JEvent &  event,
JFactory_base *  factory 
)

This gets called through the virtual method of the JEventSource base class. It creates the objects of the type on which factory is based.

Definition at line 334 of file DEventSourceEventStore.cc.

References event_source, DEventStoreEvent::Get_SourceRef(), and skim_list.

jerror_t DEventSourceEventStore::MoveToNextEvent ( )
protected

Definition at line 375 of file DEventSourceEventStore.cc.

References load_all_skims.

Referenced by GetEvent().

jerror_t DEventSourceEventStore::OpenNextFile ( )
protected

Definition at line 387 of file DEventSourceEventStore.cc.

References current_file_itr, data_files, es_data_loaded, event_source, and japp.

Referenced by GetEvent().

void DEventSourceEventStore::PrintGrades ( )
protected

Definition at line 461 of file DEventSourceEventStore.cc.

References esdb, and DESDBProvider::GetGrades().

Referenced by DEventSourceEventStore().

void DEventSourceEventStore::PrintRunPeriods ( )
protected

Definition at line 477 of file DEventSourceEventStore.cc.

References esdb, DESDBProvider::GetGrades(), and run_period_map.

Referenced by DEventSourceEventStore().

void DEventSourceEventStore::PrintSkims ( string  timestamp,
string  grade 
)
protected

Definition at line 496 of file DEventSourceEventStore.cc.

References esdb, and DESDBProvider::GetSkims().

Referenced by DEventSourceEventStore().

Member Data Documentation

int DEventSourceEventStore::BASE_SKIM_INDEX
private

Definition at line 59 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

vector<string>::iterator DEventSourceEventStore::current_file_itr
private

Definition at line 75 of file DEventSourceEventStore.h.

Referenced by OpenNextFile().

vector<int>::iterator DEventSourceEventStore::current_run_itr
private

Definition at line 79 of file DEventSourceEventStore.h.

vector<string> DEventSourceEventStore::data_files
private

Definition at line 74 of file DEventSourceEventStore.h.

Referenced by OpenNextFile().

bool DEventSourceEventStore::es_data_loaded
private

Definition at line 54 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore(), and OpenNextFile().

DESDBProvider* DEventSourceEventStore::esdb
private
string DEventSourceEventStore::esdb_connection
private

Definition at line 52 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

JEventSource* DEventSourceEventStore::event_source
private
string DEventSourceEventStore::grade
private

Definition at line 66 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

bool DEventSourceEventStore::load_all_skims
private

Definition at line 62 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore(), and MoveToNextEvent().

int DEventSourceEventStore::max_run
private

Definition at line 67 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

int DEventSourceEventStore::MAX_SKIM_INDEX
private

Definition at line 60 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

int DEventSourceEventStore::min_run
private

Definition at line 67 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

vector<int> DEventSourceEventStore::run_numbers
private

Definition at line 78 of file DEventSourceEventStore.h.

map< string, pair<int,int> > DEventSourceEventStore::run_period_map
private

Definition at line 71 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore(), and PrintRunPeriods().

bool DEventSourceEventStore::run_period_set
private

Definition at line 69 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

bool DEventSourceEventStore::run_range_set
private

Definition at line 68 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().

vector<string> DEventSourceEventStore::skim_list
private

Definition at line 63 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore(), GetEvent(), and GetObjects().

string DEventSourceEventStore::timestamp
private

Definition at line 65 of file DEventSourceEventStore.h.

Referenced by DEventSourceEventStore().


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