ATLAS Offline Software
Loading...
Searching...
No Matches
BasicGepClusterMaker.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGGEPPERF_BASICGEPCLUSTERMAKER_H
6#define TRIGGEPPERF_BASICGEPCLUSTERMAKER_H
7
8#include "./IClusterMaker.h"
9
10
11#include <string>
12
13namespace Gep{
14 class BasicGepClusterMaker : virtual public IClusterMaker {
15
16public:
17
20
21 std::vector<Gep::Cluster>
22 makeClusters(const pGepCellMap&) const override;
23
24 std::string getName() const override;
25
26private:
27
28 const float m_seed_threshold = 4.0;
29 const float m_clustering_threshold = 2.0;
30 const int m_max_shells = 9999;
31
32 const std::vector<int> m_disallowed_seed_samplings = {};
33 const std::vector<int> m_disallowed_clustering_samplings = {};
34
35 bool isSeedCell (const Gep::GepCaloCell& cell, const std::vector<unsigned int> &seenSeedCells) const;
36 bool isInAllowedSampling(int sampling, const std::vector<int>& list_of_samplings) const;
37 bool isNewCell(unsigned int id, const std::vector<unsigned int>& seenCells) const;
38
39 std::vector<Gep::GepCaloCell>
40 clusterFromCells(const Gep::GepCaloCell& seed, const pGepCellMap&, std::vector<unsigned int> &seenSeedCells) const;
41
42 Gep::Cluster getClusterFromListOfCells(const std::vector<Gep::GepCaloCell>& cells) const;
43 };
44}
45
46#endif
std::unique_ptr< GepCellMap > pGepCellMap
bool isNewCell(unsigned int id, const std::vector< unsigned int > &seenCells) const
const std::vector< int > m_disallowed_seed_samplings
std::vector< Gep::Cluster > makeClusters(const pGepCellMap &) const override
bool isSeedCell(const Gep::GepCaloCell &cell, const std::vector< unsigned int > &seenSeedCells) const
const std::vector< int > m_disallowed_clustering_samplings
bool isInAllowedSampling(int sampling, const std::vector< int > &list_of_samplings) const
std::vector< Gep::GepCaloCell > clusterFromCells(const Gep::GepCaloCell &seed, const pGepCellMap &, std::vector< unsigned int > &seenSeedCells) const
Gep::Cluster getClusterFromListOfCells(const std::vector< Gep::GepCaloCell > &cells) const
std::string getName() const override