CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::ModuleDescription Class Reference

#include <ModuleDescription.h>

Public Member Functions

ParameterSetID const & mainParameterSetID () const
 
 ModuleDescription ()
 
 ModuleDescription (std::string const &modName, std::string const &modLabel)
 
 ModuleDescription (std::string const &modName, std::string const &modLabel, ProcessConfiguration const *procConfig)
 
 ModuleDescription (ParameterSetID const &pid, std::string const &modName, std::string const &modLabel)
 
 ModuleDescription (ParameterSetID const &pid, std::string const &modName, std::string const &modLabel, ProcessConfiguration const *procConfig)
 
std::string const & moduleLabel () const
 
std::string const & moduleName () const
 
bool operator!= (ModuleDescription const &rh) const
 
bool operator< (ModuleDescription const &rh) const
 
bool operator== (ModuleDescription const &rh) const
 
ParameterSetID const & parameterSetID () const
 
std::string const & passID () const
 
ProcessConfiguration const & processConfiguration () const
 
ProcessConfigurationID processConfigurationID () const
 
std::string const & processName () const
 
std::string const & releaseVersion () const
 
void write (std::ostream &os) const
 
 ~ModuleDescription ()
 

Private Attributes

std::string moduleLabel_
 
std::string moduleName_
 
ParameterSetID parameterSetID_
 
ProcessConfiguration const * processConfigurationPtr_
 

Detailed Description

Definition at line 23 of file ModuleDescription.h.

Constructor & Destructor Documentation

edm::ModuleDescription::ModuleDescription ( )

Definition at line 12 of file ModuleDescription.cc.

12  :
14  moduleName_(),
15  moduleLabel_(),
16  processConfigurationPtr_(nullptr) {}
ProcessConfiguration const * processConfigurationPtr_
ParameterSetID parameterSetID_
edm::ModuleDescription::ModuleDescription ( std::string const &  modName,
std::string const &  modLabel 
)

Definition at line 33 of file ModuleDescription.cc.

35  : ModuleDescription{ParameterSetID(), modName, modLabel, nullptr} {}
Hash< ParameterSetType > ParameterSetID
edm::ModuleDescription::ModuleDescription ( std::string const &  modName,
std::string const &  modLabel,
ProcessConfiguration const *  procConfig 
)

Definition at line 37 of file ModuleDescription.cc.

40  : ModuleDescription{ParameterSetID(), modName, modLabel, procConfig} {}
Hash< ParameterSetType > ParameterSetID
edm::ModuleDescription::ModuleDescription ( ParameterSetID const &  pid,
std::string const &  modName,
std::string const &  modLabel 
)

Definition at line 18 of file ModuleDescription.cc.

References evf::utils::pid.

21  : ModuleDescription{pid, modName, modLabel, nullptr} {}
edm::ModuleDescription::ModuleDescription ( ParameterSetID const &  pid,
std::string const &  modName,
std::string const &  modLabel,
ProcessConfiguration const *  procConfig 
)

Definition at line 23 of file ModuleDescription.cc.

27  :
29  moduleName_(modName),
30  moduleLabel_(modLabel),
31  processConfigurationPtr_(procConfig) {}
ProcessConfiguration const * processConfigurationPtr_
ParameterSetID parameterSetID_
edm::ModuleDescription::~ModuleDescription ( )

Definition at line 42 of file ModuleDescription.cc.

42 {}

Member Function Documentation

ParameterSetID const & edm::ModuleDescription::mainParameterSetID ( ) const

Definition at line 70 of file ModuleDescription.cc.

References edm::ProcessConfiguration::parameterSetID(), and processConfiguration().

70  {
72  }
ParameterSetID const & parameterSetID() const
ProcessConfiguration const & processConfiguration() const
std::string const& edm::ModuleDescription::moduleLabel ( ) const
inline

Definition at line 50 of file ModuleDescription.h.

References moduleLabel_.

