43 explicit TypeID(
const std::type_info& iInfo):
edm::
TypeIDBase(iInfo) {}
47 struct FWLiteESGenericHandle {
48 FWLiteESGenericHandle(
const TypeID& iType):
53 FWLiteESGenericHandle(
const void* iData):
61 m_exception(iException){}
63 const std::type_info& typeInfo()
const {
64 return m_type.typeInfo();
79 assert(iKey.
type() == m_type);
81 FWLiteESGenericHandle
h(m_type);
84 if(
nullptr!=
h.m_exception) {
85 throw *(
h.m_exception);
90 void invalidateCache()
override {
127 void delaySettingRecords()
override;
132 std::map<edm::eventsetup::EventSetupRecordKey, fwlite::RecordID>
m_keyToID;
149 m_file( TFile::Open(iPS.getParameter<
std::
string>(
"fileName").c_str())),
196 typedef std::vector<std::pair<std::string,std::string> > TypesAndLabels;
199 std::cout <<
"Looking for data in record "<<iRecordKey.
name()<<std::endl;
200 for(TypesAndLabels::const_iterator it = typesAndLabels.begin(), itEnd = typesAndLabels.end();
203 std::cout <<
" need type "<<it->first<<std::endl;
205 if(tt != HCTypeTag() ) {
207 aProxyList.push_back(std::make_pair(dk,
208 std::make_shared<FWLiteProxy>(TypeID(tt.value()),&rec)));
210 LogDebug(
"UnknownESType")<<
"The type '"<<it->first<<
"' is unknown in this job";
211 std::cout <<
" *****FAILED*****"<<std::endl;
243 for(std::vector<std::string>::const_iterator it = recordNames.begin(),
244 itEnd = recordNames.end();
248 if(t != HCTypeTag() ) {
std::pair< const char *, const std::type_info * > findType(const char *iClassName)
void syncTo(const edm::EventID &, const edm::Timestamp &)
std::unique_ptr< TFile > m_file
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
const EventID & eventID() const
std::vector< std::string > namesOfAvailableRecords() const
std::map< edm::eventsetup::EventSetupRecordKey, fwlite::RecordID > m_keyToID
static const IOVSyncValue & endOfTime()
const IOVSyncValue & startSyncValue() const
std::pair< Time_t, Time_t > ValidityInterval
void delaySettingRecords() override
~FWLiteESSource() override
void usingRecordWithKey(const EventSetupRecordKey &)
const std::type_info & typeInfo() const
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
RecordID recordID(const char *iRecordName) const
void registerProxies(const edm::eventsetup::EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList) override
void invalidateProxies(const EventSetupRecordKey &iRecordKey)
const char * name() const
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
std::vector< std::pair< std::string, std::string > > typeAndLabelOfAvailableData() const
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
const TypeTag & type() const
FWLiteESSource(edm::ParameterSet const &iPS)
const edm::Timestamp & time() const
const NameTag & name() const
const char * value() const
const Timestamp & time() const
void newInterval(const edm::eventsetup::EventSetupRecordKey &iRecordType, const edm::ValidityInterval &iInterval) override
called when a new interval of validity occurs for iRecordType
const Record & get(const RecordID &) const
TimeValue_t value() const
T get(const Candidate &c)
void findingRecordWithKey(const eventsetup::EventSetupRecordKey &)
const edm::EventID & eventID() const
const IOVSyncValue & endSyncValue() const