CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/FWCore/Framework/interface/eventSetupGetImplementation.h

Go to the documentation of this file.
00001 #ifndef Framework_eventSetupGetImplementation_h
00002 #define Framework_eventSetupGetImplementation_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Framework
00006 // Class  :     eventSetupGetImplementation
00007 // 
00016 //
00017 // Author:      Chris Jones
00018 // Created:     Fri Mar 25 16:31:17 EST 2005
00019 //
00020 
00021 // system include files
00022 
00023 // user include files
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