ATLAS Offline Software
Loading...
Searching...
No Matches
WFSClusterMaker.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGL0GEPPERF_WFSCLUSTERMAKER_H
6#define TRIGL0GEPPERF_WFSCLUSTERMAKER_H
7
8#include "./IClusterMaker.h"
9
10#include <map>
11#include <string>
12
13namespace Gep{
14 class WFSClusterMaker : virtual public IClusterMaker {
15
16public:
17
19 virtual ~WFSClusterMaker() = default;
20
21 std::vector<Gep::Cluster>
22 makeClusters(const pGepCellMap&) const override;
23
24 std::string getName() const override;
25
26private:
27
28 float m_seed_threshold = 4.0;
30 int m_max_shells = 8;
31 std::vector<int> m_allowed_seed_samplings = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
32 std::vector<int> m_allowed_clustering_samplings = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
33
34 bool isSeedCell (const Gep::GepCaloCell& cell) const;
35 bool isInAllowedSampling(int sampling, const std::vector<int>& list_of_samplings) const ;
36 bool isNewCell(unsigned int id, const std::vector<unsigned int>& seenCells) const;
37
38 std::vector<Gep::GepCaloCell>
39 clusterFromCells(const Gep::GepCaloCell& seed, const pGepCellMap&) const;
40
41 Gep::Cluster getClusterFromListOfCells(const std::vector<Gep::GepCaloCell>& cells) const;
42
43 double calculateClusterPhi(double seed_phi, double delta_phi) const;
44 void orderClustersInEt(std::vector<Gep::Cluster> &v_clusters) const;
45 double getDeltaPhi(double phi, double seed_phi) const;
46 };
47}
48
49#endif
Scalar phi() const
phi method
std::unique_ptr< GepCellMap > pGepCellMap
std::vector< Gep::GepCaloCell > clusterFromCells(const Gep::GepCaloCell &seed, const pGepCellMap &) const
std::vector< Gep::Cluster > makeClusters(const pGepCellMap &) const override
double getDeltaPhi(double phi, double seed_phi) const
Gep::Cluster getClusterFromListOfCells(const std::vector< Gep::GepCaloCell > &cells) const
std::string getName() const override
bool isSeedCell(const Gep::GepCaloCell &cell) const
std::vector< int > m_allowed_seed_samplings
virtual ~WFSClusterMaker()=default
std::vector< int > m_allowed_clustering_samplings
bool isNewCell(unsigned int id, const std::vector< unsigned int > &seenCells) const
bool isInAllowedSampling(int sampling, const std::vector< int > &list_of_samplings) const
double calculateClusterPhi(double seed_phi, double delta_phi) const
void orderClustersInEt(std::vector< Gep::Cluster > &v_clusters) const