CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Private Member Functions | Private Attributes
MtdSimLayerClusterToRecoClusterAssociationMap Class Reference

#include <MtdSimLayerClusterToRecoClusterAssociationMap.h>

Public Types

using const_iterator = typename map_type::const_iterator
 
using key_type = MtdSimLayerClusterRef
 
using map_type = std::vector< value_type >
 
using mapped_type = FTLClusterRef
 
using range = std::pair< const_iterator, const_iterator >
 
using value_type = std::pair< key_type, std::vector< mapped_type > >
 

Public Member Functions

const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void emplace_back (const MtdSimLayerClusterRef &simClus, std::vector< FTLClusterRef > &recoClusVect)
 
bool empty () const
 
const_iterator end () const
 
range equal_range (const MtdSimLayerClusterRef &key) const
 
const map_typemap () const
 
 MtdSimLayerClusterToRecoClusterAssociationMap ()
 Constructor. More...
 
void post_insert ()
 
size_t size () const
 
 ~MtdSimLayerClusterToRecoClusterAssociationMap ()
 Destructor. More...
 

Static Private Member Functions

static bool compare (const value_type &i, const value_type &j)
 

Private Attributes

map_type map_
 

Detailed Description

Maps MtdSimLayerCluserRef to FTLClusterRef

Definition at line 17 of file MtdSimLayerClusterToRecoClusterAssociationMap.h.

Member Typedef Documentation

◆ const_iterator

using MtdSimLayerClusterToRecoClusterAssociationMap::const_iterator = typename map_type::const_iterator

◆ key_type

◆ map_type

◆ mapped_type

◆ range

◆ value_type

Constructor & Destructor Documentation

◆ MtdSimLayerClusterToRecoClusterAssociationMap()

MtdSimLayerClusterToRecoClusterAssociationMap::MtdSimLayerClusterToRecoClusterAssociationMap ( )

Constructor.

Definition at line 3 of file MtdSimLayerClusterToRecoClusterAssociationMap.cc.

3 {}

◆ ~MtdSimLayerClusterToRecoClusterAssociationMap()

MtdSimLayerClusterToRecoClusterAssociationMap::~MtdSimLayerClusterToRecoClusterAssociationMap ( )

Destructor.

Definition at line 5 of file MtdSimLayerClusterToRecoClusterAssociationMap.cc.

5 {}

Member Function Documentation

◆ begin()

const_iterator MtdSimLayerClusterToRecoClusterAssociationMap::begin ( void  ) const
inline

◆ cbegin()

const_iterator MtdSimLayerClusterToRecoClusterAssociationMap::cbegin ( ) const
inline

◆ cend()

const_iterator MtdSimLayerClusterToRecoClusterAssociationMap::cend ( ) const
inline

◆ compare()

static bool MtdSimLayerClusterToRecoClusterAssociationMap::compare ( const value_type i,
const value_type j 
)
inlinestaticprivate

Definition at line 52 of file MtdSimLayerClusterToRecoClusterAssociationMap.h.

References a, b, mps_fire::i, and dqmiolumiharvest::j.

Referenced by equal_range(), and post_insert().

52  {
53  const auto& i_hAndE = (i.first)->hits_and_energies();
54  const auto& j_hAndE = (j.first)->hits_and_energies();
55 
56  auto imin = std::min_element(i_hAndE.begin(),
57  i_hAndE.end(),
58  [](std::pair<uint64_t, float> a, std::pair<uint64_t, float> b) { return a < b; });
59 
60  auto jmin = std::min_element(j_hAndE.begin(),
61  j_hAndE.end(),
62  [](std::pair<uint64_t, float> a, std::pair<uint64_t, float> b) { return a < b; });
63 
64  return (*imin < *jmin);
65  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ emplace_back()

void MtdSimLayerClusterToRecoClusterAssociationMap::emplace_back ( const MtdSimLayerClusterRef simClus,
std::vector< FTLClusterRef > &  recoClusVect 
)
inline

◆ empty()

bool MtdSimLayerClusterToRecoClusterAssociationMap::empty ( void  ) const
inline

◆ end()

const_iterator MtdSimLayerClusterToRecoClusterAssociationMap::end ( void  ) const
inline

◆ equal_range()

range MtdSimLayerClusterToRecoClusterAssociationMap::equal_range ( const MtdSimLayerClusterRef key) const
inline

Definition at line 45 of file MtdSimLayerClusterToRecoClusterAssociationMap.h.

References compare(), submitPVResolutionJobs::key, and map_.

45  {
46  return std::equal_range(map_.begin(), map_.end(), value_type(key, std::vector<FTLClusterRef>()), compare);
47  }
key
prepare the HTCondor submission files and eventually submit them
static bool compare(const value_type &i, const value_type &j)
std::pair< key_type, std::vector< mapped_type > > value_type

◆ map()

const map_type& MtdSimLayerClusterToRecoClusterAssociationMap::map ( ) const
inline

◆ post_insert()

void MtdSimLayerClusterToRecoClusterAssociationMap::post_insert ( )
inline

◆ size()

size_t MtdSimLayerClusterToRecoClusterAssociationMap::size ( void  ) const
inline

Member Data Documentation

◆ map_

map_type MtdSimLayerClusterToRecoClusterAssociationMap::map_
private