Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
FWLite
src
RefStreamer.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/RefCore.h
"
2
#include "
DataFormats/Common/interface/RefCoreStreamer.h
"
3
#include "TROOT.h"
4
#include <cassert>
5
#include <ostream>
6
7
class
TBuffer;
8
9
namespace
fwlite {
10
edm::EDProductGetter
const
*
setRefStreamer
(
edm::EDProductGetter
const
* ep) {
11
{
12
TClass*
cl
= gROOT->GetClass(
"edm::RefCore"
);
13
TClassStreamer* st = cl->GetStreamer();
14
if
(st == 0) {
15
cl->AdoptStreamer(
new
edm::RefCoreStreamer
());
16
}
17
}
18
{
19
TClass*
cl
= gROOT->GetClass(
"edm::RefCoreWithIndex"
);
20
TClassStreamer* st = cl->GetStreamer();
21
if
(st == 0) {
22
cl->AdoptStreamer(
new
edm::RefCoreWithIndexStreamer
());
23
}
24
}
25
return
edm::EDProductGetter::switchProductGetter
(ep);
26
}
27
}
edm::EDProductGetter
Definition:
EDProductGetter.h:29
RefCore.h
edm::RefCoreStreamer
Definition:
RefCoreStreamer.h:12
fwlite::setRefStreamer
edm::EDProductGetter const * setRefStreamer(edm::EDProductGetter const *ep)
Definition:
RefStreamer.cc:10
RefCoreStreamer.h
edm::RefCoreWithIndexStreamer
Definition:
RefCoreStreamer.h:22
GetRecoTauVFromDQM_MC_cff.cl
tuple cl
Definition:
GetRecoTauVFromDQM_MC_cff.py:37
edm::EDProductGetter::switchProductGetter
static EDProductGetter const * switchProductGetter(EDProductGetter const *)
These can only be used internally by the framework.
Definition:
EDProductGetter.cc:80
Generated for CMSSW Reference Manual by
1.8.5