CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
HcalTopologyIdealEP Class Reference

#include <tmp/HcalTopologyIdealEP/interface/HcalTopologyIdealEP.h>

Inheritance diagram for HcalTopologyIdealEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

using ReturnType = std::unique_ptr< HcalTopology >
 

Public Member Functions

 HcalTopologyIdealEP (const edm::ParameterSet &)
 
ReturnType produce (const HcalRecNumberingRecord &)
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecordm_hdcToken
 
bool m_mergePosition
 
std::string m_restrictions
 

Additional Inherited Members

- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 17 of file HcalTopologyIdealEP.h.

Member Typedef Documentation

◆ ReturnType

Definition at line 21 of file HcalTopologyIdealEP.h.

Constructor & Destructor Documentation

◆ HcalTopologyIdealEP()

HcalTopologyIdealEP::HcalTopologyIdealEP ( const edm::ParameterSet conf)

Definition at line 29 of file HcalTopologyIdealEP.cc.

32  m_mergePosition(conf.getUntrackedParameter<bool>("MergePosition")) {
33 #ifdef DebugLog
34  std::cout << "HcalTopologyIdealEP::HcalTopologyIdealEP with Exclude: " << m_restrictions
35  << " MergePosition: " << m_mergePosition << std::endl;
36  edm::LogInfo("HCAL") << "HcalTopologyIdealEP::HcalTopologyIdealEP";
37 #endif
38 }

References produce(), and edm::ESProducer::setWhatProduced().

Member Function Documentation

◆ fillDescriptions()

void HcalTopologyIdealEP::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 40 of file HcalTopologyIdealEP.cc.

40  {
42  desc.addUntracked<std::string>("Exclude", "");
43  desc.addUntracked<bool>("MergePosition", false);
44  descriptions.add("hcalTopologyIdealBase", desc);
45 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ produce()

HcalTopologyIdealEP::ReturnType HcalTopologyIdealEP::produce ( const HcalRecNumberingRecord iRecord)

Definition at line 48 of file HcalTopologyIdealEP.cc.

48  {
49 #ifdef DebugLog
50  std::cout << "HcalTopologyIdealEP::produce(const IdealGeometryRecord& iRecord)" << std::endl;
51  edm::LogInfo("HCAL") << "HcalTopologyIdealEP::produce(const HcalGeometryRecord& iRecord)";
52 #endif
53  const HcalDDDRecConstants& hdc = iRecord.get(m_hdcToken);
54 
55 #ifdef DebugLog
56  std::cout << "mode = " << hdc.getTopoMode() << ", maxDepthHB = " << hdc.getMaxDepth(0)
57  << ", maxDepthHE = " << hdc.getMaxDepth(1) << ", maxDepthHF = " << hdc.getMaxDepth(2) << std::endl;
58  edm::LogInfo("HCAL") << "mode = " << hdc.getTopoMode() << ", maxDepthHB = " << hdc.getMaxDepth(0)
59  << ", maxDepthHE = " << hdc.getMaxDepth(1) << ", maxDepthHF = " << hdc.getMaxDepth(2);
60 #endif
61  ReturnType myTopo(new HcalTopology(&hdc, m_mergePosition));
62 
64  if (!m_restrictions.empty()) {
66  if (!error.empty()) {
67  throw cms::Exception("Parse Error", "Parse error on Exclude " + error);
68  }
69  }
70  return myTopo;
71 }

References gather_cfg::cout, relativeConstraints::error, Exception, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), HcalDDDRecConstants::getMaxDepth(), HcalDDDRecConstants::getTopoMode(), HcalTopology::HcalTopology(), m_hdcToken, m_mergePosition, m_restrictions, writedatasetfile::parser, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HcalTopologyIdealEP().

Member Data Documentation

◆ m_hdcToken

edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord> HcalTopologyIdealEP::m_hdcToken
private

Definition at line 29 of file HcalTopologyIdealEP.h.

Referenced by produce().

◆ m_mergePosition

bool HcalTopologyIdealEP::m_mergePosition
private

Definition at line 31 of file HcalTopologyIdealEP.h.

Referenced by produce().

◆ m_restrictions

std::string HcalTopologyIdealEP::m_restrictions
private

Definition at line 30 of file HcalTopologyIdealEP.h.

Referenced by produce().

HcalTopologyIdealEP::m_hdcToken
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > m_hdcToken
Definition: HcalTopologyIdealEP.h:29
HcalDDDRecConstants::getTopoMode
int getTopoMode() const
Definition: HcalDDDRecConstants.h:106
edm::ESInputTag
Definition: ESInputTag.h:87
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HcalTopology
Definition: HcalTopology.h:26
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
relativeConstraints.error
error
Definition: relativeConstraints.py:53
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
HcalTopologyIdealEP::produce
ReturnType produce(const HcalRecNumberingRecord &)
Definition: HcalTopologyIdealEP.cc:48
HcalTopologyIdealEP::ReturnType
std::unique_ptr< HcalTopology > ReturnType
Definition: HcalTopologyIdealEP.h:21
HcalTopologyIdealEP::m_restrictions
std::string m_restrictions
Definition: HcalTopologyIdealEP.h:30
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
HcalTopologyIdealEP::m_mergePosition
bool m_mergePosition
Definition: HcalTopologyIdealEP.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Exception
Definition: hltDiff.cc:245
HcalDDDRecConstants::getMaxDepth
int getMaxDepth(const int &type) const
Definition: HcalDDDRecConstants.h:88
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23
HcalTopologyRestrictionParser
Definition: HcalTopologyRestrictionParser.h:21