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
}
ZdcGeometry::producerTag
static std::string producerTag()
Definition:
ZdcGeometry.h:44
ZdcHardcodeGeometryEP::m_loader
ZdcHardcodeGeometryLoader * m_loader
Definition:
ZdcHardcodeGeometryEP.h:31
ZDCGeometryRecord.h
electrons_cff.bool
bool
Definition:
electrons_cff.py:372
MessageLogger.h
funct::false
false
Definition:
Factorize.h:34
ZdcHardcodeGeometryLoader::load
virtual ReturnType load(DetId::Detector det, int subdet)
Definition:
ZdcHardcodeGeometryLoader.cc:20
ZdcHardcodeGeometryEP::m_topology
ZdcTopology m_topology
Definition:
ZdcHardcodeGeometryEP.h:33
ZdcHardcodeGeometryLoader
Definition:
ZdcHardcodeGeometryLoader.h:16
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:138
ZdcHardcodeGeometryEP::produce
ReturnType produce(const ZDCGeometryRecord &)
Definition:
ZdcHardcodeGeometryEP.cc:42
ZDCGeometryRecord
Definition:
ZDCGeometryRecord.h:23
ZdcGeometry.h
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP
~ZdcHardcodeGeometryEP() override
Definition:
ZdcHardcodeGeometryEP.cc:34
ZdcHardcodeGeometryEP.h
ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP
ZdcHardcodeGeometryEP(const edm::ParameterSet &)
Definition:
ZdcHardcodeGeometryEP.cc:22
edm::ParameterSet
Definition:
ParameterSet.h:36
ZdcHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
ZdcHardcodeGeometryEP.h:24
Generated for CMSSW Reference Manual by
1.8.16