47 if( !clusterHandle.
isValid() ) {
49 <<
"ClusterMultiplicityFilter requires collection <edm::DetSetVector<SiStripCluster> with label " <<
clusterCollectionLabel_ << std::endl;
52 clusters = clusterHandle.
product();
55 unsigned int totalClusters = 0;
59 totalClusters+=DSViter->data.
size();
64 edm::LogInfo(
"ClusterMultiplicityFilter") <<
"Total number of clusters: " << totalClusters <<
" ==> exceeds allowed maximum of " <<
maxNumberOfClusters_ <<
" clusters";
T getUntrackedParameter(std::string const &, T const &) const
ClusterMultiplicityFilter(const edm::ParameterSet &)
unsigned int maxNumberOfClusters_
~ClusterMultiplicityFilter()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
iterator end()
Return the off-the-end iterator.
size_type size() const
Return the number of contained DetSets.
virtual bool filter(edm::Event &, const edm::EventSetup &)
T const * product() const
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
std::string clusterCollectionLabel_