ATLAS Offline Software
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 
13 namespace Gep{
14  class WFSClusterMaker : virtual public IClusterMaker {
15 
16 public:
17 
20 
21  std::vector<Gep::Cluster>
22  makeClusters(const pGepCellMap&) const override;
23 
24  std::string getName() const override;
25 
26 private:
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::CustomCaloCell& 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::CustomCaloCell>
39  clusterFromCells(const Gep::CustomCaloCell& seed, const pGepCellMap&) const;
40 
41  Gep::Cluster getClusterFromListOfCells(const std::vector<Gep::CustomCaloCell>& 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
Gep::WFSClusterMaker::isSeedCell
bool isSeedCell(const Gep::CustomCaloCell &cell) const
Definition: WFSClusterMaker.cxx:33
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:271
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
Gep::WFSClusterMaker::m_allowed_seed_samplings
std::vector< int > m_allowed_seed_samplings
Definition: WFSClusterMaker.h:31
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
Gep::IClusterMaker
Definition: IClusterMaker.h:21
Gep::Cluster
Definition: Trigger/TrigT1/TrigGepPerf/src/Cluster.h:13
Gep::CustomCaloCell
Definition: CustomCaloCell.h:13
Gep::WFSClusterMaker::m_seed_threshold
float m_seed_threshold
Definition: WFSClusterMaker.h:28
Gep::WFSClusterMaker::isNewCell
bool isNewCell(unsigned int id, const std::vector< unsigned int > &seenCells) const
Definition: WFSClusterMaker.cxx:52
Gep::WFSClusterMaker::WFSClusterMaker
WFSClusterMaker()
Definition: WFSClusterMaker.h:18
Gep::WFSClusterMaker::makeClusters
std::vector< Gep::Cluster > makeClusters(const pGepCellMap &) const override
Definition: WFSClusterMaker.cxx:8
pGepCellMap
std::unique_ptr< GepCellMap > pGepCellMap
Definition: CaloCellsHandlerTool.h:23
Gep
Definition: Trigger/TrigT1/TrigGepPerf/src/Cluster.h:11
Gep::WFSClusterMaker::m_clustering_threshold
float m_clustering_threshold
Definition: WFSClusterMaker.h:29
Gep::WFSClusterMaker::calculateClusterPhi
double calculateClusterPhi(double seed_phi, double delta_phi) const
Definition: WFSClusterMaker.cxx:157
Gep::WFSClusterMaker::getClusterFromListOfCells
Gep::Cluster getClusterFromListOfCells(const std::vector< Gep::CustomCaloCell > &cells) const
Definition: WFSClusterMaker.cxx:115
Gep::WFSClusterMaker::isInAllowedSampling
bool isInAllowedSampling(int sampling, const std::vector< int > &list_of_samplings) const
Definition: WFSClusterMaker.cxx:43
Gep::WFSClusterMaker::orderClustersInEt
void orderClustersInEt(std::vector< Gep::Cluster > &v_clusters) const
Definition: WFSClusterMaker.cxx:165
Gep::WFSClusterMaker::~WFSClusterMaker
~WFSClusterMaker()
Definition: WFSClusterMaker.h:19
Gep::WFSClusterMaker
Definition: WFSClusterMaker.h:14
Gep::WFSClusterMaker::m_max_shells
int m_max_shells
Definition: WFSClusterMaker.h:30
eFEXNTuple.delta_phi
def delta_phi(phi1, phi2)
Definition: eFEXNTuple.py:15
Gep::WFSClusterMaker::m_allowed_clustering_samplings
std::vector< int > m_allowed_clustering_samplings
Definition: WFSClusterMaker.h:32
Gep::WFSClusterMaker::getDeltaPhi
double getDeltaPhi(double phi, double seed_phi) const
Definition: WFSClusterMaker.cxx:149
Gep::WFSClusterMaker::clusterFromCells
std::vector< Gep::CustomCaloCell > clusterFromCells(const Gep::CustomCaloCell &seed, const pGepCellMap &) const
Definition: WFSClusterMaker.cxx:63
Gep::WFSClusterMaker::getName
std::string getName() const override
Definition: WFSClusterMaker.cxx:196
IClusterMaker.h