1 #ifndef SimDataFormats_Associations_MtdSimLayerClusterToRecoClusterAssociationMap_h 2 #define SimDataFormats_Associations_MtdSimLayerClusterToRecoClusterAssociationMap_h 21 using value_type = std::pair<key_type, std::vector<mapped_type>>;
24 using range = std::pair<const_iterator, const_iterator>;
32 map_.emplace_back(simClus, recoClusVect);
53 const auto& i_hAndE = (
i.first)->hits_and_energies();
54 const auto& j_hAndE = (
j.first)->hits_and_energies();
56 auto imin = std::min_element(i_hAndE.begin(),
58 [](std::pair<uint64_t, float>
a, std::pair<uint64_t, float>
b) {
return a <
b; });
60 auto jmin = std::min_element(j_hAndE.begin(),
62 [](std::pair<uint64_t, float>
a, std::pair<uint64_t, float>
b) {
return a <
b; });
64 return (*imin < *jmin);
void emplace_back(const MtdSimLayerClusterRef &simClus, std::vector< FTLClusterRef > &recoClusVect)
const_iterator cbegin() const
typename map_type::const_iterator const_iterator
edm::Ref< MtdSimLayerClusterCollection > MtdSimLayerClusterRef
std::vector< value_type > map_type
edm::Ref< FTLClusterCollection, FTLCluster > FTLClusterRef
std::pair< const_iterator, const_iterator > range
key
prepare the HTCondor submission files and eventually submit them
static bool compare(const value_type &i, const value_type &j)
const_iterator begin() const
~MtdSimLayerClusterToRecoClusterAssociationMap()
Destructor.
MtdSimLayerClusterToRecoClusterAssociationMap()
Constructor.
std::pair< key_type, std::vector< mapped_type > > value_type
const_iterator cend() const
range equal_range(const MtdSimLayerClusterRef &key) const
const_iterator end() const
const map_type & map() const