Go to the documentation of this file.00001 #ifndef Framework_eventSetupGetImplementation_h
00002 #define Framework_eventSetupGetImplementation_h
00003
00004
00005
00006
00007
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "FWCore/Framework/interface/HCMethods.h"
00025 #include "FWCore/Framework/interface/NoRecordException.h"
00026
00027 namespace edm {
00028 class EventSetup;
00029 namespace eventsetup {
00030 template< class T>
00031 inline void eventSetupGetImplementation(EventSetup const& iEventSetup, T const*& iValue) {
00032 T const* temp = heterocontainer::find<EventSetupRecordKey, T const>(iEventSetup);
00033 if(0 == temp) {
00034 throw NoRecordException<T>();
00035 }
00036 iValue = temp;
00037 }
00038 }
00039 }
00040
00041 #endif