#include <EventSetup.h>
Public Member Functions | |
EventSetup (TFile *) | |
bool | exists (const char *iRecordName) const |
const Record & | get (const RecordID &) const |
std::vector< std::string > | namesOfAvailableRecords () const |
RecordID | recordID (const char *iRecordName) const |
void | syncTo (const edm::EventID &, const edm::Timestamp &) |
virtual | ~EventSetup () |
Private Member Functions | |
EventSetup (const EventSetup &) | |
const EventSetup & | operator= (const EventSetup &) |
Private Attributes | |
TFile * | m_file |
std::vector< Record * > | m_records |
edm::EventID | m_syncedEvent |
edm::Timestamp | m_syncedTimestamp |
Definition at line 66 of file EventSetup.h.
EventSetup::EventSetup | ( | TFile * | iFile | ) |
Definition at line 38 of file EventSetup.cc.
|
virtual |
|
private |
bool EventSetup::exists | ( | const char * | iRecordName | ) | const |
Returns true if a record with the name iRecordName is available in the file
Definition at line 83 of file EventSetup.cc.
References kRecordAuxiliaryBranchName, m_file, getGTfromDQMFile::obj, AlCaHLTBitMon_QueryRunRegistry::string, MainPageGenerator::tree, and fwlite::unformat_mangled_to_type().
Referenced by main().
Definition at line 127 of file EventSetup.cc.
References m_records.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), main(), FWLiteESSource::registerProxies(), rrapi.RRApi::report(), rrapi.RRApi::reports(), FWLiteESSource::setIntervalFor(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
std::vector< std::string > EventSetup::namesOfAvailableRecords | ( | ) | const |
Definition at line 134 of file EventSetup.cc.
References combine::key, relativeConstraints::keys, m_file, GetRecoTauVFromDQM_MC_cff::next, getGTfromDQMFile::obj, and fwlite::unformat_mangled_to_type().
Referenced by FWLiteESSource::delaySettingRecords().
|
private |
RecordID EventSetup::recordID | ( | const char * | iRecordName | ) | const |
Returns the lookup id of the record whose name is iRecordName. The returned id is only valid for the instance of an EventSetup object to which the recordID call was made. If you later create a new EventSetup instance even for the same file the RecordIDs can be different.
Definition at line 98 of file EventSetup.cc.
References edm::hlt::Exception, fwlite::format_type_to_mangled(), kRecordAuxiliaryBranchName, m_file, m_records, mergeVDriftHistosByStation::name, getGTfromDQMFile::obj, SiStripGain_Fake_cff::Record, AlCaHLTBitMon_QueryRunRegistry::string, and MainPageGenerator::tree.
Referenced by FWLiteESSource::delaySettingRecords(), and main().
void EventSetup::syncTo | ( | const edm::EventID & | iID, |
const edm::Timestamp & | iTime | ||
) |
Ensures that all Records will access the appropriate data for this instant in time
Definition at line 72 of file EventSetup.cc.
References m_records, and fwlite::Record::syncTo().
Referenced by main(), and FWLiteESSource::setIntervalFor().
|
private |
Definition at line 108 of file EventSetup.h.
Referenced by exists(), namesOfAvailableRecords(), and recordID().
|
mutableprivate |
Definition at line 110 of file EventSetup.h.
Referenced by get(), recordID(), syncTo(), and ~EventSetup().
|
private |
Definition at line 105 of file EventSetup.h.
|
private |
Definition at line 106 of file EventSetup.h.