#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 &)=delete | |
const EventSetup & | operator= (const EventSetup &)=delete |
Private Attributes | |
TFile * | m_file |
std::vector< Record * > | m_records |
edm::EventID | m_syncedEvent |
edm::Timestamp | m_syncedTimestamp |
Definition at line 67 of file EventSetup.h.
EventSetup::EventSetup | ( | TFile * | iFile | ) |
Definition at line 38 of file EventSetup.cc.
|
virtual |
|
privatedelete |
bool EventSetup::exists | ( | const char * | iRecordName | ) | const |
Returns true if a record with the name iRecordName is available in the file
Definition at line 82 of file EventSetup.cc.
References kRecordAuxiliaryBranchName, m_file, hgcalPlots::obj, AlCaHLTBitMon_QueryRunRegistry::string, and fwlite::unformat_mangled_to_type().
Referenced by main().
Definition at line 126 of file EventSetup.cc.
References m_records.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), main(), FWLiteESSource::registerProxies(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), util.rrapi.RRApi::reports(), rrapi.RRApi::reports(), FWLiteESSource::setIntervalFor(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().
std::vector< std::string > EventSetup::namesOfAvailableRecords | ( | ) | const |
Definition at line 133 of file EventSetup.cc.
References crabWrapper::key, relativeConstraints::keys, m_file, GetRecoTauVFromDQM_MC_cff::next, hgcalPlots::obj, and fwlite::unformat_mangled_to_type().
Referenced by FWLiteESSource::delaySettingRecords().
|
privatedelete |
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 97 of file EventSetup.cc.
References Exception, fwlite::format_type_to_mangled(), kRecordAuxiliaryBranchName, m_file, m_records, dataset::name, hgcalPlots::obj, and AlCaHLTBitMon_QueryRunRegistry::string.
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 71 of file EventSetup.cc.
References m_records, and fwlite::Record::syncTo().
Referenced by main(), and FWLiteESSource::setIntervalFor().
|
mutableprivate |
Definition at line 109 of file EventSetup.h.
Referenced by exists(), namesOfAvailableRecords(), and recordID().
|
mutableprivate |
Definition at line 111 of file EventSetup.h.
Referenced by get(), recordID(), syncTo(), and ~EventSetup().
|
private |
Definition at line 106 of file EventSetup.h.
|
private |
Definition at line 107 of file EventSetup.h.