HerdSoftware  0.1.1
SiliconDetectorClusteringAlgo.h
Go to the documentation of this file.
1 /*
2  * SiliconDetectorClusteringAlgo.h
3  *
4  * Created on: 5 Dec 2018
5  * Author: Nicola Mori
6  */
7 
8 #ifndef HERD_SILICONDETECTORCLUSTERINGALGO_H_
9 #define HERD_SILICONDETECTORCLUSTERINGALGO_H_
10 
11 // HerdSoftware headers
17 
18 // EventAnalysis headers
19 #include "algorithm/Algorithm.h"
20 
21 using namespace EA;
22 
23 namespace Herd {
24 
25 // clang-format off
62 // clang-format on
63 class SiliconDetectorClusteringAlgo : public Algorithm {
64 public:
69  SiliconDetectorClusteringAlgo(const std::string &name);
70 
75  bool Initialize() override;
76 
81  bool Process() override;
82 
91  std::vector<std::string> FreeObjects(const std::vector<std::string> &objs, Memory::Status memStatus) override;
92 
93 protected:
94  std::string _detName;
95 
96 private:
97  // Algorithm parameters
98  // float _snThreshold; **TO BE RESTORED**
99  // float _snSeed; **TO BE RESTORED**
100 
101  // Class members
103  observer_ptr<SiliconDetectorGeoParamsColl> _silicondetectorGeoParamsColl;
104  observer_ptr<SiliconDetectorChannelGeoInfoColl> _silicondetectorChannelGeoInfoColl;
105  StorePtr _evStore, _globStore;
106 
107  void _Clusterize(SiliconDetectorHits &hits, const std::vector<SiliconDetectorGeoParams> &geoParams,
108  SiliconDetectorClusters &clusters);
109 };
110 
111 } // namespace Herd
112 
113 #endif /* HERD_SILICONDETECTORCLUSTERINGALGO_H_ */
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
Algorithm that clusters the Monte Carlo Silicon detector hits. algorithms/clustering/SiliconDetectorC...
Definition: SiliconDetectorClusteringAlgo.h:63
SiliconDetectorClustersColl _silicondetectorClustersColl
Definition: SiliconDetectorClusteringAlgo.h:102
std::string _detName
Name of the detector, e.g "stk".
Definition: SiliconDetectorClusteringAlgo.h:94
observer_ptr< SiliconDetectorChannelGeoInfoColl > _silicondetectorChannelGeoInfoColl
Definition: SiliconDetectorClusteringAlgo.h:104
StorePtr _globStore
Definition: SiliconDetectorClusteringAlgo.h:105
std::vector< std::vector< Cluster > > SiliconDetectorClusters
Definition: SiliconDetectorClusters.h:21
observer_ptr< SiliconDetectorGeoParamsColl > _silicondetectorGeoParamsColl
Definition: SiliconDetectorClusteringAlgo.h:103
Container for the hits of a single silicon detector.