CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDTestVectors Class Reference
Inheritance diagram for DDTestVectors:

Public Member Functions

void analyze (Event const &iEvent, EventSetup const &) override
 
void beginJob () override
 
 DDTestVectors (const ParameterSet &iConfig)
 
void endJob () override
 

Private Attributes

const ESInputTag m_tag
 

Detailed Description

Definition at line 15 of file DDTestVectors.cc.

Constructor & Destructor Documentation

DDTestVectors::DDTestVectors ( const ParameterSet iConfig)
inlineexplicit

Definition at line 17 of file DDTestVectors.cc.

18  : m_tag(iConfig.getParameter<ESInputTag>("DDDetector"))
19  {}
T getParameter(std::string const &) const
const ESInputTag m_tag

Member Function Documentation

void DDTestVectors::analyze ( Event const &  iEvent,
EventSetup const &   
)
override

Definition at line 30 of file DDTestVectors.cc.

References DEFINE_FWK_MODULE, edm::EventSetup::get(), mps_fire::i, edm::LogVerbatim::log(), cmsBatch::log, AlCaHLTBitMon_ParallelJobs::p, PhysicsTools::registry, and cms::DDVectorRegistry::vectors.

31 {
32  LogVerbatim("Geometry") << "DDTestVectors::analyze: " << m_tag;
34  iEventSetup.get<DDVectorRegistryRcd>().get(m_tag.module(), registry);
35 
36  LogVerbatim("Geometry").log([&registry](auto& log) {
37  log << "DD Vector Registry size: " << registry->vectors.size();
38  for(const auto& p: registry->vectors) {
39  log << " " << p.first << " => ";
40  for(const auto& i : p.second)
41  log << i << ", ";
42  }
43  });
44 }
tbb::concurrent_unordered_map< std::string, tbb::concurrent_vector< double > > vectors
const ESInputTag m_tag
LogVerbatim & log(F &&iF)
static Interceptor::Registry registry("Interceptor")
const std::string & module() const
Definition: ESInputTag.h:99
void DDTestVectors::beginJob ( void  )
inlineoverride

Definition at line 21 of file DDTestVectors.cc.

References analyze(), and iEvent.

21 {}
void DDTestVectors::endJob ( void  )
inlineoverride

Definition at line 23 of file DDTestVectors.cc.

23 {}

Member Data Documentation

const ESInputTag DDTestVectors::m_tag
private

Definition at line 26 of file DDTestVectors.cc.