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 (edm::Event const &iEvent, edm::EventSetup const &) override
 
void beginJob () override
 
 DDCMSDetector (const edm::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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

std::string confGeomXMLFiles_
 
std::vector< std::string > files_
 
std::vector< std::string > relFiles_
 

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
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, 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 ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 11 of file DDCMSDetector.cc.

Constructor & Destructor Documentation

DDCMSDetector::DDCMSDetector ( const edm::ParameterSet p)
explicit

Definition at line 26 of file DDCMSDetector.cc.

References files_, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), and relFiles_.

27  : confGeomXMLFiles_(iConfig.getParameter<std::string>("confGeomXMLFiles"))
28 {
29  relFiles_ = iConfig.getParameter<std::vector<std::string> >("geomXMLFiles");
30  for( auto rit : relFiles_ ) {
31  edm::FileInPath fp(rit);
32  files_.emplace_back(fp.fullPath());
33  }
34 }
std::string confGeomXMLFiles_
std::vector< std::string > files_
std::vector< std::string > relFiles_

Member Function Documentation

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

Implements edm::one::EDAnalyzerBase.

Definition at line 37 of file DDCMSDetector.cc.

References confGeomXMLFiles_, gather_cfg::cout, DEFINE_FWK_MODULE, heppy_report::description, align::Detector, PatBasicFWLiteAnalyzer::files, files_, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by beginJob().

38 {
39  dd4hep::Detector& description = dd4hep::Detector::getInstance();
40 
41  std::string name("DD4hep_CompactLoader");
42  const char* files[] = { confGeomXMLFiles_.c_str(), nullptr };
43  description.apply(name.c_str(),2,(char**)files);
44  for( auto it : files_ )
45  std::cout << it << std::endl;
46 }
std::string confGeomXMLFiles_
std::vector< std::string > files_
void DDCMSDetector::beginJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 15 of file DDCMSDetector.cc.

References analyze(), and iEvent.

15 {}
void DDCMSDetector::endJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 17 of file DDCMSDetector.cc.

17 {}

Member Data Documentation

std::string DDCMSDetector::confGeomXMLFiles_
private

Definition at line 21 of file DDCMSDetector.cc.

Referenced by analyze().

std::vector< std::string > DDCMSDetector::files_
private

Definition at line 23 of file DDCMSDetector.cc.

Referenced by analyze(), and DDCMSDetector().

std::vector< std::string > DDCMSDetector::relFiles_
private

Definition at line 22 of file DDCMSDetector.cc.

Referenced by DDCMSDetector().