#include <HGCalDepthPreClusterer.h>
Definition at line 13 of file HGCalDepthPreClusterer.h.
HGCalDepthPreClusterer::HGCalDepthPreClusterer |
( |
| ) |
|
|
inline |
void HGCalDepthPreClusterer::getEvent |
( |
const edm::Event & |
ev | ) |
|
|
inline |
Definition at line 26 of file HGCalDepthPreClusterer.cc.
References clusterTools, i, createfilelist::int, j, minClusters, reco::HGCalMultiCluster::push_back(), radius, reco::HGCalMultiCluster::size(), sorted_indices(), groupFilesInBlocks::temp, and z.
28 std::vector<reco::HGCalMultiCluster> thePreClusters;
30 std::vector<int> vused(es.size(),0);
31 unsigned int used = 0;
34 for(
unsigned int i = 0;
i < es.size(); ++
i) {
38 vused[
i]=(thecls[es[
i]]->z()>0)? 1 : -1;
40 for(
unsigned int j = i+1;
j < es.size(); ++
j) {
42 if( dist2(thecls[es[i]],thecls[es[
j]]) < radius2 &&
int(thecls[es[i]]->
z()*vused[i])>0 ) {
50 thePreClusters.push_back(temp);
51 auto& back = thePreClusters.back();
52 back.setPosition(
clusterTools->getMultiClusterPosition(back));
53 back.setEnergy(
clusterTools->getMultiClusterEnergy(back));
60 return thePreClusters;
std::unique_ptr< hgcal::ClusterTools > clusterTools
unsigned int size() const
void push_back(const edm::Ptr< reco::BasicCluster > &b)
std::vector< size_t > sorted_indices(const std::vector< T > &v)
uint32_t HGCalDepthPreClusterer::minClusters |
|
private |
float HGCalDepthPreClusterer::radius |
|
private |