Geometry
RPCGeometryBuilder
plugins
RPCGeometryESModule.h
Go to the documentation of this file.
1
#ifndef RPCGeometry_RPCGeometryESModule_h
2
#define RPCGeometry_RPCGeometryESModule_h
3
4
/*
5
//\class RPCGeometryESModule
6
7
Description: RPC GeometryESModule from DD & DD4hep
8
DD4hep part added to the original old file (DD version) made by M. Maggi (INFN Bari)
9
//
10
// Author: Sergio Lo Meo (sergio.lo.meo@cern.ch) following what Ianna Osburne made for DTs (DD4HEP migration)
11
// Created: Fri, 20 Sep 2019
12
*/
13
14
#include <
FWCore/Framework/interface/ESProducer.h
>
15
#include <
FWCore/ParameterSet/interface/ParameterSet.h
>
16
#include <
Geometry/Records/interface/MuonGeometryRecord.h
>
17
#include "
Geometry/RPCGeometry/interface/RPCGeometry.h
"
18
19
#include <
Geometry/Records/interface/IdealGeometryRecord.h
>
20
#include <
Geometry/MuonNumbering/interface/MuonGeometryConstants.h
>
21
#include <
Geometry/MuonNumbering/interface/DD4hep_MuonNumbering.h
>
22
#include <
DetectorDescription/Core/interface/DDCompactView.h
>
23
#include <
DetectorDescription/DDCMS/interface/DDCompactView.h
>
24
25
#include "
Geometry/Records/interface/RPCRecoGeometryRcd.h
"
26
#include "
CondFormats/GeometryObjects/interface/RecoIdealGeometry.h
"
27
28
#include <memory>
29
30
class
RPCGeometryESModule
:
public
edm::ESProducer
{
31
public
:
32
RPCGeometryESModule
(
const
edm::ParameterSet
&
p
);
33
~RPCGeometryESModule
()
override
=
default
;
34
std::unique_ptr<RPCGeometry>
produce
(
const
MuonGeometryRecord
&
record
);
35
36
private
:
37
//DDD
38
edm::ESGetToken<DDCompactView, IdealGeometryRecord>
idealGeomToken_
;
39
edm::ESGetToken<MuonGeometryConstants, IdealGeometryRecord>
dddConstantsToken_
;
40
// dd4hep
41
edm::ESGetToken<cms::DDCompactView, IdealGeometryRecord>
idealDD4hepGeomToken_
;
42
edm::ESGetToken<cms::MuonNumbering, MuonNumberingRecord>
dd4hepConstantsToken_
;
43
44
//DDD
45
edm::ESGetToken<RecoIdealGeometry, RPCRecoGeometryRcd>
recoIdealToken_
;
46
47
const
bool
comp11_
;
48
const
bool
useDDD_
;
49
const
bool
useDD4hep_
;
50
};
51
#endif
RPCGeometryESModule::recoIdealToken_
edm::ESGetToken< RecoIdealGeometry, RPCRecoGeometryRcd > recoIdealToken_
Definition:
RPCGeometryESModule.h:45
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
MuonGeometryConstants.h
ESProducer.h
GlobalPosition_Frontier_DevDB_cff.record
record
Definition:
GlobalPosition_Frontier_DevDB_cff.py:10
RPCGeometryESModule::dd4hepConstantsToken_
edm::ESGetToken< cms::MuonNumbering, MuonNumberingRecord > dd4hepConstantsToken_
Definition:
RPCGeometryESModule.h:42
RPCGeometryESModule::RPCGeometryESModule
RPCGeometryESModule(const edm::ParameterSet &p)
Definition:
RPCGeometryESModule.cc:31
RPCGeometryESModule::useDDD_
const bool useDDD_
Definition:
RPCGeometryESModule.h:48
DDCompactView.h
RPCGeometryESModule::~RPCGeometryESModule
~RPCGeometryESModule() override=default
RPCGeometryESModule::dddConstantsToken_
edm::ESGetToken< MuonGeometryConstants, IdealGeometryRecord > dddConstantsToken_
Definition:
RPCGeometryESModule.h:39
RPCGeometryESModule::produce
std::unique_ptr< RPCGeometry > produce(const MuonGeometryRecord &record)
Definition:
RPCGeometryESModule.cc:49
RPCGeometryESModule::comp11_
const bool comp11_
Definition:
RPCGeometryESModule.h:47
RPCGeometryESModule::idealDD4hepGeomToken_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > idealDD4hepGeomToken_
Definition:
RPCGeometryESModule.h:41
RPCGeometryESModule::useDD4hep_
const bool useDD4hep_
Definition:
RPCGeometryESModule.h:49
RPCRecoGeometryRcd.h
DDCompactView.h
RecoIdealGeometry.h
edm::ParameterSet
Definition:
ParameterSet.h:36
RPCGeometryESModule
Definition:
RPCGeometryESModule.h:30
IdealGeometryRecord.h
edm::ESGetToken< DDCompactView, IdealGeometryRecord >
DD4hep_MuonNumbering.h
RPCGeometryESModule::idealGeomToken_
edm::ESGetToken< DDCompactView, IdealGeometryRecord > idealGeomToken_
Definition:
RPCGeometryESModule.h:38
edm::ESProducer
Definition:
ESProducer.h:101
ParameterSet.h
MuonGeometryRecord.h
MuonGeometryRecord
Definition:
MuonGeometryRecord.h:34
RPCGeometry.h
Generated for CMSSW Reference Manual by
1.8.16