Referenced by edm::ProductRegistryHelper::addToRegistry(), edm::UnscheduledCallProducer::addWorker(), edm::ScheduleInfo::availableModuleLabels(), edm::Worker::beginJob(), edm::Worker::endJob(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::Path::exceptionContext(), edm::fillModuleInPathSummary(), edm::fillWorkerSummaryAux(), edm::CurrentProcessingContext::moduleLabel(), Timer::newTimingMeasurement(), operator<(), edm::ScheduleInfo::parametersForModule(), edm::service::EnableFloatingPointExceptions::postActions(), evf::TimeProfilerService::postModule(), edm::service::PathTimerService::postModule(), edm::service::Timing::postModule(), edm::service::SimpleMemoryCheck::postModule(), FastTimerService::postModule(), edm::service::Tracer::postModuleBeginJob(), edm::service::SimpleMemoryCheck::postModuleBeginJob(), edm::service::RandomNumberGeneratorService::postModuleBeginJob(), edm::service::Tracer::postModuleBeginLumi(), edm::service::Tracer::postModuleBeginRun(), edm::service::RandomNumberGeneratorService::postModuleBeginRun(), edm::service::Tracer::postModuleConstruction(), edm::service::SimpleMemoryCheck::postModuleConstruction(), edm::service::RandomNumberGeneratorService::postModuleConstruction(), edm::service::Tracer::postModuleEndJob(), edm::service::RandomNumberGeneratorService::postModuleEndJob(), edm::service::Tracer::postModuleEndLumi(), edm::service::RandomNumberGeneratorService::postModuleEndLumi(), edm::service::Tracer::postModuleEndRun(), edm::service::RandomNumberGeneratorService::postModuleEndRun(), edm::service::Tracer::postModuleEvent(), edm::service::SimpleMemoryCheck::postSourceConstruction(), edm::service::EnableFloatingPointExceptions::preActions(), evf::Stepper::preModule(), evf::MicroStateService::preModule(), edm::rootfix::LockService::preModule(), InputTagDistributorService::preModule(), VariableHelperService::preModule(), edm::service::RandomNumberGeneratorService::preModule(), edm::service::Tracer::preModuleBeginJob(), edm::service::RandomNumberGeneratorService::preModuleBeginJob(), FastTimerService::preModuleBeginJob(), edm::service::Tracer::preModuleBeginLumi(), edm::service::RandomNumberGeneratorService::preModuleBeginLumi(), edm::service::Tracer::preModuleBeginRun(), edm::service::RandomNumberGeneratorService::preModuleBeginRun(), edm::service::Tracer::preModuleConstruction(), edm::service::RandomNumberGeneratorService::preModuleConstruction(), edm::service::Tracer::preModuleEndJob(), edm::service::RandomNumberGeneratorService::preModuleEndJob(), edm::service::Tracer::preModuleEndLumi(), edm::service::RandomNumberGeneratorService::preModuleEndLumi(), edm::service::Tracer::preModuleEndRun(), edm::service::RandomNumberGeneratorService::preModuleEndRun(), edm::service::Tracer::preModuleEvent(), edm::rootfix::LockService::preSourceConstruction(), edm::service::SimpleMemoryCheck::preSourceConstruction(), FastTimerService::queryModuleTime(), edm::StreamerOutputModuleBase::serializeRegistry(), TFileService::setDirectoryName(), edm::OutputModule::setEventSelectionInfo(), edm::Maker::throwConfigurationException(), and write().

50 {return moduleLabel_;}
std::string const& edm::ModuleDescription::moduleName ( ) const
inline

Definition at line 49 of file ModuleDescription.h.

References moduleName_.

Referenced by edm::ProductRegistryHelper::addToRegistry(), edm::Worker::beginJob(), edm::Schedule::changeModule(), edm::Worker::endJob(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::Path::exceptionContext(), edm::Schedule::fillWorkers(), Timer::newTimingMeasurement(), operator<(), FWPathsPopup::postModule(), edm::service::Timing::postModule(), edm::service::SimpleMemoryCheck::postModule(), edm::service::SimpleMemoryCheck::postModuleBeginJob(), edm::service::RandomNumberGeneratorService::postModuleBeginJob(), edm::service::RandomNumberGeneratorService::postModuleBeginRun(), edm::service::SimpleMemoryCheck::postModuleConstruction(), edm::service::RandomNumberGeneratorService::postModuleConstruction(), edm::service::RandomNumberGeneratorService::postModuleEndJob(), edm::service::RandomNumberGeneratorService::postModuleEndLumi(), edm::service::RandomNumberGeneratorService::postModuleEndRun(), edm::service::Tracer::postSourceConstruction(), edm::service::SimpleMemoryCheck::postSourceConstruction(), FWPathsPopup::preModule(), evf::Stepper::preModule(), FastTimerService::preModuleBeginJob(), edm::service::Tracer::preSourceConstruction(), edm::service::SimpleMemoryCheck::preSourceConstruction(), TFileService::setDirectoryName(), edm::Maker::throwConfigurationException(), and write().

49 {return moduleName_;}
bool edm::ModuleDescription::operator!= ( ModuleDescription const &  rh) const

Definition at line 96 of file ModuleDescription.cc.

96  {
97  return !((*this) == rh);
98  }
bool edm::ModuleDescription::operator< ( ModuleDescription const &  rh) const

Definition at line 75 of file ModuleDescription.cc.

References moduleLabel(), moduleName(), parameterSetID(), passID(), processName(), and releaseVersion().

75  {
76  if (moduleLabel() < rh.moduleLabel()) return true;
77  if (rh.moduleLabel() < moduleLabel()) return false;
78  if (processName() < rh.processName()) return true;
79  if (rh.processName() < processName()) return false;
80  if (moduleName() < rh.moduleName()) return true;
81  if (rh.moduleName() < moduleName()) return false;
82  if (parameterSetID() < rh.parameterSetID()) return true;
83  if (rh.parameterSetID() < parameterSetID()) return false;
84  if (releaseVersion() < rh.releaseVersion()) return true;
85  if (rh.releaseVersion() < releaseVersion()) return false;
86  if (passID() < rh.passID()) return true;
87  return false;
88  }
std::string const & processName() const
std::string const & moduleName() const
std::string const & passID() const
std::string const & moduleLabel() const
std::string const & releaseVersion() const
ParameterSetID const & parameterSetID() const
bool edm::ModuleDescription::operator== ( ModuleDescription const &  rh) const

Definition at line 91 of file ModuleDescription.cc.

91  {
92  return !((*this) < rh || rh < (*this));
93  }
ParameterSetID const& edm::ModuleDescription::parameterSetID ( ) const
inline

Definition at line 48 of file ModuleDescription.h.

References parameterSetID_.

Referenced by edm::ProductRegistryHelper::addToRegistry(), operator<(), and write().

48 {return parameterSetID_;}
ParameterSetID parameterSetID_
std::string const & edm::ModuleDescription::passID ( ) const

Definition at line 65 of file ModuleDescription.cc.

References edm::ProcessConfiguration::passID(), and processConfiguration().

Referenced by operator<().

65  {
66  return processConfiguration().passID();
67  }
PassID const & passID() const
ProcessConfiguration const & processConfiguration() const
ProcessConfiguration const & edm::ModuleDescription::processConfiguration ( ) const
ProcessConfigurationID edm::ModuleDescription::processConfigurationID ( ) const

Definition at line 50 of file ModuleDescription.cc.

References edm::ProcessConfiguration::id(), and processConfiguration().

50  {
51  return processConfiguration().id();
52  }
ProcessConfigurationID id() const
ProcessConfiguration const & processConfiguration() const
std::string const & edm::ModuleDescription::processName ( ) const

Definition at line 55 of file ModuleDescription.cc.

References processConfiguration(), and edm::ProcessConfiguration::processName().

Referenced by edm::ProductRegistryHelper::addToRegistry(), and operator<().

55  {
57  }
std::string const & processName() const
ProcessConfiguration const & processConfiguration() const
std::string const & edm::ModuleDescription::releaseVersion ( ) const

Definition at line 60 of file ModuleDescription.cc.

References processConfiguration(), and edm::ProcessConfiguration::releaseVersion().

Referenced by operator<().

60  {
62  }
ReleaseVersion const & releaseVersion() const
ProcessConfiguration const & processConfiguration() const
void edm::ModuleDescription::write ( std::ostream &  os) const

Definition at line 101 of file ModuleDescription.cc.

References moduleLabel(), moduleName(), and parameterSetID().

Referenced by pkg.AbstractPkg::generate(), and edm::operator<<().

101  {
102  os << "Module type=" << moduleName() << ", "
103  << "Module label=" << moduleLabel() << ", "
104  << "Parameter Set ID=" << parameterSetID();
105  //<< "Parameter Set ID=" << parameterSetID() << ", "
106  //<< "Process name=" << processName() << ", "
107  //<< "Release Version=" << releaseVersion() << ", "
108  //<< "Pass ID=" << passID() << ", "
109  //<< "Main Parameter Set ID=" << mainParameterSetID();
110  }
std::string const & moduleName() const
std::string const & moduleLabel() const
ParameterSetID const & parameterSetID() const

Member Data Documentation

std::string edm::ModuleDescription::moduleLabel_
private
std::string edm::ModuleDescription::moduleName_
private

Definition at line 72 of file ModuleDescription.h.

Referenced by moduleName().

ParameterSetID edm::ModuleDescription::parameterSetID_
private

Definition at line 69 of file ModuleDescription.h.

Referenced by parameterSetID().

ProcessConfiguration const* edm::ModuleDescription::processConfigurationPtr_
private

Definition at line 79 of file ModuleDescription.h.

Referenced by processConfiguration().