Main Page
Namespaces
Classes
Package Documentation
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
23
ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP
(
const
edm::ParameterSet
& ps ) :
24
m_loader (0),
25
m_topology () ,
26
m_applyAlignment ( ps.getUntrackedParameter<bool>(
"applyAlignment"
,
false
) )
27
{
28
//the following line is needed to tell the framework what
29
// data is being produced
30
setWhatProduced
(
this
,
31
ZdcGeometry::producerTag
() );
32
33
// disable
34
// setWhatProduced( this,
35
// &ZdcHardcodeGeometryEP::produceIdeal,
36
// edm::es::Label( "ZDC" ) );
37
}
38
39
40
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP
()
41
{
42
delete
m_loader
;
43
}
44
45
46
//
47
// member functions
48
//
49
50
// ------------ method called to produce the data ------------
51
52
ZdcHardcodeGeometryEP::ReturnType
53
ZdcHardcodeGeometryEP::produce
(
const
ZDCGeometryRecord
& iRecord )
54
{
55
// ZdcHardcodeGeometryLoader loader ( m_topology ) ;
56
m_loader
=
new
ZdcHardcodeGeometryLoader
(
m_topology
) ;
57
58
ReturnType
ptr (
m_loader
->
load
() ) ;
59
60
return
ptr ;
61
}
62
63
MessageLogger.h
ZdcHardcodeGeometryEP::m_topology
ZdcTopology m_topology
Definition:
ZdcHardcodeGeometryEP.h:36
funct::false
false
Definition:
Factorize.h:34
ZdcGeometry::producerTag
static std::string producerTag()
Definition:
ZdcGeometry.h:46
ZDCGeometryRecord.h
ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP
ZdcHardcodeGeometryEP(const edm::ParameterSet &)
Definition:
ZdcHardcodeGeometryEP.cc:23
ZdcGeometry.h
ZdcHardcodeGeometryEP.h
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
ZdcHardcodeGeometryLoader::load
virtual ReturnType load(DetId::Detector det, int subdet)
Definition:
ZdcHardcodeGeometryLoader.cc:29
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP
~ZdcHardcodeGeometryEP()
Definition:
ZdcHardcodeGeometryEP.cc:40
ZdcHardcodeGeometryEP::ReturnType
std::shared_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
ZdcHardcodeGeometryEP.h:26
ZdcHardcodeGeometryEP::produce
ReturnType produce(const ZDCGeometryRecord &)
Definition:
ZdcHardcodeGeometryEP.cc:53
ZdcHardcodeGeometryEP::m_loader
ZdcHardcodeGeometryLoader * m_loader
Definition:
ZdcHardcodeGeometryEP.h:34
ZdcHardcodeGeometryLoader
Definition:
ZdcHardcodeGeometryLoader.h:16
ZDCGeometryRecord
Definition:
ZDCGeometryRecord.h:24
edm::ParameterSet
Definition:
ParameterSet.h:36
Generated for CMSSW Reference Manual by
1.8.11