test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 "TClass.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
= TClass::GetClass(
"edm::RefCore"
);
13
TClassStreamer* st = cl->GetStreamer();
14
if
(st ==
nullptr
) {
15
cl->AdoptStreamer(
new
edm::RefCoreStreamer
());
16
}
17
}
18
{
19
TClass*
cl
= TClass::GetClass(
"edm::RefCoreWithIndex"
);
20
TClassStreamer* st = cl->GetStreamer();
21
if
(st ==
nullptr
) {
22
cl->AdoptStreamer(
new
edm::RefCoreWithIndexStreamer
());
23
}
24
}
25
return
edm::EDProductGetter::switchProductGetter
(ep);
26
}
27
}
edm::EDProductGetter
Definition:
EDProductGetter.h:32
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:24
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:81
Generated for CMSSW Reference Manual by
1.8.5