#include <HGCalDepthPreClusterer.h>
Definition at line 13 of file HGCalDepthPreClusterer.h.
◆ ClusterCollection
◆ HGCalDepthPreClusterer() [1/2]
HGCalDepthPreClusterer::HGCalDepthPreClusterer |
( |
| ) |
|
|
inline |
◆ HGCalDepthPreClusterer() [2/2]
◆ getEvent()
void HGCalDepthPreClusterer::getEvent |
( |
const edm::Event & |
ev | ) |
|
|
inline |
◆ getEventSetup()
◆ makePreClusters()
Definition at line 33 of file HGCalDepthPreClusterer.cc.
35 std::vector<reco::HGCalMultiCluster> thePreClusters;
37 std::vector<int> vused(es.size(), 0);
38 unsigned int used = 0;
40 for (
unsigned int i = 0;
i < es.size(); ++
i) {
43 temp.push_back(thecls[es[
i]]);
44 vused[
i] = (thecls[es[
i]]->z() > 0) ? 1 : -1;
46 for (
unsigned int j =
i + 1;
j < es.size(); ++
j) {
48 float distanceCheck = 9999.;
50 distanceCheck = distAxisCluster2(thecls[es[
i]], thecls[es[
j]]);
52 distanceCheck = dist2(thecls[es[
i]], thecls[es[
j]]);
53 DetId detid = thecls[es[
j]]->hitsAndFractions()[0].first();
61 if (distanceCheck<radius2 &&
int(thecls[es[
j]]->
z() * vused[
i])> 0) {
62 temp.push_back(thecls[es[
j]]);
69 thePreClusters.push_back(
temp);
70 auto &back = thePreClusters.back();
71 back.setPosition(
clusterTools->getMultiClusterPosition(back));
72 back.setEnergy(
clusterTools->getMultiClusterEnergy(back));
77 return thePreClusters;
References clusterTools, hgcal::RecHitTools::firstLayerBH(), mps_fire::i, dqmiolumiharvest::j, hgcal::RecHitTools::lastLayerEE(), minClusters, radii, CosmicsPD_Skims::radius, realSpaceCone, rhtools_, hgcal_clustering::sorted_indices(), groupFilesInBlocks::temp, and z.
◆ clusterTools
◆ minClusters
uint32_t HGCalDepthPreClusterer::minClusters |
|
private |
◆ radii
std::vector<float> HGCalDepthPreClusterer::radii |
|
private |
◆ realSpaceCone
bool HGCalDepthPreClusterer::realSpaceCone |
|
private |
◆ rhtools_