CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/FWCore/FWLite/src/RefStreamer.cc

Go to the documentation of this file.
00001 #include "DataFormats/Common/interface/RefCore.h"
00002 #include "DataFormats/Common/interface/RefCoreStreamer.h"
00003 #include "FWCore/Utilities/interface/EDMException.h"
00004 #include "TROOT.h"
00005 #include <assert.h>
00006 #include <ostream>
00007 
00008 class TBuffer;
00009 
00010 namespace fwlite {
00011   edm::EDProductGetter const* setRefStreamer(edm::EDProductGetter const* ep) {
00012     
00013     {
00014       TClass *cl = gROOT->GetClass("edm::RefCore::CheckTransientOnWrite");
00015       TClassStreamer *st = cl->GetStreamer();
00016       if (st == 0) {
00017         cl->AdoptStreamer(new edm::RefCoreCheckTransientOnWriteStreamer());
00018       } 
00019     }
00020   
00021     return edm::EDProductGetter::switchProductGetter(ep);
00022   }
00023 }