CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDCMSDetector Class Reference
Inheritance diagram for DDCMSDetector:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (Event const &iEvent, EventSetup const &) override
 
void beginJob () override
 
 DDCMSDetector (const ParameterSet &p)
 
void endJob () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

const ESInputTag m_tag
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 22 of file DDCMSDetector.cc.

Constructor & Destructor Documentation

◆ DDCMSDetector()

DDCMSDetector::DDCMSDetector ( const ParameterSet p)
explicit

Definition at line 34 of file DDCMSDetector.cc.

34 : m_tag(iConfig.getParameter<ESInputTag>("DDDetector")) {}

Member Function Documentation

◆ analyze()

void DDCMSDetector::analyze ( Event const &  iEvent,
EventSetup const &  iEventSetup 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 36 of file DDCMSDetector.cc.

36  {
38  iEventSetup.get<IdealGeometryRecord>().get(m_tag, det);
39 
40  LogVerbatim("Geometry") << "Iterate over the detectors:\n";
41  LogVerbatim("Geometry").log([&](auto& log) {
42  for (auto const& it : det->detectors()) {
43  dd4hep::DetElement det(it.second);
44  log << it.first << ": " << det.path();
45  }
46  });
47  LogVerbatim("Geometry") << "..done!";
48 
50  iEventSetup.get<DDVectorRegistryRcd>().get(m_tag, registry);
51 
52  LogVerbatim("Geometry") << "DD Vector Registry size: " << registry->vectors.size();
53  LogVerbatim("Geometry").log([&](auto& log) {
54  for (const auto& p : registry->vectors) {
55  log << " " << p.first << " => ";
56  for (const auto& i : p.second)
57  log << i << ", ";
58  log << '\n';
59  }
60  });
61 }

References cms::DDDetector::detectors(), edm::EventSetup::get(), get, dqm-mbProfile::log, edm::LogVerbatim::log(), m_tag, AlCaHLTBitMon_ParallelJobs::p, and cms::DDVectorRegistry::vectors.

◆ beginJob()

void DDCMSDetector::beginJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 26 of file DDCMSDetector.cc.

26 {}

◆ endJob()

void DDCMSDetector::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 63 of file DDCMSDetector.cc.

63 {}

Member Data Documentation

◆ m_tag

const ESInputTag DDCMSDetector::m_tag
private

Definition at line 31 of file DDCMSDetector.cc.

Referenced by analyze().

edm::ESInputTag
Definition: ESInputTag.h:87
cms::DDVectorRegistry::vectors
tbb::concurrent_unordered_map< std::string, tbb::concurrent_vector< double > > vectors
Definition: DDVectorRegistry.h:10
cms::DDDetector::detectors
const HandleMap & detectors() const
The map of sub-detectors.
Definition: DDDetector.cc:53
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
DDVectorRegistryRcd
Definition: DDVectorRegistryRcd.h:8
DDCMSDetector::m_tag
const ESInputTag m_tag
Definition: DDCMSDetector.cc:31
edm::LogVerbatim::log
LogVerbatim & log(F &&iF)
Definition: MessageLogger.h:327
edm::LogVerbatim
Definition: MessageLogger.h:297
get
#define get
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27