CMS 3D CMS Logo

ThinnedAssociation.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_ThinnedAssociation_h
2 #define DataFormats_Common_ThinnedAssociation_h
3 
9 
10 #include <vector>
11 
12 namespace edm {
13 
15  public:
17 
20  std::vector<unsigned int> const& indexesIntoParent() const { return indexesIntoParent_; }
21 
22  bool hasParentIndex(unsigned int parentIndex, unsigned int& thinnedIndex) const;
23 
26  void push_back(unsigned int index) { indexesIntoParent_.push_back(index); }
27 
28  private:
31 
32  // The size of indexesIntoParent_ is the same as
33  // the size of the thinned collection and each
34  // element of indexesIntoParent corresponds to the
35  // element of the thinned collection at the same position.
36  // The values give the index of the corresponding element
37  // in the parent collection.
38  std::vector<unsigned int> indexesIntoParent_;
39  };
40 } // namespace edm
41 #endif
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ThinnedAssociation
Definition: ThinnedAssociation.h:14
edm::ThinnedAssociation::ThinnedAssociation
ThinnedAssociation()
Definition: ThinnedAssociation.cc:7
edm::ThinnedAssociation::indexesIntoParent
std::vector< unsigned int > const & indexesIntoParent() const
Definition: ThinnedAssociation.h:20
findQualityFiles.v
v
Definition: findQualityFiles.py:179
edm::ThinnedAssociation::setThinnedCollectionID
void setThinnedCollectionID(ProductID const &v)
Definition: ThinnedAssociation.h:25
ProductID.h
edm::ThinnedAssociation::thinnedCollectionID
ProductID const & thinnedCollectionID() const
Definition: ThinnedAssociation.h:19
edm::ThinnedAssociation::setParentCollectionID
void setParentCollectionID(ProductID const &v)
Definition: ThinnedAssociation.h:24
edm::ThinnedAssociation::hasParentIndex
bool hasParentIndex(unsigned int parentIndex, unsigned int &thinnedIndex) const
Definition: ThinnedAssociation.cc:9
edm::ThinnedAssociation::parentCollectionID
ProductID const & parentCollectionID() const
Definition: ThinnedAssociation.h:18
edm::ThinnedAssociation::push_back
void push_back(unsigned int index)
Definition: ThinnedAssociation.h:26
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
edm::ProductID
Definition: ProductID.h:27