Main Page
Namespaces
Classes
Package Documentation
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 "
DataFormats/Common/interface/EDProductGetter.h
"
4
#include "TClass.h"
5
#include <cassert>
6
#include <ostream>
7
8
class
TBuffer;
9
10
namespace
fwlite
{
11
edm::EDProductGetter
const
*
setRefStreamer
(
edm::EDProductGetter
const
* ep) {
12
{
13
TClass*
cl
= TClass::GetClass(
"edm::RefCore"
);
14
TClassStreamer* st = cl->GetStreamer();
15
if
(st ==
nullptr
) {
16
cl->AdoptStreamer(
new
edm::RefCoreStreamer
());
17
}
18
}
19
{
20
TClass*
cl
= TClass::GetClass(
"edm::RefCoreWithIndex"
);
21
TClassStreamer* st = cl->GetStreamer();
22
if
(st ==
nullptr
) {
23
cl->AdoptStreamer(
new
edm::RefCoreWithIndexStreamer
());
24
}
25
}
26
return
edm::EDProductGetter::switchProductGetter
(ep);
27
}
28
}
edm::EDProductGetter
Definition:
EDProductGetter.h:32
RefCore.h
edm::RefCoreStreamer
Definition:
RefCoreStreamer.h:11
fwlite::setRefStreamer
edm::EDProductGetter const * setRefStreamer(edm::EDProductGetter const *ep)
Definition:
RefStreamer.cc:11
RefCoreStreamer.h
edm::RefCoreWithIndexStreamer
Definition:
RefCoreStreamer.h:23
fwlite
Definition:
TFileDirectory.h:16
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition:
GetRecoTauVFromDQM_MC_cff.py:37
EDProductGetter.h
edm::EDProductGetter::switchProductGetter
static EDProductGetter const * switchProductGetter(EDProductGetter const *)
These can only be used internally by the framework.
Definition:
EDProductGetter.cc:81
Generated for CMSSW Reference Manual by
1.8.11