CMS 3D CMS Logo

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

#include <MtdRecoClusterToSimLayerClusterAssociationMap.h>

Public Types

using const_iterator = typename map_type::const_iterator
 
using key_type = FTLClusterRef
 
using map_type = std::vector< value_type >
 
using mapped_type = MtdSimLayerClusterRef
 
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 FTLClusterRef &recoClus, std::vector< MtdSimLayerClusterRef > &simClusVect)
 
bool empty () const
 
const_iterator end () const
 
range equal_range (const FTLClusterRef &key) const
 
const map_typemap () const
 
 MtdRecoClusterToSimLayerClusterAssociationMap ()
 Constructor. More...
 
void post_insert ()
 
size_t size () const
 
 ~MtdRecoClusterToSimLayerClusterAssociationMap ()
 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 FTLCluserRef to SimLayerClusterRef

Definition at line 17 of file MtdRecoClusterToSimLayerClusterAssociationMap.h.

Member Typedef Documentation

◆ const_iterator

using MtdRecoClusterToSimLayerClusterAssociationMap::const_iterator = typename map_type::const_iterator

◆ key_type

◆ map_type

◆ mapped_type

◆ range

◆ value_type

Constructor & Destructor Documentation

◆ MtdRecoClusterToSimLayerClusterAssociationMap()

MtdRecoClusterToSimLayerClusterAssociationMap::MtdRecoClusterToSimLayerClusterAssociationMap ( )

Constructor.

Definition at line 3 of file MtdRecoClusterToSimLayerClusterAssociationMap.cc.

3 {}

◆ ~MtdRecoClusterToSimLayerClusterAssociationMap()

MtdRecoClusterToSimLayerClusterAssociationMap::~MtdRecoClusterToSimLayerClusterAssociationMap ( )

Destructor.

Definition at line 5 of file MtdRecoClusterToSimLayerClusterAssociationMap.cc.

5 {}

Member Function Documentation

◆ begin()

const_iterator MtdRecoClusterToSimLayerClusterAssociationMap::begin ( void  ) const
inline

◆ cbegin()

const_iterator MtdRecoClusterToSimLayerClusterAssociationMap::cbegin ( ) const
inline

◆ cend()

const_iterator MtdRecoClusterToSimLayerClusterAssociationMap::cend ( ) const
inline

◆ compare()

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

Definition at line 52 of file MtdRecoClusterToSimLayerClusterAssociationMap.h.

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

Referenced by equal_range(), and post_insert().

52 { return (i.first < j.first); }

◆ emplace_back()

void MtdRecoClusterToSimLayerClusterAssociationMap::emplace_back ( const FTLClusterRef recoClus,
std::vector< MtdSimLayerClusterRef > &  simClusVect 
)
inline

Definition at line 31 of file MtdRecoClusterToSimLayerClusterAssociationMap.h.

References map_.

31  {
32  map_.emplace_back(recoClus, simClusVect);
33  }

◆ empty()

bool MtdRecoClusterToSimLayerClusterAssociationMap::empty ( void  ) const
inline

◆ end()

const_iterator MtdRecoClusterToSimLayerClusterAssociationMap::end ( void  ) const
inline

◆ equal_range()

range MtdRecoClusterToSimLayerClusterAssociationMap::equal_range ( const FTLClusterRef key) const
inline

Definition at line 45 of file MtdRecoClusterToSimLayerClusterAssociationMap.h.

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

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

◆ map()

const map_type& MtdRecoClusterToSimLayerClusterAssociationMap::map ( ) const
inline

◆ post_insert()

void MtdRecoClusterToSimLayerClusterAssociationMap::post_insert ( )
inline

◆ size()

size_t MtdRecoClusterToSimLayerClusterAssociationMap::size ( void  ) const
inline

Member Data Documentation

◆ map_

map_type MtdRecoClusterToSimLayerClusterAssociationMap::map_
private