#include <IlcConfDb.hh>
Collaboration diagram for IlcConfDb:
Public Member Functions | |
AsicConfiguration & | getAsicConfiguration (ui32 runId) |
Static Public Member Functions | |
static IlcConfDb * | getInstance () |
Private Member Functions | |
IlcConfDb () | |
~IlcConfDb () | |
void | init () |
Private Attributes | |
bool | initialised |
Static Private Attributes | |
static IlcConfDb * | handle = NULL |
Definition at line 49 of file IlcConfDb.hh.
IlcConfDb::IlcConfDb | ( | ) | [private] |
Definition at line 31 of file IlcConfDb.cpp.
Referenced by getInstance().
00031 :initialised(false) 00032 { 00033 handle = this; 00034 this->init(); 00035 }
IlcConfDb::~IlcConfDb | ( | ) | [private] |
AsicConfiguration & IlcConfDb::getAsicConfiguration | ( | ui32 | runId | ) |
Definition at line 54 of file IlcConfDb.cpp.
Referenced by MicrorocSCReader::parseSCFromDb().
00055 { 00056 Setup * setup = Setup::getSetupFromRun(runId); 00057 if ( setup != NULL ) 00058 { 00059 State *state = *(setup->getStates().begin()); 00060 if ( state != NULL ) 00061 { 00062 return *(state->getAsicConfiguration()) ; 00063 } 00064 } 00065 00066 throw MicroException("No setup for this run id" ); 00067 }
IlcConfDb * IlcConfDb::getInstance | ( | ) | [static] |
Definition at line 22 of file IlcConfDb.cpp.
Referenced by MicrorocXDaqReader::getNextEvent().
00023 { 00024 if ( handle == NULL ) 00025 { 00026 handle = new IlcConfDb(); 00027 } 00028 return handle; 00029 }
void IlcConfDb::init | ( | ) | [private] |
Definition at line 44 of file IlcConfDb.cpp.
Referenced by IlcConfDb().
00045 { 00046 if ( ! initialised ) 00047 { 00048 DBInit::init(); 00049 initialised = true; 00050 } 00051 }
bool IlcConfDb::initialised [private] |
IlcConfDb * IlcConfDb::handle = NULL [static, private] |