Main Page
Namespaces
Classes
Package Documentation
Geometry
MuonNumbering
plugins
MuonNumberingInitialization.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: MuonNumberingInitialization
4
// Class: MuonNumberingInitialization
5
//
13
//
14
// Original Author: Michael Case
15
// Created: Thu Sep 28 16:40:29 PDT 2006
16
//
17
//
18
19
#include <memory>
20
21
#include "
FWCore/Framework/interface/ModuleFactory.h
"
22
#include "
FWCore/Framework/interface/ESProducer.h
"
23
#include "
FWCore/Framework/interface/ESTransientHandle.h
"
24
25
#include "
Geometry/MuonNumbering/interface/MuonDDDConstants.h
"
26
#include "
Geometry/Records/interface/MuonNumberingRecord.h
"
27
28
class
MuonNumberingInitialization
:
public
edm::ESProducer
29
{
30
public
:
31
32
MuonNumberingInitialization
(
const
edm::ParameterSet
& );
33
34
using
ReturnType
= std::unique_ptr<MuonDDDConstants>;
35
36
ReturnType
produce
(
const
MuonNumberingRecord
& );
37
};
38
39
MuonNumberingInitialization::MuonNumberingInitialization
(
const
edm::ParameterSet
& )
40
{
41
setWhatProduced
(
this
);
42
}
43
44
MuonNumberingInitialization::ReturnType
45
MuonNumberingInitialization::produce
(
const
MuonNumberingRecord
& iRecord)
46
{
47
const
IdealGeometryRecord
& idealGeometryRecord = iRecord.
getRecord
<
IdealGeometryRecord
>();
48
edm::ESTransientHandle<DDCompactView>
pDD;
49
idealGeometryRecord.
get
(pDD);
50
51
return
std::make_unique<MuonDDDConstants>(*pDD);
52
}
53
54
DEFINE_FWK_EVENTSETUP_MODULE
(
MuonNumberingInitialization
);
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
MuonNumberingInitialization::MuonNumberingInitialization
MuonNumberingInitialization(const edm::ParameterSet &)
Definition:
MuonNumberingInitialization.cc:39
MuonNumberingRecord
Definition:
MuonNumberingRecord.h:30
edm::ESProducer
Definition:
ESProducer.h:99
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:110
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
MuonDDDConstants.h
MuonNumberingRecord.h
IdealGeometryRecord
Definition:
IdealGeometryRecord.h:27
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
MuonNumberingInitialization::produce
ReturnType produce(const MuonNumberingRecord &)
Definition:
MuonNumberingInitialization.cc:45
MuonNumberingInitialization
Definition:
MuonNumberingInitialization.cc:28
ESProducer.h
ESTransientHandle.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
edm::ESTransientHandle
Definition:
ESTransientHandle.h:41
MuonNumberingInitialization::ReturnType
std::unique_ptr< MuonDDDConstants > ReturnType
Definition:
MuonNumberingInitialization.cc:34
Generated for CMSSW Reference Manual by
1.8.11