![]() |
![]() |
#include "DataFormats/Common/interface/Ref.h"
#include "DataFormats/Common/interface/RefVector.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/Common/interface/AssociationMapHelpers.h"
#include "FWCore/Utilities/interface/IndexSet.h"
Go to the source code of this file.
Namespaces | |
associationMapFilterValuesHelpers | |
Functions | |
template<typename T_AssociationMap , typename T_RefVector > | |
T_AssociationMap | associationMapFilterValues (const T_AssociationMap &map, const T_RefVector &valueRefs) |
template<typename T_AssociationMap , typename T_Key , typename T_ValueIndex , typename T_Value , typename T_ValueIndices > | |
void | associationMapFilterValuesHelpers::findInsert (T_AssociationMap &ret, const T_Key &key, const T_ValueIndex &valueIndex, const T_Value &value, const T_ValueIndices &value_indices) |
T_AssociationMap associationMapFilterValues | ( | const T_AssociationMap & | map, |
const T_RefVector & | valueRefs | ||
) |
Filters entries of AssociationMap by keeping only those associations that have a value in a given collection
map | AssociationMap to filter |
valueRefs | Collection of Refs to values. |
T_AssociationMap | Type of the AssociationMap |
T_RefVector | Type of the Ref collection. |
For AssociationMap<Tag<CKey, CVal>>, the collection of Refs can be RefVector<CVal>, vector<Ref<CVal>>, vector<RefToBase<CVal>>, or View<T>. More can be supported if needed.
Throws if the values of AssociationMap and valueRefs point to different collections (similar check as in AssociationMap::operator[] for the keys).
Definition at line 127 of file associationMapFilterValues.h.
References associationMapFilterValuesHelpers::FillIndices< T_RefVector >::fill(), edm::eventsetup::heterocontainer::insert(), and edm::IndexSet::reserve().
Referenced by MultiTrackValidator::dqmAnalyze().