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
n
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
c
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
src
CommonTools
Utils
plugins
CPUSpender.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/MakerMacros.h
"
2
#include "
FWCore/Framework/interface/stream/EDAnalyzer.h
"
3
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
7
class
CPUSpender
:
public
edm::stream::EDAnalyzer
<> {
8
public
:
10
CPUSpender
(
const
edm::ParameterSet
&
pset
) {
timePerEvent_
=
pset
.getUntrackedParameter<
int
>(
"secPerEvent"
); }
11
13
~CPUSpender
()
override
{}
14
15
void
analyze
(
const
edm::Event
&
event
,
const
edm::EventSetup
&
eventSetup
)
override
{
16
time_t
s
=
time
(
nullptr
);
17
while
(
time
(
nullptr
) -
s
<
timePerEvent_
) {
18
continue
;
19
}
20
}
21
22
// Operations
23
void
beginJob
() {}
24
void
endJob
() {}
25
26
protected
:
27
// void printTrackRecHits(const reco::Track &, edm::ESHandle<GlobalTrackingGeometry>) const;
28
29
private
:
30
unsigned
int
timePerEvent_
;
31
};
32
33
DEFINE_FWK_MODULE
(
CPUSpender
);
CPUSpender::timePerEvent_
unsigned int timePerEvent_
Definition:
CPUSpender.cc:30
CPUSpender::~CPUSpender
~CPUSpender() override
Destructor.
Definition:
CPUSpender.cc:13
CPUSpender::endJob
void endJob()
Definition:
CPUSpender.cc:24
Event.h
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
EventSetup.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
EDAnalyzer.h
hcalRecHitTable_cff.time
time
Definition:
hcalRecHitTable_cff.py:14
ParameterSet.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
edm::stream::EDAnalyzer
Definition:
EDAnalyzer.h:31
CPUSpender
Definition:
CPUSpender.cc:7
CPUSpender::analyze
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition:
CPUSpender.cc:15
CPUSpender::beginJob
void beginJob()
Definition:
CPUSpender.cc:23
edm::ParameterSet
Definition:
ParameterSet.h:48
CPUSpender::CPUSpender
CPUSpender(const edm::ParameterSet &pset)
Constructor.
Definition:
CPUSpender.cc:10
edm::Event
Definition:
Event.h:73
options_cfi.eventSetup
eventSetup
Definition:
options_cfi.py:11
MakerMacros.h
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.14