CMS 3D CMS Logo

Typedefs | Functions
edm::path_configuration Namespace Reference

Typedefs

using SchedulingConstructLabelSet = std::unordered_set< std::string, std::hash< std::string >, std::equal_to<> >
 The label is an indicator of a path scheduling construct and not an actual module. More...
 

Functions

std::vector< std::string > configurationToModuleBitPosition (std::vector< std::string >)
 
std::string removeSchedulingTokensFromModuleLabel (std::string iLabel)
 
SchedulingConstructLabelSet const & schedulingConstructLabels ()
 

Typedef Documentation

◆ SchedulingConstructLabelSet

using edm::path_configuration::SchedulingConstructLabelSet = typedef std::unordered_set<std::string, std::hash<std::string>, std::equal_to<> >

The label is an indicator of a path scheduling construct and not an actual module.

Definition at line 32 of file path_configuration.h.

Function Documentation

◆ configurationToModuleBitPosition()

std::vector< std::string > edm::path_configuration::configurationToModuleBitPosition ( std::vector< std::string >  iConfig)

Definition at line 29 of file path_configuration.cc.

References dqmiodumpmetadata::n, and schedulingConstructLabels().

Referenced by HLTConfigData::extract(), and edm::service::TriggerNamesService::TriggerNamesService().

29  {
30  auto const& labelsToRemove = schedulingConstructLabels();
31  iConfig.erase(
32  std::remove_if(iConfig.begin(),
33  iConfig.end(),
34  [&labelsToRemove](auto const& n) { return labelsToRemove.find(n) != labelsToRemove.end(); }),
35  iConfig.end());
36  return iConfig;
37  }
SchedulingConstructLabelSet const & schedulingConstructLabels()

◆ removeSchedulingTokensFromModuleLabel()

std::string edm::path_configuration::removeSchedulingTokensFromModuleLabel ( std::string  iLabel)

Definition at line 39 of file path_configuration.cc.

References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), and submitPVValidationJobs::t.

Referenced by pat::TriggerObjectStandAlone::allLabels(), and HLTMuonPlotter::analyze().

39  {
40  constexpr std::array<char, 4> s_tokens = {{'!', '-', '+', '|'}};
41  if (not iLabel.empty()) {
42  for (auto t : s_tokens) {
43  if (t == iLabel[0]) {
44  iLabel.erase(0, 1);
45  break;
46  }
47  }
48  }
49  return iLabel;
50  }

◆ schedulingConstructLabels()

SchedulingConstructLabelSet const & edm::path_configuration::schedulingConstructLabels ( )

Definition at line 22 of file path_configuration.cc.

Referenced by configurationToModuleBitPosition().

22  {
23  static const SchedulingConstructLabelSet s_set({{"@"}, {"#"}});
24  return s_set;
25  }
std::unordered_set< std::string, std::hash< std::string >, std::equal_to<> > SchedulingConstructLabelSet
The label is an indicator of a path scheduling construct and not an actual module.