CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ClusterTPAssociation.cc
Go to the documentation of this file.
3 
6  auto e = cms::Exception("InvalidReference");
7  e << "ClusterTPAssociation has OmniClusterRefs with ProductIDs ";
8  for (size_t i = 0; i < keyProductIDs_.size(); ++i) {
9  e << keyProductIDs_[i];
10  if (i < keyProductIDs_.size() - 1) {
11  e << ",";
12  }
13  }
14  e << " but got OmniClusterRef/ProductID with ID " << id << ". This is typically caused by a configuration error.";
15  throw e;
16  }
17 }
18 
20  if (id != mappedProductId_) {
21  throw cms::Exception("InvalidReference")
22  << "ClusterTPAssociation has TrackingParticles with ProductID " << mappedProductId_
23  << ", but got TrackingParticleRef/Handle/ProductID with ID " << id
24  << ". This is typically caused by a configuration error.";
25  }
26 }
void checkKeyProductID(const OmniClusterRef &key) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
edm::ProductID mappedProductId_
void checkMappedProductID(const edm::HandleBase &mappedHandle) const
string end
Definition: dataset.py:937
edm::VecArray< edm::ProductID, 2 > keyProductIDs_
constexpr size_type size() const noexcept
Definition: VecArray.h:70