Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Geometry
HcalEventSetup
src
HcalTopologyIdealEP.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: HcalTopologyIdealEP
4
// Class: HcalTopologyIdealEP
5
//
13
//
14
// Original Author: Jeremiah Mans
15
// Created: Mon Oct 3 11:35:27 CDT 2005
16
// $Id: HcalTopologyIdealEP.cc,v 1.3 2008/04/21 22:18:19 heltsley Exp $
17
//
18
//
19
20
#include "
Geometry/HcalEventSetup/interface/HcalTopologyIdealEP.h
"
21
#include "
Geometry/CaloTopology/interface/HcalTopologyRestrictionParser.h
"
22
#include "
FWCore/Utilities/interface/Exception.h
"
23
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
24
//
25
// constants, enums and typedefs
26
//
27
28
//
29
// static data member definitions
30
//
31
32
//
33
// constructors and destructor
34
//
35
HcalTopologyIdealEP::HcalTopologyIdealEP
(
const
edm::ParameterSet
&
conf
) :
36
m_restrictions(conf.getUntrackedParameter<std::string>(
"Exclude"
,
""
)),
37
m_h2mode(conf.getUntrackedParameter<bool>(
"H2Mode"
,
false
))
38
{
39
//the following line is needed to tell the framework what
40
// data is being produced
41
setWhatProduced
(
this
);
42
}
43
44
45
HcalTopologyIdealEP::~HcalTopologyIdealEP
()
46
{
47
}
48
49
50
//
51
// member functions
52
//
53
54
// ------------ method called to produce the data ------------
55
HcalTopologyIdealEP::ReturnType
56
HcalTopologyIdealEP::produce
(
const
IdealGeometryRecord
& iRecord)
57
{
58
if
(
m_h2mode
)
edm::LogInfo
(
"HCAL"
) <<
"Using H2 Topology"
;
59
60
ReturnType
myTopo(
new
HcalTopology
(
m_h2mode
));
61
62
HcalTopologyRestrictionParser
parser
(*myTopo);
63
if
(!
m_restrictions
.empty()) {
64
std::string
error
=parser.
parse
(
m_restrictions
);
65
if
(!error.empty()) {
66
throw
cms::Exception
(
"Parse Error"
,
"Parse error on Exclude "
+error);
67
}
68
}
69
70
return
myTopo ;
71
}
72
73
HcalTopologyIdealEP.h
geometryXMLtoCSV.parser
tuple parser
Definition:
geometryXMLtoCSV.py:78
HcalTopologyIdealEP::m_restrictions
std::string m_restrictions
Definition:
HcalTopologyIdealEP.h:31
MessageLogger.h
HcalTopologyRestrictionParser::parse
std::string parse(const std::string &line)
Definition:
HcalTopologyRestrictionParser.cc:16
funct::false
false
Definition:
Factorize.h:34
HcalTopologyRestrictionParser
Definition:
HcalTopologyRestrictionParser.h:23
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
HcalTopologyIdealEP::ReturnType
boost::shared_ptr< HcalTopology > ReturnType
Definition:
HcalTopologyIdealEP.h:26
HcalTopologyIdealEP::HcalTopologyIdealEP
HcalTopologyIdealEP(const edm::ParameterSet &)
Definition:
HcalTopologyIdealEP.cc:35
HcalTopology::HcalTopology
HcalTopology(bool h2_mode=false)
Definition:
HcalTopology.cc:9
HcalTopologyIdealEP::m_h2mode
bool m_h2mode
Definition:
HcalTopologyIdealEP.h:32
dbtoconf.conf
tuple conf
Definition:
dbtoconf.py:185
HcalTopologyRestrictionParser.h
edm::LogInfo
Definition:
MessageLogger.h:209
IdealGeometryRecord
Definition:
IdealGeometryRecord.h:27
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:24
HcalTopologyIdealEP::~HcalTopologyIdealEP
~HcalTopologyIdealEP()
Definition:
HcalTopologyIdealEP.cc:45
edm::ParameterSet
Definition:
ParameterSet.h:32
HcalTopologyIdealEP::produce
ReturnType produce(const IdealGeometryRecord &)
Definition:
HcalTopologyIdealEP.cc:56
error
Definition:
MessageDispatcher.h:11
Generated for CMSSW Reference Manual by
1.8.5