CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::ThinnedAssociation Class Reference

#include <ThinnedAssociation.h>

Public Member Functions

bool hasParentIndex (unsigned int parentIndex, unsigned int &thinnedIndex) const
 
std::vector< unsigned int > const & indexesIntoParent () const
 
ProductID const & parentCollectionID () const
 
void push_back (unsigned int index)
 
void setParentCollectionID (ProductID const &v)
 
void setThinnedCollectionID (ProductID const &v)
 
 ThinnedAssociation ()
 
ProductID const & thinnedCollectionID () const
 

Private Attributes

std::vector< unsigned int > indexesIntoParent_
 
ProductID parentCollectionID_
 
ProductID thinnedCollectionID_
 

Detailed Description

Author
W. David Dagenhart, created 11 June 2014

Definition at line 14 of file ThinnedAssociation.h.

Constructor & Destructor Documentation

◆ ThinnedAssociation()

edm::ThinnedAssociation::ThinnedAssociation ( )

Definition at line 7 of file ThinnedAssociation.cc.

7 {}

Member Function Documentation

◆ hasParentIndex()

bool edm::ThinnedAssociation::hasParentIndex ( unsigned int  parentIndex,
unsigned int &  thinnedIndex 
) const

Definition at line 9 of file ThinnedAssociation.cc.

9  {
10  auto iter = std::lower_bound(indexesIntoParent_.begin(), indexesIntoParent_.end(), parentIndex);
11  if (iter != indexesIntoParent_.end() && *iter == parentIndex) {
12  thinnedIndex = iter - indexesIntoParent_.begin();
13  return true;
14  }
15  return false;
16  }

References indexesIntoParent_, and cuda_std::lower_bound().

Referenced by BareRootProductGetter::getThinnedProduct(), fwlite::DataGetterHelper::getThinnedProduct(), edm::EventPrincipal::getThinnedProduct(), BareRootProductGetter::getThinnedProducts(), fwlite::DataGetterHelper::getThinnedProducts(), and edm::EventPrincipal::getThinnedProducts().

◆ indexesIntoParent()

std::vector<unsigned int> const& edm::ThinnedAssociation::indexesIntoParent ( ) const
inline

Definition at line 20 of file ThinnedAssociation.h.

20 { return indexesIntoParent_; }

References indexesIntoParent_.

◆ parentCollectionID()

ProductID const& edm::ThinnedAssociation::parentCollectionID ( ) const
inline

◆ push_back()

void edm::ThinnedAssociation::push_back ( unsigned int  index)
inline

Definition at line 26 of file ThinnedAssociation.h.

26 { indexesIntoParent_.push_back(index); }

References indexesIntoParent_.

Referenced by edm::ThinningProducer< Collection, Selector >::produce().

◆ setParentCollectionID()

void edm::ThinnedAssociation::setParentCollectionID ( ProductID const &  v)
inline

◆ setThinnedCollectionID()

void edm::ThinnedAssociation::setThinnedCollectionID ( ProductID const &  v)
inline

◆ thinnedCollectionID()

ProductID const& edm::ThinnedAssociation::thinnedCollectionID ( ) const
inline

Member Data Documentation

◆ indexesIntoParent_

std::vector<unsigned int> edm::ThinnedAssociation::indexesIntoParent_
private

Definition at line 38 of file ThinnedAssociation.h.

Referenced by hasParentIndex(), indexesIntoParent(), and push_back().

◆ parentCollectionID_

ProductID edm::ThinnedAssociation::parentCollectionID_
private

Definition at line 29 of file ThinnedAssociation.h.

Referenced by parentCollectionID(), and setParentCollectionID().

◆ thinnedCollectionID_

ProductID edm::ThinnedAssociation::thinnedCollectionID_
private

Definition at line 30 of file ThinnedAssociation.h.

Referenced by setThinnedCollectionID(), and thinnedCollectionID().

findQualityFiles.v
v
Definition: findQualityFiles.py:179
cuda_std::lower_bound
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
Definition: cudastdAlgorithm.h:27
edm::ThinnedAssociation::indexesIntoParent_
std::vector< unsigned int > indexesIntoParent_
Definition: ThinnedAssociation.h:38
edm::ThinnedAssociation::thinnedCollectionID_
ProductID thinnedCollectionID_
Definition: ThinnedAssociation.h:30
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::ThinnedAssociation::parentCollectionID_
ProductID parentCollectionID_
Definition: ThinnedAssociation.h:29