Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CondTools
Hcal
interface
BufferedBoostIOESProducer.h
Go to the documentation of this file.
1
#ifndef CondTools_Hcal_BufferedBoostIOESProducer_h
2
#define CondTools_Hcal_BufferedBoostIOESProducer_h
3
4
// -*- C++ -*-
5
//
6
// Package: CondTools/Hcal
7
// Class: BufferedBoostIOESProducer
8
//
16
//
17
// Original Author: Igor Volobouev
18
// Created: Sun Aug 31 22:18:44 CDT 2014
19
// $Id: BufferedBoostIOESProducer.h,v 1.0 2014/08/31 22:18:44 igv Exp $
20
//
21
//
22
23
#include <sstream>
24
#include <memory>
25
26
#include "
FWCore/Framework/interface/ModuleFactory.h
"
27
#include "
FWCore/Framework/interface/ESProducer.h
"
28
29
#include "CondFormats/Serialization/interface/eos/portable_iarchive.hpp"
30
#include "
CondFormats/HcalObjects/interface/OOTPileupCorrectionBuffer.h
"
31
32
template
<
class
DataType,
class
MyRecord>
33
class
BufferedBoostIOESProducer
:
public
edm::ESProducer
{
34
public
:
35
typedef
std::unique_ptr<DataType>
ReturnType
;
36
37
inline
BufferedBoostIOESProducer
(
const
edm::ParameterSet
&) {
setWhatProduced
(
this
).setConsumes(
token_
); }
38
39
inline
~BufferedBoostIOESProducer
()
override
{}
40
41
ReturnType
produce
(
const
MyRecord&);
42
43
private
:
44
edm::ESGetToken<OOTPileupCorrectionBuffer, MyRecord>
token_
;
45
};
46
47
template
<
class
DataType,
class
MyRecord>
48
typename
BufferedBoostIOESProducer<DataType, MyRecord>::ReturnType
49
BufferedBoostIOESProducer<DataType, MyRecord>::produce
(
const
MyRecord& iRecord) {
50
const
auto
&
buffer
= iRecord.get(token_);
51
std::istringstream is(
buffer
.str());
52
eos::portable_iarchive ar(is);
53
auto
ret
= std::make_unique<DataType>();
54
ar&*
ret
;
55
return
ret
;
56
}
57
58
#endif // CondTools_Hcal_BufferedBoostIOESProducer_h
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:355
BufferedBoostIOESProducer::BufferedBoostIOESProducer
BufferedBoostIOESProducer(const edm::ParameterSet &)
Definition:
BufferedBoostIOESProducer.h:37
BufferedBoostIOESProducer::~BufferedBoostIOESProducer
~BufferedBoostIOESProducer() override
Definition:
BufferedBoostIOESProducer.h:39
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
ESProducer.h
BufferedBoostIOESProducer::token_
edm::ESGetToken< OOTPileupCorrectionBuffer, MyRecord > token_
Definition:
BufferedBoostIOESProducer.h:44
edmScanValgrind.buffer
buffer
Definition:
edmScanValgrind.py:171
BufferedBoostIOESProducer::ReturnType
std::unique_ptr< DataType > ReturnType
Definition:
BufferedBoostIOESProducer.h:35
OOTPileupCorrectionBuffer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ESGetToken< OOTPileupCorrectionBuffer, MyRecord >
ModuleFactory.h
edm::ESProducer
Definition:
ESProducer.h:101
BufferedBoostIOESProducer
Definition:
BufferedBoostIOESProducer.h:33
BufferedBoostIOESProducer::produce
ReturnType produce(const MyRecord &)
Definition:
BufferedBoostIOESProducer.h:49
Generated for CMSSW Reference Manual by
1.8.16