CMS 3D CMS Logo

Classes | Typedefs | Functions
DBoxMetadataHelper Namespace Reference

Classes

class  DBMetaDataPlotDisplay
 
class  DBMetaDataTableDisplay
 
class  RecordMetaDataInfo
 

Typedefs

using recordMap = std::map< std::string, RecordMetaDataInfo >
 

Functions

const std::vector< std::string > getAllRecords (const DBoxMetadataHelper::recordMap &recordSet)
 
std::vector< std::string > set_difference (std::vector< std::string > const &v1, std::vector< std::string > const &v2)
 
std::vector< std::string > set_intersection (std::vector< std::string > const &v1, std::vector< std::string > const &v2)
 

Typedef Documentation

◆ recordMap

using DBoxMetadataHelper::recordMap = typedef std::map<std::string, RecordMetaDataInfo>

Definition at line 49 of file DropBoxMetaDataPayloadInspectorHelper.h.

Function Documentation

◆ getAllRecords()

const std::vector<std::string> DBoxMetadataHelper::getAllRecords ( const DBoxMetadataHelper::recordMap recordSet)
inline

Definition at line 51 of file DropBoxMetaDataPayloadInspectorHelper.h.

References AlCaHLTBitMon_QueryRunRegistry::string, and HcalDetIdTransform::transform().

Referenced by DBoxMetadataHelper::DBMetaDataPlotDisplay::plotDiffWithMetadata(), and DBoxMetadataHelper::DBMetaDataTableDisplay::printDiffWithMetadata().

51  {
52  std::vector<std::string> records;
53  std::transform(recordSet.begin(),
54  recordSet.end(),
55  std::inserter(records, records.end()),
56  [](std::pair<std::string, DBoxMetadataHelper::RecordMetaDataInfo> recordSetEntry) -> std::string {
57  return recordSetEntry.first;
58  });
59  return records;
60  }
unsigned transform(const HcalDetId &id, unsigned transformCode)

◆ set_difference()

std::vector<std::string> DBoxMetadataHelper::set_difference ( std::vector< std::string > const &  v1,
std::vector< std::string > const &  v2 
)
inline

◆ set_intersection()

std::vector<std::string> DBoxMetadataHelper::set_intersection ( std::vector< std::string > const &  v1,
std::vector< std::string > const &  v2 
)
inline

Definition at line 69 of file DropBoxMetaDataPayloadInspectorHelper.h.

References trackingPlots::common.

Referenced by Basic2DGenericPFlowPositionCalc::calculateAndSetPositionActual(), trklet::ChannelAssignment::ChannelAssignment(), reco::commonHits(), AlignPCLThresholdPlotHelper::AlignPCLThresholds_CompareBase< PayloadType, nIOVs, ntags >::fill(), sistrip::SpyEventMatcher::getCollections(), PreparePVTrends::multiRunPVValidation(), reco::utilsNew::CandMatcher< C >::operator[](), DBoxMetadataHelper::DBMetaDataPlotDisplay::plotDiffWithMetadata(), DBoxMetadataHelper::DBMetaDataTableDisplay::printDiffWithMetadata(), SiStripBaseCondObjDQM::selectModules(), edm::serviceregistry::ServicesManager::ServicesManager(), edm::IndexIntoFile::set_intersection(), edm::ORGroupDescription::throwIfDuplicateLabels(), edm::IfExistsDescription::throwIfDuplicateLabels(), edm::ANDGroupDescription::throwIfDuplicateLabels(), edm::ORGroupDescription::throwIfDuplicateTypes(), edm::IfExistsDescription::throwIfDuplicateTypes(), edm::ANDGroupDescription::throwIfDuplicateTypes(), edm::ParameterSetDescription::throwIfLabelsAlreadyUsed(), and edm::ParameterSetDescription::throwIfWildcardCollision().

70  {
71  std::vector<std::string> common;
72  std::set_intersection(std::begin(v1), std::end(v1), std::begin(v2), std::end(v2), std::back_inserter(common));
73  return common;
74  }
Definition: common.py:1
std::vector< std::string > set_intersection(std::vector< std::string > const &v1, std::vector< std::string > const &v2)