CMS 3D CMS Logo

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") << "ClusterTPAssociation has TrackingParticles with ProductID " << mappedProductId_ << ", but got TrackingParticleRef/Handle/ProductID with ID " << id << ". This is typically caused by a configuration error.";
22  }
23 }
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:20
edm::ProductID mappedProductId_
#define end
Definition: vmac.h:39
constexpr size_type size() const noexcept
Definition: VecArray.h:70
void checkMappedProductID(const edm::HandleBase &mappedHandle) const
#define begin
Definition: vmac.h:32
edm::VecArray< edm::ProductID, 2 > keyProductIDs_