Go to the documentation of this file.
8 #ifndef HERD_CaloDBSCANClustering_H_
9 #define HERD_CaloDBSCANClustering_H_
16 #include "algorithm/Algorithm.h"
79 std::vector<std::string>
FreeObjects(
const std::vector<std::string> &objs, EA::Memory::Status memStatus)
override;
99 using HitIt = std::vector<Hit>::const_iterator;
void BuildShowerFromSeed(HitIt seedIt, const CaloHits &hits)
Definition: CaloDBSCANClustering.cpp:168
float m_threshold
Definition: CaloDBSCANClustering.h:83
int m_nShowers
Definition: CaloDBSCANClustering.h:95
CaloDBSCANClustering(const std::string &name)
Constructor.
Definition: CaloDBSCANClustering.cpp:22
std::vector< std::vector< unsigned int > > m_neighborCubes
Definition: CaloDBSCANClustering.h:106
std::string m_caloHitsName
Definition: CaloDBSCANClustering.h:87
std::vector< std::string > FreeObjects(const std::vector< std::string > &objs, EA::Memory::Status memStatus) override
Free the memory of unneeded objects.
Definition: CaloDBSCANClustering.cpp:263
std::map< unsigned int, int > m_labels
Definition: CaloDBSCANClustering.h:96
Container for a group of hits of the calorimeter.
Algorithm that clusters calorimeter hits into showers.
Definition: CaloDBSCANClustering.h:51
EA::EventStorePtr m_evStore
Definition: CaloDBSCANClustering.h:92
unsigned int CountHitNeighbors(HitIt hitIt, const CaloHits &hits)
Definition: CaloDBSCANClustering.cpp:115
bool Process() override
Process a single event.
Definition: CaloDBSCANClustering.cpp:57
bool Initialize() override
Initialization of the algorithm.
Definition: CaloDBSCANClustering.cpp:38
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
float m_maxDist
Definition: CaloDBSCANClustering.h:84
unsigned int m_minShowerHits
Definition: CaloDBSCANClustering.h:86
Container for the hits of a single CALO detector.
EA::GlobalStorePtr m_globStore
Definition: CaloDBSCANClustering.h:93
const std::vector< unsigned int > & NeighboringCubesID(unsigned int volID)
Definition: CaloDBSCANClustering.h:108
std::vector< Hit >::const_iterator HitIt
Definition: CaloDBSCANClustering.h:99
Data structure for the Calo geometry parameters.
Definition: CaloGeoParams.h:35
void BuildNeighborsMap(CaloGeoParams &caloGeoParams)
Definition: CaloDBSCANClustering.cpp:257
CaloClusters m_showers
Definition: CaloDBSCANClustering.h:90
EA::observer_ptr< CaloGeoParams > m_caloGeoParams
Definition: CaloDBSCANClustering.h:91
void FindShowers(CaloHits &caloHits)
Definition: CaloDBSCANClustering.cpp:119
std::vector< unsigned int > FindNeighborsHitID(HitIt hitIt, const CaloHits &hits)
Definition: CaloDBSCANClustering.cpp:78
unsigned int m_minHits
Definition: CaloDBSCANClustering.h:85
std::vector< unsigned int > NeighboringCubesID(unsigned int volID, CaloGeoParams &caloGeoParams)
Definition: CaloDBSCANClustering.cpp:225