Geometry
ForwardGeometry
plugins
ZdcHardcodeGeometryEP.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: ZdcHardcodeGeometryEP
4
// Class: ZdcHardcodeGeometryEP
5
//
13
//
14
// Original Author: Edmundo Garcia
15
// Created: Mon Aug 6 12:33:33 CDT 2007
16
//
17
#include "
Geometry/Records/interface/ZDCGeometryRecord.h
"
18
#include "
Geometry/ForwardGeometry/plugins/ZdcHardcodeGeometryEP.h
"
19
#include "
Geometry/ForwardGeometry/interface/ZdcGeometry.h
"
20
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
21
22
ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP
(
const
edm::ParameterSet
& ps)
23
: m_loader(nullptr), m_topology(), m_applyAlignment(ps.getUntrackedParameter<
bool
>(
"applyAlignment"
,
false
)) {
24
//the following line is needed to tell the framework what
25
// data is being produced
26
setWhatProduced
(
this
,
ZdcGeometry::producerTag
());
27
28
// disable
29
// setWhatProduced( this,
30
// &ZdcHardcodeGeometryEP::produceIdeal,
31
// edm::es::Label( "ZDC" ) );
32
}
33
34
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP
() {
delete
m_loader
; }
35
36
//
37
// member functions
38
//
39
40
// ------------ method called to produce the data ------------
41
42
ZdcHardcodeGeometryEP::ReturnType
ZdcHardcodeGeometryEP::produce
(
const
ZDCGeometryRecord
& iRecord) {
43
// ZdcHardcodeGeometryLoader loader ( m_topology ) ;
44
m_loader
=
new
ZdcHardcodeGeometryLoader
(
m_topology
);
45
46
return
ReturnType
(
m_loader
->
load
());
47
}
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP
~ZdcHardcodeGeometryEP() override
Definition:
ZdcHardcodeGeometryEP.cc:34
MessageLogger.h
ZdcHardcodeGeometryEP::m_topology
ZdcTopology m_topology
Definition:
ZdcHardcodeGeometryEP.h:32
funct::false
false
Definition:
Factorize.h:29
ZdcGeometry::producerTag
static std::string producerTag()
Definition:
ZdcGeometry.h:44
ZDCGeometryRecord.h
ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP
ZdcHardcodeGeometryEP(const edm::ParameterSet &)
Definition:
ZdcHardcodeGeometryEP.cc:22
ZdcGeometry.h
ZdcHardcodeGeometryEP.h
ZdcHardcodeGeometryLoader::load
virtual ReturnType load(DetId::Detector det, int subdet)
Definition:
ZdcHardcodeGeometryLoader.cc:20
ZdcHardcodeGeometryEP::produce
ReturnType produce(const ZDCGeometryRecord &)
Definition:
ZdcHardcodeGeometryEP.cc:42
ZdcHardcodeGeometryEP::m_loader
ZdcHardcodeGeometryLoader * m_loader
Definition:
ZdcHardcodeGeometryEP.h:30
electrons_cff.bool
bool
Definition:
electrons_cff.py:319
ZdcHardcodeGeometryLoader
Definition:
ZdcHardcodeGeometryLoader.h:16
ZDCGeometryRecord
Definition:
ZDCGeometryRecord.h:23
edm::ParameterSet
Definition:
ParameterSet.h:47
ZdcHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
ZdcHardcodeGeometryEP.h:23
Generated for CMSSW Reference Manual by
1.8.14