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
Geometry
plugins
RPCRecoIdealDBLoader.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
2
#include "
FWCore/ServiceRegistry/interface/Service.h
"
3
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
CondCore/DBOutputService/interface/PoolDBOutputService.h
"
6
#include "
FWCore/Framework/interface/EventSetup.h
"
7
#include "
FWCore/Framework/interface/ESTransientHandle.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/Framework/interface/MakerMacros.h
"
10
#include "
CondFormats/GeometryObjects/interface/RecoIdealGeometry.h
"
11
#include "
Geometry/Records/interface/RPCRecoGeometryRcd.h
"
12
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
13
#include "
DetectorDescription/Core/interface/DDCompactView.h
"
14
#include "
Geometry/Records/interface/MuonNumberingRecord.h
"
15
#include "
Geometry/MuonNumbering/interface/MuonGeometryConstants.h
"
16
#include "
Geometry/RPCGeometryBuilder/src/RPCGeometryParsFromDD.h
"
17
18
class
RPCRecoIdealDBLoader
:
public
edm::one::EDAnalyzer
<edm::one::WatchRuns> {
19
public
:
20
RPCRecoIdealDBLoader
(
const
edm::ParameterSet
&) {}
21
22
void
beginRun
(
edm::Run
const
&
iEvent
,
edm::EventSetup
const
&)
override
;
23
void
analyze
(
edm::Event
const
&
iEvent
,
edm::EventSetup
const
&)
override
{}
24
void
endRun
(
edm::Run
const
&
iEvent
,
edm::EventSetup
const
&)
override
{}
25
};
26
27
void
RPCRecoIdealDBLoader::beginRun
(
const
edm::Run
&,
edm::EventSetup
const
& es) {
28
RecoIdealGeometry
* rig =
new
RecoIdealGeometry
;
29
edm::Service<cond::service::PoolDBOutputService>
mydbservice;
30
if
(!mydbservice.
isAvailable
()) {
31
edm::LogError
(
"RPCRecoIdealDBLoader"
) <<
"PoolDBOutputService unavailable"
;
32
return
;
33
}
34
35
edm::ESTransientHandle<DDCompactView>
pDD;
36
edm::ESHandle<MuonGeometryConstants>
pMNDC;
37
es.
get
<
IdealGeometryRecord
>().
get
(pDD);
38
es.
get
<
IdealGeometryRecord
>().
get
(pMNDC);
39
40
const
DDCompactView
& cpv = *pDD;
41
RPCGeometryParsFromDD
rpcpd;
42
43
rpcpd.
build
(&cpv, *pMNDC, *rig);
44
45
if
(mydbservice->
isNewTagRequest
(
"RPCRecoGeometryRcd"
)) {
46
mydbservice->
createNewIOV
<
RecoIdealGeometry
>(
47
rig, mydbservice->
beginOfTime
(), mydbservice->
endOfTime
(),
"RPCRecoGeometryRcd"
);
48
}
else
{
49
edm::LogError
(
"RPCRecoIdealDBLoader"
) <<
"RPCRecoGeometryRcd Tag is already present."
;
50
}
51
}
52
53
DEFINE_FWK_MODULE
(
RPCRecoIdealDBLoader
);
RPCRecoIdealDBLoader::beginRun
void beginRun(edm::Run const &iEvent, edm::EventSetup const &) override
Definition:
RPCRecoIdealDBLoader.cc:27
RPCGeometryParsFromDD::build
void build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
Definition:
RPCGeometryParsFromDD.cc:29
EDAnalyzer.h
ESTransientHandle.h
cond::service::PoolDBOutputService::beginOfTime
cond::Time_t beginOfTime() const
Definition:
PoolDBOutputService.cc:177
ESHandle.h
edm::Run
Definition:
Run.h:45
MuonGeometryConstants.h
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
MuonNumberingRecord.h
edm::Service::isAvailable
bool isAvailable() const
Definition:
Service.h:40
RPCRecoIdealDBLoader::RPCRecoIdealDBLoader
RPCRecoIdealDBLoader(const edm::ParameterSet &)
Definition:
RPCRecoIdealDBLoader.cc:20
DDCompactView.h
MakerMacros.h
PoolDBOutputService.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
RPCRecoIdealDBLoader
Definition:
RPCRecoIdealDBLoader.cc:18
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
cond::service::PoolDBOutputService::createNewIOV
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
Definition:
PoolDBOutputService.h:107
Service.h
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition:
DDCompactView.h:80
edm::ESHandle
Definition:
DTSurvey.h:22
RPCRecoGeometryRcd.h
RecoIdealGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::LogError
Definition:
MessageLogger.h:183
Event.h
RPCGeometryParsFromDD
Definition:
RPCGeometryParsFromDD.h:22
edm::Service< cond::service::PoolDBOutputService >
RPCRecoIdealDBLoader::endRun
void endRun(edm::Run const &iEvent, edm::EventSetup const &) override
Definition:
RPCRecoIdealDBLoader.cc:24
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:57
RPCGeometryParsFromDD.h
get
#define get
edm::ESTransientHandle
Definition:
ESTransientHandle.h:41
cond::service::PoolDBOutputService::endOfTime
cond::Time_t endOfTime() const
Definition:
PoolDBOutputService.cc:175
EventSetup.h
cond::service::PoolDBOutputService::isNewTagRequest
bool isNewTagRequest(const std::string &recordName)
Definition:
PoolDBOutputService.cc:90
RPCRecoIdealDBLoader::analyze
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
Definition:
RPCRecoIdealDBLoader.cc:23
ParameterSet.h
MuonGeometryRecord.h
edm::Event
Definition:
Event.h:73
IdealGeometryRecord
Definition:
IdealGeometryRecord.h:27
RecoIdealGeometry
Definition:
RecoIdealGeometry.h:28
Generated for CMSSW Reference Manual by
1.8.16